From 527e7a9b46184b0ff03fc7e267bc790500114b80 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Tue, 10 Dec 2024 11:08:19 +0000 Subject: [PATCH] ci: automatic build fixes --- ...der-83efcb6b.js => ClipLoader-548a512b.js} | 2 +- build/assets/DailyMotion-39ab8e74.js | 1 - build/assets/DailyMotion-d27e9ff8.js | 1 + build/assets/Facebook-37d0efe5.js | 1 + build/assets/Facebook-97fa6564.js | 1 - build/assets/FilePlayer-05cf107f.js | 1 + build/assets/FilePlayer-e7ca0acd.js | 1 - build/assets/Kaltura-03e52ee6.js | 1 + build/assets/Kaltura-35ded625.js | 1 - build/assets/Mixcloud-86b677dd.js | 1 - build/assets/Mixcloud-bf087957.js | 1 + build/assets/Preview-1cfc0cb6.js | 1 + build/assets/Preview-88a9950d.js | 1 - ...leton-a2b376e5.js => Skeleton-8352c4ee.js} | 10 +- build/assets/SoundCloud-06d7421f.js | 1 - build/assets/SoundCloud-a3a6191d.js | 1 + build/assets/Stack-0bfda087.js | 1 + build/assets/Stack-a2ecd800.js | 1 - build/assets/Streamable-6ef4ab2c.js | 1 + build/assets/Streamable-b6838d3b.js | 1 - build/assets/Tabs-59164736.js | 1 + build/assets/Tabs-e3b4b317.js | 1 - build/assets/TextareaAutosize-449c264d.js | 2 - build/assets/TextareaAutosize-cee09ef8.js | 2 + build/assets/Twitch-2250c7ec.js | 1 + build/assets/Twitch-e6373144.js | 1 - build/assets/Typography-4a916cc9.js | 1 + build/assets/Typography-fe8f2873.js | 1 - build/assets/Vidyard-47c014fa.js | 1 + build/assets/Vidyard-710037e4.js | 1 - build/assets/Vimeo-0f9aa2d7.js | 1 + build/assets/Vimeo-da2c67a7.js | 1 - build/assets/Wistia-1f90bb86.js | 1 - build/assets/Wistia-d22d59b9.js | 1 + build/assets/YouTube-40d53f54.js | 1 + build/assets/YouTube-b94c573b.js | 1 - ...ants-fc83fb70.js => constants-f6ae9f1c.js} | 2 +- ...-968d1259.js => createSvgIcon-72fbec8f.js} | 2 +- .../{index-57a408d8.js => index-046f3837.js} | 2 +- .../{index-83069401.js => index-086ee5d7.js} | 2 +- .../{index-e790ac5f.js => index-0f11e1ac.js} | 8 +- build/assets/index-195d9df5.js | 1 + build/assets/index-3ee44dc3.js | 673 ++++++++++++++++ .../{index-4f6b03b7.js => index-3ee49360.js} | 2 +- .../{index-9f1e2a07.js => index-3f21c8a7.js} | 6 +- .../{index-abdeac9a.js => index-42dc7de8.js} | 84 +- .../{index-72b8184c.js => index-444ad080.js} | 8 +- .../{index-657a329d.js => index-4a17ebed.js} | 38 +- .../{index-4bee6c36.js => index-4ae82293.js} | 8 +- .../{index-a1c8bc76.js => index-521bb72b.js} | 26 +- .../{index-5f0d156b.js => index-555cc0b7.js} | 50 +- build/assets/index-5a928665.js | 393 ++++++++++ build/assets/index-5b1d6c13.js | 673 ---------------- .../{index-a088126d.js => index-738e774f.js} | 8 +- .../{index-f2cb870a.js => index-794e801a.js} | 96 +-- build/assets/index-96671d18.js | 393 ---------- .../{index-a583ad56.js => index-a03166b8.js} | 2 +- build/assets/index-aaff460f.js | 734 ++++++++++++++++++ .../{index-3e8cb7c2.js => index-acbc4510.js} | 8 +- .../{index-9c5cc1d2.js => index-b8e1ee43.js} | 2 +- .../{index-63bb2002.js => index-c5a5c142.js} | 8 +- .../{index-21017702.js => index-cf1b42c2.js} | 10 +- build/assets/index-cf684ffa.js | 681 ---------------- .../{index-4313502a.js => index-d02d35b0.js} | 30 +- build/assets/index-d39d2c64.js | 211 +++++ .../{index-2be8dff4.js => index-d3eb8088.js} | 4 +- build/assets/index-d6936fc6.js | 264 ------- build/assets/index-d8ea0c8b.js | 71 -- build/assets/index-f6ae5354.js | 71 ++ build/assets/isPlainObject-11606a25.js | 1 + build/assets/isPlainObject-25422081.js | 1 - ...e-9c942ca6.js => three.module-df70f22b.js} | 2 +- build/index.html | 2 +- 73 files changed, 2313 insertions(+), 2312 deletions(-) rename build/assets/{ClipLoader-83efcb6b.js => ClipLoader-548a512b.js} (97%) delete mode 100644 build/assets/DailyMotion-39ab8e74.js create mode 100644 build/assets/DailyMotion-d27e9ff8.js create mode 100644 build/assets/Facebook-37d0efe5.js delete mode 100644 build/assets/Facebook-97fa6564.js create mode 100644 build/assets/FilePlayer-05cf107f.js delete mode 100644 build/assets/FilePlayer-e7ca0acd.js create mode 100644 build/assets/Kaltura-03e52ee6.js delete mode 100644 build/assets/Kaltura-35ded625.js delete mode 100644 build/assets/Mixcloud-86b677dd.js create mode 100644 build/assets/Mixcloud-bf087957.js create mode 100644 build/assets/Preview-1cfc0cb6.js delete mode 100644 build/assets/Preview-88a9950d.js rename build/assets/{Skeleton-a2b376e5.js => Skeleton-8352c4ee.js} (60%) delete mode 100644 build/assets/SoundCloud-06d7421f.js create mode 100644 build/assets/SoundCloud-a3a6191d.js create mode 100644 build/assets/Stack-0bfda087.js delete mode 100644 build/assets/Stack-a2ecd800.js create mode 100644 build/assets/Streamable-6ef4ab2c.js delete mode 100644 build/assets/Streamable-b6838d3b.js create mode 100644 build/assets/Tabs-59164736.js delete mode 100644 build/assets/Tabs-e3b4b317.js delete mode 100644 build/assets/TextareaAutosize-449c264d.js create mode 100644 build/assets/TextareaAutosize-cee09ef8.js create mode 100644 build/assets/Twitch-2250c7ec.js delete mode 100644 build/assets/Twitch-e6373144.js create mode 100644 build/assets/Typography-4a916cc9.js delete mode 100644 build/assets/Typography-fe8f2873.js create mode 100644 build/assets/Vidyard-47c014fa.js delete mode 100644 build/assets/Vidyard-710037e4.js create mode 100644 build/assets/Vimeo-0f9aa2d7.js delete mode 100644 build/assets/Vimeo-da2c67a7.js delete mode 100644 build/assets/Wistia-1f90bb86.js create mode 100644 build/assets/Wistia-d22d59b9.js create mode 100644 build/assets/YouTube-40d53f54.js delete mode 100644 build/assets/YouTube-b94c573b.js rename build/assets/{constants-fc83fb70.js => constants-f6ae9f1c.js} (80%) rename build/assets/{createSvgIcon-968d1259.js => createSvgIcon-72fbec8f.js} (77%) rename build/assets/{index-57a408d8.js => index-046f3837.js} (69%) rename build/assets/{index-83069401.js => index-086ee5d7.js} (88%) rename build/assets/{index-e790ac5f.js => index-0f11e1ac.js} (93%) create mode 100644 build/assets/index-195d9df5.js create mode 100644 build/assets/index-3ee44dc3.js rename build/assets/{index-4f6b03b7.js => index-3ee49360.js} (95%) rename build/assets/{index-9f1e2a07.js => index-3f21c8a7.js} (77%) rename build/assets/{index-abdeac9a.js => index-42dc7de8.js} (94%) rename build/assets/{index-72b8184c.js => index-444ad080.js} (58%) rename build/assets/{index-657a329d.js => index-4a17ebed.js} (89%) rename build/assets/{index-4bee6c36.js => index-4ae82293.js} (90%) rename build/assets/{index-a1c8bc76.js => index-521bb72b.js} (73%) rename build/assets/{index-5f0d156b.js => index-555cc0b7.js} (83%) create mode 100644 build/assets/index-5a928665.js delete mode 100644 build/assets/index-5b1d6c13.js rename build/assets/{index-a088126d.js => index-738e774f.js} (78%) rename build/assets/{index-f2cb870a.js => index-794e801a.js} (95%) delete mode 100644 build/assets/index-96671d18.js rename build/assets/{index-a583ad56.js => index-a03166b8.js} (85%) create mode 100644 build/assets/index-aaff460f.js rename build/assets/{index-3e8cb7c2.js => index-acbc4510.js} (63%) rename build/assets/{index-9c5cc1d2.js => index-b8e1ee43.js} (95%) rename build/assets/{index-63bb2002.js => index-c5a5c142.js} (67%) rename build/assets/{index-21017702.js => index-cf1b42c2.js} (77%) delete mode 100644 build/assets/index-cf684ffa.js rename build/assets/{index-4313502a.js => index-d02d35b0.js} (93%) create mode 100644 build/assets/index-d39d2c64.js rename build/assets/{index-2be8dff4.js => index-d3eb8088.js} (73%) delete mode 100644 build/assets/index-d6936fc6.js delete mode 100644 build/assets/index-d8ea0c8b.js create mode 100644 build/assets/index-f6ae5354.js create mode 100644 build/assets/isPlainObject-11606a25.js delete mode 100644 build/assets/isPlainObject-25422081.js rename build/assets/{three.module-9c942ca6.js => three.module-df70f22b.js} (99%) diff --git a/build/assets/ClipLoader-83efcb6b.js b/build/assets/ClipLoader-548a512b.js similarity index 97% rename from build/assets/ClipLoader-83efcb6b.js rename to build/assets/ClipLoader-548a512b.js index 3ac283f1d..345b1a343 100644 --- a/build/assets/ClipLoader-83efcb6b.js +++ b/build/assets/ClipLoader-548a512b.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-f2cb870a.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-794e801a.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-39ab8e74.js b/build/assets/DailyMotion-39ab8e74.js deleted file mode 100644 index a42391dc0..000000000 --- a/build/assets/DailyMotion-39ab8e74.js +++ /dev/null @@ -1 +0,0 @@ -import{H as P,r as v}from"./index-f2cb870a.js";import{u as D,p as O}from"./index-abdeac9a.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/DailyMotion-d27e9ff8.js b/build/assets/DailyMotion-d27e9ff8.js new file mode 100644 index 000000000..d9677bca9 --- /dev/null +++ b/build/assets/DailyMotion-d27e9ff8.js @@ -0,0 +1 @@ +import{a9 as P,r as v}from"./index-794e801a.js";import{u as D,p as O}from"./index-42dc7de8.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-37d0efe5.js b/build/assets/Facebook-37d0efe5.js new file mode 100644 index 000000000..4e9a18a72 --- /dev/null +++ b/build/assets/Facebook-37d0efe5.js @@ -0,0 +1 @@ +import{a9 as _,r as P}from"./index-794e801a.js";import{u as g,p as m}from"./index-42dc7de8.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/Facebook-97fa6564.js b/build/assets/Facebook-97fa6564.js deleted file mode 100644 index a6488152f..000000000 --- a/build/assets/Facebook-97fa6564.js +++ /dev/null @@ -1 +0,0 @@ -import{H as _,r as P}from"./index-f2cb870a.js";import{u as g,p as m}from"./index-abdeac9a.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-05cf107f.js b/build/assets/FilePlayer-05cf107f.js new file mode 100644 index 000000000..e1cb28861 --- /dev/null +++ b/build/assets/FilePlayer-05cf107f.js @@ -0,0 +1 @@ +import{a9 as b,r as _}from"./index-794e801a.js";import{u as O,p as A}from"./index-42dc7de8.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/FilePlayer-e7ca0acd.js b/build/assets/FilePlayer-e7ca0acd.js deleted file mode 100644 index 8bebcba66..000000000 --- a/build/assets/FilePlayer-e7ca0acd.js +++ /dev/null @@ -1 +0,0 @@ -import{H as b,r as _}from"./index-f2cb870a.js";import{u as O,p as A}from"./index-abdeac9a.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,H=(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},N=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),j=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};H(m,{default:()=>P});var g=j(m),c=N(_),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-03e52ee6.js b/build/assets/Kaltura-03e52ee6.js new file mode 100644 index 000000000..2be4b36f7 --- /dev/null +++ b/build/assets/Kaltura-03e52ee6.js @@ -0,0 +1 @@ +import{a9 as y,r as f}from"./index-794e801a.js";import{u as _,p as m}from"./index-42dc7de8.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/Kaltura-35ded625.js b/build/assets/Kaltura-35ded625.js deleted file mode 100644 index ebef1cf19..000000000 --- a/build/assets/Kaltura-35ded625.js +++ /dev/null @@ -1 +0,0 @@ -import{H as y,r as f}from"./index-f2cb870a.js";import{u as _,p as m}from"./index-abdeac9a.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-86b677dd.js b/build/assets/Mixcloud-86b677dd.js deleted file mode 100644 index a6b79fab7..000000000 --- a/build/assets/Mixcloud-86b677dd.js +++ /dev/null @@ -1 +0,0 @@ -import{H as _,r as f}from"./index-f2cb870a.js";import{u as m,p as g}from"./index-abdeac9a.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/Mixcloud-bf087957.js b/build/assets/Mixcloud-bf087957.js new file mode 100644 index 000000000..a6d1635de --- /dev/null +++ b/build/assets/Mixcloud-bf087957.js @@ -0,0 +1 @@ +import{a9 as _,r as f}from"./index-794e801a.js";import{u as m,p as g}from"./index-42dc7de8.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-1cfc0cb6.js b/build/assets/Preview-1cfc0cb6.js new file mode 100644 index 000000000..84632e896 --- /dev/null +++ b/build/assets/Preview-1cfc0cb6.js @@ -0,0 +1 @@ +import{a9 as y,r as b}from"./index-794e801a.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/Preview-88a9950d.js b/build/assets/Preview-88a9950d.js deleted file mode 100644 index 9cdcb88aa..000000000 --- a/build/assets/Preview-88a9950d.js +++ /dev/null @@ -1 +0,0 @@ -import{H as y,r as b}from"./index-f2cb870a.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-a2b376e5.js b/build/assets/Skeleton-8352c4ee.js similarity index 60% rename from build/assets/Skeleton-a2b376e5.js rename to build/assets/Skeleton-8352c4ee.js index 0c3c9ae85..e353ff0d4 100644 --- a/build/assets/Skeleton-a2b376e5.js +++ b/build/assets/Skeleton-8352c4ee.js @@ -1,4 +1,4 @@ -import{O as y,P as x,bv as b,S as R,y as o,U as S,bw as u,r as _,V as U,K as $,j as M,X,Y as j}from"./index-f2cb870a.js";function A(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function K(t){return parseFloat(t)}function N(t){return y("MuiSkeleton",t)}x("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const P=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const B=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return j({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},N,a)},E=b(p||(p=r` +import{L as x,M as y,bv as b,O as R,x as o,P as S,bw as u,r as _,S as U,H as $,j as M,U as j,V as A}from"./index-794e801a.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function P(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const E=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},P,a)},F=b(p||(p=r` 0% { opacity: 1; } @@ -10,7 +10,7 @@ import{O as y,P as x,bv as b,S as R,y as o,U as S,bw as u,r as _,V as U,K as $,j 100% { opacity: 1; } -`)),F=b(g||(g=r` +`)),K=b(g||(g=r` 0% { transform: translateX(-100%); } @@ -23,9 +23,9 @@ import{O as y,P as x,bv as b,S as R,y as o,U as S,bw as u,r as _,V as U,K as $,j 100% { transform: translateX(100%); } -`)),O=R("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],e.animation!==!1&&a[e.animation],e.hasChildren&&a.withChildren,e.hasChildren&&!e.width&&a.fitContent,e.hasChildren&&!e.height&&a.heightAuto]}})(({theme:t,ownerState:a})=>{const e=A(t.shape.borderRadius)||"px",i=K(t.shape.borderRadius);return o({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:S(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},a.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},a.variant==="circular"&&{borderRadius:"50%"},a.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&u(m||(m=r` +`)),L=R("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],e.animation!==!1&&a[e.animation],e.hasChildren&&a.withChildren,e.hasChildren&&!e.width&&a.fitContent,e.hasChildren&&!e.height&&a.heightAuto]}})(({theme:t,ownerState:a})=>{const e=X(t.shape.borderRadius)||"px",i=N(t.shape.borderRadius);return o({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:S(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},a.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},a.variant==="circular"&&{borderRadius:"50%"},a.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&u(m||(m=r` animation: ${0} 2s ease-in-out 0.5s infinite; - `),E),({ownerState:t,theme:a})=>t.animation==="wave"&&u(f||(f=r` + `),F),({ownerState:t,theme:a})=>t.animation==="wave"&&u(f||(f=r` position: relative; overflow: hidden; @@ -48,4 +48,4 @@ import{O as y,P as x,bv as b,S as R,y as o,U as S,bw as u,r as _,V as U,K as $,j right: 0; top: 0; } - `),F,(a.vars||a).palette.action.hover)),T=_.forwardRef(function(a,e){const i=U({props:a,name:"MuiSkeleton"}),{animation:n="pulse",className:l,component:s="span",height:h,style:v,variant:C="text",width:k}=i,d=$(i,P),c=o({},i,{animation:n,component:s,variant:C,hasChildren:!!d.children}),w=B(c);return M.jsx(O,o({as:s,ref:e,className:X(w.root,l),ownerState:c},d,{style:o({width:k,height:h},v)}))}),W=T;export{W as S}; + `),K,(a.vars||a).palette.action.hover)),O=_.forwardRef(function(a,e){const i=U({props:a,name:"MuiSkeleton"}),{animation:n="pulse",className:l,component:s="span",height:h,style:v,variant:C="text",width:k}=i,d=$(i,B),c=o({},i,{animation:n,component:s,variant:C,hasChildren:!!d.children}),w=E(c);return M.jsx(L,o({as:s,ref:e,className:j(w.root,l),ownerState:c},d,{style:o({width:k,height:h},v)}))}),V=O;export{V as S}; diff --git a/build/assets/SoundCloud-06d7421f.js b/build/assets/SoundCloud-06d7421f.js deleted file mode 100644 index c9778c5b9..000000000 --- a/build/assets/SoundCloud-06d7421f.js +++ /dev/null @@ -1 +0,0 @@ -import{H as P,r as g}from"./index-f2cb870a.js";import{u as b,p as v}from"./index-abdeac9a.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/SoundCloud-a3a6191d.js b/build/assets/SoundCloud-a3a6191d.js new file mode 100644 index 000000000..a7c3f4689 --- /dev/null +++ b/build/assets/SoundCloud-a3a6191d.js @@ -0,0 +1 @@ +import{a9 as P,r as g}from"./index-794e801a.js";import{u as b,p as v}from"./index-42dc7de8.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-0bfda087.js b/build/assets/Stack-0bfda087.js new file mode 100644 index 000000000..67af093d8 --- /dev/null +++ b/build/assets/Stack-0bfda087.js @@ -0,0 +1 @@ +import{r as E,a8 as Bt,H as ae,x as T,c2 as Ft,c3 as Wt,c4 as Vt,c5 as Lt,c6 as Nt,bz as Ke,by as Ae,c7 as Ht,c1 as It,c8 as Ut,j as K,c9 as Qe,V as ke,L as Te,M as ht,Z as et,$ as tt,O as Me,ca as qt,S as Be,Y as gt,U as zt}from"./index-794e801a.js";import{J as rt,aR as Yt,Y as Xt}from"./index-d39d2c64.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Bt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Zt(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"},Ke({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,Ke({theme:t},c,(i,f)=>e.useFlexGap?{gap:Qe(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Qe(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Zt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:P},g=n();return K.jsx(a,T({as:h,ownerState:u,ref:f,className:Kt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Or="afterWrite",Pr=[vr,mr,hr,gr,yr,br,xr,wr,Or];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(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 Z=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Q(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Ot(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function X(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||X(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return Z(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Pt(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Ot(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Br(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,u=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=X(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Mr),k=l===!0?Br({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=P?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(X(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=X(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=X(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=Z(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Z(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=Z(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):Q(t)?qr(t,r):De(Ur(X(e)))}function zr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Q(o)?t.filter(function(n){return Q(n)&&Ot(n,o)&&U(n)!=="body"}):[]}function Yr(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=Z(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=Z(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),P=h===le?dr:le,b=e.rects.popper,u=e.elements[x?P:h],g=Yr(Q(u)?u:u.contextElement||X(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[B,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Xr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),P=w===m,b=i||(P||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,Y){return ee.concat(I(Y)===Fe?Xr(t,{placement:Y,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):Y)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=j?S?H:F:S?N:B;g[V]>y[V]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[M]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(Y){var se=u.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,Y).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Zr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Kr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zr};function Qr(e,t,r){var o=I(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Qr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),P=ne(t.placement),b=!P,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?B:F,V=u==="y"?N:H,D=u==="y"?"height":"width",M=y[u],z=M+m[j],G=M-m[V],me=p?-A[D]/2:0,Pe=P===te?O[D]:A[D],ie=P===te?-A[D]:-O[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),se=Y[j],ge=Y[V],_=ce(0,O[D],ee[D]),Ee=b?O[D]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,$t=b?-O[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=M+Ee-Ue-Dt,kt=M+$t-Ue,qe=ce(p?we(z,jt):z,M,p?Z(G,kt):G);y[u]=qe,k[u]=qe-M}if(s){var ze,Tt=u==="x"?B:F,Mt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Ye=J+m[Tt],Xe=J-m[Mt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Ye:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Xe,Ze=p&&Re?$r(_e,J,Je):ce(p?_e:Ye,J,p?Je:Xe);y[g]=Ze,k[g]=Ze-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=X(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Pr.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),P=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Oo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),tt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const M=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Xt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:k.root});return K.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=je(o);O=R&&Po(R)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return K.jsx(Yt,{disablePortal:s,container:O,children:K.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Me(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return K.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},O,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Bo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Mo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Bo(P),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return K.jsx(St.Provider,{value:k,children:K.jsx(Fo,T({as:s,ownerState:P,className:zt(b.root,a),ref:r},w,{children:n}))})}),Yo=Wo,Vo=lr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),Xo=Vo;export{Yo as F,Uo as P,Xo as S,Ho as a,zo as b,St as c,Zt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Stack-a2ecd800.js b/build/assets/Stack-a2ecd800.js deleted file mode 100644 index aca9af9eb..000000000 --- a/build/assets/Stack-a2ecd800.js +++ /dev/null @@ -1 +0,0 @@ -import{r as E,a6 as Mt,K as ae,y as T,c3 as Ft,c4 as Wt,c5 as Vt,c6 as Lt,c7 as Nt,bz as Je,by as Ae,c8 as Ht,c2 as It,c9 as Ut,j as J,ca as Qe,Y as ke,O as Te,P as ht,a0 as et,a1 as tt,S as Be,cb as qt,V as Me,$ as gt,X as zt}from"./index-f2cb870a.js";import{U as rt,aZ as Xt,a1 as Yt}from"./index-d6936fc6.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Mt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Kt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Zt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Kt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Je({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Je({theme:t},c,(i,f)=>e.useFlexGap?{gap:Qe(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Qe(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Zt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return J.jsx(a,T({as:h,ownerState:u,ref:f,className:Jt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function 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 Z=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Q(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function 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((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!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 Z(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?M:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Pt(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Br),k=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=O?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=O?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function 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=Z(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Z(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=Z(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body: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 De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):Q(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Q(o)?t.filter(function(n){return Q(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=Z(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=Z(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case M:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?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(Q(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Kr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Zr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Jr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zr};function Qr(e,t,r){var o=I(e),n=[F,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Qr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),O=ne(t.placement),b=!O,u=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,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?M:F,V=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[V],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[V],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(z,jt):z,B,p?Z(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,K=y[g],ye=g==="y"?"height":"width",Xe=K+m[Tt],Ye=K-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:K-P[ye]-A[ye]-Ge+R.altAxis,Ke=Re?K+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ze=p&&Re?$r(_e,K,Ke):ce(p?_e:Xe,K,p?Ke:Ye);y[g]=Ze,k[g]=Ze-K}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!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;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),O=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Po(l,c),[P,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),tt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return J.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(R)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return J.jsx(Xt,{disablePortal:s,container:P,children:J.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},O,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return J.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Me({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return J.jsx(St.Provider,{value:k,children:J.jsx(Fo,T({as:s,ownerState:O,className: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,Zt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-6ef4ab2c.js b/build/assets/Streamable-6ef4ab2c.js new file mode 100644 index 000000000..f9e64e2a9 --- /dev/null +++ b/build/assets/Streamable-6ef4ab2c.js @@ -0,0 +1 @@ +import{a9 as m,r as f}from"./index-794e801a.js";import{u as _,p as b}from"./index-42dc7de8.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/Streamable-b6838d3b.js b/build/assets/Streamable-b6838d3b.js deleted file mode 100644 index 5741344a4..000000000 --- a/build/assets/Streamable-b6838d3b.js +++ /dev/null @@ -1 +0,0 @@ -import{H as m,r as f}from"./index-f2cb870a.js";import{u as _,p as b}from"./index-abdeac9a.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-59164736.js b/build/assets/Tabs-59164736.js new file mode 100644 index 000000000..b2dd28a35 --- /dev/null +++ b/build/assets/Tabs-59164736.js @@ -0,0 +1 @@ +import{M as ft,L as pt,O,X as Pt,Y as Lt,x as b,r as c,S as ht,H as rt,U as L,j as S,V as St,$ as Zt,a3 as Nt,a2 as ut}from"./index-794e801a.js";import{U as $t,L as kt,Y as lt,J as te}from"./index-d39d2c64.js";import{c as Ft}from"./createSvgIcon-72fbec8f.js";let Y;function At(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),_=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(_),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},U=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:U,ownerState:_,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:_={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:U,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",V=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",K=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Ut]=c.useState(!1),[yt,Yt]=c.useState(!1),[Ct,_t]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&U!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(U)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[K]:l?l[K]:0};if(isNaN(k[s])||isNaN(k[K]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[K]-f[K]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(V,z.current,o,{duration:n.transitions.duration.standard}):z.current[V]=o},Tt=o=>{let l=z.current[V];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Vt=()=>{Tt(-1*It())},Kt=()=>{Tt(It())},qt=c.useCallback(o=>{_t({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Vt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Kt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[V]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Yt(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Ut(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===U;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/Tabs-e3b4b317.js b/build/assets/Tabs-e3b4b317.js deleted file mode 100644 index 6041b5052..000000000 --- a/build/assets/Tabs-e3b4b317.js +++ /dev/null @@ -1 +0,0 @@ -import{P as ft,O as pt,S as O,Z as Pt,$ as Lt,y as b,r as c,V as ht,K as rt,X as L,j as S,Y as St,a1 as Qt,a5 as Nt,a4 as ut}from"./index-f2cb870a.js";import{Y as $t,W as kt,a1 as lt,U as te}from"./index-d6936fc6.js";import{c as Ft}from"./createSvgIcon-968d1259.js";let _;function At(){if(_)return _;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),_="reverse",t.scrollLeft>0?_="default":(t.scrollLeft=1,t.scrollLeft===0&&(_="negative")),document.body.removeChild(t),_}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),U=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(U),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,Z=R=>{!I&&y&&y(R,C),x&&x(R)},Y=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:Z,onFocus:Y,ownerState:U,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Qt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:U={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:Z="primary",value:Y,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",J=B?"top":"left",Q=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:Z,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:U.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:U.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Yt]=c.useState(!1),[yt,_t]=c.useState(!1),[Ct,Ut]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&Y!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(Y)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Ut({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick: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[J]l[Q]){const s=l[K]+(i[Q]-l[Q]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&_t(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Yt(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Zt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===Y;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:Z,value:l},et===1&&Y===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Jt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Jt,ref:F,role:"tablist",children:Zt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-449c264d.js b/build/assets/TextareaAutosize-449c264d.js deleted file mode 100644 index 42ca31bd0..000000000 --- a/build/assets/TextareaAutosize-449c264d.js +++ /dev/null @@ -1,2 +0,0 @@ -import{r as o,K as _,a0 as I,a1 as T,j as v,y as b,a3 as D}from"./index-f2cb870a.js";import{W as F,Y as K}from"./index-d6936fc6.js";const P=["onChange","maxRows","minRows","style","value"];function m(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 Z=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=_(l,P),{current:A}=o.useRef(x!=null),p=o.useRef(null),N=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` -`&&(t.value+=" ");const g=n.boxSizing,w=m(n.paddingBottom)+m(n.paddingTop),a=m(n.borderBottomWidth)+m(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),y&&(s=Math.min(Number(y)*d,s)),s=Math.max(s,d);const B=s+(g==="border-box"?w+a:0),L=Math.abs(s-u)<=1;return{outerHeightStyle:B,overflow:L}},[y,h,l.placeholder]),W=(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},C=o.useCallback(()=>{const e=f();M(e)||E(i=>W(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||D.flushSync(()=>{E(d=>W(d,u))})},i=()=>{c.current=0,e()};let n;const t=K(i),g=p.current,w=F(g);w.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{C()}),o.useEffect(()=>{c.current=0},[x]);const j=e=>{c.current=0,A||C(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:x,onChange:j,ref:N,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{Z as T}; diff --git a/build/assets/TextareaAutosize-cee09ef8.js b/build/assets/TextareaAutosize-cee09ef8.js new file mode 100644 index 000000000..c3b04a923 --- /dev/null +++ b/build/assets/TextareaAutosize-cee09ef8.js @@ -0,0 +1,2 @@ +import{r as o,H as _,Z as I,$ as T,j as v,x as b,a1 as U}from"./index-794e801a.js";import{L as F,U as Z}from"./index-d39d2c64.js";const D=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const P={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,D),{current:A}=o.useRef(y!=null),p=o.useRef(null),L=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +`&&(t.value+=" ");const g=n.boxSizing,w=m(n.paddingBottom)+m(n.paddingTop),a=m(n.borderBottomWidth)+m(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const j=s+(g==="border-box"?w+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||U.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=Z(i),g=p.current,w=F(g);w.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const N=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:N,ref:L,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},P.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{q as T}; diff --git a/build/assets/Twitch-2250c7ec.js b/build/assets/Twitch-2250c7ec.js new file mode 100644 index 000000000..2b316519e --- /dev/null +++ b/build/assets/Twitch-2250c7ec.js @@ -0,0 +1 @@ +import{a9 as w,r as D}from"./index-794e801a.js";import{u as C,p as N}from"./index-42dc7de8.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Twitch-e6373144.js b/build/assets/Twitch-e6373144.js deleted file mode 100644 index 8c2e9e87c..000000000 --- a/build/assets/Twitch-e6373144.js +++ /dev/null @@ -1 +0,0 @@ -import{H as w,r as D}from"./index-f2cb870a.js";import{u as C,p as N}from"./index-abdeac9a.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-4a916cc9.js b/build/assets/Typography-4a916cc9.js new file mode 100644 index 000000000..8771151ac --- /dev/null +++ b/build/assets/Typography-4a916cc9.js @@ -0,0 +1 @@ +import{L as b,M as B,O as W,Y as u,x as s,r as C,S as M,H as R,j as P,U,V as j}from"./index-794e801a.js";import{e as L}from"./Stack-0bfda087.js";function N(a){return b("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return j(i,N,p)},E=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},V=a=>O[a]||a,z=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=V(n.color),o=L(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=$(m);return P.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),H=z;export{H as T}; diff --git a/build/assets/Typography-fe8f2873.js b/build/assets/Typography-fe8f2873.js deleted file mode 100644 index 120766370..000000000 --- a/build/assets/Typography-fe8f2873.js +++ /dev/null @@ -1 +0,0 @@ -import{O as b,P as B,S as W,$ as u,y as s,r as C,V as M,K as P,j as R,X as j,Y as U}from"./index-f2cb870a.js";import{e as $}from"./Stack-a2ecd800.js";function N(a){return b("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],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,N,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"},O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},V=a=>O[a]||a,z=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=V(n.color),o=$(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=P(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=E(m);return R.jsx(L,s({as:v,ref:r,ownerState:m,className:j(T.root,i)},x))}),J=z;export{J as T}; diff --git a/build/assets/Vidyard-47c014fa.js b/build/assets/Vidyard-47c014fa.js new file mode 100644 index 000000000..699c5136a --- /dev/null +++ b/build/assets/Vidyard-47c014fa.js @@ -0,0 +1 @@ +import{a9 as g,r as v}from"./index-794e801a.js";import{u as b,p as O}from"./index-42dc7de8.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/Vidyard-710037e4.js b/build/assets/Vidyard-710037e4.js deleted file mode 100644 index f7d4be472..000000000 --- a/build/assets/Vidyard-710037e4.js +++ /dev/null @@ -1 +0,0 @@ -import{H as g,r as v}from"./index-f2cb870a.js";import{u as b,p as O}from"./index-abdeac9a.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-0f9aa2d7.js b/build/assets/Vimeo-0f9aa2d7.js new file mode 100644 index 000000000..3b0d6772c --- /dev/null +++ b/build/assets/Vimeo-0f9aa2d7.js @@ -0,0 +1 @@ +import{a9 as d,r as f}from"./index-794e801a.js";import{u as m,p as _}from"./index-42dc7de8.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/Vimeo-da2c67a7.js b/build/assets/Vimeo-da2c67a7.js deleted file mode 100644 index 11e0a6679..000000000 --- a/build/assets/Vimeo-da2c67a7.js +++ /dev/null @@ -1 +0,0 @@ -import{H as d,r as f}from"./index-f2cb870a.js";import{u as m,p as _}from"./index-abdeac9a.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-1f90bb86.js b/build/assets/Wistia-1f90bb86.js deleted file mode 100644 index d870a3074..000000000 --- a/build/assets/Wistia-1f90bb86.js +++ /dev/null @@ -1 +0,0 @@ -import{H as m,r as g}from"./index-f2cb870a.js";import{u as v,p as w}from"./index-abdeac9a.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/Wistia-d22d59b9.js b/build/assets/Wistia-d22d59b9.js new file mode 100644 index 000000000..b370d009a --- /dev/null +++ b/build/assets/Wistia-d22d59b9.js @@ -0,0 +1 @@ +import{a9 as m,r as g}from"./index-794e801a.js";import{u as v,p as w}from"./index-42dc7de8.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-40d53f54.js b/build/assets/YouTube-40d53f54.js new file mode 100644 index 000000000..dcc267405 --- /dev/null +++ b/build/assets/YouTube-40d53f54.js @@ -0,0 +1 @@ +import{a9 as U,r as I}from"./index-794e801a.js";import{u as L,p as Y}from"./index-42dc7de8.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/YouTube-b94c573b.js b/build/assets/YouTube-b94c573b.js deleted file mode 100644 index 21bf83360..000000000 --- a/build/assets/YouTube-b94c573b.js +++ /dev/null @@ -1 +0,0 @@ -import{H as U,r as I}from"./index-f2cb870a.js";import{u as L,p as Y}from"./index-abdeac9a.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,H=(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},K=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),F=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};H(w,{default:()=>O});var S=F(w),m=K(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-fc83fb70.js b/build/assets/constants-f6ae9f1c.js similarity index 80% rename from build/assets/constants-fc83fb70.js rename to build/assets/constants-f6ae9f1c.js index 1143130d2..a0b6ff054 100644 --- a/build/assets/constants-fc83fb70.js +++ b/build/assets/constants-f6ae9f1c.js @@ -1,4 +1,4 @@ -import{s,a$ as t,aZ as a,a_ as o,b0 as n}from"./index-f2cb870a.js";import{f as c}from"./index-d6936fc6.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=s(c)` +import{s,a$ as t,aZ as a,a_ as o,b0 as n}from"./index-794e801a.js";import{f as c}from"./index-d39d2c64.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=s(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/createSvgIcon-968d1259.js b/build/assets/createSvgIcon-72fbec8f.js similarity index 77% rename from build/assets/createSvgIcon-968d1259.js rename to build/assets/createSvgIcon-72fbec8f.js index fc0c61e25..3c5d5c89f 100644 --- a/build/assets/createSvgIcon-968d1259.js +++ b/build/assets/createSvgIcon-72fbec8f.js @@ -1 +1 @@ -import{O as I,P as C,S as w,$ as f,r as v,V as R,K as b,y as S,j as g,X as j,Y as N}from"./index-f2cb870a.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=S({},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 g.jsxs(T,S({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; +import{L as I,M as C,O as w,Y as f,r as v,S as R,H as b,x as S,j as g,U as j,V as M}from"./index-794e801a.js";function N(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return M(n,N,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,A),l=v.isValidElement(n)&&n.type==="svg",y=S({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=B(y);return g.jsxs(T,S({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function E(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{E as c}; diff --git a/build/assets/index-57a408d8.js b/build/assets/index-046f3837.js similarity index 69% rename from build/assets/index-57a408d8.js rename to build/assets/index-046f3837.js index 7b3510c96..c3b64d1bf 100644 --- a/build/assets/index-57a408d8.js +++ b/build/assets/index-046f3837.js @@ -1 +1 @@ -import"./index-f2cb870a.js";import{i as o}from"./index-d6936fc6.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; +import"./index-794e801a.js";import{i as o}from"./index-d39d2c64.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; diff --git a/build/assets/index-83069401.js b/build/assets/index-086ee5d7.js similarity index 88% rename from build/assets/index-83069401.js rename to build/assets/index-086ee5d7.js index 75ebdd43a..95ecbf752 100644 --- a/build/assets/index-83069401.js +++ b/build/assets/index-086ee5d7.js @@ -1 +1 @@ -import{V as e}from"./three.module-9c942ca6.js";function l(t){const n={};return t.forEach(o=>{const{key:s,type:i,required:r}=o;r?n[s]=i:n[s]=`?${i}`}),n}function c(t){return Object.keys(t).map(n=>{const o=t[n];let s="";return typeof o=="string"&&(o.includes("?")?s=o.slice(1):s=o),{required:s?!o.includes("?"):!1,type:s,key:n}}).filter(({key:n,type:o})=>!["type","ref_id","parent"].includes(n)&&o)}const f=t=>{const n=new e(t.x-10,t.y+45,t.z),o=new e(t.x+5,t.y+10,t.z),s=new e(t.x,t.y,t.z);return[n,s,o]};export{l as c,f as g,c as p}; +import{V as e}from"./three.module-df70f22b.js";function l(t){const n={};return t.forEach(o=>{const{key:s,type:i,required:r}=o;r?n[s]=i:n[s]=`?${i}`}),n}function c(t){return Object.keys(t).map(n=>{const o=t[n];let s="";return typeof o=="string"&&(o.includes("?")?s=o.slice(1):s=o),{required:s?!o.includes("?"):!1,type:s,key:n}}).filter(({key:n,type:o})=>!["type","ref_id","parent"].includes(n)&&o)}const f=t=>{const n=new e(t.x-10,t.y+45,t.z),o=new e(t.x+5,t.y+10,t.z),s=new e(t.x,t.y,t.z);return[n,s,o]};export{l as c,f as g,c as p}; diff --git a/build/assets/index-e790ac5f.js b/build/assets/index-0f11e1ac.js similarity index 93% rename from build/assets/index-e790ac5f.js rename to build/assets/index-0f11e1ac.js index 4828ce86b..c7566e488 100644 --- a/build/assets/index-e790ac5f.js +++ b/build/assets/index-0f11e1ac.js @@ -1,4 +1,4 @@ -import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aT as G,aU as k,N as y,w as z,aV as w,aW as M,aX as D,e as j,aY as I}from"./index-f2cb870a.js";import{i as A,q as R}from"./index-d6936fc6.js";import{C as B}from"./ClipLoader-83efcb6b.js";import{T as E,a as L}from"./Tabs-e3b4b317.js";import"./createSvgIcon-968d1259.js";const V=()=>(A(R(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` +import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aT as G,aU as k,N as y,v as z,aV as w,aW as M,aX as D,e as j,aY as I}from"./index-794e801a.js";import{i as A,o as R}from"./index-d39d2c64.js";import{C as B}from"./ClipLoader-548a512b.js";import{T as E,a as L}from"./Tabs-59164736.js";import"./createSvgIcon-72fbec8f.js";const V=()=>(A(R(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${o.appearanceBg}; @@ -47,7 +47,7 @@ import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aT width: 16px; height: 16px; } -`,Y=({initialValues:a,onClose:d})=>{const l=C({defaultValues:a,mode:"onSubmit"}),{isSubmitting:r}=l.formState,p=$(s=>s.setAppMetaData),{swarmUiUrl:x}=T(s=>s),[h,u]=b.useState(""),m=l.handleSubmit(async s=>{try{(await G(s)).status==="success"&&(k("Changes Saved"),p(s),d())}catch(c){let f=y;if((c==null?void 0:c.status)===400){const g=await c.json();f=g.errorCode||(g==null?void 0:g.status)||y}else c instanceof Error&&(f=c.message);u(String(f))}}),i=s=>{s.preventDefault(),m()};return e.jsx(z,{...l,children:e.jsx(N,{id:"add-node-form",onSubmit:i,children:e.jsxs(q,{children:[e.jsxs(n,{children:[x&&e.jsx(_,{children:e.jsx(H,{href:x,children:"View Swarm UI"})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...M}})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(n,{mt:210,py:h?0:24,children:[e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",size:"large",startIcon:r&&e.jsx(O,{children:e.jsx(B,{color:o.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(K,{children:e.jsxs(X,{children:[e.jsx(D,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},N=t.form` +`,Y=({initialValues:a,onClose:d})=>{const l=C({defaultValues:a,mode:"onSubmit"}),{isSubmitting:r}=l.formState,p=$(s=>s.setAppMetaData),{swarmUiUrl:x}=T(s=>s),[h,u]=b.useState(""),m=l.handleSubmit(async s=>{try{(await G(s)).status==="success"&&(k("Changes Saved"),p(s),d())}catch(c){let f=y;if((c==null?void 0:c.status)===400){const g=await c.json();f=g.errorCode||(g==null?void 0:g.status)||y}else c instanceof Error&&(f=c.message);u(String(f))}}),i=s=>{s.preventDefault(),m()};return e.jsx(z,{...l,children:e.jsx(N,{id:"add-node-form",onSubmit:i,children:e.jsxs(H,{children:[e.jsxs(n,{children:[x&&e.jsx(_,{children:e.jsx(q,{href:x,children:"View Swarm UI"})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...M}})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(n,{mt:210,py:h?0:24,children:[e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",size:"large",startIcon:r&&e.jsx(O,{children:e.jsx(B,{color:o.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(K,{children:e.jsxs(X,{children:[e.jsx(D,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},N=t.form` padding: 36px; height: 100%; `,O=t.span` @@ -63,12 +63,12 @@ import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aT `,_=t(n)` display: flex; align-items: flex-end; -`,q=t(n)` +`,H=t(n)` display: flex; direction: column; justify-content: space-between; height: 100%; -`,H=t.a` +`,q=t.a` font-family: 'Barlow'; font-size: 16px; color: ${o.PRIMARY_BLUE}; diff --git a/build/assets/index-195d9df5.js b/build/assets/index-195d9df5.js new file mode 100644 index 000000000..f45fd182d --- /dev/null +++ b/build/assets/index-195d9df5.js @@ -0,0 +1 @@ +import{a9 as c}from"./index-794e801a.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function a(){}function n(){}n.resetWarningCache=a;var T=function(){function e(f,h,l,P,v,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const _=c(u);export{_ as P,u as p}; diff --git a/build/assets/index-3ee44dc3.js b/build/assets/index-3ee44dc3.js new file mode 100644 index 000000000..d647a0b27 --- /dev/null +++ b/build/assets/index-3ee44dc3.js @@ -0,0 +1,673 @@ +import{r as P,a9 as hf,x as qr,bI as pf,J as er,bJ as $d,j as L,a as fo,bK as e1,bL as t1}from"./index-794e801a.js";import{X as Aa,Y as vl,Z as n1,_ as r1,g as mf,n as i1,C as wo,$ as o1,O as yl,K as xl,a0 as Rs,a1 as Da,a2 as s1,a3 as a1,a4 as l1,a5 as u1,a6 as c1,a7 as f1,a8 as d1,V as ct,e as $r,a9 as h1,k as p1,j as Sl,x as Is,aa as gf,h as el,ab as tl,ac as Mi,ad as m1,y as wl,ae as g1,af as nl,ag as oc,ah as v1,ai as Ai,m as vf,aj as y1,o as Co,s as yf,ak as x1,al as S1,am as w1,an as C1,ao as _1,L as sc,ap as E1,aq as k1,M as T1,v as P1,ar as Cl,as as ac,at as Zr,au as M1,l as Ia}from"./three.module-df70f22b.js";var xf={exports:{}},ei={};/** + * @license React + * react-reconciler-constants.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ei.ConcurrentRoot=1;ei.ContinuousEventPriority=4;ei.DefaultEventPriority=16;ei.DiscreteEventPriority=1;ei.IdleEventPriority=536870912;ei.LegacyRoot=0;xf.exports=ei;var bi=xf.exports;function b1(o){let n;const s=new Set,c=(p,h)=>{const g=typeof p=="function"?p(n):p;if(g!==n){const v=n;n=h?g:Object.assign({},n,g),s.forEach(x=>x(n,v))}},i=()=>n,r=(p,h=i,g=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let v=h(n);function x(){const w=h(n);if(!g(v,w)){const k=v;p(v=w,k)}}return s.add(x),()=>s.delete(x)},u={setState:c,getState:i,subscribe:(p,h,g)=>h||g?r(p,h,g):(s.add(p),()=>s.delete(p)),destroy:()=>s.clear()};return n=o(c,i,u),u}const L1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),lc=L1?P.useEffect:P.useLayoutEffect;function U1(o){const n=typeof o=="function"?b1(o):o,s=(c=n.getState,i=Object.is)=>{const[,r]=P.useReducer(_=>_+1,0),l=n.getState(),f=P.useRef(l),u=P.useRef(c),p=P.useRef(i),h=P.useRef(!1),g=P.useRef();g.current===void 0&&(g.current=c(l));let v,x=!1;(f.current!==l||u.current!==c||p.current!==i||h.current)&&(v=c(l),x=!i(g.current,v)),lc(()=>{x&&(g.current=v),f.current=l,u.current=c,p.current=i,h.current=!1});const w=P.useRef(l);lc(()=>{const _=()=>{try{const S=n.getState(),T=u.current(S);p.current(g.current,T)||(f.current=S,g.current=T,r())}catch{h.current=!0,r()}},C=n.subscribe(_);return n.getState()!==w.current&&_(),C},[]);const k=x?v:g.current;return P.useDebugValue(k),k};return Object.assign(s,n),s[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const c=[s,n];return{next(){const i=c.length<=0;return{value:c.shift(),done:i}}}},s}var Sf={exports:{}},wf={exports:{}},Cf={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(o){function n(G,B){var H=G.length;G.push(B);e:for(;0>>1,j=G[M];if(0>>1;Mi(V,H))iei(Y,V)?(G[M]=Y,G[ie]=H,M=ie):(G[M]=V,G[q]=H,M=q);else if(iei(Y,H))G[M]=Y,G[ie]=H,M=ie;else break e}}return B}function i(G,B){var H=G.sortIndex-B.sortIndex;return H!==0?H:G.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;o.unstable_now=function(){return r.now()}}else{var l=Date,f=l.now();o.unstable_now=function(){return l.now()-f}}var u=[],p=[],h=1,g=null,v=3,x=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var B=s(p);B!==null;){if(B.callback===null)c(p);else if(B.startTime<=G)c(p),B.sortIndex=B.expirationTime,n(u,B);else break;B=s(p)}}function A(G){if(k=!1,T(G),!w)if(s(u)!==null)w=!0,se(R);else{var B=s(p);B!==null&&pe(A,B.startTime-G)}}function R(G,B){w=!1,k&&(k=!1,C(z),z=-1),x=!0;var H=v;try{for(T(B),g=s(u);g!==null&&(!(g.expirationTime>B)||G&&!N());){var M=g.callback;if(typeof M=="function"){g.callback=null,v=g.priorityLevel;var j=M(g.expirationTime<=B);B=o.unstable_now(),typeof j=="function"?g.callback=j:g===s(u)&&c(u),T(B)}else c(u);g=s(u)}if(g!==null)var X=!0;else{var q=s(p);q!==null&&pe(A,q.startTime-B),X=!1}return X}finally{g=null,v=H,x=!1}}var b=!1,O=null,z=-1,Q=5,ee=-1;function N(){return!(o.unstable_now()-eeG||125M?(G.sortIndex=H,n(p,G),s(u)===null&&G===s(p)&&(k?(C(z),z=-1):k=!0,pe(A,H-M))):(G.sortIndex=j,n(u,G),w||x||(w=!0,se(R))),G},o.unstable_shouldYield=N,o.unstable_wrapCallback=function(G){var B=v;return function(){var H=v;v=B;try{return G.apply(this,arguments)}finally{v=H}}}})(Cf);wf.exports=Cf;var rl=wf.exports;/** + * @license React + * react-reconciler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var R1=function(n){var s={},c=P,i=rl,r=Object.assign;function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;aU||m[E]!==y[U]){var Z=` +`+m[E].replace(" at new "," at ");return e.displayName&&Z.includes("")&&(Z=Z.replace("",e.displayName)),Z}while(1<=E&&0<=U);break}}}finally{Bi=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?jn(e):""}var ni=Object.prototype.hasOwnProperty,ri=[],Hn=-1;function hn(e){return{current:e}}function Ke(e){0>Hn||(e.current=ri[Hn],ri[Hn]=null,Hn--)}function qe(e,t){Hn++,ri[Hn]=e.current,e.current=t}var pn={},Et=hn(pn),Pt=hn(!1),Vn=pn;function En(e,t){var a=e.type.contextTypes;if(!a)return pn;var d=e.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in a)m[y]=t[y];return d&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=m),m}function Mt(e){return e=e.childContextTypes,e!=null}function zn(){Ke(Pt),Ke(Et)}function ii(e,t,a){if(Et.current!==pn)throw Error(l(168));qe(Et,t),qe(Pt,a)}function oi(e,t,a){var d=e.stateNode;if(t=t.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var m in d)if(!(m in t))throw Error(l(108,z(e)||"Unknown",m));return r({},a,d)}function vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Vn=Et.current,qe(Et,e),qe(Pt,Pt.current),!0}function mn(e,t,a){var d=e.stateNode;if(!d)throw Error(l(169));a?(e=oi(e,t,Vn),d.__reactInternalMemoizedMergedChildContext=e,Ke(Pt),Ke(Et),qe(Et,e)):Ke(Pt),qe(Pt,a)}var gn=Math.clz32?Math.clz32:Uo,si=Math.log,br=Math.LN2;function Uo(e){return e>>>=0,e===0?32:31-(si(e)/br|0)|0}var or=64,sr=4194304;function ar(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lr(e,t){var a=e.pendingLanes;if(a===0)return 0;var d=0,m=e.suspendedLanes,y=e.pingedLanes,E=a&268435455;if(E!==0){var U=E&~m;U!==0?d=ar(U):(y&=E,y!==0&&(d=ar(y)))}else E=a&~m,E!==0?d=ar(E):y!==0&&(d=ar(y));if(d===0)return 0;if(t!==0&&t!==d&&!(t&m)&&(m=d&-d,y=t&-t,m>=y||m===16&&(y&4194240)!==0))return t;if(d&4&&(d|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=d;0a;a++)t.push(e);return t}function Zn(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=a}function yr(e,t){var a=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var d=e.eventTimes;for(e=e.expirationTimes;0>=E,m-=E,fr=1<<32-gn(t)+m|a<Ze?(Rt=De,De=null):Rt=De.sibling;var Xe=Le(F,De,W[Ze],he);if(Xe===null){De===null&&(De=Rt);break}e&&De&&Xe.alternate===null&&t(F,De),D=y(Xe,D,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe,De=Rt}if(Ze===W.length)return a(F,De),at&&Fr(F,Ze),ke;if(De===null){for(;ZeZe?(Rt=De,De=null):Rt=De.sibling;var Pr=Le(F,De,Xe.value,he);if(Pr===null){De===null&&(De=Rt);break}e&&De&&Pr.alternate===null&&t(F,De),D=y(Pr,D,Ze),ze===null?ke=Pr:ze.sibling=Pr,ze=Pr,De=Rt}if(Xe.done)return a(F,De),at&&Fr(F,Ze),ke;if(De===null){for(;!Xe.done;Ze++,Xe=W.next())Xe=Ae(F,Xe.value,he),Xe!==null&&(D=y(Xe,D,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe);return at&&Fr(F,Ze),ke}for(De=d(F,De);!Xe.done;Ze++,Xe=W.next())Xe=tt(De,F,Ze,Xe.value,he),Xe!==null&&(e&&Xe.alternate!==null&&De.delete(Xe.key===null?Ze:Xe.key),D=y(Xe,D,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe);return e&&De.forEach(function(qd){return t(F,qd)}),at&&Fr(F,Ze),ke}function Rn(F,D,W,he){if(typeof W=="object"&&W!==null&&W.type===h&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case u:e:{for(var ke=W.key,ze=D;ze!==null;){if(ze.key===ke){if(ke=W.type,ke===h){if(ze.tag===7){a(F,ze.sibling),D=m(ze,W.props.children),D.return=F,F=D;break e}}else if(ze.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===T&&Gl(ke)===ze.type){a(F,ze.sibling),D=m(ze,W.props),D.ref=Ki(F,ze,W),D.return=F,F=D;break e}a(F,ze);break}else t(F,ze);ze=ze.sibling}W.type===h?(D=Hr(W.props.children,F.mode,he,W.key),D.return=F,F=D):(he=xs(W.type,W.key,W.props,null,F.mode,he),he.ref=Ki(F,D,W),he.return=F,F=he)}return E(F);case p:e:{for(ze=W.key;D!==null;){if(D.key===ze)if(D.tag===4&&D.stateNode.containerInfo===W.containerInfo&&D.stateNode.implementation===W.implementation){a(F,D.sibling),D=m(D,W.children||[]),D.return=F,F=D;break e}else{a(F,D);break}else t(F,D);D=D.sibling}D=Ua(W,F.mode,he),D.return=F,F=D}return E(F);case T:return ze=W._init,Rn(F,D,ze(W._payload),he)}if(re(W))return Te(F,D,W,he);if(b(W))return Wt(F,D,W,he);Wo(F,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,D!==null&&D.tag===6?(a(F,D.sibling),D=m(D,W),D.return=F,F=D):(a(F,D),D=La(W,F.mode,he),D.return=F,F=D),E(F)):a(F,D)}return Rn}var pi=Hl(!0),Vl=Hl(!1),Ji={},Mn=hn(Ji),qi=hn(Ji),mi=hn(Ji);function Yn(e){if(e===Ji)throw Error(l(174));return e}function Qs(e,t){qe(mi,t),qe(qi,e),qe(Mn,Ji),e=pe(t),Ke(Mn),qe(Mn,e)}function gi(){Ke(Mn),Ke(qi),Ke(mi)}function Zl(e){var t=Yn(mi.current),a=Yn(Mn.current);t=G(a,e.type,t),a!==t&&(qe(qi,e),qe(Mn,t))}function Ys(e){qi.current===e&&(Ke(Mn),Ke(qi))}var ut=hn(0);function Go(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ye(a)||gt(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ks=[];function Js(){for(var e=0;ea?a:4,e(!0);var d=bn.transition;bn.transition={};try{e(!1),t()}finally{We=a,bn.transition=d}}function su(){return Kn().memoizedState}function kd(e,t,a){var d=Er(e);a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},au(e)?lu(t,a):(uu(e,t,a),a=tn(),e=Ln(e,d,a),e!==null&&cu(e,t,d))}function Td(e,t,a){var d=Er(e),m={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(au(e))lu(t,m);else{uu(e,t,m);var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=t.lastRenderedReducer,y!==null))try{var E=t.lastRenderedState,U=y(E,a);if(m.hasEagerState=!0,m.eagerState=U,yn(U,E))return}catch{}finally{}a=tn(),e=Ln(e,d,a),e!==null&&cu(e,t,d)}}function au(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function lu(e,t){$i=Vo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function uu(e,t,a){Ct!==null&&e.mode&1&&!(Ne&2)?(e=t.interleaved,e===null?(a.next=a,xn===null?xn=[t]:xn.push(t)):(a.next=e.next,e.next=a),t.interleaved=a):(e=t.pending,e===null?a.next=a:(a.next=e.next,e.next=a),t.pending=a)}function cu(e,t,a){if(a&4194240){var d=t.lanes;d&=e.pendingLanes,a|=d,t.lanes=a,Xn(e,a)}}var Ko={readContext:yt,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},Pd={readContext:yt,useCallback:function(e,t){return hr().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:na,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Qo(4194308,4,nu.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qo(4,2,e,t)},useMemo:function(e,t){var a=hr();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var d=hr();return t=a!==void 0?a(t):t,d.memoizedState=d.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},d.queue=e,e=e.dispatch=kd.bind(null,mt,e),[d.memoizedState,e]},useRef:function(e){var t=hr();return e={current:e},t.memoizedState=e},useState:ta,useDebugValue:ra,useDeferredValue:function(e){var t=ta(e),a=t[0],d=t[1];return na(function(){var m=bn.transition;bn.transition={};try{d(e)}finally{bn.transition=m}},[e]),a},useTransition:function(){var e=ta(!1),t=e[0];return e=Ed.bind(null,e[1]),hr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var d=mt,m=hr();if(at){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),Ct===null)throw Error(l(349));vi&30||Yl(d,t,a)}m.memoizedState=a;var y={value:a,getSnapshot:t};return m.queue=y,na(Jl.bind(null,d,y,e),[e]),d.flags|=2048,to(9,Kl.bind(null,d,y,a,t),void 0,null),a},useId:function(){var e=hr(),t=Ct.identifierPrefix;if(at){var a=dr,d=fr;a=(d&~(1<<32-gn(d)-1)).toString(32)+a,t=":"+t+"R"+a,a=eo++,0Ca&&(t.flags|=128,d=!0,oo(m,!1),t.lanes=4194304)}else{if(!d)if(e=Go(y),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),oo(m,!0),m.tail===null&&m.tailMode==="hidden"&&!y.alternate&&!at)return Nt(t),null}else 2*lt()-m.renderingStartTime>Ca&&a!==1073741824&&(t.flags|=128,d=!0,oo(m,!1),t.lanes=4194304);m.isBackwards?(y.sibling=t.child,t.child=y):(e=m.last,e!==null?e.sibling=y:t.child=y,m.last=y)}return m.tail!==null?(t=m.tail,m.rendering=t,m.tail=t.sibling,m.renderingStartTime=lt(),t.sibling=null,e=ut.current,qe(ut,d?e&1|2:e&1),t):(Nt(t),null);case 22:case 23:return Pa(),d=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==d&&(t.flags|=8192),d&&t.mode&1?_n&1073741824&&(Nt(t),$&&t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(l(156,t.tag))}var Rd=f.ReactCurrentOwner,Cn=!1;function en(e,t,a,d){t.child=e===null?Vl(t,null,a,d):pi(t,e.child,a,d)}function yu(e,t,a,d,m){a=a.render;var y=t.ref;return vt(t,m),d=$s(e,t,a,d,y,m),a=ea(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,pr(e,t,m)):(at&&a&&Gs(t),t.flags|=1,en(e,t,d,m),t.child)}function xu(e,t,a,d,m){if(e===null){var y=a.type;return typeof y=="function"&&!ba(y)&&y.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=y,Su(e,t,y,d,m)):(e=xs(a.type,null,d,t,t.mode,m),e.ref=t.ref,e.return=t,t.child=e)}if(y=e.child,!(e.lanes&m)){var E=y.memoizedProps;if(a=a.compare,a=a!==null?a:Dr,a(E,d)&&e.ref===t.ref)return pr(e,t,m)}return t.flags|=1,e=Tr(y,d),e.ref=t.ref,e.return=t,t.child=e}function Su(e,t,a,d,m){if(e!==null&&Dr(e.memoizedProps,d)&&e.ref===t.ref)if(Cn=!1,(e.lanes&m)!==0)e.flags&131072&&(Cn=!0);else return t.lanes=e.lanes,pr(e,t,m);return sa(e,t,a,d,m)}function wu(e,t,a){var d=t.pendingProps,m=d.children,y=e!==null?e.memoizedState:null;if(d.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},qe(yi,_n),_n|=a;else if(a&1073741824)t.memoizedState={baseLanes:0,cachePool:null},d=y!==null?y.baseLanes:a,qe(yi,_n),_n|=d;else return e=y!==null?y.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,qe(yi,_n),_n|=e,null;else y!==null?(d=y.baseLanes|a,t.memoizedState=null):d=a,qe(yi,_n),_n|=d;return en(e,t,m,a),t.child}function Cu(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function sa(e,t,a,d,m){var y=Mt(a)?Vn:Et.current;return y=En(t,y),vt(t,m),a=$s(e,t,a,d,y,m),d=ea(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,pr(e,t,m)):(at&&d&&Gs(t),t.flags|=1,en(e,t,a,m),t.child)}function _u(e,t,a,d,m){if(Mt(a)){var y=!0;vr(t)}else y=!1;if(vt(t,m),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Fl(t,a,d),Ws(t,a,d,m),d=!0;else if(e===null){var E=t.stateNode,U=t.memoizedProps;E.props=U;var Z=E.context,le=a.contextType;typeof le=="object"&&le!==null?le=yt(le):(le=Mt(a)?Vn:Et.current,le=En(t,le));var ve=a.getDerivedStateFromProps,Ae=typeof ve=="function"||typeof E.getSnapshotBeforeUpdate=="function";Ae||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==d||Z!==le)&&jl(t,E,d,le),Sr=!1;var Le=t.memoizedState;E.state=Le,jo(t,d,E,m),Z=t.memoizedState,U!==d||Le!==Z||Pt.current||Sr?(typeof ve=="function"&&(Ns(t,a,ve,d),Z=t.memoizedState),(U=Sr||Ol(t,a,U,d,Le,Z,le))?(Ae||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(t.flags|=4194308)):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=d,t.memoizedState=Z),E.props=d,E.state=Z,E.context=le,d=U):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),d=!1)}else{E=t.stateNode,Rl(e,t),U=t.memoizedProps,le=t.type===t.elementType?U:qt(t.type,U),E.props=le,Ae=t.pendingProps,Le=E.context,Z=a.contextType,typeof Z=="object"&&Z!==null?Z=yt(Z):(Z=Mt(a)?Vn:Et.current,Z=En(t,Z));var tt=a.getDerivedStateFromProps;(ve=typeof tt=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==Ae||Le!==Z)&&jl(t,E,d,Z),Sr=!1,Le=t.memoizedState,E.state=Le,jo(t,d,E,m);var Te=t.memoizedState;U!==Ae||Le!==Te||Pt.current||Sr?(typeof tt=="function"&&(Ns(t,a,tt,d),Te=t.memoizedState),(le=Sr||Ol(t,a,le,d,Le,Te,Z)||!1)?(ve||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,Te,Z),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,Te,Z)),typeof E.componentDidUpdate=="function"&&(t.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),t.memoizedProps=d,t.memoizedState=Te),E.props=d,E.state=Te,E.context=Z,d=le):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),d=!1)}return aa(e,t,a,d,y,m)}function aa(e,t,a,d,m,y){Cu(e,t);var E=(t.flags&128)!==0;if(!d&&!E)return m&&mn(t,a,!1),pr(e,t,y);d=t.stateNode,Rd.current=t;var U=E&&typeof a.getDerivedStateFromError!="function"?null:d.render();return t.flags|=1,e!==null&&E?(t.child=pi(t,e.child,null,y),t.child=pi(t,null,U,y)):en(e,t,U,y),t.memoizedState=d.state,m&&mn(t,a,!0),t.child}function Eu(e){var t=e.stateNode;t.pendingContext?ii(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ii(e,t.context,!1),Qs(e,t.containerInfo)}function ku(e,t,a,d,m){return hi(),Xs(m),t.flags|=256,en(e,t,a,d),t.child}var $o={dehydrated:null,treeContext:null,retryLane:0};function es(e){return{baseLanes:e,cachePool:null}}function Tu(e,t,a){var d=t.pendingProps,m=ut.current,y=!1,E=(t.flags&128)!==0,U;if((U=E)||(U=e!==null&&e.memoizedState===null?!1:(m&2)!==0),U?(y=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(m|=1),qe(ut,m&1),e===null)return Zs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?gt(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(m=d.children,e=d.fallback,y?(d=t.mode,y=t.child,m={mode:"hidden",children:m},!(d&1)&&y!==null?(y.childLanes=0,y.pendingProps=m):y=Ss(m,d,0,null),e=Hr(e,d,a,null),y.return=t,e.return=t,y.sibling=e,t.child=y,t.child.memoizedState=es(a),t.memoizedState=$o,e):la(t,m));if(m=e.memoizedState,m!==null){if(U=m.dehydrated,U!==null){if(E)return t.flags&256?(t.flags&=-257,ts(e,t,a,Error(l(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(y=d.fallback,m=t.mode,d=Ss({mode:"visible",children:d.children},m,0,null),y=Hr(y,m,a,null),y.flags|=2,d.return=t,y.return=t,d.sibling=y,t.child=d,t.mode&1&&pi(t,e.child,null,a),t.child.memoizedState=es(a),t.memoizedState=$o,y);if(!(t.mode&1))t=ts(e,t,a,null);else if(gt(U))t=ts(e,t,a,Error(l(419)));else if(d=(a&e.childLanes)!==0,Cn||d){if(d=Ct,d!==null){switch(a&-a){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}d=y&(d.suspendedLanes|a)?0:y,d!==0&&d!==m.retryLane&&(m.retryLane=d,Ln(e,d,-1))}Ma(),t=ts(e,t,a,Error(l(421)))}else Ye(U)?(t.flags|=128,t.child=e.child,t=Vd.bind(null,e),rn(U,t),t=null):(a=m.treeContext,Se&&(wn=Wn(U),Sn=t,at=!0,Nn=null,Qi=!1,a!==null&&(Tn[Pn++]=fr,Tn[Pn++]=dr,Tn[Pn++]=Or,fr=a.id,dr=a.overflow,Or=t)),t=la(t,t.pendingProps.children),t.flags|=4096);return t}return y?(d=Mu(e,t,d.children,d.fallback,a),y=t.child,m=e.child.memoizedState,y.memoizedState=m===null?es(a):{baseLanes:m.baseLanes|a,cachePool:null},y.childLanes=e.childLanes&~a,t.memoizedState=$o,d):(a=Pu(e,t,d.children,a),t.memoizedState=null,a)}return y?(d=Mu(e,t,d.children,d.fallback,a),y=t.child,m=e.child.memoizedState,y.memoizedState=m===null?es(a):{baseLanes:m.baseLanes|a,cachePool:null},y.childLanes=e.childLanes&~a,t.memoizedState=$o,d):(a=Pu(e,t,d.children,a),t.memoizedState=null,a)}function la(e,t){return t=Ss({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pu(e,t,a,d){var m=e.child;return e=m.sibling,a=Tr(m,{mode:"visible",children:a}),!(t.mode&1)&&(a.lanes=d),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a}function Mu(e,t,a,d,m){var y=t.mode;e=e.child;var E=e.sibling,U={mode:"hidden",children:a};return!(y&1)&&t.child!==e?(a=t.child,a.childLanes=0,a.pendingProps=U,t.deletions=null):(a=Tr(e,U),a.subtreeFlags=e.subtreeFlags&14680064),E!==null?d=Tr(E,d):(d=Hr(d,y,m,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,d}function ts(e,t,a,d){return d!==null&&Xs(d),pi(t,e.child,null,a),e=la(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bu(e,t,a){e.lanes|=t;var d=e.alternate;d!==null&&(d.lanes|=t),$t(e.return,t,a)}function ua(e,t,a,d,m){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:m}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=a,y.tailMode=m)}function Lu(e,t,a){var d=t.pendingProps,m=d.revealOrder,y=d.tail;if(en(e,t,d.children,a),d=ut.current,d&2)d=d&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bu(e,a,t);else if(e.tag===19)bu(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}d&=1}if(qe(ut,d),!(t.mode&1))t.memoizedState=null;else switch(m){case"forwards":for(a=t.child,m=null;a!==null;)e=a.alternate,e!==null&&Go(e)===null&&(m=a),a=a.sibling;a=m,a===null?(m=t.child,t.child=null):(m=a.sibling,a.sibling=null),ua(t,!1,m,a,y);break;case"backwards":for(a=null,m=t.child,t.child=null;m!==null;){if(e=m.alternate,e!==null&&Go(e)===null){t.child=m;break}e=m.sibling,m.sibling=a,a=m,m=e}ua(t,!0,a,null,y);break;case"together":ua(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),xi|=t.lanes,!(a&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Tr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Tr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ad(e,t,a){switch(t.tag){case 3:Eu(t),hi();break;case 5:Zl(t);break;case 1:Mt(t.type)&&vr(t);break;case 4:Qs(t,t.stateNode.containerInfo);break;case 10:Oo(t,t.type._context,t.memoizedProps.value);break;case 13:var d=t.memoizedState;if(d!==null)return d.dehydrated!==null?(qe(ut,ut.current&1),t.flags|=128,null):a&t.child.childLanes?Tu(e,t,a):(qe(ut,ut.current&1),e=pr(e,t,a),e!==null?e.sibling:null);qe(ut,ut.current&1);break;case 19:if(d=(a&t.childLanes)!==0,e.flags&128){if(d)return Lu(e,t,a);t.flags|=128}var m=t.memoizedState;if(m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),qe(ut,ut.current),d)break;return null;case 22:case 23:return t.lanes=0,wu(e,t,a)}return pr(e,t,a)}function Dd(e,t){switch(Hs(t),t.tag){case 1:return Mt(t.type)&&zn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gi(),Ke(Pt),Ke(Et),Js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ys(t),null;case 13:if(Ke(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(ut),null;case 4:return gi(),null;case 10:return Lt(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var ns=!1,zr=!1,Id=typeof WeakSet=="function"?WeakSet:Set,de=null;function rs(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){ln(e,t,d)}else a.current=null}function ca(e,t,a){try{a()}catch(d){ln(e,t,d)}}var Uu=!1;function Od(e,t){for(B(e.containerInfo),de=t;de!==null;)if(e=de,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,de=t;else for(;de!==null;){e=de;try{var a=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(a!==null){var d=a.memoizedProps,m=a.memoizedState,y=e.stateNode,E=y.getSnapshotBeforeUpdate(e.elementType===e.type?d:qt(e.type,d),m);y.__reactInternalSnapshotBeforeUpdate=E}break;case 3:$&&On(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(U){ln(e,e.return,U)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return a=Uu,Uu=!1,a}function Br(e,t,a){var d=t.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&e)===e){var y=m.destroy;m.destroy=void 0,y!==void 0&&ca(t,a,y)}m=m.next}while(m!==d)}}function so(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var d=a.create;a.destroy=d()}a=a.next}while(a!==t)}}function fa(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=se(a);break;default:e=a}typeof t=="function"?t(e):t.current=e}}function Ru(e,t,a){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Rr,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var d=e=e.next;do{var m=d,y=m.destroy;m=m.tag,y!==void 0&&(m&2||m&4)&&ca(t,a,y),d=d.next}while(d!==e)}break;case 1:if(rs(t,a),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(E){ln(t,a,E)}break;case 5:rs(t,a);break;case 4:$?ju(e,t,a):te&&te&&(t=t.stateNode.containerInfo,a=Fn(t),rt(t,a))}}function Au(e,t,a){for(var d=t;;)if(Ru(e,d,a),d.child===null||$&&d.tag===4){if(d===t)break;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}else d.child.return=d,d=d.child}function Du(e){var t=e.alternate;t!==null&&(e.alternate=null,Du(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Me(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Iu(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Iu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fu(e){if($){e:{for(var t=e.return;t!==null;){if(Iu(t))break e;t=t.return}throw Error(l(160))}var a=t;switch(a.tag){case 5:t=a.stateNode,a.flags&32&&(Je(t),a.flags&=-33),a=Ou(e),ha(e,a,t);break;case 3:case 4:t=a.stateNode.containerInfo,a=Ou(e),da(e,a,t);break;default:throw Error(l(161))}}}function da(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?Be(a,e,t):Fe(a,e);else if(d!==4&&(e=e.child,e!==null))for(da(e,t,a),e=e.sibling;e!==null;)da(e,t,a),e=e.sibling}function ha(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?et(a,e,t):Pe(a,e);else if(d!==4&&(e=e.child,e!==null))for(ha(e,t,a),e=e.sibling;e!==null;)ha(e,t,a),e=e.sibling}function ju(e,t,a){for(var d=t,m=!1,y,E;;){if(!m){m=d.return;e:for(;;){if(m===null)throw Error(l(160));switch(y=m.stateNode,m.tag){case 5:E=!1;break e;case 3:y=y.containerInfo,E=!0;break e;case 4:y=y.containerInfo,E=!0;break e}m=m.return}m=!0}if(d.tag===5||d.tag===6)Au(e,d,a),E?Qe(y,d.stateNode):Ue(y,d.stateNode);else if(d.tag===18)E?Lo(y,d.stateNode):zs(y,d.stateNode);else if(d.tag===4){if(d.child!==null){y=d.stateNode.containerInfo,E=!0,d.child.return=d,d=d.child;continue}}else if(Ru(e,d,a),d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return,d.tag===4&&(m=!1)}d.sibling.return=d.return,d=d.sibling}}function pa(e,t){if($){switch(t.tag){case 0:case 11:case 14:case 15:Br(3,t,t.return),so(3,t),Br(5,t,t.return);return;case 1:return;case 5:var a=t.stateNode;if(a!=null){var d=t.memoizedProps;e=e!==null?e.memoizedProps:d;var m=t.type,y=t.updateQueue;t.updateQueue=null,y!==null&&Ie(a,y,m,e,d,t)}return;case 6:if(t.stateNode===null)throw Error(l(162));a=t.memoizedProps,Ve(t.stateNode,e!==null?e.memoizedProps:a,a);return;case 3:Se&&e!==null&&e.memoizedState.isDehydrated&&Mr(t.stateNode.containerInfo);return;case 12:return;case 13:is(t);return;case 19:is(t);return;case 17:return}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:Br(3,t,t.return),so(3,t),Br(5,t,t.return);return;case 12:return;case 13:is(t);return;case 19:is(t);return;case 3:Se&&e!==null&&e.memoizedState.isDehydrated&&Mr(t.stateNode.containerInfo);break;case 22:case 23:return}e:if(te){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:t=t.stateNode,rt(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function is(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new Id),t.forEach(function(d){var m=Zd.bind(null,e,d);a.has(d)||(a.add(d),d.then(m,m))})}}function Fd(e,t){for(de=t;de!==null;){t=de;var a=t.deletions;if(a!==null)for(var d=0;d";case ss:return":has("+(va(e)||"")+")";case as:return'[role="'+e.value+'"]';case us:return'"'+e.value+'"';case ls:return'[data-testname="'+e.value+'"]';default:throw Error(l(365))}}function Gu(e,t){var a=[];e=[e,0];for(var d=0;dm&&(m=E),d&=~y}if(d=m,d=lt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*zd(d/1960))-d,10e?16:e,_r===null)var d=!1;else{if(e=_r,_r=null,ps=0,Ne&6)throw Error(l(331));var m=Ne;for(Ne|=4,de=e.current;de!==null;){var y=de,E=y.child;if(de.flags&16){var U=y.deletions;if(U!==null){for(var Z=0;Zlt()-wa?Nr(e,0):Sa|=a),an(e,t)}function qu(e,t){t===0&&(e.mode&1?(t=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):t=1);var a=tn();e=vs(e,t),e!==null&&(Zn(e,t,a),an(e,a))}function Vd(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),qu(e,a)}function Zd(e,t){var a=0;switch(e.tag){case 13:var d=e.stateNode,m=e.memoizedState;m!==null&&(a=m.retryLane);break;case 19:d=e.stateNode;break;default:throw Error(l(314))}d!==null&&d.delete(t),qu(e,a)}var $u;$u=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pt.current)Cn=!0;else{if(!(e.lanes&a)&&!(t.flags&128))return Cn=!1,Ad(e,t,a);Cn=!!(e.flags&131072)}else Cn=!1,at&&t.flags&1048576&&zl(t,No,t.index);switch(t.lanes=0,t.tag){case 2:var d=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var m=En(t,Et.current);vt(t,a),m=$s(null,t,d,e,m,a);var y=ea();return t.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(d)?(y=!0,vr(t)):y=!1,t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Bs(t),m.updater=zo,t.stateNode=m,m._reactInternals=t,Ws(t,d,e,a),t=aa(null,t,d,!0,y,a)):(t.tag=0,at&&y&&Gs(t),en(null,t,m,a),t=t.child),t;case 16:d=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,m=d._init,d=m(d._payload),t.type=d,m=t.tag=Qd(d),e=qt(d,e),m){case 0:t=sa(null,t,d,e,a);break e;case 1:t=_u(null,t,d,e,a);break e;case 11:t=yu(null,t,d,e,a);break e;case 14:t=xu(null,t,d,qt(d.type,e),a);break e}throw Error(l(306,d,""))}return t;case 0:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),sa(e,t,d,m,a);case 1:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),_u(e,t,d,m,a);case 3:e:{if(Eu(t),e===null)throw Error(l(387));d=t.pendingProps,y=t.memoizedState,m=y.element,Rl(e,t),jo(t,d,null,a);var E=t.memoizedState;if(d=E.element,Se&&y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:E.cache,transitions:E.transitions},t.updateQueue.baseState=y,t.memoizedState=y,t.flags&256){m=Error(l(423)),t=ku(e,t,d,a,m);break e}else if(d!==m){m=Error(l(424)),t=ku(e,t,d,a,m);break e}else for(Se&&(wn=Dt(t.stateNode.containerInfo),Sn=t,at=!0,Nn=null,Qi=!1),a=Vl(t,null,d,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(hi(),d===m){t=pr(e,t,a);break e}en(e,t,d,a)}t=t.child}return t;case 5:return Zl(t),e===null&&Zs(t),d=t.type,m=t.pendingProps,y=e!==null?e.memoizedProps:null,E=m.children,V(d,m)?E=null:y!==null&&V(d,y)&&(t.flags|=32),Cu(e,t),en(e,t,E,a),t.child;case 6:return e===null&&Zs(t),null;case 13:return Tu(e,t,a);case 4:return Qs(t,t.stateNode.containerInfo),d=t.pendingProps,e===null?t.child=pi(t,null,d,a):en(e,t,d,a),t.child;case 11:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),yu(e,t,d,m,a);case 7:return en(e,t,t.pendingProps,a),t.child;case 8:return en(e,t,t.pendingProps.children,a),t.child;case 12:return en(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(d=t.type._context,m=t.pendingProps,y=t.memoizedProps,E=m.value,Oo(t,d,E),y!==null)if(yn(y.value,E)){if(y.children===m.children&&!Pt.current){t=pr(e,t,a);break e}}else for(y=t.child,y!==null&&(y.return=t);y!==null;){var U=y.dependencies;if(U!==null){E=y.child;for(var Z=U.firstContext;Z!==null;){if(Z.context===d){if(y.tag===1){Z=cr(-1,a&-a),Z.tag=2;var le=y.updateQueue;if(le!==null){le=le.shared;var ve=le.pending;ve===null?Z.next=Z:(Z.next=ve.next,ve.next=Z),le.pending=Z}}y.lanes|=a,Z=y.alternate,Z!==null&&(Z.lanes|=a),$t(y.return,a,t),U.lanes|=a;break}Z=Z.next}}else if(y.tag===10)E=y.type===t.type?null:y.child;else if(y.tag===18){if(E=y.return,E===null)throw Error(l(341));E.lanes|=a,U=E.alternate,U!==null&&(U.lanes|=a),$t(E,a,t),E=y.sibling}else E=y.child;if(E!==null)E.return=y;else for(E=y;E!==null;){if(E===t){E=null;break}if(y=E.sibling,y!==null){y.return=E.return,E=y;break}E=E.return}y=E}en(e,t,m.children,a),t=t.child}return t;case 9:return m=t.type,d=t.pendingProps.children,vt(t,a),m=yt(m),d=d(m),t.flags|=1,en(e,t,d,a),t.child;case 14:return d=t.type,m=qt(d,t.pendingProps),m=qt(d.type,m),xu(e,t,d,m,a);case 15:return Su(e,t,t.type,t.pendingProps,a);case 17:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Mt(d)?(e=!0,vr(t)):e=!1,vt(t,a),Fl(t,d,m),Ws(t,d,m,a),aa(null,t,d,!0,e,a);case 19:return Lu(e,t,a);case 22:return wu(e,t,a)}throw Error(l(156,t.tag))};function ec(e,t){return ur(e,t)}function Xd(e,t,a,d){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(e,t,a,d){return new Xd(e,t,a,d)}function ba(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qd(e){if(typeof e=="function")return ba(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===S)return 14}return 2}function Tr(e,t){var a=e.alternate;return a===null?(a=Un(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function xs(e,t,a,d,m,y){var E=2;if(d=e,typeof e=="function")ba(e)&&(E=1);else if(typeof e=="string")E=5;else e:switch(e){case h:return Hr(a.children,m,y,t);case g:E=8,m|=8;break;case v:return e=Un(12,a,t,m|2),e.elementType=v,e.lanes=y,e;case _:return e=Un(13,a,t,m),e.elementType=_,e.lanes=y,e;case C:return e=Un(19,a,t,m),e.elementType=C,e.lanes=y,e;case A:return Ss(a,m,y,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:E=10;break e;case w:E=9;break e;case k:E=11;break e;case S:E=14;break e;case T:E=16,d=null;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Un(E,a,t,m),t.elementType=e,t.type=d,t.lanes=y,t}function Hr(e,t,a,d){return e=Un(7,e,d,t),e.lanes=a,e}function Ss(e,t,a,d){return e=Un(22,e,d,t),e.elementType=A,e.lanes=a,e.stateNode={},e}function La(e,t,a){return e=Un(6,e,null,t),e.lanes=a,e}function Ua(e,t,a){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yd(e,t,a,d,m){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ai(0),this.expirationTimes=ai(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ai(0),this.identifierPrefix=d,this.onRecoverableError=m,Se&&(this.mutableSourceEagerHydrationData=null)}function tc(e,t,a,d,m,y,E,U,Z){return e=new Yd(e,t,a,U,Z),t===1?(t=1,y===!0&&(t|=8)):t=0,y=Un(3,null,null,t),e.current=y,y.stateNode=e,y.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null},Bs(y),e}function nc(e){if(!e)return pn;e=e._reactInternals;e:{if(Q(e)!==e||e.tag!==1)throw Error(l(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(l(171))}if(e.tag===1){var a=e.type;if(Mt(a))return oi(e,a,t)}return t}function rc(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=I(t),e===null?null:e.stateNode}function ic(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a=le&&y>=Ae&&m<=ve&&E<=Le){e.splice(t,1);break}else if(d!==le||a.width!==Z.width||LeE){if(!(y!==Ae||a.height!==Z.height||vem)){le>d&&(Z.width+=le-d,Z.x=d),vey&&(Z.height+=Ae-y,Z.y=y),Lea&&(a=E)),E ")+` + +No matching component was found for: + `)+e.join(" > ")}return null},s.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return se(e.child.stateNode);default:return e.child.stateNode}},s.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:f.ReactCurrentDispatcher,findHostInstanceByFiber:Kd,findFiberByHostInstance:e.findFiberByHostInstance||Jd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Rr=t.inject(e),vn=t}catch{}e=!!t.checkDCE}}return e},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(e,t,a,d){if(!me)throw Error(l(363));e=ya(e,t);var m=Oe(e,a,d).disconnect;return{disconnect:function(){m()}}},s.registerMutableSourceForHydration=function(e,t){var a=t._getVersion;a=a(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)},s.runWithPriority=function(e,t){var a=We;try{return We=e,t()}finally{We=a}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(e,t,a,d){var m=t.current,y=tn(),E=Er(m);return a=nc(a),t.context===null?t.context=a:t.pendingContext=a,t=cr(y,E),t.payload={element:e},d=d===void 0?null:d,d!==null&&(t.callback=d),wr(m,t),e=Ln(m,E,y),e!==null&&Fo(e,m,E),E},s};Sf.exports=R1;var A1=Sf.exports;const D1=hf(A1),I1=o=>typeof o=="object"&&typeof o.then=="function",Xr=[];function _f(o,n,s=(c,i)=>c===i){if(o===n)return!0;if(!o||!n)return!1;const c=o.length;if(n.length!==c)return!1;for(let i=0;i0&&(r.timeout&&clearTimeout(r.timeout),r.timeout=setTimeout(r.remove,c.lifespan)),r.response;if(!s)throw r.promise}const i={keys:n,equal:c.equal,remove:()=>{const r=Xr.indexOf(i);r!==-1&&Xr.splice(r,1)},promise:(I1(o)?o:o(...n)).then(r=>{i.response=r,c.lifespan&&c.lifespan>0&&(i.timeout=setTimeout(i.remove,c.lifespan))}).catch(r=>i.error=r)};if(Xr.push(i),!s)throw i.promise}const O1=(o,n,s)=>Ef(o,n,!1,s),F1=(o,n,s)=>void Ef(o,n,!0,s),j1=o=>{if(o===void 0||o.length===0)Xr.splice(0,Xr.length);else{const n=Xr.find(s=>_f(o,s.keys,s.equal));n&&n.remove()}},_l={},z1=o=>void Object.assign(_l,o);function B1(o,n){function s(h,{args:g=[],attach:v,...x},w){let k=`${h[0].toUpperCase()}${h.slice(1)}`,_;if(h==="primitive"){if(x.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const C=x.object;_=Ti(C,{type:h,root:w,attach:v,primitive:!0})}else{const C=_l[k];if(!C)throw new Error(`R3F: ${k} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(g))throw new Error("R3F: The args prop must be an array!");_=Ti(new C(...g),{type:h,root:w,attach:v,memoizedProps:{args:g}})}return _.__r3f.attach===void 0&&(_ instanceof mf?_.__r3f.attach="geometry":_ instanceof i1&&(_.__r3f.attach="material")),k!=="inject"&&ja(_,x),_}function c(h,g){let v=!1;if(g){var x,w;(x=g.__r3f)!=null&&x.attach?Fa(h,g,g.__r3f.attach):g.isObject3D&&h.isObject3D&&(h.add(g),v=!0),v||(w=h.__r3f)==null||w.objects.push(g),g.__r3f||Ti(g,{}),g.__r3f.parent=h,ol(g),Pi(g)}}function i(h,g,v){let x=!1;if(g){var w,k;if((w=g.__r3f)!=null&&w.attach)Fa(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){g.parent=h,g.dispatchEvent({type:"added"});const _=h.children.filter(S=>S!==g),C=_.indexOf(v);h.children=[..._.slice(0,C),g,..._.slice(C)],x=!0}x||(k=h.__r3f)==null||k.objects.push(g),g.__r3f||Ti(g,{}),g.__r3f.parent=h,ol(g),Pi(g)}}function r(h,g,v=!1){h&&[...h].forEach(x=>l(g,x,v))}function l(h,g,v){if(g){var x,w,k;if(g.__r3f&&(g.__r3f.parent=null),(x=h.__r3f)!=null&&x.objects&&(h.__r3f.objects=h.__r3f.objects.filter(A=>A!==g)),(w=g.__r3f)!=null&&w.attach)hc(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){var _;h.remove(g),(_=g.__r3f)!=null&&_.root&&Y1(g.__r3f.root,g)}const S=(k=g.__r3f)==null?void 0:k.primitive,T=!S&&(v===void 0?g.dispose!==null:v);if(!S){var C;r((C=g.__r3f)==null?void 0:C.objects,g,T),r(g.children,g,T)}if(delete g.__r3f,T&&g.dispose&&g.type!=="Scene"){const A=()=>{try{g.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?rl.unstable_scheduleCallback(rl.unstable_IdlePriority,A):A()}Pi(h)}}function f(h,g,v,x){var w;const k=(w=h.__r3f)==null?void 0:w.parent;if(!k)return;const _=s(g,v,h.__r3f.root);if(h.children){for(const C of h.children)C.__r3f&&c(_,C);h.children=h.children.filter(C=>!C.__r3f)}h.__r3f.objects.forEach(C=>c(_,C)),h.__r3f.objects=[],h.__r3f.autoRemovedBeforeAppend||l(k,h),_.parent&&(_.__r3f.autoRemovedBeforeAppend=!0),c(k,_),_.raycast&&_.__r3f.eventCount&&_.__r3f.root.getState().internal.interaction.push(_),[x,x.alternate].forEach(C=>{C!==null&&(C.stateNode=_,C.ref&&(typeof C.ref=="function"?C.ref(_):C.ref.current=_))})}const u=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:D1({createInstance:s,removeChild:l,appendChild:c,appendInitialChild:c,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(h,g)=>{if(!g)return;const v=h.getState().scene;v.__r3f&&(v.__r3f.root=h,c(v,g))},removeChildFromContainer:(h,g)=>{g&&l(h.getState().scene,g)},insertInContainerBefore:(h,g,v)=>{if(!g||!v)return;const x=h.getState().scene;x.__r3f&&i(x,g,v)},getRootHostContext:()=>null,getChildHostContext:h=>h,finalizeInitialChildren(h){var g;return!!((g=h==null?void 0:h.__r3f)!=null?g:{}).handlers},prepareUpdate(h,g,v,x){var w;if(((w=h==null?void 0:h.__r3f)!=null?w:{}).primitive&&x.object&&x.object!==h)return[!0];{const{args:_=[],children:C,...S}=x,{args:T=[],children:A,...R}=v;if(!Array.isArray(_))throw new Error("R3F: the args prop must be an array!");if(_.some((O,z)=>O!==T[z]))return[!0];const b=Uf(h,S,R,!0);return b.changes.length?[!1,b]:null}},commitUpdate(h,[g,v],x,w,k,_){g?f(h,x,k,_):ja(h,v)},commitMount(h,g,v,x){var w;const k=(w=h.__r3f)!=null?w:{};h.raycast&&k.handlers&&k.eventCount&&h.__r3f.root.getState().internal.interaction.push(h)},getPublicInstance:h=>h,prepareForCommit:()=>null,preparePortalMount:h=>Ti(h.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(h){var g;const{attach:v,parent:x}=(g=h.__r3f)!=null?g:{};v&&x&&hc(x,h,v),h.isObject3D&&(h.visible=!1),Pi(h)},unhideInstance(h,g){var v;const{attach:x,parent:w}=(v=h.__r3f)!=null?v:{};x&&w&&Fa(w,h,x),(h.isObject3D&&g.visible==null||g.visible)&&(h.visible=!0),Pi(h)},createTextInstance:u,hideTextInstance:u,unhideTextInstance:u,getCurrentEventPriority:()=>n?n():bi.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&it.fun(performance.now)?performance.now:it.fun(Date.now)?Date.now:()=>0,scheduleTimeout:it.fun(setTimeout)?setTimeout:void 0,cancelTimeout:it.fun(clearTimeout)?clearTimeout:void 0}),applyProps:ja}}var uc,cc;const Oa=o=>"colorSpace"in o||"outputColorSpace"in o,kf=()=>{var o;return(o=_l.ColorManagement)!=null?o:null},Tf=o=>o&&o.isOrthographicCamera,N1=o=>o&&o.hasOwnProperty("current"),_o=typeof window<"u"&&((uc=window.document)!=null&&uc.createElement||((cc=window.navigator)==null?void 0:cc.product)==="ReactNative")?P.useLayoutEffect:P.useEffect;function Pf(o){const n=P.useRef(o);return _o(()=>void(n.current=o),[o]),n}function W1({set:o}){return _o(()=>(o(new Promise(()=>null)),()=>o(!1)),[o]),null}class Mf extends P.Component{constructor(...n){super(...n),this.state={error:!1}}componentDidCatch(n){this.props.set(n)}render(){return this.state.error?null:this.props.children}}Mf.getDerivedStateFromError=()=>({error:!0});const bf="__default",fc=new Map,G1=o=>o&&!!o.memoized&&!!o.changes;function Lf(o){var n;const s=typeof window<"u"?(n=window.devicePixelRatio)!=null?n:2:1;return Array.isArray(o)?Math.min(Math.max(o[0],s),o[1]):o}const ho=o=>{var n;return(n=o.__r3f)==null?void 0:n.root.getState()},it={obj:o=>o===Object(o)&&!it.arr(o)&&typeof o!="function",fun:o=>typeof o=="function",str:o=>typeof o=="string",num:o=>typeof o=="number",boo:o=>typeof o=="boolean",und:o=>o===void 0,arr:o=>Array.isArray(o),equ(o,n,{arrays:s="shallow",objects:c="reference",strict:i=!0}={}){if(typeof o!=typeof n||!!o!=!!n)return!1;if(it.str(o)||it.num(o))return o===n;const r=it.obj(o);if(r&&c==="reference")return o===n;const l=it.arr(o);if(l&&s==="reference")return o===n;if((l||r)&&o===n)return!0;let f;for(f in o)if(!(f in n))return!1;if(r&&s==="shallow"&&c==="shallow"){for(f in i?n:o)if(!it.equ(o[f],n[f],{strict:i,objects:"reference"}))return!1}else for(f in i?n:o)if(o[f]!==n[f])return!1;if(it.und(f)){if(l&&o.length===0&&n.length===0||r&&Object.keys(o).length===0&&Object.keys(n).length===0)return!0;if(o!==n)return!1}return!0}};function H1(o){const n={nodes:{},materials:{}};return o&&o.traverse(s=>{s.name&&(n.nodes[s.name]=s),s.material&&!n.materials[s.material.name]&&(n.materials[s.material.name]=s.material)}),n}function V1(o){o.dispose&&o.type!=="Scene"&&o.dispose();for(const n in o)n.dispose==null||n.dispose(),delete o[n]}function Ti(o,n){const s=o;return s.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...n},o}function il(o,n){let s=o;if(n.includes("-")){const c=n.split("-"),i=c.pop();return s=c.reduce((r,l)=>r[l],o),{target:s,key:i}}else return{target:s,key:n}}const dc=/-\d+$/;function Fa(o,n,s){if(it.str(s)){if(dc.test(s)){const r=s.replace(dc,""),{target:l,key:f}=il(o,r);Array.isArray(l[f])||(l[f]=[])}const{target:c,key:i}=il(o,s);n.__r3f.previousAttach=c[i],c[i]=n}else n.__r3f.previousAttach=s(o,n)}function hc(o,n,s){var c,i;if(it.str(s)){const{target:r,key:l}=il(o,s),f=n.__r3f.previousAttach;f===void 0?delete r[l]:r[l]=f}else(c=n.__r3f)==null||c.previousAttach==null||c.previousAttach(o,n);(i=n.__r3f)==null||delete i.previousAttach}function Uf(o,{children:n,key:s,ref:c,...i},{children:r,key:l,ref:f,...u}={},p=!1){var h;const g=(h=o==null?void 0:o.__r3f)!=null?h:{},v=Object.entries(i),x=[];if(p){const k=Object.keys(u);for(let _=0;_{var C;if((C=o.__r3f)!=null&&C.primitive&&k==="object"||it.equ(_,u[k]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(k))return x.push([k,_,!0,[]]);let S=[];k.includes("-")&&(S=k.split("-")),x.push([k,_,!1,S]);for(const T in i){const A=i[T];T.startsWith(`${k}-`)&&x.push([T,A,!1,T.split("-")])}});const w={...i};return g.memoizedProps&&g.memoizedProps.args&&(w.args=g.memoizedProps.args),g.memoizedProps&&g.memoizedProps.attach&&(w.attach=g.memoizedProps.attach),{memoized:w,changes:x}}const Z1=typeof process<"u"&&!1;function ja(o,n){var s,c,i;const r=(s=o.__r3f)!=null?s:{},l=r.root,f=(c=l==null||l.getState==null?void 0:l.getState())!=null?c:{},{memoized:u,changes:p}=G1(n)?n:Uf(o,n),h=r.eventCount;o.__r3f&&(o.__r3f.memoizedProps=u);for(let v=0;vT[A],o),!(S&&S.set))){const[T,...A]=_.reverse();C=A.reverse().reduce((R,b)=>R[b],o),x=T}if(w===bf+"remove")if(C.constructor){let T=fc.get(C.constructor);T||(T=new C.constructor,fc.set(C.constructor,T)),w=T[x]}else w=0;if(k)w?r.handlers[x]=w:delete r.handlers[x],r.eventCount=Object.keys(r.handlers).length;else if(S&&S.set&&(S.copy||S instanceof Aa)){if(Array.isArray(w))S.fromArray?S.fromArray(w):S.set(...w);else if(S.copy&&w&&w.constructor&&(Z1?S.constructor.name===w.constructor.name:S.constructor===w.constructor))S.copy(w);else if(w!==void 0){const T=S instanceof wo;!T&&S.setScalar?S.setScalar(w):S instanceof Aa&&w instanceof Aa?S.mask=w.mask:S.set(w),!kf()&&!f.linear&&T&&S.convertSRGBToLinear()}}else if(C[x]=w,C[x]instanceof vl&&C[x].format===n1&&C[x].type===r1){const T=C[x];Oa(T)&&Oa(f.gl)?T.colorSpace=f.gl.outputColorSpace:T.encoding=f.gl.outputEncoding}Pi(o)}if(r.parent&&f.internal&&o.raycast&&h!==r.eventCount){const v=f.internal.interaction.indexOf(o);v>-1&&f.internal.interaction.splice(v,1),r.eventCount&&f.internal.interaction.push(o)}return!(p.length===1&&p[0][0]==="onUpdate")&&p.length&&(i=o.__r3f)!=null&&i.parent&&ol(o),o}function Pi(o){var n,s;const c=(n=o.__r3f)==null||(s=n.root)==null||s.getState==null?void 0:s.getState();c&&c.internal.frames===0&&c.invalidate()}function ol(o){o.onUpdate==null||o.onUpdate(o)}function X1(o,n){o.manual||(Tf(o)?(o.left=n.width/-2,o.right=n.width/2,o.top=n.height/2,o.bottom=n.height/-2):o.aspect=n.width/n.height,o.updateProjectionMatrix(),o.updateMatrixWorld())}function ws(o){return(o.eventObject||o.object).uuid+"/"+o.index+o.instanceId}function Q1(){var o;const n=typeof self<"u"&&self||typeof window<"u"&&window;if(!n)return bi.DefaultEventPriority;switch((o=n.event)==null?void 0:o.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return bi.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return bi.ContinuousEventPriority;default:return bi.DefaultEventPriority}}function Rf(o,n,s,c){const i=s.get(n);i&&(s.delete(n),s.size===0&&(o.delete(c),i.target.releasePointerCapture(c)))}function Y1(o,n){const{internal:s}=o.getState();s.interaction=s.interaction.filter(c=>c!==n),s.initialHits=s.initialHits.filter(c=>c!==n),s.hovered.forEach((c,i)=>{(c.eventObject===n||c.object===n)&&s.hovered.delete(i)}),s.capturedMap.forEach((c,i)=>{Rf(s.capturedMap,n,c,i)})}function K1(o){function n(u){const{internal:p}=o.getState(),h=u.offsetX-p.initialClick[0],g=u.offsetY-p.initialClick[1];return Math.round(Math.sqrt(h*h+g*g))}function s(u){return u.filter(p=>["Move","Over","Enter","Out","Leave"].some(h=>{var g;return(g=p.__r3f)==null?void 0:g.handlers["onPointer"+h]}))}function c(u,p){const h=o.getState(),g=new Set,v=[],x=p?p(h.internal.interaction):h.internal.interaction;for(let C=0;C{const T=ho(C.object),A=ho(S.object);return!T||!A?C.distance-S.distance:A.events.priority-T.events.priority||C.distance-S.distance}).filter(C=>{const S=ws(C);return g.has(S)?!1:(g.add(S),!0)});h.events.filter&&(k=h.events.filter(k,h));for(const C of k){let S=C.object;for(;S;){var _;(_=S.__r3f)!=null&&_.eventCount&&v.push({...C,eventObject:S}),S=S.parent}}if("pointerId"in u&&h.internal.capturedMap.has(u.pointerId))for(let C of h.internal.capturedMap.get(u.pointerId).values())g.has(ws(C.intersection))||v.push(C.intersection);return v}function i(u,p,h,g){const v=o.getState();if(u.length){const x={stopped:!1};for(const w of u){const k=ho(w.object)||v,{raycaster:_,pointer:C,camera:S,internal:T}=k,A=new ct(C.x,C.y,0).unproject(S),R=ee=>{var N,I;return(N=(I=T.capturedMap.get(ee))==null?void 0:I.has(w.eventObject))!=null?N:!1},b=ee=>{const N={intersection:w,target:p.target};T.capturedMap.has(ee)?T.capturedMap.get(ee).set(w.eventObject,N):T.capturedMap.set(ee,new Map([[w.eventObject,N]])),p.target.setPointerCapture(ee)},O=ee=>{const N=T.capturedMap.get(ee);N&&Rf(T.capturedMap,w.eventObject,N,ee)};let z={};for(let ee in p){let N=p[ee];typeof N!="function"&&(z[ee]=N)}let Q={...w,...z,pointer:C,intersections:u,stopped:x.stopped,delta:h,unprojectedPoint:A,ray:_.ray,camera:S,stopPropagation(){const ee="pointerId"in p&&T.capturedMap.get(p.pointerId);if((!ee||ee.has(w.eventObject))&&(Q.stopped=x.stopped=!0,T.hovered.size&&Array.from(T.hovered.values()).find(N=>N.eventObject===w.eventObject))){const N=u.slice(0,u.indexOf(w));r([...N,w])}},target:{hasPointerCapture:R,setPointerCapture:b,releasePointerCapture:O},currentTarget:{hasPointerCapture:R,setPointerCapture:b,releasePointerCapture:O},nativeEvent:p};if(g(Q),x.stopped===!0)break}}return u}function r(u){const{internal:p}=o.getState();for(const h of p.hovered.values())if(!u.length||!u.find(g=>g.object===h.object&&g.index===h.index&&g.instanceId===h.instanceId)){const v=h.eventObject.__r3f,x=v==null?void 0:v.handlers;if(p.hovered.delete(ws(h)),v!=null&&v.eventCount){const w={...h,intersections:u};x.onPointerOut==null||x.onPointerOut(w),x.onPointerLeave==null||x.onPointerLeave(w)}}}function l(u,p){for(let h=0;hr([]);case"onLostPointerCapture":return p=>{const{internal:h}=o.getState();"pointerId"in p&&h.capturedMap.has(p.pointerId)&&requestAnimationFrame(()=>{h.capturedMap.has(p.pointerId)&&(h.capturedMap.delete(p.pointerId),r([]))})}}return function(h){const{onPointerMissed:g,internal:v}=o.getState();v.lastEvent.current=h;const x=u==="onPointerMove",w=u==="onClick"||u==="onContextMenu"||u==="onDoubleClick",_=c(h,x?s:void 0),C=w?n(h):0;u==="onPointerDown"&&(v.initialClick=[h.offsetX,h.offsetY],v.initialHits=_.map(T=>T.eventObject)),w&&!_.length&&C<=2&&(l(h,v.interaction),g&&g(h)),x&&r(_);function S(T){const A=T.eventObject,R=A.__r3f,b=R==null?void 0:R.handlers;if(R!=null&&R.eventCount)if(x){if(b.onPointerOver||b.onPointerEnter||b.onPointerOut||b.onPointerLeave){const O=ws(T),z=v.hovered.get(O);z?z.stopped&&T.stopPropagation():(v.hovered.set(O,T),b.onPointerOver==null||b.onPointerOver(T),b.onPointerEnter==null||b.onPointerEnter(T))}b.onPointerMove==null||b.onPointerMove(T)}else{const O=b[u];O?(!w||v.initialHits.includes(A))&&(l(h,v.interaction.filter(z=>!v.initialHits.includes(z))),O(T)):w&&v.initialHits.includes(A)&&l(h,v.interaction.filter(z=>!v.initialHits.includes(z)))}}i(_,h,C,S)}}return{handlePointer:f}}const Af=o=>!!(o!=null&&o.render),Df=P.createContext(null),J1=(o,n)=>{const s=U1((f,u)=>{const p=new ct,h=new ct,g=new ct;function v(C=u().camera,S=h,T=u().size){const{width:A,height:R,top:b,left:O}=T,z=A/R;S instanceof ct?g.copy(S):g.set(...S);const Q=C.getWorldPosition(p).distanceTo(g);if(Tf(C))return{width:A/C.zoom,height:R/C.zoom,top:b,left:O,factor:1,distance:Q,aspect:z};{const ee=C.fov*Math.PI/180,N=2*Math.tan(ee/2)*Q,I=N*(A/R);return{width:I,height:N,top:b,left:O,factor:A/I,distance:Q,aspect:z}}}let x;const w=C=>f(S=>({performance:{...S.performance,current:C}})),k=new $r;return{set:f,get:u,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(C=1)=>o(u(),C),advance:(C,S)=>n(C,S,u()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new h1,pointer:k,mouse:k,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const C=u();x&&clearTimeout(x),C.performance.current!==C.performance.min&&w(C.performance.min),x=setTimeout(()=>w(u().performance.max),C.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:v},setEvents:C=>f(S=>({...S,events:{...S.events,...C}})),setSize:(C,S,T,A,R)=>{const b=u().camera,O={width:C,height:S,top:A||0,left:R||0,updateStyle:T};f(z=>({size:O,viewport:{...z.viewport,...v(b,h,O)}}))},setDpr:C=>f(S=>{const T=Lf(C);return{viewport:{...S.viewport,dpr:T,initialDpr:S.viewport.initialDpr||T}}}),setFrameloop:(C="always")=>{const S=u().clock;S.stop(),S.elapsedTime=0,C!=="never"&&(S.start(),S.elapsedTime=0),f(()=>({frameloop:C}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:P.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(C,S,T)=>{const A=u().internal;return A.priority=A.priority+(S>0?1:0),A.subscribers.push({ref:C,priority:S,store:T}),A.subscribers=A.subscribers.sort((R,b)=>R.priority-b.priority),()=>{const R=u().internal;R!=null&&R.subscribers&&(R.priority=R.priority-(S>0?1:0),R.subscribers=R.subscribers.filter(b=>b.ref!==C))}}}}}),c=s.getState();let i=c.size,r=c.viewport.dpr,l=c.camera;return s.subscribe(()=>{const{camera:f,size:u,viewport:p,gl:h,set:g}=s.getState();if(u.width!==i.width||u.height!==i.height||p.dpr!==r){var v;i=u,r=p.dpr,X1(f,u),h.setPixelRatio(p.dpr);const x=(v=u.updateStyle)!=null?v:typeof HTMLCanvasElement<"u"&&h.domElement instanceof HTMLCanvasElement;h.setSize(u.width,u.height,x)}f!==l&&(l=f,g(x=>({viewport:{...x.viewport,...x.viewport.getCurrentViewport(f)}})))}),s.subscribe(f=>o(f)),s};function El(o,n){const s={callback:o};return n.add(s),()=>void n.delete(s)}let Cs,If=new Set,Of=new Set,Ff=new Set;const q1=o=>El(o,If),$1=o=>El(o,Of),eh=o=>El(o,Ff);function za(o,n){if(o.size)for(const{callback:s}of o.values())s(n)}function po(o,n){switch(o){case"before":return za(If,n);case"after":return za(Of,n);case"tail":return za(Ff,n)}}let Ba,Na;function Wa(o,n,s){let c=n.clock.getDelta();for(n.frameloop==="never"&&typeof o=="number"&&(c=o-n.clock.elapsedTime,n.clock.oldTime=n.clock.elapsedTime,n.clock.elapsedTime=o),Ba=n.internal.subscribers,Cs=0;Cs0)&&!((p=i.gl.xr)!=null&&p.isPresenting)&&(s+=Wa(u,i))}if(po("after",u),s===0)return po("tail",u),n=!1,cancelAnimationFrame(c)}function l(u,p=1){var h;if(!u)return o.forEach(g=>l(g.store.getState()),p);(h=u.gl.xr)!=null&&h.isPresenting||!u.internal.active||u.frameloop==="never"||(u.internal.frames=Math.min(60,u.internal.frames+p),n||(n=!0,requestAnimationFrame(r)))}function f(u,p=!0,h,g){if(p&&po("before",u),h)Wa(u,h,g);else for(const v of o.values())Wa(u,v.store.getState());p&&po("after",u)}return{loop:r,invalidate:l,advance:f}}function jf(){const o=P.useContext(Df);if(!o)throw new Error("R3F: Hooks can only be used within the Canvas component!");return o}function Ii(o=s=>s,n){return jf()(o,n)}function Eo(o,n=0){const s=jf(),c=s.getState().internal.subscribe,i=Pf(o);return _o(()=>c(i,n,s),[n,c,s]),null}const pc=new WeakMap;function zf(o,n){return function(s,...c){let i=pc.get(s);return i||(i=new s,pc.set(s,i)),o&&o(i),Promise.all(c.map(r=>new Promise((l,f)=>i.load(r,u=>{u.scene&&Object.assign(u,H1(u.scene)),l(u)},n,u=>f(new Error(`Could not load ${r}: ${u==null?void 0:u.message}`)))))).finally(()=>i.dispose==null?void 0:i.dispose())}}function Bf(o,n,s,c){const i=Array.isArray(n)?n:[n],r=O1(zf(s,c),[o,...i],{equal:it.equ});return Array.isArray(n)?r:r[0]}Bf.preload=function(o,n,s){const c=Array.isArray(n)?n:[n];return F1(zf(s),[o,...c])};Bf.clear=function(o,n){const s=Array.isArray(n)?n:[n];return j1([o,...s])};const Di=new Map,{invalidate:mc,advance:gc}=th(Di),{reconciler:As,applyProps:wi}=B1(Di,Q1),Ci={objects:"shallow",strict:!1},nh=(o,n)=>{const s=typeof o=="function"?o(n):o;return Af(s)?s:new l1({powerPreference:"high-performance",canvas:n,antialias:!0,alpha:!0,...o})};function rh(o,n){const s=typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement;if(n){const{width:c,height:i,top:r,left:l,updateStyle:f=s}=n;return{width:c,height:i,top:r,left:l,updateStyle:f}}else if(typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement&&o.parentElement){const{width:c,height:i,top:r,left:l}=o.parentElement.getBoundingClientRect();return{width:c,height:i,top:r,left:l,updateStyle:s}}else if(typeof OffscreenCanvas<"u"&&o instanceof OffscreenCanvas)return{width:o.width,height:o.height,top:0,left:0,updateStyle:s};return{width:0,height:0,top:0,left:0}}function ih(o){const n=Di.get(o),s=n==null?void 0:n.fiber,c=n==null?void 0:n.store;n&&console.warn("R3F.createRoot should only be called once!");const i=typeof reportError=="function"?reportError:console.error,r=c||J1(mc,gc),l=s||As.createContainer(r,bi.ConcurrentRoot,null,!1,null,"",i,null);n||Di.set(o,{fiber:l,store:r});let f,u=!1,p;return{configure(h={}){let{gl:g,size:v,scene:x,events:w,onCreated:k,shadows:_=!1,linear:C=!1,flat:S=!1,legacy:T=!1,orthographic:A=!1,frameloop:R="always",dpr:b=[1,2],performance:O,raycaster:z,camera:Q,onPointerMissed:ee}=h,N=r.getState(),I=N.gl;N.gl||N.set({gl:I=nh(g,o)});let J=N.raycaster;J||N.set({raycaster:J=new o1});const{params:K,...re}=z||{};if(it.equ(re,J,Ci)||wi(J,{...re}),it.equ(K,J.params,Ci)||wi(J,{params:{...J.params,...K}}),!N.camera||N.camera===p&&!it.equ(p,Q,Ci)){p=Q;const j=Q instanceof u1,X=j?Q:A?new yl(0,0,0,0,.1,1e3):new xl(75,0,.1,1e3);j||(X.position.z=5,Q&&wi(X,Q),!N.camera&&!(Q!=null&&Q.rotation)&&X.lookAt(0,0,0)),N.set({camera:X}),J.camera=X}if(!N.scene){let j;x instanceof Rs?j=x:(j=new Rs,x&&wi(j,x)),N.set({scene:Ti(j)})}if(!N.xr){var se;const j=(V,ie)=>{const Y=r.getState();Y.frameloop!=="never"&&gc(V,!0,Y,ie)},X=()=>{const V=r.getState();V.gl.xr.enabled=V.gl.xr.isPresenting,V.gl.xr.setAnimationLoop(V.gl.xr.isPresenting?j:null),V.gl.xr.isPresenting||mc(V)},q={connect(){const V=r.getState().gl;V.xr.addEventListener("sessionstart",X),V.xr.addEventListener("sessionend",X)},disconnect(){const V=r.getState().gl;V.xr.removeEventListener("sessionstart",X),V.xr.removeEventListener("sessionend",X)}};typeof((se=I.xr)==null?void 0:se.addEventListener)=="function"&&q.connect(),N.set({xr:q})}if(I.shadowMap){const j=I.shadowMap.enabled,X=I.shadowMap.type;if(I.shadowMap.enabled=!!_,it.boo(_))I.shadowMap.type=Da;else if(it.str(_)){var pe;const q={basic:c1,percentage:f1,soft:Da,variance:d1};I.shadowMap.type=(pe=q[_])!=null?pe:Da}else it.obj(_)&&Object.assign(I.shadowMap,_);(j!==I.shadowMap.enabled||X!==I.shadowMap.type)&&(I.shadowMap.needsUpdate=!0)}const G=kf();G&&("enabled"in G?G.enabled=!T:"legacyMode"in G&&(G.legacyMode=T)),wi(I,{outputEncoding:C?3e3:3001,toneMapping:S?s1:a1}),N.legacy!==T&&N.set(()=>({legacy:T})),N.linear!==C&&N.set(()=>({linear:C})),N.flat!==S&&N.set(()=>({flat:S})),g&&!it.fun(g)&&!Af(g)&&!it.equ(g,I,Ci)&&wi(I,g),w&&!N.events.handlers&&N.set({events:w(r)});const M=rh(o,v);return it.equ(M,N.size,Ci)||N.setSize(M.width,M.height,M.updateStyle,M.top,M.left),b&&N.viewport.dpr!==Lf(b)&&N.setDpr(b),N.frameloop!==R&&N.setFrameloop(R),N.onPointerMissed||N.set({onPointerMissed:ee}),O&&!it.equ(O,N.performance,Ci)&&N.set(j=>({performance:{...j.performance,...O}})),f=k,u=!0,this},render(h){return u||this.configure(),As.updateContainer(P.createElement(oh,{store:r,children:h,onCreated:f,rootElement:o}),l,null,()=>{}),r},unmount(){Nf(o)}}}function oh({store:o,children:n,onCreated:s,rootElement:c}){return _o(()=>{const i=o.getState();i.set(r=>({internal:{...r.internal,active:!0}})),s&&s(i),o.getState().events.connected||i.events.connect==null||i.events.connect(c)},[]),P.createElement(Df.Provider,{value:o},n)}function Nf(o,n){const s=Di.get(o),c=s==null?void 0:s.fiber;if(c){const i=s==null?void 0:s.store.getState();i&&(i.internal.active=!1),As.updateContainer(null,c,null,()=>{i&&setTimeout(()=>{try{var r,l,f,u;i.events.disconnect==null||i.events.disconnect(),(r=i.gl)==null||(l=r.renderLists)==null||l.dispose==null||l.dispose(),(f=i.gl)==null||f.forceContextLoss==null||f.forceContextLoss(),(u=i.gl)!=null&&u.xr&&i.xr.disconnect(),V1(i),Di.delete(o),n&&n(o)}catch{}},500)})}}As.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:P.version});function sl(o,n,s){var c,i,r,l,f;n==null&&(n=100);function u(){var h=Date.now()-l;h=0?c=setTimeout(u,n-h):(c=null,s||(f=o.apply(r,i),r=i=null))}var p=function(){r=this,i=arguments,l=Date.now();var h=s&&!c;return c||(c=setTimeout(u,n)),h&&(f=o.apply(r,i),r=i=null),f};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.flush=function(){c&&(f=o.apply(r,i),r=i=null,clearTimeout(c),c=null)},p}sl.debounce=sl;var sh=sl;const vc=hf(sh);function ah(o){let{debounce:n,scroll:s,polyfill:c,offsetSize:i}=o===void 0?{debounce:0,scroll:!1,offsetSize:!1}:o;const r=c||(typeof window>"u"?class{}:window.ResizeObserver);if(!r)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[l,f]=P.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=P.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:l}),p=n?typeof n=="number"?n:n.scroll:null,h=n?typeof n=="number"?n:n.resize:null,g=P.useRef(!1);P.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[v,x,w]=P.useMemo(()=>{const S=()=>{if(!u.current.element)return;const{left:T,top:A,width:R,height:b,bottom:O,right:z,x:Q,y:ee}=u.current.element.getBoundingClientRect(),N={left:T,top:A,width:R,height:b,bottom:O,right:z,x:Q,y:ee};u.current.element instanceof HTMLElement&&i&&(N.height=u.current.element.offsetHeight,N.width=u.current.element.offsetWidth),Object.freeze(N),g.current&&!fh(u.current.lastBounds,N)&&f(u.current.lastBounds=N)};return[S,h?vc(S,h):S,p?vc(S,p):S]},[f,i,p,h]);function k(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(S=>S.removeEventListener("scroll",w,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function _(){u.current.element&&(u.current.resizeObserver=new r(w),u.current.resizeObserver.observe(u.current.element),s&&u.current.scrollContainers&&u.current.scrollContainers.forEach(S=>S.addEventListener("scroll",w,{capture:!0,passive:!0})))}const C=S=>{!S||S===u.current.element||(k(),u.current.element=S,u.current.scrollContainers=Wf(S),_())};return uh(w,!!s),lh(x),P.useEffect(()=>{k(),_()},[s,w,x]),P.useEffect(()=>k,[]),[C,l,v]}function lh(o){P.useEffect(()=>{const n=o;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[o])}function uh(o,n){P.useEffect(()=>{if(n){const s=o;return window.addEventListener("scroll",s,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",s,!0)}},[o,n])}function Wf(o){const n=[];if(!o||o===document.body)return n;const{overflow:s,overflowX:c,overflowY:i}=window.getComputedStyle(o);return[s,c,i].some(r=>r==="auto"||r==="scroll")&&n.push(o),[...n,...Wf(o.parentElement)]}const ch=["x","y","top","bottom","left","right","width","height"],fh=(o,n)=>ch.every(s=>o[s]===n[s]);var dh=Object.defineProperty,hh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable,xc=(o,n,s)=>n in o?dh(o,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[n]=s,Sc=(o,n)=>{for(var s in n||(n={}))mh.call(n,s)&&xc(o,s,n[s]);if(yc)for(var s of yc(n))gh.call(n,s)&&xc(o,s,n[s]);return o},vh=(o,n)=>hh(o,ph(n));function Gf(o,n,s){if(!o)return;if(s(o)===!0)return o;let c=n?o.return:o.child;for(;c;){const i=Gf(c,n,s);if(i)return i;c=n?null:c.sibling}}function Hf(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return o}}const kl=Hf(P.createContext(null));class Vf extends P.Component{render(){return P.createElement(kl.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:wc,ReactCurrentDispatcher:Cc}=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function yh(){const o=P.useContext(kl);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const n=P.useId();return P.useMemo(()=>{for(const c of[wc==null?void 0:wc.current,o,o==null?void 0:o.alternate]){if(!c)continue;const i=Gf(c,!1,r=>{let l=r.memoizedState;for(;l;){if(l.memoizedState===n)return!0;l=l.next}});if(i)return i}},[o,n])}function xh(){var o,n;const s=yh(),[c]=P.useState(()=>new Map);c.clear();let i=s;for(;i;){const r=(o=i.type)==null?void 0:o._context;r&&r!==kl&&!c.has(r)&&c.set(r,(n=Cc==null?void 0:Cc.current)==null?void 0:n.readContext(Hf(r))),i=i.return}return c}function Sh(){const o=xh();return P.useMemo(()=>Array.from(o.keys()).reduce((n,s)=>c=>P.createElement(n,null,P.createElement(s.Provider,vh(Sc({},c),{value:o.get(s)}))),n=>P.createElement(Vf,Sc({},n))),[o])}const Ga={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function wh(o){const{handlePointer:n}=K1(o);return{priority:1,enabled:!0,compute(s,c,i){c.pointer.set(s.offsetX/c.size.width*2-1,-(s.offsetY/c.size.height)*2+1),c.raycaster.setFromCamera(c.pointer,c.camera)},connected:void 0,handlers:Object.keys(Ga).reduce((s,c)=>({...s,[c]:n(c)}),{}),update:()=>{var s;const{events:c,internal:i}=o.getState();(s=i.lastEvent)!=null&&s.current&&c.handlers&&c.handlers.onPointerMove(i.lastEvent.current)},connect:s=>{var c;const{set:i,events:r}=o.getState();r.disconnect==null||r.disconnect(),i(l=>({events:{...l.events,connected:s}})),Object.entries((c=r.handlers)!=null?c:[]).forEach(([l,f])=>{const[u,p]=Ga[l];s.addEventListener(u,f,{passive:p})})},disconnect:()=>{const{set:s,events:c}=o.getState();if(c.connected){var i;Object.entries((i=c.handlers)!=null?i:[]).forEach(([r,l])=>{if(c&&c.connected instanceof HTMLElement){const[f]=Ga[r];c.connected.removeEventListener(f,l)}}),s(r=>({events:{...r.events,connected:void 0}}))}}}}const Ch=P.forwardRef(function({children:n,fallback:s,resize:c,style:i,gl:r,events:l=wh,eventSource:f,eventPrefix:u,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:w,dpr:k,performance:_,raycaster:C,camera:S,scene:T,onPointerMissed:A,onCreated:R,...b},O){P.useMemo(()=>z1(p1),[]);const z=Sh(),[Q,ee]=ah({scroll:!0,debounce:{scroll:50,resize:0},...c}),N=P.useRef(null),I=P.useRef(null);P.useImperativeHandle(O,()=>N.current);const J=Pf(A),[K,re]=P.useState(!1),[se,pe]=P.useState(!1);if(K)throw K;if(se)throw se;const G=P.useRef(null);_o(()=>{const H=N.current;ee.width>0&&ee.height>0&&H&&(G.current||(G.current=ih(H)),G.current.configure({gl:r,events:l,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:w,dpr:k,performance:_,raycaster:C,camera:S,scene:T,size:ee,onPointerMissed:(...M)=>J.current==null?void 0:J.current(...M),onCreated:M=>{M.events.connect==null||M.events.connect(f?N1(f)?f.current:f:I.current),u&&M.setEvents({compute:(j,X)=>{const q=j[u+"X"],V=j[u+"Y"];X.pointer.set(q/X.size.width*2-1,-(V/X.size.height)*2+1),X.raycaster.setFromCamera(X.pointer,X.camera)}}),R==null||R(M)}}),G.current.render(P.createElement(z,null,P.createElement(Mf,{set:pe},P.createElement(P.Suspense,{fallback:P.createElement(W1,{set:re})},n)))))}),P.useEffect(()=>{const H=N.current;if(H)return()=>Nf(H)},[]);const B=f?"none":"auto";return P.createElement("div",qr({ref:I,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:B,...i}},b),P.createElement("div",{ref:Q,style:{width:"100%",height:"100%"}},P.createElement("canvas",{ref:N,style:{display:"block"}},s)))}),_h=P.forwardRef(function(n,s){return P.createElement(Vf,null,P.createElement(Ch,qr({},n,{ref:s})))}),ko=new ct,Tl=new ct,Eh=new ct;function kh(o,n,s){const c=ko.setFromMatrixPosition(o.matrixWorld);c.project(n);const i=s.width/2,r=s.height/2;return[c.x*i+i,-(c.y*r)+r]}function Th(o,n){const s=ko.setFromMatrixPosition(o.matrixWorld),c=Tl.setFromMatrixPosition(n.matrixWorld),i=s.sub(c),r=n.getWorldDirection(Eh);return i.angleTo(r)>Math.PI/2}function Ph(o,n,s,c){const i=ko.setFromMatrixPosition(o.matrixWorld),r=i.clone();r.project(n),s.setFromCamera(r,n);const l=s.intersectObjects(c,!0);if(l.length){const f=l[0].distance;return i.distanceTo(s.ray.origin)Math.abs(o)<1e-10?0:o;function Zf(o,n,s=""){let c="matrix3d(";for(let i=0;i!==16;i++)c+=al(n[i]*o.elements[i])+(i!==15?",":")");return s+c}const Lh=(o=>n=>Zf(n,o))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),Uh=(o=>(n,s)=>Zf(n,o(s),"translate(-50%,-50%)"))(o=>[1/o,1/o,1/o,1,-1/o,-1/o,-1/o,-1,1/o,1/o,1/o,1,1,1,1,1]);function Rh(o){return o&&typeof o=="object"&&"current"in o}const Pm=P.forwardRef(({children:o,eps:n=.001,style:s,className:c,prepend:i,center:r,fullscreen:l,portal:f,distanceFactor:u,sprite:p=!1,transform:h=!1,occlude:g,onOcclude:v,castShadow:x,receiveShadow:w,material:k,geometry:_,zIndexRange:C=[16777271,0],calculatePosition:S=kh,as:T="div",wrapperClass:A,pointerEvents:R="auto",...b},O)=>{const{gl:z,camera:Q,scene:ee,size:N,raycaster:I,events:J,viewport:K}=Ii(),[re]=P.useState(()=>document.createElement(T)),se=P.useRef(),pe=P.useRef(null),G=P.useRef(0),B=P.useRef([0,0]),H=P.useRef(null),M=P.useRef(null),j=(f==null?void 0:f.current)||J.connected||z.domElement.parentNode,X=P.useRef(null),q=P.useRef(!1),V=P.useMemo(()=>g&&g!=="blending"||Array.isArray(g)&&g.length&&Rh(g[0]),[g]);P.useLayoutEffect(()=>{const fe=z.domElement;g&&g==="blending"?(fe.style.zIndex=`${Math.floor(C[0]/2)}`,fe.style.position="absolute",fe.style.pointerEvents="none"):(fe.style.zIndex=null,fe.style.position=null,fe.style.pointerEvents=null)},[g]),P.useLayoutEffect(()=>{if(pe.current){const fe=se.current=pf(re);if(ee.updateMatrixWorld(),h)re.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const $=S(pe.current,Q,N);re.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${$[0]}px,${$[1]}px,0);transform-origin:0 0;`}return j&&(i?j.prepend(re):j.appendChild(re)),()=>{j&&j.removeChild(re),fe.unmount()}}},[j,h]),P.useLayoutEffect(()=>{A&&(re.className=A)},[A]);const ie=P.useMemo(()=>h?{position:"absolute",top:0,left:0,width:N.width,height:N.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:r?"translate3d(-50%,-50%,0)":"none",...l&&{top:-N.height/2,left:-N.width/2,width:N.width,height:N.height},...s},[s,r,l,N,h]),Y=P.useMemo(()=>({position:"absolute",pointerEvents:R}),[R]);P.useLayoutEffect(()=>{if(q.current=!1,h){var fe;(fe=se.current)==null||fe.render(P.createElement("div",{ref:H,style:ie},P.createElement("div",{ref:M,style:Y},P.createElement("div",{ref:O,className:c,style:s,children:o}))))}else{var $;($=se.current)==null||$.render(P.createElement("div",{ref:O,style:ie,className:c,children:o}))}});const ne=P.useRef(!0);Eo(fe=>{if(pe.current){Q.updateMatrixWorld(),pe.current.updateWorldMatrix(!0,!1);const $=h?B.current:S(pe.current,Q,N);if(h||Math.abs(G.current-Q.zoom)>n||Math.abs(B.current[0]-$[0])>n||Math.abs(B.current[1]-$[1])>n){const te=Th(pe.current,Q);let Se=!1;V&&(g!=="blending"?Se=[ee]:Array.isArray(g)&&(Se=g.map(Me=>Me.current)));const Re=ne.current;if(Se){const Me=Ph(pe.current,Q,I,Se);ne.current=Me&&!te}else ne.current=!te;Re!==ne.current&&(v?v(!ne.current):re.style.display=ne.current?"block":"none");const ce=Math.floor(C[0]/2),Ce=g?V?[C[0],ce]:[ce-1,0]:C;if(re.style.zIndex=`${bh(pe.current,Q,Ce)}`,h){const[Me,ae]=[N.width/2,N.height/2],_e=Q.projectionMatrix.elements[5]*ae,{isOrthographicCamera:me,top:oe,left:be,bottom:xe,right:we}=Q,ge=Lh(Q.matrixWorldInverse),He=me?`scale(${_e})translate(${al(-(we+be)/2)}px,${al((oe+xe)/2)}px)`:`translateZ(${_e}px)`;let Oe=pe.current.matrixWorld;p&&(Oe=Q.matrixWorldInverse.clone().transpose().copyPosition(Oe).scale(pe.current.scale),Oe.elements[3]=Oe.elements[7]=Oe.elements[11]=0,Oe.elements[15]=1),re.style.width=N.width+"px",re.style.height=N.height+"px",re.style.perspective=me?"":`${_e}px`,H.current&&M.current&&(H.current.style.transform=`${He}${ge}translate(${Me}px,${ae}px)`,M.current.style.transform=Uh(Oe,1/((u||10)/400)))}else{const Me=u===void 0?1:Mh(pe.current,Q)*u;re.style.transform=`translate3d(${$[0]}px,${$[1]}px,0) scale(${Me})`}B.current=$,G.current=Q.zoom}}if(!V&&X.current&&!q.current)if(h){if(H.current){const $=H.current.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const{isOrthographicCamera:te}=Q;if(te||_)b.scale&&(Array.isArray(b.scale)?b.scale instanceof ct?X.current.scale.copy(b.scale.clone().divideScalar(1)):X.current.scale.set(1/b.scale[0],1/b.scale[1],1/b.scale[2]):X.current.scale.setScalar(1/b.scale));else{const Se=(u||10)/400,Re=$.clientWidth*Se,ce=$.clientHeight*Se;X.current.scale.set(Re,ce,1)}q.current=!0}}}else{const $=re.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const te=1/K.factor,Se=$.clientWidth*te,Re=$.clientHeight*te;X.current.scale.set(Se,Re,1),q.current=!0}X.current.lookAt(fe.camera.position)}});const ue=P.useMemo(()=>({vertexShader:h?void 0:` + /* + This shader is from the THREE's SpriteMaterial. + We need to turn the backing plane into a Sprite + (make it always face the camera) if "transfrom" + is false. + */ + #include + + void main() { + vec2 center = vec2(0., 1.); + float rotation = 0.0; + + // This is somewhat arbitrary, but it seems to work well + // Need to figure out how to derive this dynamically if it even matters + float size = 0.03; + + vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); + vec2 scale; + scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); + scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); + + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale * size; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + + gl_Position = projectionMatrix * mvPosition; + } + `,fragmentShader:` + void main() { + gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); + } + `}),[h]);return P.createElement("group",qr({},b,{ref:pe}),g&&!V&&P.createElement("mesh",{castShadow:x,receiveShadow:w,ref:X},_||P.createElement("planeGeometry",null),k||P.createElement("shaderMaterial",{side:Sl,vertexShader:ue.vertexShader,fragmentShader:ue.fragmentShader})))});function Mm(o){return function(n){o.forEach(function(s){typeof s=="function"?s(n):s!=null&&(s.current=n)})}}function Ah(o,n,s){return Math.max(n,Math.min(o,s))}const Zt={toVector(o,n){return o===void 0&&(o=n),Array.isArray(o)?o:[o,o]},add(o,n){return[o[0]+n[0],o[1]+n[1]]},sub(o,n){return[o[0]-n[0],o[1]-n[1]]},addTo(o,n){o[0]+=n[0],o[1]+=n[1]},subTo(o,n){o[0]-=n[0],o[1]-=n[1]}};function _c(o,n,s){return n===0||Math.abs(n)===1/0?Math.pow(o,s*5):o*n*s/(n+s*o)}function Ec(o,n,s,c=.15){return c===0?Ah(o,n,s):os?+_c(o-s,s-n,c)+s:o}function Dh(o,[n,s],[c,i]){const[[r,l],[f,u]]=o;return[Ec(n,r,l,c),Ec(s,f,u,i)]}function Ih(o,n){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Oh(o){var n=Ih(o,"string");return typeof n=="symbol"?n:String(n)}function un(o,n,s){return n=Oh(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function kc(o,n){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);n&&(c=c.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),s.push.apply(s,c)}return s}function ft(o){for(var n=1;n{var s,c;return n.target===o.currentTarget||((s=o.currentTarget)===null||s===void 0||(c=s.contains)===null||c===void 0?void 0:c.call(s,n.target))})}function Hh(o){return o.type==="touchend"||o.type==="touchcancel"?o.changedTouches:o.targetTouches}function Yf(o){return Os(o)?Hh(o)[0]:o}function Vh(o){return Gh(o).map(n=>n.identifier)}function Ha(o){const n=Yf(o);return Os(o)?n.identifier:n.pointerId}function Pc(o){const n=Yf(o);return[n.clientX,n.clientY]}function Zh(o){const n={};if("buttons"in o&&(n.buttons=o.buttons),"shiftKey"in o){const{shiftKey:s,altKey:c,metaKey:i,ctrlKey:r}=o;Object.assign(n,{shiftKey:s,altKey:c,metaKey:i,ctrlKey:r})}return n}function Ds(o,...n){return typeof o=="function"?o(...n):o}function Xh(){}function Qh(...o){return o.length===0?Xh:o.length===1?o[0]:function(){let n;for(const s of o)n=s.apply(this,arguments)||n;return n}}function Mc(o,n){return Object.assign({},n,o||{})}const Yh=32;class Kh{constructor(n,s,c){this.ctrl=n,this.args=s,this.key=c,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(n){this.ctrl.state[this.key]=n}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:n,shared:s,ingKey:c,args:i}=this;s[c]=n._active=n.active=n._blocked=n._force=!1,n._step=[!1,!1],n.intentional=!1,n._movement=[0,0],n._distance=[0,0],n._direction=[0,0],n._delta=[0,0],n._bounds=[[-1/0,1/0],[-1/0,1/0]],n.args=i,n.axis=void 0,n.memo=void 0,n.elapsedTime=n.timeDelta=0,n.direction=[0,0],n.distance=[0,0],n.overflow=[0,0],n._movementBound=[!1,!1],n.velocity=[0,0],n.movement=[0,0],n.delta=[0,0],n.timeStamp=0}start(n){const s=this.state,c=this.config;s._active||(this.reset(),this.computeInitial(),s._active=!0,s.target=n.target,s.currentTarget=n.currentTarget,s.lastOffset=c.from?Ds(c.from,s):s.offset,s.offset=s.lastOffset,s.startTime=s.timeStamp=n.timeStamp)}computeValues(n){const s=this.state;s._values=n,s.values=this.config.transform(n)}computeInitial(){const n=this.state;n._initial=n._values,n.initial=n.values}compute(n){const{state:s,config:c,shared:i}=this;s.args=this.args;let r=0;if(n&&(s.event=n,c.preventDefault&&n.cancelable&&s.event.preventDefault(),s.type=n.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Zh(n)),i.down=i.pressed=i.buttons%2===1||i.touches>0,r=n.timeStamp-s.timeStamp,s.timeStamp=n.timeStamp,s.elapsedTime=s.timeStamp-s.startTime),s._active){const b=s._delta.map(Math.abs);Zt.addTo(s._distance,b)}this.axisIntent&&this.axisIntent(n);const[l,f]=s._movement,[u,p]=c.threshold,{_step:h,values:g}=s;if(c.hasCustomTransform?(h[0]===!1&&(h[0]=Math.abs(l)>=u&&g[0]),h[1]===!1&&(h[1]=Math.abs(f)>=p&&g[1])):(h[0]===!1&&(h[0]=Math.abs(l)>=u&&Math.sign(l)*u),h[1]===!1&&(h[1]=Math.abs(f)>=p&&Math.sign(f)*p)),s.intentional=h[0]!==!1||h[1]!==!1,!s.intentional)return;const v=[0,0];if(c.hasCustomTransform){const[b,O]=g;v[0]=h[0]!==!1?b-h[0]:0,v[1]=h[1]!==!1?O-h[1]:0}else v[0]=h[0]!==!1?l-h[0]:0,v[1]=h[1]!==!1?f-h[1]:0;this.restrictToAxis&&!s._blocked&&this.restrictToAxis(v);const x=s.offset,w=s._active&&!s._blocked||s.active;w&&(s.first=s._active&&!s.active,s.last=!s._active&&s.active,s.active=i[this.ingKey]=s._active,n&&(s.first&&("bounds"in c&&(s._bounds=Ds(c.bounds,s)),this.setup&&this.setup()),s.movement=v,this.computeOffset()));const[k,_]=s.offset,[[C,S],[T,A]]=s._bounds;s.overflow=[kS?1:0,_A?1:0],s._movementBound[0]=s.overflow[0]?s._movementBound[0]===!1?s._movement[0]:s._movementBound[0]:!1,s._movementBound[1]=s.overflow[1]?s._movementBound[1]===!1?s._movement[1]:s._movementBound[1]:!1;const R=s._active?c.rubberband||[0,0]:[0,0];if(s.offset=Dh(s._bounds,s.offset,R),s.delta=Zt.sub(s.offset,x),this.computeMovement(),w&&(!s.last||r>Yh)){s.delta=Zt.sub(s.offset,x);const b=s.delta.map(Math.abs);Zt.addTo(s.distance,b),s.direction=s.delta.map(Math.sign),s._direction=s._delta.map(Math.sign),!s.first&&r>0&&(s.velocity=[b[0]/r,b[1]/r],s.timeDelta=r)}}emit(){const n=this.state,s=this.shared,c=this.config;if(n._active||this.clean(),(n._blocked||!n.intentional)&&!n._force&&!c.triggerAllEvents)return;const i=this.handler(ft(ft(ft({},s),n),{},{[this.aliasKey]:n.values}));i!==void 0&&(n.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Jh([o,n],s){const c=Math.abs(o),i=Math.abs(n);if(c>i&&c>s)return"x";if(i>c&&i>s)return"y"}class qh extends Kh{constructor(...n){super(...n),un(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Zt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Zt.sub(this.state.offset,this.state.lastOffset)}axisIntent(n){const s=this.state,c=this.config;if(!s.axis&&n){const i=typeof c.axisThreshold=="object"?c.axisThreshold[Qf(n)]:c.axisThreshold;s.axis=Jh(s._movement,i)}s._blocked=(c.lockDirection||!!c.axis)&&!s.axis||!!c.axis&&c.axis!==s.axis}restrictToAxis(n){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":n[1]=0;break;case"y":n[0]=0;break}}}const $h=o=>o,bc=.15,Kf={enabled(o=!0){return o},eventOptions(o,n,s){return ft(ft({},s.shared.eventOptions),o)},preventDefault(o=!1){return o},triggerAllEvents(o=!1){return o},rubberband(o=0){switch(o){case!0:return[bc,bc];case!1:return[0,0];default:return Zt.toVector(o)}},from(o){if(typeof o=="function")return o;if(o!=null)return Zt.toVector(o)},transform(o,n,s){const c=o||s.shared.transform;return this.hasCustomTransform=!!c,c||$h},threshold(o){return Zt.toVector(o,0)}},ep=0,To=ft(ft({},Kf),{},{axis(o,n,{axis:s}){if(this.lockDirection=s==="lock",!this.lockDirection)return s},axisThreshold(o=ep){return o},bounds(o={}){if(typeof o=="function")return r=>To.bounds(o(r));if("current"in o)return()=>o.current;if(typeof HTMLElement=="function"&&o instanceof HTMLElement)return o;const{left:n=-1/0,right:s=1/0,top:c=-1/0,bottom:i=1/0}=o;return[[n,s],[c,i]]}}),Lc={ArrowRight:(o,n=1)=>[o*n,0],ArrowLeft:(o,n=1)=>[-1*o*n,0],ArrowUp:(o,n=1)=>[0,-1*o*n],ArrowDown:(o,n=1)=>[0,o*n]};class tp extends qh{constructor(...n){super(...n),un(this,"ingKey","dragging")}reset(){super.reset();const n=this.state;n._pointerId=void 0,n._pointerActive=!1,n._keyboardActive=!1,n._preventScroll=!1,n._delayed=!1,n.swipe=[0,0],n.tap=!1,n.canceled=!1,n.cancel=this.cancel.bind(this)}setup(){const n=this.state;if(n._bounds instanceof HTMLElement){const s=n._bounds.getBoundingClientRect(),c=n.currentTarget.getBoundingClientRect(),i={left:s.left-c.left+n.offset[0],right:s.right-c.right+n.offset[0],top:s.top-c.top+n.offset[1],bottom:s.bottom-c.bottom+n.offset[1]};n._bounds=To.bounds(i)}}cancel(){const n=this.state;n.canceled||(n.canceled=!0,n._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(n){const s=this.config,c=this.state;if(n.buttons!=null&&(Array.isArray(s.pointerButtons)?!s.pointerButtons.includes(n.buttons):s.pointerButtons!==-1&&s.pointerButtons!==n.buttons))return;const i=this.ctrl.setEventIds(n);s.pointerCapture&&n.target.setPointerCapture(n.pointerId),!(i&&i.size>1&&c._pointerActive)&&(this.start(n),this.setupPointer(n),c._pointerId=Ha(n),c._pointerActive=!0,this.computeValues(Pc(n)),this.computeInitial(),s.preventScrollAxis&&Qf(n)!=="mouse"?(c._active=!1,this.setupScrollPrevention(n)):s.delay>0?(this.setupDelayTrigger(n),s.triggerAllEvents&&(this.compute(n),this.emit())):this.startPointerDrag(n))}startPointerDrag(n){const s=this.state;s._active=!0,s._preventScroll=!0,s._delayed=!1,this.compute(n),this.emit()}pointerMove(n){const s=this.state,c=this.config;if(!s._pointerActive)return;const i=Ha(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;const r=Pc(n);if(document.pointerLockElement===n.target?s._delta=[n.movementX,n.movementY]:(s._delta=Zt.sub(r,s._values),this.computeValues(r)),Zt.addTo(s._movement,s._delta),this.compute(n),s._delayed&&s.intentional){this.timeoutStore.remove("dragDelay"),s.active=!1,this.startPointerDrag(n);return}if(c.preventScrollAxis&&!s._preventScroll)if(s.axis)if(s.axis===c.preventScrollAxis||c.preventScrollAxis==="xy"){s._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(n);return}else return;this.emit()}pointerUp(n){this.ctrl.setEventIds(n);try{this.config.pointerCapture&&n.target.hasPointerCapture(n.pointerId)&&n.target.releasePointerCapture(n.pointerId)}catch{}const s=this.state,c=this.config;if(!s._active||!s._pointerActive)return;const i=Ha(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(n);const[r,l]=s._distance;if(s.tap=r<=c.tapsThreshold&&l<=c.tapsThreshold,s.tap&&c.filterTaps)s._force=!0;else{const[f,u]=s._delta,[p,h]=s._movement,[g,v]=c.swipe.velocity,[x,w]=c.swipe.distance,k=c.swipe.duration;if(s.elapsedTimeg&&Math.abs(p)>x&&(s.swipe[0]=Math.sign(f)),C>v&&Math.abs(h)>w&&(s.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(n){!this.state.tap&&n.detail>0&&(n.preventDefault(),n.stopPropagation())}setupPointer(n){const s=this.config,c=s.device;s.pointerLock&&n.currentTarget.requestPointerLock(),s.pointerCapture||(this.eventStore.add(this.sharedConfig.window,c,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,c,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,c,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(n){this.state._preventScroll&&n.cancelable&&n.preventDefault()}setupScrollPrevention(n){this.state._preventScroll=!1,np(n);const s=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",s),this.eventStore.add(this.sharedConfig.window,"touch","cancel",s),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,n)}setupDelayTrigger(n){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(n)},this.config.delay)}keyDown(n){const s=Lc[n.key];if(s){const c=this.state,i=n.shiftKey?10:n.altKey?.1:1;this.start(n),c._delta=s(this.config.keyboardDisplacement,i),c._keyboardActive=!0,Zt.addTo(c._movement,c._delta),this.compute(n),this.emit()}}keyUp(n){n.key in Lc&&(this.state._keyboardActive=!1,this.setActive(),this.compute(n),this.emit())}bind(n){const s=this.config.device;n(s,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(n(s,"change",this.pointerMove.bind(this)),n(s,"end",this.pointerUp.bind(this)),n(s,"cancel",this.pointerUp.bind(this)),n("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(n("key","down",this.keyDown.bind(this)),n("key","up",this.keyUp.bind(this))),this.config.filterTaps&&n("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function np(o){"persist"in o&&typeof o.persist=="function"&&o.persist()}const Po=typeof window<"u"&&window.document&&window.document.createElement;function Jf(){return Po&&"ontouchstart"in window}function rp(){return Jf()||Po&&window.navigator.maxTouchPoints>1}function ip(){return Po&&"onpointerdown"in window}function op(){return Po&&"exitPointerLock"in window.document}function sp(){try{return"constructor"in GestureEvent}catch{return!1}}const In={isBrowser:Po,gesture:sp(),touch:Jf(),touchscreen:rp(),pointer:ip(),pointerLock:op()},ap=250,lp=180,up=.5,cp=50,fp=250,dp=10,Uc={mouse:0,touch:0,pen:8},hp=ft(ft({},To),{},{device(o,n,{pointer:{touch:s=!1,lock:c=!1,mouse:i=!1}={}}){return this.pointerLock=c&&In.pointerLock,In.touch&&s?"touch":this.pointerLock?"mouse":In.pointer&&!i?"pointer":In.touch?"touch":"mouse"},preventScrollAxis(o,n,{preventScroll:s}){if(this.preventScrollDelay=typeof s=="number"?s:s||s===void 0&&o?ap:void 0,!(!In.touchscreen||s===!1))return o||(s!==void 0?"y":void 0)},pointerCapture(o,n,{pointer:{capture:s=!0,buttons:c=1,keys:i=!0}={}}){return this.pointerButtons=c,this.keys=i,!this.pointerLock&&this.device==="pointer"&&s},threshold(o,n,{filterTaps:s=!1,tapsThreshold:c=3,axis:i=void 0}){const r=Zt.toVector(o,s?c:i?1:0);return this.filterTaps=s,this.tapsThreshold=c,r},swipe({velocity:o=up,distance:n=cp,duration:s=fp}={}){return{velocity:this.transform(Zt.toVector(o)),distance:this.transform(Zt.toVector(n)),duration:s}},delay(o=0){switch(o){case!0:return lp;case!1:return 0;default:return o}},axisThreshold(o){return o?ft(ft({},Uc),o):Uc},keyboardDisplacement(o=dp){return o}});ft(ft({},Kf),{},{device(o,n,{shared:s,pointer:{touch:c=!1}={}}){if(s.target&&!In.touch&&In.gesture)return"gesture";if(In.touch&&c)return"touch";if(In.touchscreen){if(In.pointer)return"pointer";if(In.touch)return"touch"}},bounds(o,n,{scaleBounds:s={},angleBounds:c={}}){const i=l=>{const f=Mc(Ds(s,l),{min:-1/0,max:1/0});return[f.min,f.max]},r=l=>{const f=Mc(Ds(c,l),{min:-1/0,max:1/0});return[f.min,f.max]};return typeof s!="function"&&typeof c!="function"?[i(),r()]:l=>[i(l),r(l)]},threshold(o,n,s){return this.lockDirection=s.axis==="lock",Zt.toVector(o,this.lockDirection?[.1,3]:0)},modifierKey(o){return o===void 0?"ctrlKey":o},pinchOnWheel(o=!0){return o}});ft(ft({},To),{},{mouseOnly:(o=!0)=>o});ft(ft({},To),{},{mouseOnly:(o=!0)=>o});const qf=new Map,ll=new Map;function pp(o){qf.set(o.key,o.engine),ll.set(o.key,o.resolver)}const mp={key:"drag",engine:tp,resolver:hp};function gp(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}function vp(o,n){if(o==null)return{};var s=gp(o,n),c,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}const yp={target(o){if(o)return()=>"current"in o?o.current:o},enabled(o=!0){return o},window(o=In.isBrowser?window:void 0){return o},eventOptions({passive:o=!0,capture:n=!1}={}){return{passive:o,capture:n}},transform(o){return o}},xp=["target","eventOptions","window","enabled","transform"];function bs(o={},n){const s={};for(const[c,i]of Object.entries(n))switch(typeof i){case"function":s[c]=i.call(s,o[c],c,o);break;case"object":s[c]=bs(o[c],i);break;case"boolean":i&&(s[c]=o[c]);break}return s}function Sp(o,n,s={}){const c=o,{target:i,eventOptions:r,window:l,enabled:f,transform:u}=c,p=vp(c,xp);if(s.shared=bs({target:i,eventOptions:r,window:l,enabled:f,transform:u},yp),n){const h=ll.get(n);s[n]=bs(ft({shared:s.shared},p),h)}else for(const h in p){const g=ll.get(h);g&&(s[h]=bs(ft({shared:s.shared},p[h]),g))}return s}class $f{constructor(n,s){un(this,"_listeners",new Set),this._ctrl=n,this._gestureKey=s}add(n,s,c,i,r){const l=this._listeners,f=Wh(s,c),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},p=ft(ft({},u),r);n.addEventListener(f,i,p);const h=()=>{n.removeEventListener(f,i,p),l.delete(h)};return l.add(h),h}clean(){this._listeners.forEach(n=>n()),this._listeners.clear()}}class wp{constructor(){un(this,"_timeouts",new Map)}add(n,s,c=140,...i){this.remove(n),this._timeouts.set(n,window.setTimeout(s,c,...i))}remove(n){const s=this._timeouts.get(n);s&&window.clearTimeout(s)}clean(){this._timeouts.forEach(n=>void window.clearTimeout(n)),this._timeouts.clear()}}class Cp{constructor(n){un(this,"gestures",new Set),un(this,"_targetEventStore",new $f(this)),un(this,"gestureEventStores",{}),un(this,"gestureTimeoutStores",{}),un(this,"handlers",{}),un(this,"config",{}),un(this,"pointerIds",new Set),un(this,"touchIds",new Set),un(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),_p(this,n)}setEventIds(n){if(Os(n))return this.touchIds=new Set(Vh(n)),this.touchIds;if("pointerId"in n)return n.type==="pointerup"||n.type==="pointercancel"?this.pointerIds.delete(n.pointerId):n.type==="pointerdown"&&this.pointerIds.add(n.pointerId),this.pointerIds}applyHandlers(n,s){this.handlers=n,this.nativeHandlers=s}applyConfig(n,s){this.config=Sp(n,s,this.config)}clean(){this._targetEventStore.clean();for(const n of this.gestures)this.gestureEventStores[n].clean(),this.gestureTimeoutStores[n].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...n){const s=this.config.shared,c={};let i;if(!(s.target&&(i=s.target(),!i))){if(s.enabled){for(const l of this.gestures){const f=this.config[l],u=Rc(c,f.eventOptions,!!i);if(f.enabled){const p=qf.get(l);new p(this,n,l).bind(u)}}const r=Rc(c,s.eventOptions,!!i);for(const l in this.nativeHandlers)r(l,"",f=>this.nativeHandlers[l](ft(ft({},this.state.shared),{},{event:f,args:n})),void 0,!0)}for(const r in c)c[r]=Qh(...c[r]);if(!i)return c;for(const r in c){const{device:l,capture:f,passive:u}=Nh(r);this._targetEventStore.add(i,l,"",c[r],{capture:f,passive:u})}}}}function _i(o,n){o.gestures.add(n),o.gestureEventStores[n]=new $f(o,n),o.gestureTimeoutStores[n]=new wp}function _p(o,n){n.drag&&_i(o,"drag"),n.wheel&&_i(o,"wheel"),n.scroll&&_i(o,"scroll"),n.move&&_i(o,"move"),n.pinch&&_i(o,"pinch"),n.hover&&_i(o,"hover")}const Rc=(o,n,s)=>(c,i,r,l={},f=!1)=>{var u,p;const h=(u=l.capture)!==null&&u!==void 0?u:n.capture,g=(p=l.passive)!==null&&p!==void 0?p:n.passive;let v=f?c:zh(c,i,h);s&&g&&(v+="Passive"),o[v]=o[v]||[],o[v].push(r)};function Ep(o,n={},s,c){const i=er.useMemo(()=>new Cp(o),[]);if(i.applyHandlers(o,c),i.applyConfig(n,s),er.useEffect(i.effect.bind(i)),er.useEffect(()=>i.clean.bind(i),[]),n.target===void 0)return i.bind.bind(i)}function bm(o,n){return pp(mp),Ep({drag:o},n||{},"drag")}function kp(o){let n=0;for(let c in o.attributes){const i=o.getAttribute(c);n+=i.count*i.itemSize*i.array.BYTES_PER_ELEMENT}const s=o.getIndex();return n+=s?s.count*s.itemSize*s.array.BYTES_PER_ELEMENT:0,n}const Ac=new Is,_s=new ct;class Pl extends gf{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const n=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],s=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],c=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(c),this.setAttribute("position",new el(n,3)),this.setAttribute("uv",new el(s,2))}applyMatrix4(n){const s=this.attributes.instanceStart,c=this.attributes.instanceEnd;return s!==void 0&&(s.applyMatrix4(n),c.applyMatrix4(n),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(n){let s;n instanceof Float32Array?s=n:Array.isArray(n)&&(s=new Float32Array(n));const c=new tl(s,6,1);return this.setAttribute("instanceStart",new Mi(c,3,0)),this.setAttribute("instanceEnd",new Mi(c,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(n){let s;n instanceof Float32Array?s=n:Array.isArray(n)&&(s=new Float32Array(n));const c=new tl(s,6,1);return this.setAttribute("instanceColorStart",new Mi(c,3,0)),this.setAttribute("instanceColorEnd",new Mi(c,3,3)),this}fromWireframeGeometry(n){return this.setPositions(n.attributes.position.array),this}fromEdgesGeometry(n){return this.setPositions(n.attributes.position.array),this}fromMesh(n){return this.fromWireframeGeometry(new m1(n.geometry)),this}fromLineSegments(n){const s=n.geometry;return this.setPositions(s.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Is);const n=this.attributes.instanceStart,s=this.attributes.instanceEnd;n!==void 0&&s!==void 0&&(this.boundingBox.setFromBufferAttribute(n),Ac.setFromBufferAttribute(s),this.boundingBox.union(Ac))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new wl),this.boundingBox===null&&this.computeBoundingBox();const n=this.attributes.instanceStart,s=this.attributes.instanceEnd;if(n!==void 0&&s!==void 0){const c=this.boundingSphere.center;this.boundingBox.getCenter(c);let i=0;for(let r=0,l=n.count;r + #include + #include + #include + #include + + uniform float linewidth; + uniform vec2 resolution; + + attribute vec3 instanceStart; + attribute vec3 instanceEnd; + + attribute vec3 instanceColorStart; + attribute vec3 instanceColorEnd; + + #ifdef WORLD_UNITS + + varying vec4 worldPos; + varying vec3 worldStart; + varying vec3 worldEnd; + + #ifdef USE_DASH + + varying vec2 vUv; + + #endif + + #else + + varying vec2 vUv; + + #endif + + #ifdef USE_DASH + + uniform float dashScale; + attribute float instanceDistanceStart; + attribute float instanceDistanceEnd; + varying float vLineDistance; + + #endif + + void trimSegment( const in vec4 start, inout vec4 end ) { + + // trim end segment so it terminates between the camera plane and the near plane + + // conservative estimate of the near plane + float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column + float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column + float nearEstimate = - 0.5 * b / a; + + float alpha = ( nearEstimate - start.z ) / ( end.z - start.z ); + + end.xyz = mix( start.xyz, end.xyz, alpha ); + + } + + void main() { + + #ifdef USE_COLOR + + vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd; + + #endif + + #ifdef USE_DASH + + vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd; + vUv = uv; + + #endif + + float aspect = resolution.x / resolution.y; + + // camera space + vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 ); + vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 ); + + #ifdef WORLD_UNITS + + worldStart = start.xyz; + worldEnd = end.xyz; + + #else + + vUv = uv; + + #endif + + // special case for perspective projection, and segments that terminate either in, or behind, the camera plane + // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space + // but we need to perform ndc-space calculations in the shader, so we must address this issue directly + // perhaps there is a more elegant solution -- WestLangley + + bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column + + if ( perspective ) { + + if ( start.z < 0.0 && end.z >= 0.0 ) { + + trimSegment( start, end ); + + } else if ( end.z < 0.0 && start.z >= 0.0 ) { + + trimSegment( end, start ); + + } + + } + + // clip space + vec4 clipStart = projectionMatrix * start; + vec4 clipEnd = projectionMatrix * end; + + // ndc space + vec3 ndcStart = clipStart.xyz / clipStart.w; + vec3 ndcEnd = clipEnd.xyz / clipEnd.w; + + // direction + vec2 dir = ndcEnd.xy - ndcStart.xy; + + // account for clip-space aspect ratio + dir.x *= aspect; + dir = normalize( dir ); + + #ifdef WORLD_UNITS + + // get the offset direction as perpendicular to the view vector + vec3 worldDir = normalize( end.xyz - start.xyz ); + vec3 offset; + if ( position.y < 0.5 ) { + + offset = normalize( cross( start.xyz, worldDir ) ); + + } else { + + offset = normalize( cross( end.xyz, worldDir ) ); + + } + + // sign flip + if ( position.x < 0.0 ) offset *= - 1.0; + + float forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) ); + + // don't extend the line if we're rendering dashes because we + // won't be rendering the endcaps + #ifndef USE_DASH + + // extend the line bounds to encompass endcaps + start.xyz += - worldDir * linewidth * 0.5; + end.xyz += worldDir * linewidth * 0.5; + + // shift the position of the quad so it hugs the forward edge of the line + offset.xy -= dir * forwardOffset; + offset.z += 0.5; + + #endif + + // endcaps + if ( position.y > 1.0 || position.y < 0.0 ) { + + offset.xy += dir * 2.0 * forwardOffset; + + } + + // adjust for linewidth + offset *= linewidth * 0.5; + + // set the world position + worldPos = ( position.y < 0.5 ) ? start : end; + worldPos.xyz += offset; + + // project the worldpos + vec4 clip = projectionMatrix * worldPos; + + // shift the depth of the projected points so the line + // segments overlap neatly + vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd; + clip.z = clipPose.z * clip.w; + + #else + + vec2 offset = vec2( dir.y, - dir.x ); + // undo aspect ratio adjustment + dir.x /= aspect; + offset.x /= aspect; + + // sign flip + if ( position.x < 0.0 ) offset *= - 1.0; + + // endcaps + if ( position.y < 0.0 ) { + + offset += - dir; + + } else if ( position.y > 1.0 ) { + + offset += dir; + + } + + // adjust for linewidth + offset *= linewidth; + + // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ... + offset /= resolution.y; + + // select end + vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd; + + // back to clip space + offset *= clip.w; + + clip.xy += offset; + + #endif + + gl_Position = clip; + + vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation + + #include + #include + #include + + } + `,fragmentShader:` + uniform vec3 diffuse; + uniform float opacity; + uniform float linewidth; + + #ifdef USE_DASH + + uniform float dashOffset; + uniform float dashSize; + uniform float gapSize; + + #endif + + varying float vLineDistance; + + #ifdef WORLD_UNITS + + varying vec4 worldPos; + varying vec3 worldStart; + varying vec3 worldEnd; + + #ifdef USE_DASH + + varying vec2 vUv; + + #endif + + #else + + varying vec2 vUv; + + #endif + + #include + #include + #include + #include + #include + + vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) { + + float mua; + float mub; + + vec3 p13 = p1 - p3; + vec3 p43 = p4 - p3; + + vec3 p21 = p2 - p1; + + float d1343 = dot( p13, p43 ); + float d4321 = dot( p43, p21 ); + float d1321 = dot( p13, p21 ); + float d4343 = dot( p43, p43 ); + float d2121 = dot( p21, p21 ); + + float denom = d2121 * d4343 - d4321 * d4321; + + float numer = d1343 * d4321 - d1321 * d4343; + + mua = numer / denom; + mua = clamp( mua, 0.0, 1.0 ); + mub = ( d1343 + d4321 * ( mua ) ) / d4343; + mub = clamp( mub, 0.0, 1.0 ); + + return vec2( mua, mub ); + + } + + void main() { + + #include + + #ifdef USE_DASH + + if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps + + if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX + + #endif + + float alpha = opacity; + + #ifdef WORLD_UNITS + + // Find the closest points on the view ray and the line segment + vec3 rayEnd = normalize( worldPos.xyz ) * 1e5; + vec3 lineDir = worldEnd - worldStart; + vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd ); + + vec3 p1 = worldStart + lineDir * params.x; + vec3 p2 = rayEnd * params.y; + vec3 delta = p1 - p2; + float len = length( delta ); + float norm = len / linewidth; + + #ifndef USE_DASH + + #ifdef USE_ALPHA_TO_COVERAGE + + float dnorm = fwidth( norm ); + alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm ); + + #else + + if ( norm > 0.5 ) { + + discard; + + } + + #endif + + #endif + + #else + + #ifdef USE_ALPHA_TO_COVERAGE + + // artifacts appear on some hardware if a derivative is taken within a conditional + float a = vUv.x; + float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; + float len2 = a * a + b * b; + float dlen = fwidth( len2 ); + + if ( abs( vUv.y ) > 1.0 ) { + + alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 ); + + } + + #else + + if ( abs( vUv.y ) > 1.0 ) { + + float a = vUv.x; + float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; + float len2 = a * a + b * b; + + if ( len2 > 1.0 ) discard; + + } + + #endif + + #endif + + vec4 diffuseColor = vec4( diffuse, alpha ); + + #include + #include + + gl_FragColor = vec4( diffuseColor.rgb, alpha ); + + #include + #include <${parseInt(v1.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}> + #include + #include + + } + `,clipping:!0}),this.isLineMaterial=!0,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(s){this.uniforms.diffuse.value=s}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(s){s===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(s){this.uniforms.linewidth.value=s}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(s){!!s!="USE_DASH"in this.defines&&(this.needsUpdate=!0),s===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(s){this.uniforms.dashScale.value=s}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(s){this.uniforms.dashSize.value=s}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(s){this.uniforms.dashOffset.value=s}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(s){this.uniforms.gapSize.value=s}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(s){this.uniforms.opacity.value=s}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(s){this.uniforms.resolution.value.copy(s)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(s){!!s!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),s===!0?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(n)}}const Dc=new ct,Ic=new ct,Ot=new Ai,Ft=new Ai,qn=new Ai,Va=new ct,Za=new vf,Gt=new y1,Oc=new ct,Es=new Is,ks=new wl,$n=new Ai;let tr,ul,td,Qr;function Fc(o,n,s){return $n.set(0,0,-n,1).applyMatrix4(o.projectionMatrix),$n.multiplyScalar(1/$n.w),$n.x=Qr/s.width,$n.y=Qr/s.height,$n.applyMatrix4(o.projectionMatrixInverse),$n.multiplyScalar(1/$n.w),Math.abs(Math.max($n.x,$n.y))}function Tp(o,n){for(let s=0,c=ul.count;sh&&Ft.z>h)continue;if(Ot.z>h){const S=Ot.z-Ft.z,T=(Ot.z-h)/S;Ot.lerp(Ft,T)}else if(Ft.z>h){const S=Ft.z-Ot.z,T=(Ft.z-h)/S;Ft.lerp(Ot,T)}Ot.applyMatrix4(c),Ft.applyMatrix4(c),Ot.multiplyScalar(1/Ot.w),Ft.multiplyScalar(1/Ft.w),Ot.x*=r.x/2,Ot.y*=r.y/2,Ft.x*=r.x/2,Ft.y*=r.y/2,Gt.start.copy(Ot),Gt.start.z=0,Gt.end.copy(Ft),Gt.end.z=0;const w=Gt.closestPointToPointParameter(Va,!0);Gt.at(w,Oc);const k=yf.lerp(Ot.z,Ft.z,w),_=k>=-1&&k<=1,C=Va.distanceTo(Oc)w.size),g=P.useMemo(()=>l?new nd:new Mp,[l]),[v]=P.useState(()=>new Ml),x=P.useMemo(()=>{const w=l?new Pl:new ed,k=n.map(_=>{const C=Array.isArray(_);return _ instanceof ct?[_.x,_.y,_.z]:_ instanceof $r?[_.x,_.y,0]:C&&_.length===3?[_[0],_[1],_[2]]:C&&_.length===2?[_[0],_[1],0]:_});if(w.setPositions(k.flat()),c){const _=c.map(C=>C instanceof wo?C.toArray():C);w.setColors(_.flat())}return w},[n,l,c]);return P.useLayoutEffect(()=>{g.computeLineDistances()},[n,g]),P.useLayoutEffect(()=>{f?v.defines.USE_DASH="":delete v.defines.USE_DASH,v.needsUpdate=!0},[f,v]),P.useEffect(()=>()=>x.dispose(),[x]),P.createElement("primitive",qr({object:g,ref:p},u),P.createElement("primitive",{object:x,attach:"geometry"}),P.createElement("primitive",qr({object:v,attach:"material",color:s,vertexColors:!!c,resolution:[h.width,h.height],linewidth:i??r,dashed:f},u)))});function bp(){var o=Object.create(null);function n(i,r){var l=i.id,f=i.name,u=i.dependencies;u===void 0&&(u=[]);var p=i.init;p===void 0&&(p=function(){});var h=i.getTransferables;if(h===void 0&&(h=null),!o[l])try{u=u.map(function(v){return v&&v.isWorkerModule&&(n(v,function(x){if(x instanceof Error)throw x}),v=o[v.id].value),v}),p=c("<"+f+">.init",p),h&&(h=c("<"+f+">.getTransferables",h));var g=null;typeof p=="function"?g=p.apply(void 0,u):console.error("worker module init function failed to rehydrate"),o[l]={id:l,value:g,getTransferables:h},r(g)}catch(v){v&&v.noLog||console.error(v),r(v)}}function s(i,r){var l,f=i.id,u=i.args;(!o[f]||typeof o[f].value!="function")&&r(new Error("Worker module "+f+": not found or its 'init' did not return a function"));try{var p=(l=o[f]).value.apply(l,u);p&&typeof p.then=="function"?p.then(h,function(g){return r(g instanceof Error?g:new Error(""+g))}):h(p)}catch(g){r(g)}function h(g){try{var v=o[f].getTransferables&&o[f].getTransferables(g);(!v||!Array.isArray(v)||!v.length)&&(v=void 0),r(g,v)}catch(x){console.error(x),r(x)}}}function c(i,r){var l=void 0;self.troikaDefine=function(u){return l=u};var f=URL.createObjectURL(new Blob(["/** "+i.replace(/\*/g,"")+` **/ + +troikaDefine( +`+r+` +)`],{type:"application/javascript"}));try{importScripts(f)}catch(u){console.error(u)}return URL.revokeObjectURL(f),delete self.troikaDefine,l}self.addEventListener("message",function(i){var r=i.data,l=r.messageId,f=r.action,u=r.data;try{f==="registerModule"&&n(u,function(p){p instanceof Error?postMessage({messageId:l,success:!1,error:p.message}):postMessage({messageId:l,success:!0,result:{isCallable:typeof p=="function"}})}),f==="callModule"&&s(u,function(p,h){p instanceof Error?postMessage({messageId:l,success:!1,error:p.message}):postMessage({messageId:l,success:!0,result:p},h||void 0)})}catch(p){postMessage({messageId:l,success:!1,error:p.stack})}})}function Lp(o){var n=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];return n._getInitResult().then(function(i){if(typeof i=="function")return i.apply(void 0,s);throw new Error("Worker module function was called but `init` did not return a callable function")})};return n._getInitResult=function(){var s=o.dependencies,c=o.init;s=Array.isArray(s)?s.map(function(r){return r&&r._getInitResult?r._getInitResult():r}):[];var i=Promise.all(s).then(function(r){return c.apply(null,r)});return n._getInitResult=function(){return i},i},n}var rd=function(){var o=!1;if(typeof window<"u"&&typeof window.document<"u")try{var n=new Worker(URL.createObjectURL(new Blob([""],{type:"application/javascript"})));n.terminate(),o=!0}catch(s){typeof process<"u",console.log("Troika createWorkerModule: web workers not allowed; falling back to main thread execution. Cause: ["+s.message+"]")}return rd=function(){return o},o},Up=0,Rp=0,Xa=!1,xo=Object.create(null),So=Object.create(null),cl=Object.create(null);function Mo(o){if((!o||typeof o.init!="function")&&!Xa)throw new Error("requires `options.init` function");var n=o.dependencies,s=o.init,c=o.getTransferables,i=o.workerId;if(!rd())return Lp(o);i==null&&(i="#default");var r="workerModule"+ ++Up,l=o.name||r,f=null;n=n&&n.map(function(p){return typeof p=="function"&&!p.workerModuleData&&(Xa=!0,p=Mo({workerId:i,name:"<"+l+"> function dependency: "+p.name,init:`function(){return ( +`+Ls(p)+` +)}`}),Xa=!1),p&&p.workerModuleData&&(p=p.workerModuleData),p});function u(){for(var p=[],h=arguments.length;h--;)p[h]=arguments[h];if(!f){f=jc(i,"registerModule",u.workerModuleData);var g=function(){f=null,So[i].delete(g)};(So[i]||(So[i]=new Set)).add(g)}return f.then(function(v){var x=v.isCallable;if(x)return jc(i,"callModule",{id:r,args:p});throw new Error("Worker module function was called but `init` did not return a callable function")})}return u.workerModuleData={isWorkerModule:!0,id:r,name:l,dependencies:n,init:Ls(s),getTransferables:c&&Ls(c)},u}function Ap(o){So[o]&&So[o].forEach(function(n){n()}),xo[o]&&(xo[o].terminate(),delete xo[o])}function Ls(o){var n=o.toString();return!/^function/.test(n)&&/^\w+\s*\(/.test(n)&&(n="function "+n),n}function Dp(o){var n=xo[o];if(!n){var s=Ls(bp);n=xo[o]=new Worker(URL.createObjectURL(new Blob(["/** Worker Module Bootstrap: "+o.replace(/\*/g,"")+` **/ + +;(`+s+")()"],{type:"application/javascript"}))),n.onmessage=function(c){var i=c.data,r=i.messageId,l=cl[r];if(!l)throw new Error("WorkerModule response with empty or unknown messageId");delete cl[r],l(i)}}return n}function jc(o,n,s){return new Promise(function(c,i){var r=++Rp;cl[r]=function(l){l.success?c(l.result):i(new Error("Error in worker "+n+" call: "+l.error))},Dp(o).postMessage({messageId:r,action:n,data:s})})}function id(){var o=function(n){function s(B,H,M,j,X,q,V,ie){var Y=1-V;ie.x=Y*Y*B+2*Y*V*M+V*V*X,ie.y=Y*Y*H+2*Y*V*j+V*V*q}function c(B,H,M,j,X,q,V,ie,Y,ne){var ue=1-Y;ne.x=ue*ue*ue*B+3*ue*ue*Y*M+3*ue*Y*Y*X+Y*Y*Y*V,ne.y=ue*ue*ue*H+3*ue*ue*Y*j+3*ue*Y*Y*q+Y*Y*Y*ie}function i(B,H){for(var M=/([MLQCZ])([^MLQCZ]*)/g,j,X,q,V,ie;j=M.exec(B);){var Y=j[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(ne){return parseFloat(ne)});switch(j[1]){case"M":V=X=Y[0],ie=q=Y[1];break;case"L":(Y[0]!==V||Y[1]!==ie)&&H("L",V,ie,V=Y[0],ie=Y[1]);break;case"Q":{H("Q",V,ie,V=Y[2],ie=Y[3],Y[0],Y[1]);break}case"C":{H("C",V,ie,V=Y[4],ie=Y[5],Y[0],Y[1],Y[2],Y[3]);break}case"Z":(V!==X||ie!==q)&&H("L",V,ie,X,q);break}}}function r(B,H,M){M===void 0&&(M=16);var j={x:0,y:0};i(B,function(X,q,V,ie,Y,ne,ue,fe,$){switch(X){case"L":H(q,V,ie,Y);break;case"Q":{for(var te=q,Se=V,Re=1;Re0;)Oe[Pe]=arguments[Pe+2];var Fe=me[He]||(me[He]=M.getUniformLocation(oe,He));M["uniform"+ge].apply(M,[Fe].concat(Oe))},setAttribute:function(ge,He,Oe,Pe,Fe){var Ve=_e[ge];Ve||(Ve=_e[ge]={buf:M.createBuffer(),loc:M.getAttribLocation(oe,ge),data:null}),M.bindBuffer(M.ARRAY_BUFFER,Ve.buf),M.vertexAttribPointer(Ve.loc,He,M.FLOAT,!1,0,0),M.enableVertexAttribArray(Ve.loc),X?M.vertexAttribDivisor(Ve.loc,Pe):ue("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(Ve.loc,Pe),Fe!==Ve.data&&(M.bufferData(M.ARRAY_BUFFER,Fe,Oe),Ve.data=Fe)}})}}}V[ce].transaction(ae)},te=function(ce,Ce){Y++;try{M.activeTexture(M.TEXTURE0+Y);var Me=ie[ce];Me||(Me=ie[ce]=M.createTexture(),M.bindTexture(M.TEXTURE_2D,Me),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,M.NEAREST),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,M.NEAREST)),M.bindTexture(M.TEXTURE_2D,Me),Ce(Me,Y)}finally{Y--}},Se=function(ce,Ce,Me){var ae=M.createFramebuffer();ne.push(ae),M.bindFramebuffer(M.FRAMEBUFFER,ae),M.activeTexture(M.TEXTURE0+Ce),M.bindTexture(M.TEXTURE_2D,ce),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,ce,0);try{Me(ae)}finally{M.deleteFramebuffer(ae),M.bindFramebuffer(M.FRAMEBUFFER,ne[--ne.length-1]||null)}},Re=function(){q={},V={},ie={},Y=-1,ne.length=0};var X=typeof WebGL2RenderingContext<"u"&&M instanceof WebGL2RenderingContext,q={},V={},ie={},Y=-1,ne=[];M.canvas.addEventListener("webglcontextlost",function(ce){Re(),ce.preventDefault()},!1),u.set(M,j={gl:M,isWebGL2:X,getExtension:ue,withProgram:$,withTexture:te,withTextureFramebuffer:Se,handleContextLoss:Re})}H(j)}function g(B,H,M,j,X,q,V,ie){V===void 0&&(V=15),ie===void 0&&(ie=null),h(B,function(Y){var ne=Y.gl,ue=Y.withProgram,fe=Y.withTexture;fe("copy",function($,te){ne.texImage2D(ne.TEXTURE_2D,0,ne.RGBA,X,q,0,ne.RGBA,ne.UNSIGNED_BYTE,H),ue("copy",l,f,function(Se){var Re=Se.setUniform,ce=Se.setAttribute;ce("aUV",2,ne.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),Re("1i","image",te),ne.bindFramebuffer(ne.FRAMEBUFFER,ie||null),ne.disable(ne.BLEND),ne.colorMask(V&8,V&4,V&2,V&1),ne.viewport(M,j,X,q),ne.scissor(M,j,X,q),ne.drawArrays(ne.TRIANGLES,0,3)})})})}function v(B,H,M){var j=B.width,X=B.height;h(B,function(q){var V=q.gl,ie=new Uint8Array(j*X*4);V.readPixels(0,0,j,X,V.RGBA,V.UNSIGNED_BYTE,ie),B.width=H,B.height=M,g(V,ie,0,0,j,X)})}var x=Object.freeze({__proto__:null,withWebGLContext:h,renderImageData:g,resizeWebGLCanvasWithoutClearing:v});function w(B,H,M,j,X,q){q===void 0&&(q=1);var V=new Uint8Array(B*H),ie=j[2]-j[0],Y=j[3]-j[1],ne=[];r(M,function(ce,Ce,Me,ae){ne.push({x1:ce,y1:Ce,x2:Me,y2:ae,minX:Math.min(ce,Me),minY:Math.min(Ce,ae),maxX:Math.max(ce,Me),maxY:Math.max(Ce,ae)})}),ne.sort(function(ce,Ce){return ce.maxX-Ce.maxX});for(var ue=0;ueme.minX&&Ce-aeme.minY){var oe=C(ce,Ce,me.x1,me.y1,me.x2,me.y2);oeCe!=_e.y2>Ce&&ce<(_e.x2-_e.x1)*(Ce-_e.y1)/(_e.y2-_e.y1)+_e.x1;me&&(Me+=_e.y1<_e.y2?1:-1)}return Me!==0}}function k(B,H,M,j,X,q,V,ie,Y,ne){q===void 0&&(q=1),ie===void 0&&(ie=0),Y===void 0&&(Y=0),ne===void 0&&(ne=0),_(B,H,M,j,X,q,V,null,ie,Y,ne)}function _(B,H,M,j,X,q,V,ie,Y,ne,ue){q===void 0&&(q=1),Y===void 0&&(Y=0),ne===void 0&&(ne=0),ue===void 0&&(ue=0);for(var fe=w(B,H,M,j,X,q),$=new Uint8Array(fe.length*4),te=0;tep.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function k(ae,_e){var me=36,oe=0,be=new Map,xe=_e&&new Map,we;return ae.split(",").forEach(function ge(He){if(He.indexOf("+")!==-1)for(var Oe=+He;Oe--;)ge(we);else{we=He;var Pe=He.split(">"),Fe=Pe[0],Ve=Pe[1];Fe=String.fromCodePoint(oe+=parseInt(Fe,me)),Ve=String.fromCodePoint(oe+=parseInt(Ve,me)),be.set(Fe,Ve),_e&&xe.set(Ve,Fe)}}),{map:be,reverseMap:xe}}var _,C,S;function T(){if(!_){var ae=k(w.pairs,!0),_e=ae.map,me=ae.reverseMap;_=_e,C=me,S=k(w.canonical,!1).map}}function A(ae){return T(),_.get(ae)||null}function R(ae){return T(),C.get(ae)||null}function b(ae){return T(),S.get(ae)||null}var O=c.L,z=c.R,Q=c.EN,ee=c.ES,N=c.ET,I=c.AN,J=c.CS,K=c.B,re=c.S,se=c.ON,pe=c.BN,G=c.NSM,B=c.AL,H=c.LRO,M=c.RLO,j=c.LRE,X=c.RLE,q=c.PDF,V=c.LRI,ie=c.RLI,Y=c.FSI,ne=c.PDI;function ue(ae,_e){for(var me=125,oe=new Uint32Array(ae.length),be=0;be0)Qe--;else if(ht>0){for(Je=0;!Be[Be.length-1]._isolate;)Be.pop();var Fn=Be[Be.length-1]._isolInitIndex;Fn!=null&&(He.set(Fn,je),He.set(je,Fn)),Be.pop(),ht--}Ue=Be[Be.length-1],ge[je]=Ue._level,Ue._override&&we(je,Ue._override)}else nt&q?(Qe===0&&(Je>0?Je--:!Ue._isolate&&Be.length>1&&(Be.pop(),Ue=Be[Be.length-1])),ge[je]=Ue._level):nt&K&&(ge[je]=Pe.level);else ge[je]=Ue._level,Ue._override&&nt!==pe&&we(je,Ue._override)}for(var Xt=[],Qt=null,rt=Pe.start;rt<=Pe.end;rt++){var gr=oe[rt];if(!(gr&u)){var ot=ge[rt],st=gr&r,fn=gr===ne;Qt&&ot===Qt._level?(Qt._end=rt,Qt._endsWithIsolInit=st):Xt.push(Qt={_start:rt,_end:rt,_level:ot,_startsWithPDI:fn,_endsWithIsolInit:st})}}for(var Yt=[],Ye=0;Ye=0;Mr--)if(!(oe[Mr]&u)){bo=ge[Mr];break}var Fi=Dt[Dt.length-1],zs=ge[Fi],Lo=Pe.level;if(!(oe[Fi]&r)){for(var ti=Fi+1;ti<=Pe.end;ti++)if(!(oe[ti]&u)){Lo=ge[ti];break}}Yt.push({_seqIndices:Dt,_sosType:Math.max(bo,js)%2?z:O,_eosType:Math.max(Lo,zs)%2?z:O})}}for(var ji=0;ji=0;hn--)if(!(oe[Ee[hn]]&u)){Hn=oe[Ee[hn]];break}we(ri,Hn&(r|ne)?se:Hn)}}if(xe.get(Q))for(var Ke=0;Ke=-1;pn--){var Et=pn===-1?jn:oe[Ee[pn]];if(Et&l){Et===B&&we(qe,I);break}}}if(xe.get(B))for(var Pt=0;Pt=0&&(zn=oe[Ee[oi]],!!(zn&u));oi--);for(var vr=En+1;vr=0&&oe[Ee[si]]&(N|u);si--)we(Ee[si],Q);for(mn++;mn=0&&oe[Ee[or]]&u;or--)we(Ee[or],se);for(var sr=br+1;sr=0;ur--){var li=yr[ur].char;if(li===Wi||li===R(b(We))||A(b(li))===We){Zn.push([yr[ur].seqIndex,Xn]),yr.length=ur;break}}}Zn.sort(function(Lt,$t){return Lt[0]-$t[0]})}for(var Gi=0;Gi=0;Vi--){var Io=Ee[Vi];if(oe[Io]&ai){var yn=oe[Io]&lr?z:O;yn!==Gn?Kt=yn:Kt=Gn;break}}}if(Kt){if(oe[Ee[lt]]=oe[Ee[Ur]]=Kt,Kt!==Gn){for(var Jt=lt+1;Jt=0;Ar--)if(oe[Ee[Ar]]&u)Zi=Ar;else{on=oe[Ee[Ar]]&lr?z:O;break}for(var Dr=Bi,Ir=kn+1;Ir=0&&v(ae[xr])&p;xr--)ge[xr]=Pe.level}}return{levels:ge,paragraphs:Oe};function ci(Lt,$t){for(var vt=Lt;vt=ge&&v(ae[Pe])&p;Pe--)Oe[Pe]=we.level;for(var Fe=we.level,Ve=1/0,dt=0;dtFe&&(Fe=Ie),Ie=Ve;et--)for(var Be=0;Be=et){for(var Ue=Be;Be+1=et;)Be++;Be>Ue&&xe.push([Ue+ge,Be+ge])}}}),xe}function Ce(ae,_e,me,oe){var be=Me(ae,_e,me,oe),xe=[].concat(ae);return be.forEach(function(we,ge){xe[ge]=(_e.levels[we]&1?Se(ae[we]):null)||ae[we]}),xe.join("")}function Me(ae,_e,me,oe){for(var be=ce(ae,_e,me,oe),xe=[],we=0;we/gm;function s(c,i){let r=C1[i];return r?fl(r):c}return o.replace(n,s)}const jt=[];for(let o=0;o<256;o++)jt[o]=(o<16?"0":"")+o.toString(16);function Op(){const o=Math.random()*4294967295|0,n=Math.random()*4294967295|0,s=Math.random()*4294967295|0,c=Math.random()*4294967295|0;return(jt[o&255]+jt[o>>8&255]+jt[o>>16&255]+jt[o>>24&255]+"-"+jt[n&255]+jt[n>>8&255]+"-"+jt[n>>16&15|64]+jt[n>>24&255]+"-"+jt[s&63|128]+jt[s>>8&255]+"-"+jt[s>>16&255]+jt[s>>24&255]+jt[c&255]+jt[c>>8&255]+jt[c>>16&255]+jt[c>>24&255]).toUpperCase()}const Vr=Object.assign||function(){let o=arguments[0];for(let n=1,s=arguments.length;n/gm,` +//!BEGIN_POST_CHUNK $1 +$& +//!END_POST_CHUNK +`),s=fl(s)),x){let k=x({vertexShader:n,fragmentShader:s});n=k.vertexShader,s=k.fragmentShader}if(v){let k=[];s=s.replace(/^\/\/!BEGIN_POST_CHUNK[^]+?^\/\/!END_POST_CHUNK/gm,_=>(k.push(_),"")),g=`${v} +${k.join(` +`)} +${g}`}if(w){const k=` +uniform float ${w}; +`;r=k+r,p=k+p}return u&&(n=`vec3 troika_position_${i}; +vec3 troika_normal_${i}; +vec2 troika_uv_${i}; +${n} +`,r=`${r} +void troikaVertexTransform${i}(inout vec3 position, inout vec3 normal, inout vec2 uv) { + ${u} +} +`,l=` +troika_position_${i} = vec3(position); +troika_normal_${i} = vec3(normal); +troika_uv_${i} = vec2(uv); +troikaVertexTransform${i}(troika_position_${i}, troika_normal_${i}, troika_uv_${i}); +${l} +`,n=n.replace(/\b(position|normal|uv)\b/g,(k,_,C,S)=>/\battribute\s+vec[23]\s+$/.test(S.substr(0,C))?_:`troika_${_}_${i}`),o.map&&o.map.channel>0||(n=n.replace(/\bMAP_UV\b/g,`troika_uv_${i}`))),n=Nc(n,i,r,l,f),s=Nc(s,i,p,h,g),{vertexShader:n,fragmentShader:s}}function Nc(o,n,s,c,i){return(c||i||s)&&(o=o.replace(od,` +${s} +void troikaOrigMain${n}() {`),o+=` +void main() { + ${c} + troikaOrigMain${n}(); + ${i} +}`),o}function Bp(o,n){return o==="uniforms"?void 0:typeof n=="function"?n.toString():n}let Np=0;const Wc=new Map;function Wp(o){const n=JSON.stringify(o,Bp);let s=Wc.get(n);return s==null&&Wc.set(n,s=++Np),s}function Gp(o,n,s){const{defaultFontURL:c}=s,i=Object.create(null),r=1/0,l=/[\u00AD\u034F\u061C\u115F-\u1160\u17B4-\u17B5\u180B-\u180E\u200B-\u200F\u202A-\u202E\u2060-\u206F\u3164\uFE00-\uFE0F\uFEFF\uFFA0\uFFF0-\uFFF8]/,f="[^\\S\\u00A0]",u=new RegExp(`${f}|[\\-\\u007C\\u00AD\\u2010\\u2012-\\u2014\\u2027\\u2056\\u2E17\\u2E40]`);function p(S,T){function A(){const R=b=>{console.error(`Failure loading font ${S}${S===c?"":"; trying fallback"}`,b),S!==c&&(S=c,A())};try{const b=new XMLHttpRequest;b.open("get",S,!0),b.responseType="arraybuffer",b.onload=function(){if(b.status>=400)R(new Error(b.statusText));else if(b.status>0)try{const O=o(b.response);T(O)}catch(O){R(O)}},b.onerror=R,b.send()}catch(b){R(b)}}A()}function h(S,T){S||(S=c);let A=i[S];A?A.pending?A.pending.push(T):T(A):(i[S]={pending:[T]},p(S,R=>{let b=i[S].pending;i[S]=R,b.forEach(O=>O(R))}))}function g({text:S="",font:T=c,sdfGlyphSize:A=64,fontSize:R=1,letterSpacing:b=0,lineHeight:O="normal",maxWidth:z=r,direction:Q,textAlign:ee="left",textIndent:N=0,whiteSpace:I="normal",overflowWrap:J="normal",anchorX:K=0,anchorY:re=0,includeCaretPositions:se=!1,chunkedBoundsSize:pe=8192,colorRanges:G=null},B,H=!1){const M=k(),j={fontLoad:0,typesetting:0};S.indexOf("\r")>-1&&(console.info("Typesetter: got text with \\r chars; normalizing to \\n"),S=S.replace(/\r\n/g,` +`).replace(/\r/g,` +`)),R=+R,b=+b,z=+z,O=O||"normal",N=+N,h(T,X=>{const q=isFinite(z);let V=null,ie=null,Y=null,ne=null,ue=null,fe=null,$=null,te=0,Se=0,Re=I!=="nowrap";const{ascender:ce,descender:Ce,unitsPerEm:Me,lineGap:ae,capHeight:_e,xHeight:me}=X;j.fontLoad=k()-M;const oe=k(),be=R/Me;O==="normal"&&(O=(ce-Ce+ae)/Me),O=O*R;const xe=(O-(ce-Ce)*be)/2,we=-(ce*be+xe),ge=Math.min(O,(ce-Ce)*be),He=(ce+Ce)/2*be-ge/2;let Oe=N,Pe=new _;const Fe=[Pe];X.forEachGlyph(S,R,b,(Ie,et,Be)=>{const Ue=S.charAt(Be),Qe=Ie.advanceWidth*be,Je=Pe.count;let ht;if("isEmpty"in Ie||(Ie.isWhitespace=!!Ue&&new RegExp(f).test(Ue),Ie.canBreakAfter=!!Ue&&u.test(Ue),Ie.isEmpty=Ie.xMin===Ie.xMax||Ie.yMin===Ie.yMax||l.test(Ue)),!Ie.isWhitespace&&!Ie.isEmpty&&Se++,Re&&q&&!Ie.isWhitespace&&et+Qe+Oe>z&&Je){if(Pe.glyphAt(Je-1).glyphObj.canBreakAfter)ht=new _,Oe=-et;else for(let nt=Je;nt--;)if(nt===0&&J==="break-word"){ht=new _,Oe=-et;break}else if(Pe.glyphAt(nt).glyphObj.canBreakAfter){ht=Pe.splitAt(nt+1);const At=ht.glyphAt(0).x;Oe-=At;for(let On=ht.count;On--;)ht.glyphAt(On).x-=At;break}ht&&(Pe.isSoftWrapped=!0,Pe=ht,Fe.push(Pe),te=z)}let je=Pe.glyphAt(Pe.count);je.glyphObj=Ie,je.x=et+Oe,je.width=Qe,je.charIndex=Be,Ue===` +`&&(Pe=new _,Fe.push(Pe),Oe=-(et+Qe+b*R)+N)}),Fe.forEach(Ie=>{for(let et=Ie.count;et--;){let{glyphObj:Be,x:Ue,width:Qe}=Ie.glyphAt(et);if(!Be.isWhitespace){Ie.width=Ue+Qe,Ie.width>te&&(te=Ie.width);return}}});let Ve=0,dt=0;if(K&&(typeof K=="number"?Ve=-K:typeof K=="string"&&(Ve=-te*(K==="left"?0:K==="center"?.5:K==="right"?1:x(K)))),re){if(typeof re=="number")dt=-re;else if(typeof re=="string"){let Ie=Fe.length*O;dt=re==="top"?0:re==="top-baseline"?-we:re==="top-cap"?-we-_e*be:re==="top-ex"?-we-me*be:re==="middle"?Ie/2:re==="bottom"?Ie:re==="bottom-baseline"?Ie-xe+Ce*be:x(re)*Ie}}if(!H){const Ie=n.getEmbeddingLevels(S,Q);V=new Uint16Array(Se),ie=new Float32Array(Se*2),Y={},fe=[r,r,-r,-r],$=[];let et=we;se&&(ue=new Float32Array(S.length*3)),G&&(ne=new Uint8Array(Se*3));let Be=0,Ue=-1,Qe=-1,Je,ht;if(Fe.forEach((je,nt)=>{let{count:At,width:On}=je;if(At>0){let rr=0;for(let ot=At;ot--&&je.glyphAt(ot).glyphObj.isWhitespace;)rr++;let Fn=0,Xt=0;if(ee==="center")Fn=(te-On)/2;else if(ee==="right")Fn=te-On;else if(ee==="justify"&&je.isSoftWrapped){let ot=0;for(let st=At-rr;st--;)je.glyphAt(st).glyphObj.isWhitespace&&ot++;Xt=(te-On)/ot}if(Xt||Fn){let ot=0;for(let st=0;st=st){let rn=gt,pt=gt;for(;ptfn)break;ptrt=ot;for(let ot=0;ot1&&w(ue,Ue,pt),Ue=Ye}if(G){const{charIndex:Ye}=st;for(;Ye>Qe;)Qe++,G.hasOwnProperty(Qe)&&(ht=G[Qe])}if(!rt.isWhitespace&&!rt.isEmpty){const Ye=Be++;Y[fn]||(Y[fn]={path:rt.path,pathBounds:[rt.xMin,rt.yMin,rt.xMax,rt.yMax]});const gt=st.x+Ve,rn=et+dt;ie[Ye*2]=gt,ie[Ye*2+1]=rn;const pt=gt+rt.xMin*be,wt=rn+rt.yMin*be,Dt=gt+rt.xMax*be,Wn=rn+rt.yMax*be;ptfe[2]&&(fe[2]=Dt),Wn>fe[3]&&(fe[3]=Wn),Ye%pe===0&&(Je={start:Ye,end:Ye,rect:[r,r,-r,-r]},$.push(Je)),Je.end++;const dn=Je.rect;if(ptdn[2]&&(dn[2]=Dt),Wn>dn[3]&&(dn[3]=Wn),V[Ye]=fn,G){const ir=Ye*3;ne[ir]=ht>>16&255,ne[ir+1]=ht>>8&255,ne[ir+2]=ht&255}}}}et-=O}),ue){const je=S.length-Ue;je>1&&w(ue,Ue,je)}}j.typesetting=k()-oe,B({glyphIds:V,glyphPositions:ie,glyphData:Y,caretPositions:ue,caretHeight:ge,glyphColors:ne,chunkedBounds:$,fontSize:R,unitsPerEm:Me,ascender:ce*be,descender:Ce*be,capHeight:_e*be,xHeight:me*be,lineHeight:O,topBaseline:we,blockBounds:[Ve,dt-Fe.length*O,Ve+te,dt],visibleBounds:fe,timings:j})})}function v(S,T){g(S,A=>{const[R,b,O,z]=A.blockBounds;T({width:O-R,height:z-b})},{metricsOnly:!0})}function x(S){let T=S.match(/^([\d.]+)%$/),A=T?parseFloat(T[1]):NaN;return isNaN(A)?0:A/100}function w(S,T,A){const R=S[T*3],b=S[T*3+1],O=S[T*3+2],z=(b-R)/A;for(let Q=0;Q(Object.defineProperty(S,T,{get(){return this.data[this.index*C.length+A]},set(b){this.data[this.index*C.length+A]=b}}),S),{data:null,index:0}),{typeset:g,measure:v,loadFont:h}}const Yr=()=>(self.performance||Date).now(),Fs=id();let Gc;function Hp(o,n,s,c,i,r,l,f,u,p,h=!0){return h?Zp(o,n,s,c,i,r,l,f,u,p).then(null,g=>(Gc||(console.warn("WebGL SDF generation failed, falling back to JS",g),Gc=!0),Vc(o,n,s,c,i,r,l,f,u,p))):Vc(o,n,s,c,i,r,l,f,u,p)}const Us=[],Vp=5;let hl=0;function sd(){const o=Yr();for(;Us.length&&Yr()-onew Promise((n,s)=>{Us.push(()=>{const c=Yr();try{Fs.webgl.generateIntoCanvas(...o),n({timing:Yr()-c})}catch(i){s(i)}}),hl||(hl=setTimeout(sd,0))}),Xp=4,Qp=2e3,Hc={};let Yp=0;function Vc(o,n,s,c,i,r,l,f,u,p){const h="TroikaTextSDFGenerator_JS_"+Yp++%Xp;let g=Hc[h];return g||(g=Hc[h]={workerModule:Mo({name:h,workerId:h,dependencies:[id,Yr],init(v,x){const w=v().javascript.generate;return function(...k){const _=x();return{textureData:w(...k),timing:x()-_}}},getTransferables(v){return[v.textureData.buffer]}}),requests:0,idleTimer:null}),g.requests++,clearTimeout(g.idleTimer),g.workerModule(o,n,s,c,i,r).then(({textureData:v,timing:x})=>{const w=Yr(),k=new Uint8Array(v.length*4);for(let _=0;_{Ap(h)},Qp)),{timing:x}})}function Kp(o){o._warm||(Fs.webgl.isSupported(o),o._warm=!0)}const Jp=Fs.webglUtils.resizeWebGLCanvasWithoutClearing;/*! +Custom build of Typr.ts (https://github.com/fredli74/Typr.ts) for use in Troika text rendering. +Original MIT license applies: https://github.com/fredli74/Typr.ts/blob/master/LICENSE +*/function qp(){return typeof window>"u"&&(self.window=self),function(o){var n={parse:function(i){var r=n._bin,l=new Uint8Array(i);if(r.readASCII(l,0,4)=="ttcf"){var f=4;r.readUshort(l,f),f+=2,r.readUshort(l,f),f+=2;var u=r.readUint(l,f);f+=4;for(var p=[],h=0;h>>l&1&&r++;return r},n._lctf.readClassDef=function(i,r){var l=n._bin,f=[],u=l.readUshort(i,r);if(r+=2,u==1){var p=l.readUshort(i,r);r+=2;var h=l.readUshort(i,r);r+=2;for(var g=0;g0&&(u.featureParams=f+p);var h=l.readUshort(i,r);r+=2,u.tab=[];for(var g=0;g255?-1:n.CFF.glyphByUnicode(i,n.CFF.tableSE[r])},n.CFF.readEncoding=function(i,r,l){n._bin;var f=[".notdef"],u=i[r];if(r++,u!=0)throw"error: unknown encoding format: "+u;var p=i[r];r++;for(var h=0;h>4,S=15&_;if(C!=15&&k.push(C),S!=15&&k.push(S),S==15)break}for(var T="",A=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"],R=0;R=p.xMax||p.yMin>=p.yMax)return null;if(p.noc>0){p.endPts=[];for(var h=0;h=1&&h.fmt<=2){v=u.readUshort(i,l),l+=2;var w=u.readUshort(i,l);l+=2,x=n._lctf.numOfOnes(v);var k=n._lctf.numOfOnes(w);if(h.fmt==1){h.pairsets=[];var _=u.readUshort(i,l);l+=2;for(var C=0;C<_;C++){var S=p+u.readUshort(i,l);l+=2;var T=u.readUshort(i,S);S+=2;for(var A=[],R=0;R=1&&h.fmt<=2){if(h.fmt==1)h.delta=u.readShort(i,l),l+=2;else if(h.fmt==2){var v=u.readUshort(i,l);l+=2,h.newg=u.readUshorts(i,l,v),l+=2*h.newg.length}}else if(r==4){h.vals=[],v=u.readUshort(i,l),l+=2;for(var x=0;x>>8;if((w&=15)!=0)throw"unknown kern table format: "+w;r=n.kern.readFormat0(i,r,g)}return g},n.kern.parseV1=function(i,r,l,f){var u=n._bin;u.readFixed(i,r),r+=4;var p=u.readUint(i,r);r+=4;for(var h={glyph1:[],rval:[]},g=0;g>>8;if((x&=15)!=0)throw"unknown kern table format: "+x;r=n.kern.readFormat0(i,r,h)}return h},n.kern.readFormat0=function(i,r,l){var f=n._bin,u=-1,p=f.readUshort(i,r);r+=2,f.readUshort(i,r),r+=2,f.readUshort(i,r),r+=2,f.readUshort(i,r),r+=2;for(var h=0;h=u.map.length?0:u.map[r];if(u.format==4){for(var p=-1,h=0;hr?0:65535&(u.idRangeOffset[p]!=0?u.glyphIdArray[r-u.startCount[p]+(u.idRangeOffset[p]>>1)-(u.idRangeOffset.length-p)]:r+u.idDelta[p])}if(u.format==12){if(r>u.groups[u.groups.length-1][1])return 0;for(h=0;h-1?n.U._simpleGlyph(f,l):n.U._compoGlyph(f,r,l))},n.U._simpleGlyph=function(i,r){for(var l=0;lu)){for(var _=!0,C=0,S=0;Su)){for(_=!0,S=0;S>1,p.length=0,g=!0;else if(I=="o3"||I=="o23")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0;else if(I=="o4")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),x&&n.U.P.closePath(u),_+=p.pop(),n.U.P.moveTo(u,k,_),x=!0;else if(I=="o5")for(;p.length>0;)k+=p.shift(),_+=p.shift(),n.U.P.lineTo(u,k,_);else if(I=="o6"||I=="o7")for(var J=p.length,K=I=="o6",re=0;reMath.abs(z-_)?k=O+p.shift():_=z+p.shift(),n.U.P.curveTo(u,C,S,T,A,Q,ee),n.U.P.curveTo(u,R,b,O,z,k,_));else if(I=="o14"){if(p.length>0&&!g&&(v=p.shift()+l.nominalWidthX,g=!0),p.length==4){var G=p.shift(),B=p.shift(),H=p.shift(),M=p.shift(),j=n.CFF.glyphBySE(l,H),X=n.CFF.glyphBySE(l,M);n.U._drawCFF(l.CharStrings[j],r,l,f,u),r.x=G,r.y=B,n.U._drawCFF(l.CharStrings[X],r,l,f,u)}x&&(n.U.P.closePath(u),x=!1)}else if(I=="o19"||I=="o20")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0,w+=h+7>>3;else if(I=="o21")p.length>2&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),_+=p.pop(),k+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,k,_),x=!0;else if(I=="o22")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),k+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,k,_),x=!0;else if(I=="o25"){for(;p.length>6;)k+=p.shift(),_+=p.shift(),n.U.P.lineTo(u,k,_);C=k+p.shift(),S=_+p.shift(),T=C+p.shift(),A=S+p.shift(),k=T+p.shift(),_=A+p.shift(),n.U.P.curveTo(u,C,S,T,A,k,_)}else if(I=="o26")for(p.length%2&&(k+=p.shift());p.length>0;)C=k,S=_+p.shift(),k=T=C+p.shift(),_=(A=S+p.shift())+p.shift(),n.U.P.curveTo(u,C,S,T,A,k,_);else if(I=="o27")for(p.length%2&&(_+=p.shift());p.length>0;)S=_,T=(C=k+p.shift())+p.shift(),A=S+p.shift(),k=T+p.shift(),_=A,n.U.P.curveTo(u,C,S,T,A,k,_);else if(I=="o10"||I=="o29"){var q=I=="o10"?f:l;if(p.length==0)console.debug("error: empty stack");else{var V=p.pop(),ie=q.Subrs[V+q.Bias];r.x=k,r.y=_,r.nStems=h,r.haveWidth=g,r.width=v,r.open=x,n.U._drawCFF(ie,r,l,f,u),k=r.x,_=r.y,h=r.nStems,g=r.haveWidth,v=r.width,x=r.open}}else if(I=="o30"||I=="o31"){var Y=p.length,ne=(pe=0,I=="o31");for(pe+=Y-(J=-3&Y);pe>>1|(21845&x)<<1;w=(61680&(w=(52428&w)>>>2|(13107&w)<<2))>>>4|(3855&w)<<4,v[x]=((65280&w)>>>8|(255&w)<<8)>>>1}var k=function(I,J,K){for(var re=I.length,se=0,pe=new s(J);se>>H]=M}else for(G=new s(re),se=0;se>>15-I[se]);return G},_=new n(288);for(x=0;x<144;++x)_[x]=8;for(x=144;x<256;++x)_[x]=9;for(x=256;x<280;++x)_[x]=7;for(x=280;x<288;++x)_[x]=8;var C=new n(32);for(x=0;x<32;++x)C[x]=5;var S=k(_,9,1),T=k(C,5,1),A=function(I){for(var J=I[0],K=1;KJ&&(J=I[K]);return J},R=function(I,J,K){var re=J/8|0;return(I[re]|I[re+1]<<8)>>(7&J)&K},b=function(I,J){var K=J/8|0;return(I[K]|I[K+1]<<8|I[K+2]<<16)>>(7&J)},O=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],z=function(I,J,K){var re=new Error(J||O[I]);if(re.code=I,Error.captureStackTrace&&Error.captureStackTrace(re,z),!K)throw re;return re},Q=function(I,J,K){var re=I.length;if(!re||K&&!K.l&&re<5)return J||new n(0);var se=!J||K,pe=!K||K.i;K||(K={}),J||(J=new n(3*re));var G,B=function(Ue){var Qe=J.length;if(Ue>Qe){var Je=new n(Math.max(2*Qe,Ue));Je.set(J),J=Je}},H=K.f||0,M=K.p||0,j=K.b||0,X=K.l,q=K.d,V=K.m,ie=K.n,Y=8*re;do{if(!X){K.f=H=R(I,M,1);var ne=R(I,M+1,3);if(M+=3,!ne){var ue=I[(me=((G=M)/8|0)+(7&G&&1)+4)-4]|I[me-3]<<8,fe=me+ue;if(fe>re){pe&&z(0);break}se&&B(j+ue),J.set(I.subarray(me,fe),j),K.b=j+=ue,K.p=M=8*fe;continue}if(ne==1)X=S,q=T,V=9,ie=5;else if(ne==2){var $=R(I,M,31)+257,te=R(I,M+10,15)+4,Se=$+R(I,M+5,31)+1;M+=14;for(var Re=new n(Se),ce=new n(19),Ce=0;Ce>>4)<16)Re[Ce++]=me;else{var be=0,xe=0;for(me==16?(xe=3+R(I,M,3),M+=2,be=Re[Ce-1]):me==17?(xe=3+R(I,M,7),M+=3):me==18&&(xe=11+R(I,M,127),M+=7);xe--;)Re[Ce++]=be}}var we=Re.subarray(0,$),ge=Re.subarray($);V=A(we),ie=A(ge),X=k(we,V,1),q=k(ge,ie,1)}else z(1);if(M>Y){pe&&z(0);break}}se&&B(j+131072);for(var He=(1<>>4;if((M+=15&be)>Y){pe&&z(0);break}if(be||z(2),Fe<256)J[j++]=Fe;else{if(Fe==256){Pe=M,X=null;break}var Ve=Fe-254;if(Fe>264){var dt=i[Ce=Fe-257];Ve=R(I,M,(1<>>4;if(Ie||z(3),M+=15&Ie,ge=g[et],et>3&&(dt=r[et],ge+=b(I,M)&(1<Y){pe&&z(0);break}se&&B(j+131072);for(var Be=j+Ve;jUe.length)&&(Je=Ue.length);var ht=new(Ue instanceof s?s:Ue instanceof c?c:n)(Je-Qe);return ht.set(Ue.subarray(Qe,Je)),ht}(J,0,j)},ee=new n(0),N=typeof TextDecoder<"u"&&new TextDecoder;try{N.decode(ee,{stream:!0})}catch{}return o.convert_streams=function(I){var J=new DataView(I),K=0;function re(){var $=J.getUint16(K);return K+=2,$}function se(){var $=J.getUint32(K);return K+=4,$}function pe($){ue.setUint16(fe,$),fe+=2}function G($){ue.setUint32(fe,$),fe+=4}for(var B={signature:se(),flavor:se(),length:se(),numTables:re(),reserved:re(),totalSfntSize:se(),majorVersion:re(),minorVersion:re(),metaOffset:se(),metaLength:se(),metaOrigLength:se(),privOffset:se(),privLength:se()},H=0;Math.pow(2,H)<=B.numTables;)H++;H--;for(var M=16*Math.pow(2,H),j=16*B.numTables-M,X=12,q=[],V=0;V{let[ee,N]=Q.split("+");ee=parseInt(ee,36),N=N?parseInt(N,36):0,h.set(z+=ee,b[O]);for(let I=N;I--;)h.set(++z,b[O])})}}return h.get(R)||p}const v=1,x=2,w=3,k=4,_=[null,"isol","init","fina","medi"];function C(R){const b=new Uint8Array(R.length);let O=p,z=v,Q=-1;for(let ee=0;ee65535&&ee++)}return b}function S(R,b){const O=[];for(let Q=0;Q65535&&Q++,O.push(o.U.codeToGlyph(R,ee))}const z=R.GSUB;if(z){const{lookupList:Q,featureList:ee}=z;let N;const I=/^(rlig|liga|mset|isol|init|fina|medi|half|pres|blws)$/,J=[];ee.forEach(K=>{if(I.test(K.tag))for(let re=0;re{if(M!==-1){let X=b[M];if(!X){const{cmds:q,crds:V}=o.U.glyphToPath(R,M);let ie="",Y=0;for(let te=0,Se=q.length;te1?",":"")+V[Y++]}let ne,ue,fe,$;if(V.length){ne=ue=1/0,fe=$=-1/0;for(let te=0,Se=V.length;tefe&&(fe=Re),ce>$&&($=ce)}}else ne=fe=ue=$=0;X=b[M]={index:M,advanceWidth:R.hmtx.aWidth[M],xMin:ne,yMin:ue,xMax:fe,yMax:$,path:ie,pathCommandCount:q.length}}H!==-1&&(se+=o.U.getPairAdjustment(R,H,M)*pe),re.call(null,X,se,B),X.advanceWidth&&(se+=X.advanceWidth*pe),K&&(se+=K*J),H=M}B+=I.codePointAt(B)>65535?2:1}),se}};return N}return function(b){const O=new Uint8Array(b,0,4),z=o._bin.readASCII(O,0,4);if(z==="wOFF")b=n(b);else if(z==="wOF2")throw new Error("woff2 fonts not supported");return A(o.parse(b)[0])}}const t0=Mo({name:"Typr Font Parser",dependencies:[qp,$p,e0],init(o,n,s){const c=o(),i=n();return s(c,i)}}),Li={defaultFontURL:"https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff",sdfGlyphSize:64,sdfMargin:1/16,sdfExponent:9,textureWidth:2048},n0=new wo;function Ei(){return(self.performance||Date).now()}const Zc=Object.create(null);function ad(o,n){o=o0({},o);const s=Ei();if(o.font=s0(o.font||Li.defaultFontURL),o.text=""+o.text,o.sdfGlyphSize=o.sdfGlyphSize||Li.sdfGlyphSize,o.colorRanges!=null){let g={};for(let v in o.colorRanges)if(o.colorRanges.hasOwnProperty(v)){let x=o.colorRanges[v];typeof x!="number"&&(x=n0.set(x).getHex()),g[v]=x}o.colorRanges=g}Object.freeze(o);const{textureWidth:c,sdfExponent:i}=Li,{sdfGlyphSize:r}=o,l=c/r*4;let f=Zc[r];if(!f){const g=document.createElement("canvas");g.width=c,g.height=r*256/l,f=Zc[r]={glyphCount:0,sdfGlyphSize:r,sdfCanvas:g,sdfTexture:new vl(g,void 0,void 0,void 0,sc,sc),contextLost:!1,glyphsByFont:new Map},f.sdfTexture.generateMipmaps=!1,r0(f)}const{sdfTexture:u,sdfCanvas:p}=f;let h=f.glyphsByFont.get(o.font);h||f.glyphsByFont.set(o.font,h=new Map),l0(o).then(g=>{const{glyphIds:v,glyphPositions:x,fontSize:w,unitsPerEm:k,timings:_}=g,C=[],S=new Float32Array(v.length*4),T=w/k;let A=0,R=0;const b=Ei();v.forEach((N,I)=>{let J=h.get(N);if(!J){const{path:pe,pathBounds:G}=g.glyphData[N],B=Math.max(G[2]-G[0],G[3]-G[1])/r*(Li.sdfMargin*r+.5),H=f.glyphCount++,M=[G[0]-B,G[1]-B,G[2]+B,G[3]+B];h.set(N,J={path:pe,atlasIndex:H,sdfViewBox:M}),C.push(J)}const{sdfViewBox:K}=J,re=x[R++],se=x[R++];S[A++]=re+K[0]*T,S[A++]=se+K[1]*T,S[A++]=re+K[2]*T,S[A++]=se+K[3]*T,v[I]=J.atlasIndex}),_.quads=(_.quads||0)+(Ei()-b);const O=Ei();_.sdf={};const z=p.height,Q=Math.ceil(f.glyphCount/l),ee=Math.pow(2,Math.ceil(Math.log2(Q*r)));ee>z&&(console.info(`Increasing SDF texture size ${z}->${ee}`),Jp(p,c,ee),u.dispose()),Promise.all(C.map(N=>ld(N,f,o.gpuAccelerateSDF).then(({timing:I})=>{_.sdf[N.atlasIndex]=I}))).then(()=>{C.length&&!f.contextLost&&(ud(f),u.needsUpdate=!0),_.sdfTotal=Ei()-O,_.total=Ei()-s,n(Object.freeze({parameters:o,sdfTexture:u,sdfGlyphSize:r,sdfExponent:i,glyphBounds:S,glyphAtlasIndices:v,glyphColors:g.glyphColors,caretPositions:g.caretPositions,caretHeight:g.caretHeight,chunkedBounds:g.chunkedBounds,ascender:g.ascender,descender:g.descender,lineHeight:g.lineHeight,capHeight:g.capHeight,xHeight:g.xHeight,topBaseline:g.topBaseline,blockBounds:g.blockBounds,visibleBounds:g.visibleBounds,timings:g.timings}))})}),Promise.resolve().then(()=>{f.contextLost||Kp(p)})}function ld({path:o,atlasIndex:n,sdfViewBox:s},{sdfGlyphSize:c,sdfCanvas:i,contextLost:r},l){if(r)return Promise.resolve({timing:-1});const{textureWidth:f,sdfExponent:u}=Li,p=Math.max(s[2]-s[0],s[3]-s[1]),h=Math.floor(n/4),g=h%(f/c)*c,v=Math.floor(h/(f/c))*c,x=n%4;return Hp(c,c,o,s,p,u,i,g,v,x,l)}function r0(o){const n=o.sdfCanvas;n.addEventListener("webglcontextlost",s=>{console.log("Context Lost",s),s.preventDefault(),o.contextLost=!0}),n.addEventListener("webglcontextrestored",s=>{console.log("Context Restored",s),o.contextLost=!1;const c=[];o.glyphsByFont.forEach(i=>{i.forEach(r=>{c.push(ld(r,o,!0))})}),Promise.all(c).then(()=>{ud(o),o.sdfTexture.needsUpdate=!0})})}function i0({font:o,characters:n,sdfGlyphSize:s},c){let i=Array.isArray(n)?n.join(` +`):""+n;ad({font:o,sdfGlyphSize:s,text:i},c)}function o0(o,n){for(let s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);return o}let Ts;function s0(o){return Ts||(Ts=typeof document>"u"?{}:document.createElement("a")),Ts.href=o,Ts.href}function ud(o){if(typeof createImageBitmap!="function"){console.info("Safari<15: applying SDF canvas workaround");const{sdfCanvas:n,sdfTexture:s}=o,{width:c,height:i}=n,r=o.sdfCanvas.getContext("webgl");let l=s.image.data;(!l||l.length!==c*i*4)&&(l=new Uint8Array(c*i*4),s.image={width:c,height:i,data:l},s.flipY=!1,s.isDataTexture=!0),r.readPixels(0,0,c,i,r.RGBA,r.UNSIGNED_BYTE,l)}}const a0=Mo({name:"Typesetter",dependencies:[Li,t0,Gp,Ip],init(o,n,s,c){const{defaultFontURL:i}=o;return s(n,c(),{defaultFontURL:i})}}),l0=Mo({name:"Typesetter",dependencies:[a0],init(o){return function(n){return new Promise(s=>{o.typeset(n,s)})}},getTransferables(o){const n=[o.glyphPositions.buffer,o.glyphIds.buffer];return o.caretPositions&&n.push(o.caretPositions.buffer),o.glyphColors&&n.push(o.glyphColors.buffer),n}}),Xc={};function u0(o){let n=Xc[o];if(!n){const s=new Cl(1,1,o,o),c=s.clone(),i=s.attributes,r=c.attributes,l=new mf,f=i.uv.count;for(let u=0;u{l.setAttribute(u,new el([...i[u].array,...r[u].array],i[u].itemSize))}),l.setIndex([...s.index.array,...c.index.array.map(u=>u+f)]),l.translate(.5,.5,0),n=Xc[o]=l}return n}const c0="aTroikaGlyphBounds",Qc="aTroikaGlyphIndex",f0="aTroikaGlyphColor";class d0 extends gf{constructor(){super(),this.detail=1,this.curveRadius=0,this.groups=[{start:0,count:1/0,materialIndex:0},{start:0,count:1/0,materialIndex:1}],this.boundingSphere=new wl,this.boundingBox=new Is}computeBoundingSphere(){}computeBoundingBox(){}setSide(n){const s=this.getIndex().count;this.setDrawRange(n===E1?s/2:0,n===Sl?s:s/2)}set detail(n){if(n!==this._detail){this._detail=n,(typeof n!="number"||n<1)&&(n=1);let s=u0(n);["position","normal","uv"].forEach(c=>{this.attributes[c]=s.attributes[c].clone()}),this.setIndex(s.getIndex().clone())}}get detail(){return this._detail}set curveRadius(n){n!==this._curveRadius&&(this._curveRadius=n,this._updateBounds())}get curveRadius(){return this._curveRadius}updateGlyphs(n,s,c,i,r){Qa(this,c0,n,4),Qa(this,Qc,s,1),Qa(this,f0,r,3),this._blockBounds=c,this._chunkedBounds=i,this.instanceCount=s.length,this._updateBounds()}_updateBounds(){const n=this._blockBounds;if(n){const{curveRadius:s,boundingBox:c}=this;if(s){const{PI:i,floor:r,min:l,max:f,sin:u,cos:p}=Math,h=i/2,g=i*2,v=Math.abs(s),x=n[0]/v,w=n[2]/v,k=r((x+h)/g)!==r((w+h)/g)?-v:l(u(x)*v,u(w)*v),_=r((x-h)/g)!==r((w-h)/g)?v:f(u(x)*v,u(w)*v),C=r((x+i)/g)!==r((w+i)/g)?v*2:f(v-p(x)*v,v-p(w)*v);c.min.set(k,n[1],s<0?-C:0),c.max.set(_,n[3],s<0?0:C)}else c.min.set(n[0],n[1],0),c.max.set(n[2],n[3],0);c.getBoundingSphere(this.boundingSphere)}}applyClipRect(n){let s=this.getAttribute(Qc).count,c=this._chunkedBounds;if(c)for(let i=c.length;i--;){s=c[i].end;let r=c[i].rect;if(r[1]n.y&&r[0]n.x)break}this.instanceCount=s}}function Qa(o,n,s,c){const i=o.getAttribute(n);s?i&&i.array.length===s.length?(i.array.set(s),i.needsUpdate=!0):(o.setAttribute(n,new k1(s,c)),delete o._maxInstanceCount,o.dispose()):i&&o.deleteAttribute(n)}const h0=` +uniform vec2 uTroikaSDFTextureSize; +uniform float uTroikaSDFGlyphSize; +uniform vec4 uTroikaTotalBounds; +uniform vec4 uTroikaClipRect; +uniform mat3 uTroikaOrient; +uniform bool uTroikaUseGlyphColors; +uniform float uTroikaDistanceOffset; +uniform float uTroikaBlurRadius; +uniform vec2 uTroikaPositionOffset; +uniform float uTroikaCurveRadius; +attribute vec4 aTroikaGlyphBounds; +attribute float aTroikaGlyphIndex; +attribute vec3 aTroikaGlyphColor; +varying vec2 vTroikaGlyphUV; +varying vec4 vTroikaTextureUVBounds; +varying float vTroikaTextureChannel; +varying vec3 vTroikaGlyphColor; +varying vec2 vTroikaGlyphDimensions; +`,p0=` +vec4 bounds = aTroikaGlyphBounds; +bounds.xz += uTroikaPositionOffset.x; +bounds.yw -= uTroikaPositionOffset.y; + +vec4 outlineBounds = vec4( + bounds.xy - uTroikaDistanceOffset - uTroikaBlurRadius, + bounds.zw + uTroikaDistanceOffset + uTroikaBlurRadius +); +vec4 clippedBounds = vec4( + clamp(outlineBounds.xy, uTroikaClipRect.xy, uTroikaClipRect.zw), + clamp(outlineBounds.zw, uTroikaClipRect.xy, uTroikaClipRect.zw) +); + +vec2 clippedXY = (mix(clippedBounds.xy, clippedBounds.zw, position.xy) - bounds.xy) / (bounds.zw - bounds.xy); + +position.xy = mix(bounds.xy, bounds.zw, clippedXY); + +uv = (position.xy - uTroikaTotalBounds.xy) / (uTroikaTotalBounds.zw - uTroikaTotalBounds.xy); + +float rad = uTroikaCurveRadius; +if (rad != 0.0) { + float angle = position.x / rad; + position.xz = vec2(sin(angle) * rad, rad - cos(angle) * rad); + normal.xz = vec2(sin(angle), cos(angle)); +} + +position = uTroikaOrient * position; +normal = uTroikaOrient * normal; + +vTroikaGlyphUV = clippedXY.xy; +vTroikaGlyphDimensions = vec2(bounds[2] - bounds[0], bounds[3] - bounds[1]); + + +float txCols = uTroikaSDFTextureSize.x / uTroikaSDFGlyphSize; +vec2 txUvPerSquare = uTroikaSDFGlyphSize / uTroikaSDFTextureSize; +vec2 txStartUV = txUvPerSquare * vec2( + mod(floor(aTroikaGlyphIndex / 4.0), txCols), + floor(floor(aTroikaGlyphIndex / 4.0) / txCols) +); +vTroikaTextureUVBounds = vec4(txStartUV, vec2(txStartUV) + txUvPerSquare); +vTroikaTextureChannel = mod(aTroikaGlyphIndex, 4.0); +`,m0=` +uniform sampler2D uTroikaSDFTexture; +uniform vec2 uTroikaSDFTextureSize; +uniform float uTroikaSDFGlyphSize; +uniform float uTroikaSDFExponent; +uniform float uTroikaDistanceOffset; +uniform float uTroikaFillOpacity; +uniform float uTroikaOutlineOpacity; +uniform float uTroikaBlurRadius; +uniform vec3 uTroikaStrokeColor; +uniform float uTroikaStrokeWidth; +uniform float uTroikaStrokeOpacity; +uniform bool uTroikaSDFDebug; +varying vec2 vTroikaGlyphUV; +varying vec4 vTroikaTextureUVBounds; +varying float vTroikaTextureChannel; +varying vec2 vTroikaGlyphDimensions; + +float troikaSdfValueToSignedDistance(float alpha) { + // Inverse of exponential encoding in webgl-sdf-generator + + float maxDimension = max(vTroikaGlyphDimensions.x, vTroikaGlyphDimensions.y); + float absDist = (1.0 - pow(2.0 * (alpha > 0.5 ? 1.0 - alpha : alpha), 1.0 / uTroikaSDFExponent)) * maxDimension; + float signedDist = absDist * (alpha > 0.5 ? -1.0 : 1.0); + return signedDist; +} + +float troikaGlyphUvToSdfValue(vec2 glyphUV) { + vec2 textureUV = mix(vTroikaTextureUVBounds.xy, vTroikaTextureUVBounds.zw, glyphUV); + vec4 rgba = texture2D(uTroikaSDFTexture, textureUV); + float ch = floor(vTroikaTextureChannel + 0.5); //NOTE: can't use round() in WebGL1 + return ch == 0.0 ? rgba.r : ch == 1.0 ? rgba.g : ch == 2.0 ? rgba.b : rgba.a; +} + +float troikaGlyphUvToDistance(vec2 uv) { + return troikaSdfValueToSignedDistance(troikaGlyphUvToSdfValue(uv)); +} + +float troikaGetAADist() { + + #if defined(GL_OES_standard_derivatives) || __VERSION__ >= 300 + return length(fwidth(vTroikaGlyphUV * vTroikaGlyphDimensions)) * 0.5; + #else + return vTroikaGlyphDimensions.x / 64.0; + #endif +} + +float troikaGetFragDistValue() { + vec2 clampedGlyphUV = clamp(vTroikaGlyphUV, 0.5 / uTroikaSDFGlyphSize, 1.0 - 0.5 / uTroikaSDFGlyphSize); + float distance = troikaGlyphUvToDistance(clampedGlyphUV); + + // Extrapolate distance when outside bounds: + distance += clampedGlyphUV == vTroikaGlyphUV ? 0.0 : + length((vTroikaGlyphUV - clampedGlyphUV) * vTroikaGlyphDimensions); + + + + return distance; +} + +float troikaGetEdgeAlpha(float distance, float distanceOffset, float aaDist) { + #if defined(IS_DEPTH_MATERIAL) || defined(IS_DISTANCE_MATERIAL) + float alpha = step(-distanceOffset, -distance); + #else + + float alpha = smoothstep( + distanceOffset + aaDist, + distanceOffset - aaDist, + distance + ); + #endif + + return alpha; +} +`,g0=` +float aaDist = troikaGetAADist(); +float fragDistance = troikaGetFragDistValue(); +float edgeAlpha = uTroikaSDFDebug ? + troikaGlyphUvToSdfValue(vTroikaGlyphUV) : + troikaGetEdgeAlpha(fragDistance, uTroikaDistanceOffset, max(aaDist, uTroikaBlurRadius)); + +#if !defined(IS_DEPTH_MATERIAL) && !defined(IS_DISTANCE_MATERIAL) +vec4 fillRGBA = gl_FragColor; +fillRGBA.a *= uTroikaFillOpacity; +vec4 strokeRGBA = uTroikaStrokeWidth == 0.0 ? fillRGBA : vec4(uTroikaStrokeColor, uTroikaStrokeOpacity); +if (fillRGBA.a == 0.0) fillRGBA.rgb = strokeRGBA.rgb; +gl_FragColor = mix(fillRGBA, strokeRGBA, smoothstep( + -uTroikaStrokeWidth - aaDist, + -uTroikaStrokeWidth + aaDist, + fragDistance +)); +gl_FragColor.a *= edgeAlpha; +#endif + +if (edgeAlpha == 0.0) { + discard; +} +`;function v0(o){const n=dl(o,{chained:!0,extensions:{derivatives:!0},uniforms:{uTroikaSDFTexture:{value:null},uTroikaSDFTextureSize:{value:new $r},uTroikaSDFGlyphSize:{value:0},uTroikaSDFExponent:{value:0},uTroikaTotalBounds:{value:new Ai(0,0,0,0)},uTroikaClipRect:{value:new Ai(0,0,0,0)},uTroikaDistanceOffset:{value:0},uTroikaOutlineOpacity:{value:0},uTroikaFillOpacity:{value:1},uTroikaPositionOffset:{value:new $r},uTroikaCurveRadius:{value:0},uTroikaBlurRadius:{value:0},uTroikaStrokeWidth:{value:0},uTroikaStrokeColor:{value:new wo},uTroikaStrokeOpacity:{value:1},uTroikaOrient:{value:new T1},uTroikaUseGlyphColors:{value:!0},uTroikaSDFDebug:{value:!1}},vertexDefs:h0,vertexTransform:p0,fragmentDefs:m0,fragmentColorTransform:g0,customRewriter({vertexShader:s,fragmentShader:c}){let i=/\buniform\s+vec3\s+diffuse\b/;return i.test(c)&&(c=c.replace(i,"varying vec3 vTroikaGlyphColor").replace(/\bdiffuse\b/g,"vTroikaGlyphColor"),i.test(s)||(s=s.replace(od,`uniform vec3 diffuse; +$& +vTroikaGlyphColor = uTroikaUseGlyphColors ? aTroikaGlyphColor / 255.0 : diffuse; +`))),{vertexShader:s,fragmentShader:c}}});return n.transparent=!0,Object.defineProperties(n,{isTroikaTextMaterial:{value:!0},shadowSide:{get(){return this.side},set(){}}}),n}const bl=new P1({color:16777215,side:Sl,transparent:!0}),Yc=8421504,Kc=new vf,Ps=new ct,Ya=new ct,mo=[],y0=new ct,Ka="+x+y";function Jc(o){return Array.isArray(o)?o[0]:o}let cd=()=>{const o=new Co(new Cl(1,1),bl);return cd=()=>o,o},fd=()=>{const o=new Co(new Cl(1,1,32,1),bl);return fd=()=>o,o};const x0={type:"syncstart"},S0={type:"synccomplete"},dd=["font","fontSize","letterSpacing","lineHeight","maxWidth","overflowWrap","text","direction","textAlign","textIndent","whiteSpace","anchorX","anchorY","colorRanges","sdfGlyphSize"],w0=dd.concat("material","color","depthOffset","clipRect","curveRadius","orientation","glyphGeometryDetail");let hd=class extends Co{constructor(){const n=new d0;super(n,null),this.text="",this.anchorX=0,this.anchorY=0,this.curveRadius=0,this.direction="auto",this.font=null,this.fontSize=.1,this.letterSpacing=0,this.lineHeight="normal",this.maxWidth=1/0,this.overflowWrap="normal",this.textAlign="left",this.textIndent=0,this.whiteSpace="normal",this.material=null,this.color=null,this.colorRanges=null,this.outlineWidth=0,this.outlineColor=0,this.outlineOpacity=1,this.outlineBlur=0,this.outlineOffsetX=0,this.outlineOffsetY=0,this.strokeWidth=0,this.strokeColor=Yc,this.strokeOpacity=1,this.fillOpacity=1,this.depthOffset=0,this.clipRect=null,this.orientation=Ka,this.glyphGeometryDetail=1,this.sdfGlyphSize=null,this.gpuAccelerateSDF=!0,this.debugSDF=!1}sync(n){this._needsSync&&(this._needsSync=!1,this._isSyncing?(this._queuedSyncs||(this._queuedSyncs=[])).push(n):(this._isSyncing=!0,this.dispatchEvent(x0),ad({text:this.text,font:this.font,fontSize:this.fontSize||.1,letterSpacing:this.letterSpacing||0,lineHeight:this.lineHeight||"normal",maxWidth:this.maxWidth,direction:this.direction||"auto",textAlign:this.textAlign,textIndent:this.textIndent,whiteSpace:this.whiteSpace,overflowWrap:this.overflowWrap,anchorX:this.anchorX,anchorY:this.anchorY,colorRanges:this.colorRanges,includeCaretPositions:!0,sdfGlyphSize:this.sdfGlyphSize,gpuAccelerateSDF:this.gpuAccelerateSDF},s=>{this._isSyncing=!1,this._textRenderInfo=s,this.geometry.updateGlyphs(s.glyphBounds,s.glyphAtlasIndices,s.blockBounds,s.chunkedBounds,s.glyphColors);const c=this._queuedSyncs;c&&(this._queuedSyncs=null,this._needsSync=!0,this.sync(()=>{c.forEach(i=>i&&i())})),this.dispatchEvent(S0),n&&n()})))}onBeforeRender(n,s,c,i,r,l){this.sync(),r.isTroikaTextMaterial&&this._prepareForRender(r),r._hadOwnSide=r.hasOwnProperty("side"),this.geometry.setSide(r._actualSide=r.side),r.side=_1}onAfterRender(n,s,c,i,r,l){r._hadOwnSide?r.side=r._actualSide:delete r.side}dispose(){this.geometry.dispose()}get textRenderInfo(){return this._textRenderInfo||null}get material(){let n=this._derivedMaterial;const s=this._baseMaterial||this._defaultMaterial||(this._defaultMaterial=bl.clone());if((!n||n.baseMaterial!==s)&&(n=this._derivedMaterial=v0(s),s.addEventListener("dispose",function c(){s.removeEventListener("dispose",c),n.dispose()})),this.outlineWidth||this.outlineBlur||this.outlineOffsetX||this.outlineOffsetY){let c=n._outlineMtl;return c||(c=n._outlineMtl=Object.create(n,{id:{value:n.id+.1}}),c.isTextOutlineMaterial=!0,c.depthWrite=!1,c.map=null,n.addEventListener("dispose",function i(){n.removeEventListener("dispose",i),c.dispose()})),[c,n]}else return n}set material(n){n&&n.isTroikaTextMaterial?(this._derivedMaterial=n,this._baseMaterial=n.baseMaterial):this._baseMaterial=n}get glyphGeometryDetail(){return this.geometry.detail}set glyphGeometryDetail(n){this.geometry.detail=n}get curveRadius(){return this.geometry.curveRadius}set curveRadius(n){this.geometry.curveRadius=n}get customDepthMaterial(){return Jc(this.material).getDepthMaterial()}get customDistanceMaterial(){return Jc(this.material).getDistanceMaterial()}_prepareForRender(n){const s=n.isTextOutlineMaterial,c=n.uniforms,i=this.textRenderInfo;if(i){const{sdfTexture:f,blockBounds:u}=i;c.uTroikaSDFTexture.value=f,c.uTroikaSDFTextureSize.value.set(f.image.width,f.image.height),c.uTroikaSDFGlyphSize.value=i.sdfGlyphSize,c.uTroikaSDFExponent.value=i.sdfExponent,c.uTroikaTotalBounds.value.fromArray(u),c.uTroikaUseGlyphColors.value=!s&&!!i.glyphColors;let p=0,h=0,g=0,v,x,w,k=0,_=0;if(s){let{outlineWidth:S,outlineOffsetX:T,outlineOffsetY:A,outlineBlur:R,outlineOpacity:b}=this;p=this._parsePercent(S)||0,h=Math.max(0,this._parsePercent(R)||0),v=b,k=this._parsePercent(T)||0,_=this._parsePercent(A)||0}else g=Math.max(0,this._parsePercent(this.strokeWidth)||0),g&&(w=this.strokeColor,c.uTroikaStrokeColor.value.set(w??Yc),x=this.strokeOpacity,x==null&&(x=1)),v=this.fillOpacity;c.uTroikaDistanceOffset.value=p,c.uTroikaPositionOffset.value.set(k,_),c.uTroikaBlurRadius.value=h,c.uTroikaStrokeWidth.value=g,c.uTroikaStrokeOpacity.value=x,c.uTroikaFillOpacity.value=v??1,c.uTroikaCurveRadius.value=this.curveRadius||0;let C=this.clipRect;if(C&&Array.isArray(C)&&C.length===4)c.uTroikaClipRect.value.fromArray(C);else{const S=(this.fontSize||.1)*100;c.uTroikaClipRect.value.set(u[0]-S,u[1]-S,u[2]+S,u[3]+S)}this.geometry.applyClipRect(c.uTroikaClipRect.value)}c.uTroikaSDFDebug.value=!!this.debugSDF,n.polygonOffset=!!this.depthOffset,n.polygonOffsetFactor=n.polygonOffsetUnits=this.depthOffset||0;const r=s?this.outlineColor||0:this.color;if(r==null)delete n.color;else{const f=n.hasOwnProperty("color")?n.color:n.color=new wo;(r!==f._input||typeof r=="object")&&f.set(f._input=r)}let l=this.orientation||Ka;if(l!==n._orientation){let f=c.uTroikaOrient.value;l=l.replace(/[^-+xyz]/g,"");let u=l!==Ka&&l.match(/^([-+])([xyz])([-+])([xyz])$/);if(u){let[,p,h,g,v]=u;Ps.set(0,0,0)[h]=p==="-"?1:-1,Ya.set(0,0,0)[v]=g==="-"?-1:1,Kc.lookAt(y0,Ps.cross(Ya),Ya),f.setFromMatrix4(Kc)}else f.identity();n._orientation=l}}_parsePercent(n){if(typeof n=="string"){let s=n.match(/^(-?[\d.]+)%$/),c=s?parseFloat(s[1]):NaN;n=(isNaN(c)?0:c/100)*this.fontSize}return n}localPositionToTextCoords(n,s=new $r){s.copy(n);const c=this.curveRadius;return c&&(s.x=Math.atan2(n.x,Math.abs(c)-Math.abs(n.z))*Math.abs(c)),s}worldPositionToTextCoords(n,s=new $r){return Ps.copy(n),this.localPositionToTextCoords(this.worldToLocal(Ps),s)}raycast(n,s){const{textRenderInfo:c,curveRadius:i}=this;if(c){const r=c.blockBounds,l=i?fd():cd(),f=l.geometry,{position:u,uv:p}=f.attributes;for(let h=0;h{this[c]=n[c]}),this}clone(){return new this.constructor().copy(this)}};dd.forEach(o=>{const n="_private_"+o;Object.defineProperty(hd.prototype,o,{get(){return this[n]},set(s){s!==this[n]&&(this[n]=s,this._needsSync=!0)}})});function C0(o,n,s=(c,i)=>c===i){if(o===n)return!0;if(!o||!n)return!1;const c=o.length;if(n.length!==c)return!1;for(let i=0;ii.response=r).then(()=>{c.lifespan&&c.lifespan>0&&setTimeout(()=>{const r=Ms.indexOf(i);r!==-1&&Ms.splice(r,1)},c.lifespan)}).catch(r=>i.error=r)};if(Ms.push(i),!s)throw i.promise}const E0=(o,n,s)=>_0(o,n,!1,s),qc=P.forwardRef(({anchorX:o="center",anchorY:n="middle",font:s,fontSize:c=1,children:i,characters:r,onSync:l,...f},u)=>{const p=Ii(({invalidate:x})=>x),[h]=P.useState(()=>new hd),[g,v]=P.useMemo(()=>{const x=[];let w="";return P.Children.forEach(i,k=>{typeof k=="string"||typeof k=="number"?w+=k:x.push(k)}),[x,w]},[i]);return E0(()=>new Promise(x=>i0({font:s,characters:r},x)),["troika-text",s,r]),P.useLayoutEffect(()=>void h.sync(()=>{p(),l&&l(h)})),P.useEffect(()=>()=>h.dispose(),[h]),P.createElement("primitive",qr({object:h,ref:u,font:s,text:v,anchorX:o,anchorY:n,fontSize:c},f),g)});function pd(o){const n=o+"Geometry";return P.forwardRef(({args:s,children:c,...i},r)=>P.createElement("mesh",qr({ref:r},i),P.createElement(n,{attach:"geometry",args:s}),c))}const Rm=pd("circle"),Am=pd("plane");var $e="colors",nn="sizes",ye="space",k0={gap:ye,gridGap:ye,columnGap:ye,gridColumnGap:ye,rowGap:ye,gridRowGap:ye,inset:ye,insetBlock:ye,insetBlockEnd:ye,insetBlockStart:ye,insetInline:ye,insetInlineEnd:ye,insetInlineStart:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockEnd:ye,marginBlockStart:ye,marginInline:ye,marginInlineEnd:ye,marginInlineStart:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockEnd:ye,paddingBlockStart:ye,paddingInline:ye,paddingInlineEnd:ye,paddingInlineStart:ye,top:ye,right:ye,bottom:ye,left:ye,scrollMargin:ye,scrollMarginTop:ye,scrollMarginRight:ye,scrollMarginBottom:ye,scrollMarginLeft:ye,scrollMarginX:ye,scrollMarginY:ye,scrollMarginBlock:ye,scrollMarginBlockEnd:ye,scrollMarginBlockStart:ye,scrollMarginInline:ye,scrollMarginInlineEnd:ye,scrollMarginInlineStart:ye,scrollPadding:ye,scrollPaddingTop:ye,scrollPaddingRight:ye,scrollPaddingBottom:ye,scrollPaddingLeft:ye,scrollPaddingX:ye,scrollPaddingY:ye,scrollPaddingBlock:ye,scrollPaddingBlockEnd:ye,scrollPaddingBlockStart:ye,scrollPaddingInline:ye,scrollPaddingInlineEnd:ye,scrollPaddingInlineStart:ye,fontSize:"fontSizes",background:$e,backgroundColor:$e,backgroundImage:$e,borderImage:$e,border:$e,borderBlock:$e,borderBlockEnd:$e,borderBlockStart:$e,borderBottom:$e,borderBottomColor:$e,borderColor:$e,borderInline:$e,borderInlineEnd:$e,borderInlineStart:$e,borderLeft:$e,borderLeftColor:$e,borderRight:$e,borderRightColor:$e,borderTop:$e,borderTopColor:$e,caretColor:$e,color:$e,columnRuleColor:$e,fill:$e,outline:$e,outlineColor:$e,stroke:$e,textDecorationColor:$e,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:nn,minBlockSize:nn,maxBlockSize:nn,inlineSize:nn,minInlineSize:nn,maxInlineSize:nn,width:nn,minWidth:nn,maxWidth:nn,height:nn,minHeight:nn,maxHeight:nn,flexBasis:nn,gridTemplateColumns:nn,gridTemplateRows:nn,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},T0=(o,n)=>typeof n=="function"?{"()":Function.prototype.toString.call(n)}:n,Oi=()=>{const o=Object.create(null);return(n,s,...c)=>{const i=(r=>JSON.stringify(r,T0))(n);return i in o?o[i]:o[i]=s(n,...c)}},Kr=Symbol.for("sxs.internal"),Ll=(o,n)=>Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)),$c=o=>{for(const n in o)return!0;return!1},{hasOwnProperty:P0}=Object.prototype,pl=o=>o.includes("-")?o:o.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),M0=/\s+(?![^()]*\))/,ki=o=>n=>o(...typeof n=="string"?String(n).split(M0):[n]),ef={appearance:o=>({WebkitAppearance:o,appearance:o}),backfaceVisibility:o=>({WebkitBackfaceVisibility:o,backfaceVisibility:o}),backdropFilter:o=>({WebkitBackdropFilter:o,backdropFilter:o}),backgroundClip:o=>({WebkitBackgroundClip:o,backgroundClip:o}),boxDecorationBreak:o=>({WebkitBoxDecorationBreak:o,boxDecorationBreak:o}),clipPath:o=>({WebkitClipPath:o,clipPath:o}),content:o=>({content:o.includes('"')||o.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(o)?o:`"${o}"`}),hyphens:o=>({WebkitHyphens:o,hyphens:o}),maskImage:o=>({WebkitMaskImage:o,maskImage:o}),maskSize:o=>({WebkitMaskSize:o,maskSize:o}),tabSize:o=>({MozTabSize:o,tabSize:o}),textSizeAdjust:o=>({WebkitTextSizeAdjust:o,textSizeAdjust:o}),userSelect:o=>({WebkitUserSelect:o,userSelect:o}),marginBlock:ki((o,n)=>({marginBlockStart:o,marginBlockEnd:n||o})),marginInline:ki((o,n)=>({marginInlineStart:o,marginInlineEnd:n||o})),maxSize:ki((o,n)=>({maxBlockSize:o,maxInlineSize:n||o})),minSize:ki((o,n)=>({minBlockSize:o,minInlineSize:n||o})),paddingBlock:ki((o,n)=>({paddingBlockStart:o,paddingBlockEnd:n||o})),paddingInline:ki((o,n)=>({paddingInlineStart:o,paddingInlineEnd:n||o}))},Ja=/([\d.]+)([^]*)/,b0=(o,n)=>o.length?o.reduce((s,c)=>(s.push(...n.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(c)&&/&.*&/.test(i)?`:is(${c})`:c):c+" "+i)),s),[]):n,L0=(o,n)=>o in U0&&typeof n=="string"?n.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(s,c,i,r)=>c+(i==="stretch"?`-moz-available${r};${pl(o)}:${c}-webkit-fill-available`:`-moz-fit-content${r};${pl(o)}:${c}fit-content`)+r):String(n),U0={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},mr=o=>o?o+"-":"",md=(o,n,s)=>o.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(c,i,r,l,f)=>l=="$"==!!r?c:(i||l=="--"?"calc(":"")+"var(--"+(l==="$"?mr(n)+(f.includes("$")?"":mr(s))+f.replace(/\$/g,"-"):f)+")"+(i||l=="--"?"*"+(i||"")+(r||"1")+")":"")),R0=/\s*,\s*(?![^()]*\))/,A0=Object.prototype.toString,Ui=(o,n,s,c,i)=>{let r,l,f;const u=(p,h,g)=>{let v,x;const w=k=>{for(v in k){const S=v.charCodeAt(0)===64,T=S&&Array.isArray(k[v])?k[v]:[k[v]];for(x of T){const A=/[A-Z]/.test(C=v)?C:C.replace(/-[^]/g,b=>b[1].toUpperCase()),R=typeof x=="object"&&x&&x.toString===A0&&(!c.utils[A]||!h.length);if(A in c.utils&&!R){const b=c.utils[A];if(b!==l){l=b,w(b(x)),l=null;continue}}else if(A in ef){const b=ef[A];if(b!==f){f=b,w(b(x)),f=null;continue}}if(S&&(_=v.slice(1)in c.media?"@media "+c.media[v.slice(1)]:v,v=_.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(b,O,z,Q,ee,N)=>{const I=Ja.test(O),J=.0625*(I?-1:1),[K,re]=I?[Q,O]:[O,Q];return"("+(z[0]==="="?"":z[0]===">"===I?"max-":"min-")+K+":"+(z[0]!=="="&&z.length===1?re.replace(Ja,(se,pe,G)=>Number(pe)+J*(z===">"?1:-1)+G):re)+(ee?") and ("+(ee[0]===">"?"min-":"max-")+K+":"+(ee.length===1?N.replace(Ja,(se,pe,G)=>Number(pe)+J*(ee===">"?-1:1)+G):N):"")+")"})),R){const b=S?g.concat(v):[...g],O=S?[...h]:b0(h,v.split(R0));r!==void 0&&i(tf(...r)),r=void 0,u(x,O,b)}else r===void 0&&(r=[[],h,g]),v=S||v.charCodeAt(0)!==36?v:`--${mr(c.prefix)}${v.slice(1).replace(/\$/g,"-")}`,x=R?x:typeof x=="number"?x&&A in D0?String(x)+"px":String(x):md(L0(A,x??""),c.prefix,c.themeMap[A]),r[0].push(`${S?`${v} `:`${pl(v)}:`}${x}`)}}var _,C};w(p),r!==void 0&&i(tf(...r)),r=void 0};u(o,n,s)},tf=(o,n,s)=>`${s.map(c=>`${c}{`).join("")}${n.length?`${n.join(",")}{`:""}${o.join(";")}${n.length?"}":""}${Array(s.length?s.length+1:0).join("}")}`,D0={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},nf=o=>String.fromCharCode(o+(o>25?39:97)),Jr=o=>(n=>{let s,c="";for(s=Math.abs(n);s>52;s=s/52|0)c=nf(s%52)+c;return nf(s%52)+c})(((n,s)=>{let c=s.length;for(;c;)n=33*n^s.charCodeAt(--c);return n})(5381,JSON.stringify(o))>>>0),yo=["themed","global","styled","onevar","resonevar","allvar","inline"],I0=o=>{if(o.href&&!o.href.startsWith(location.origin))return!1;try{return!!o.cssRules}catch{return!1}},O0=o=>{let n;const s=()=>{const{cssRules:i}=n.sheet;return[].map.call(i,(r,l)=>{const{cssText:f}=r;let u="";if(f.startsWith("--sxs"))return"";if(i[l-1]&&(u=i[l-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const p in n.rules)if(n.rules[p].group===r)return`--sxs{--sxs:${[...n.rules[p].cache].join(" ")}}${f}`;return r.cssRules.length?`${u}${f}`:""}return f}).join("")},c=()=>{if(n){const{rules:f,sheet:u}=n;if(!u.deleteRule){for(;Object(Object(u.cssRules)[0]).type===3;)u.cssRules.splice(0,1);u.cssRules=[]}for(const p in f)delete f[p]}const i=Object(o).styleSheets||[];for(const f of i)if(I0(f)){for(let u=0,p=f.cssRules;p[u];++u){const h=Object(p[u]);if(h.type!==1)continue;const g=Object(p[u+1]);if(g.type!==4)continue;++u;const{cssText:v}=h;if(!v.startsWith("--sxs"))continue;const x=v.slice(14,-3).trim().split(/\s+/),w=yo[x[0]];w&&(n||(n={sheet:f,reset:c,rules:{},toString:s}),n.rules[w]={group:g,index:u,cache:new Set(x)})}if(n)break}if(!n){const f=(u,p)=>({type:p,cssRules:[],insertRule(h,g){this.cssRules.splice(g,0,f(h,{import:3,undefined:1}[(h.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return u==="@media{}"?`@media{${[].map.call(this.cssRules,h=>h.cssText).join("")}}`:u}});n={sheet:o?(o.head||o).appendChild(document.createElement("style")).sheet:f("","text/css"),rules:{},reset:c,toString:s}}const{sheet:r,rules:l}=n;for(let f=yo.length-1;f>=0;--f){const u=yo[f];if(!l[u]){const p=yo[f+1],h=l[p]?l[p].index:r.cssRules.length;r.insertRule("@media{}",h),r.insertRule(`--sxs{--sxs:${f}}`,h),l[u]={group:r.cssRules[h+1],index:h,cache:new Set([f])}}F0(l[u])}};return c(),n},F0=o=>{const n=o.group;let s=n.cssRules.length;o.apply=c=>{try{n.insertRule(c,s),++s}catch{}}},go=Symbol(),j0=Oi(),rf=(o,n)=>j0(o,()=>(...s)=>{let c={type:null,composers:new Set};for(const i of s)if(i!=null)if(i[Kr]){c.type==null&&(c.type=i[Kr].type);for(const r of i[Kr].composers)c.composers.add(r)}else i.constructor!==Object||i.$$typeof?c.type==null&&(c.type=i):c.composers.add(z0(i,o));return c.type==null&&(c.type="span"),c.composers.size||c.composers.add(["PJLV",{},[],[],{},[]]),B0(o,c,n)}),z0=({variants:o,compoundVariants:n,defaultVariants:s,...c},i)=>{const r=`${mr(i.prefix)}c-${Jr(c)}`,l=[],f=[],u=Object.create(null),p=[];for(const v in s)u[v]=String(s[v]);if(typeof o=="object"&&o)for(const v in o){h=u,g=v,P0.call(h,g)||(u[v]="undefined");const x=o[v];for(const w in x){const k={[v]:String(w)};String(w)==="undefined"&&p.push(v);const _=x[w],C=[k,_,!$c(_)];l.push(C)}}var h,g;if(typeof n=="object"&&n)for(const v of n){let{css:x,...w}=v;x=typeof x=="object"&&x||{};for(const _ in w)w[_]=String(w[_]);const k=[w,x,!$c(x)];f.push(k)}return[r,c,l,f,u,p]},B0=(o,n,s)=>{const[c,i,r,l]=N0(n.composers),f=typeof n.type=="function"||n.type.$$typeof?(g=>{function v(){for(let x=0;xv.rules[x]={apply:w=>v[go].push([x,w])}),v})(s):null,u=(f||s).rules,p=`.${c}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,h=g=>{g=typeof g=="object"&&g||W0;const{css:v,...x}=g,w={};for(const C in r)if(delete x[C],C in g){let S=g[C];typeof S=="object"&&S?w[C]={"@initial":r[C],...S}:(S=String(S),w[C]=S!=="undefined"||l.has(C)?S:r[C])}else w[C]=r[C];const k=new Set([...i]);for(const[C,S,T,A]of n.composers){s.rules.styled.cache.has(C)||(s.rules.styled.cache.add(C),Ui(S,[`.${C}`],[],o,O=>{u.styled.apply(O)}));const R=of(T,w,o.media),b=of(A,w,o.media,!0);for(const O of R)if(O!==void 0)for(const[z,Q,ee]of O){const N=`${C}-${Jr(Q)}-${z}`;k.add(N);const I=(ee?s.rules.resonevar:s.rules.onevar).cache,J=ee?u.resonevar:u.onevar;I.has(N)||(I.add(N),Ui(Q,[`.${N}`],[],o,K=>{J.apply(K)}))}for(const O of b)if(O!==void 0)for(const[z,Q]of O){const ee=`${C}-${Jr(Q)}-${z}`;k.add(ee),s.rules.allvar.cache.has(ee)||(s.rules.allvar.cache.add(ee),Ui(Q,[`.${ee}`],[],o,N=>{u.allvar.apply(N)}))}}if(typeof v=="object"&&v){const C=`${c}-i${Jr(v)}-css`;k.add(C),s.rules.inline.cache.has(C)||(s.rules.inline.cache.add(C),Ui(v,[`.${C}`],[],o,S=>{u.inline.apply(S)}))}for(const C of String(g.className||"").trim().split(/\s+/))C&&k.add(C);const _=x.className=[...k].join(" ");return{type:n.type,className:_,selector:p,props:x,toString:()=>_,deferredInjector:f}};return Ll(h,{className:c,selector:p,[Kr]:n,toString:()=>(s.rules.styled.cache.has(c)||h(),c)})},N0=o=>{let n="";const s=[],c={},i=[];for(const[r,,,,l,f]of o){n===""&&(n=r),s.push(r),i.push(...f);for(const u in l){const p=l[u];(c[u]===void 0||p!=="undefined"||f.includes(p))&&(c[u]=p)}}return[n,s,c,new Set(i)]},of=(o,n,s,c)=>{const i=[];e:for(let[r,l,f]of o){if(f)continue;let u,p=0,h=!1;for(u in r){const g=r[u];let v=n[u];if(v!==g){if(typeof v!="object"||!v)continue e;{let x,w,k=0;for(const _ in v){if(g===String(v[_])){if(_!=="@initial"){const C=_.slice(1);(w=w||[]).push(C in s?s[C]:_.replace(/^@media ?/,"")),h=!0}p+=k,x=!0}++k}if(w&&w.length&&(l={["@media "+w.join(", ")]:l}),!x)continue e}}}(i[p]=i[p]||[]).push([c?"cv":`${u}-${r[u]}`,l,h])}return i},W0={},G0=Oi(),H0=(o,n)=>G0(o,()=>(...s)=>{const c=()=>{for(let i of s){i=typeof i=="object"&&i||{};let r=Jr(i);if(!n.rules.global.cache.has(r)){if(n.rules.global.cache.add(r),"@import"in i){let l=[].indexOf.call(n.sheet.cssRules,n.rules.themed.group)-1;for(let f of[].concat(i["@import"]))f=f.includes('"')||f.includes("'")?f:`"${f}"`,n.sheet.insertRule(`@import ${f};`,l++);delete i["@import"]}Ui(i,[],[],o,l=>{n.rules.global.apply(l)})}}return""};return Ll(c,{toString:c})}),V0=Oi(),Z0=(o,n)=>V0(o,()=>s=>{const c=`${mr(o.prefix)}k-${Jr(s)}`,i=()=>{if(!n.rules.global.cache.has(c)){n.rules.global.cache.add(c);const r=[];Ui(s,[],[],o,f=>r.push(f));const l=`@keyframes ${c}{${r.join("")}}`;n.rules.global.apply(l)}return c};return Ll(i,{get name(){return i()},toString:i})}),X0=class{constructor(o,n,s,c){this.token=o==null?"":String(o),this.value=n==null?"":String(n),this.scale=s==null?"":String(s),this.prefix=c==null?"":String(c)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+mr(this.prefix)+mr(this.scale)+this.token}toString(){return this.computedValue}},Q0=Oi(),Y0=(o,n)=>Q0(o,()=>(s,c)=>{c=typeof s=="object"&&s||Object(c);const i=`.${s=(s=typeof s=="string"?s:"")||`${mr(o.prefix)}t-${Jr(c)}`}`,r={},l=[];for(const u in c){r[u]={};for(const p in c[u]){const h=`--${mr(o.prefix)}${u}-${p}`,g=md(String(c[u][p]),o.prefix,u);r[u][p]=new X0(p,g,u,o.prefix),l.push(`${h}:${g}`)}}const f=()=>{if(l.length&&!n.rules.themed.cache.has(s)){n.rules.themed.cache.add(s);const u=`${c===o.theme?":root,":""}.${s}{${l.join(";")}}`;n.rules.themed.apply(u)}return s};return{...r,get className(){return f()},selector:i,toString:f}}),K0=Oi(),sf,J0=Oi(),q0=o=>{const n=(s=>{let c=!1;const i=K0(s,r=>{c=!0;const l="prefix"in(r=typeof r=="object"&&r||{})?String(r.prefix):"",f=typeof r.media=="object"&&r.media||{},u=typeof r.root=="object"?r.root||null:globalThis.document||null,p=typeof r.theme=="object"&&r.theme||{},h={prefix:l,media:f,theme:p,themeMap:typeof r.themeMap=="object"&&r.themeMap||{...k0},utils:typeof r.utils=="object"&&r.utils||{}},g=O0(u),v={css:rf(h,g),globalCss:H0(h,g),keyframes:Z0(h,g),createTheme:Y0(h,g),reset(){g.reset(),v.theme.toString()},theme:{},sheet:g,config:h,prefix:l,getCssText:g.toString,toString:g.toString};return String(v.theme=v.createTheme(p)),v});return c||i.reset(),i})(o);return n.styled=(({config:s,sheet:c})=>J0(s,()=>{const i=rf(s,c);return(...r)=>{const l=i(...r),f=l[Kr].type,u=er.forwardRef((p,h)=>{const g=p&&p.as||f,{props:v,deferredInjector:x}=l(p);return delete v.as,v.ref=h,x?er.createElement(er.Fragment,null,er.createElement(g,v),er.createElement(x,null)):er.createElement(g,v)});return u.className=l.className,u.displayName=`Styled.${f.displayName||f.name||f}`,u.selector=l.selector,u.toString=()=>l.selector,u[Kr]=l[Kr],u}}))(n),n},$0=()=>sf||(sf=q0()),Tt=(...o)=>$0().styled(...o);function St(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}var e2=["color"],gd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,e2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M0 1.5C0 1.22386 0.223858 1 0.5 1H2.5C2.77614 1 3 1.22386 3 1.5C3 1.77614 2.77614 2 2.5 2H0.5C0.223858 2 0 1.77614 0 1.5ZM4 1.5C4 1.22386 4.22386 1 4.5 1H14.5C14.7761 1 15 1.22386 15 1.5C15 1.77614 14.7761 2 14.5 2H4.5C4.22386 2 4 1.77614 4 1.5ZM4 4.5C4 4.22386 4.22386 4 4.5 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM0 7.5C0 7.22386 0.223858 7 0.5 7H2.5C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H4.5C4.22386 11 4 10.7761 4 10.5ZM0 13.5C0 13.2239 0.223858 13 0.5 13H2.5C2.77614 13 3 13.2239 3 13.5C3 13.7761 2.77614 14 2.5 14H0.5C0.223858 14 0 13.7761 0 13.5ZM4 13.5C4 13.2239 4.22386 13 4.5 13H14.5C14.7761 13 15 13.2239 15 13.5C15 13.7761 14.7761 14 14.5 14H4.5C4.22386 14 4 13.7761 4 13.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),t2=["color"],n2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,t2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M11.5 1C11.7761 1 12 1.22386 12 1.5V13.5C12 13.7761 11.7761 14 11.5 14C11.2239 14 11 13.7761 11 13.5V1.5C11 1.22386 11.2239 1 11.5 1ZM9.5 3C9.77614 3 10 3.22386 10 3.5V13.5C10 13.7761 9.77614 14 9.5 14C9.22386 14 9 13.7761 9 13.5V3.5C9 3.22386 9.22386 3 9.5 3ZM13.5 3C13.7761 3 14 3.22386 14 3.5V13.5C14 13.7761 13.7761 14 13.5 14C13.2239 14 13 13.7761 13 13.5V3.5C13 3.22386 13.2239 3 13.5 3ZM5.5 4C5.77614 4 6 4.22386 6 4.5V13.5C6 13.7761 5.77614 14 5.5 14C5.22386 14 5 13.7761 5 13.5V4.5C5 4.22386 5.22386 4 5.5 4ZM1.5 5C1.77614 5 2 5.22386 2 5.5V13.5C2 13.7761 1.77614 14 1.5 14C1.22386 14 1 13.7761 1 13.5V5.5C1 5.22386 1.22386 5 1.5 5ZM7.5 5C7.77614 5 8 5.22386 8 5.5V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V5.5C7 5.22386 7.22386 5 7.5 5ZM3.5 7C3.77614 7 4 7.22386 4 7.5V13.5C4 13.7761 3.77614 14 3.5 14C3.22386 14 3 13.7761 3 13.5V7.5C3 7.22386 3.22386 7 3.5 7Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),r2=["color"],i2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,r2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2 5H13C13.5523 5 14 5.44772 14 6V9C14 9.55228 13.5523 10 13 10H2C1.44772 10 1 9.55228 1 9V6C1 5.44772 1.44772 5 2 5ZM0 6C0 4.89543 0.895431 4 2 4H13C14.1046 4 15 4.89543 15 6V9C15 10.1046 14.1046 11 13 11H2C0.89543 11 0 10.1046 0 9V6ZM4.5 6.75C4.08579 6.75 3.75 7.08579 3.75 7.5C3.75 7.91421 4.08579 8.25 4.5 8.25C4.91421 8.25 5.25 7.91421 5.25 7.5C5.25 7.08579 4.91421 6.75 4.5 6.75ZM6.75 7.5C6.75 7.08579 7.08579 6.75 7.5 6.75C7.91421 6.75 8.25 7.08579 8.25 7.5C8.25 7.91421 7.91421 8.25 7.5 8.25C7.08579 8.25 6.75 7.91421 6.75 7.5ZM10.5 6.75C10.0858 6.75 9.75 7.08579 9.75 7.5C9.75 7.91421 10.0858 8.25 10.5 8.25C10.9142 8.25 11.25 7.91421 11.25 7.5C11.25 7.08579 10.9142 6.75 10.5 6.75Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),o2=["color"],s2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,o2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),a2=["color"],l2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,a2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.5 9.125C8.39746 9.125 9.125 8.39746 9.125 7.5C9.125 6.60254 8.39746 5.875 7.5 5.875C6.60254 5.875 5.875 6.60254 5.875 7.5C5.875 8.39746 6.60254 9.125 7.5 9.125ZM7.5 10.125C8.94975 10.125 10.125 8.94975 10.125 7.5C10.125 6.05025 8.94975 4.875 7.5 4.875C6.05025 4.875 4.875 6.05025 4.875 7.5C4.875 8.94975 6.05025 10.125 7.5 10.125Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),u2=["color"],c2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,u2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.49999 3.09998C7.27907 3.09998 7.09999 3.27906 7.09999 3.49998C7.09999 3.72089 7.27907 3.89998 7.49999 3.89998H14.5C14.7209 3.89998 14.9 3.72089 14.9 3.49998C14.9 3.27906 14.7209 3.09998 14.5 3.09998H7.49999ZM7.49998 5.1C7.27907 5.1 7.09998 5.27908 7.09998 5.5C7.09998 5.72091 7.27907 5.9 7.49998 5.9H14.5C14.7209 5.9 14.9 5.72091 14.9 5.5C14.9 5.27908 14.7209 5.1 14.5 5.1H7.49998ZM7.1 7.5C7.1 7.27908 7.27909 7.1 7.5 7.1H14.5C14.7209 7.1 14.9 7.27908 14.9 7.5C14.9 7.72091 14.7209 7.9 14.5 7.9H7.5C7.27909 7.9 7.1 7.72091 7.1 7.5ZM7.49998 9.1C7.27907 9.1 7.09998 9.27908 7.09998 9.5C7.09998 9.72091 7.27907 9.9 7.49998 9.9H14.5C14.7209 9.9 14.9 9.72091 14.9 9.5C14.9 9.27908 14.7209 9.1 14.5 9.1H7.49998ZM7.09998 11.5C7.09998 11.2791 7.27907 11.1 7.49998 11.1H14.5C14.7209 11.1 14.9 11.2791 14.9 11.5C14.9 11.7209 14.7209 11.9 14.5 11.9H7.49998C7.27907 11.9 7.09998 11.7209 7.09998 11.5ZM2.5 9.25003L5 6.00003H0L2.5 9.25003Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),f2=["color"],d2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,f2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),h2=["color"],p2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,h2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),m2=["color"],ml=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,m2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),g2=["color"],v2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,g2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),y2=["color"],x2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,y2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),S2=["color"],w2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,S2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M8.69667 0.0403541C8.90859 0.131038 9.03106 0.354857 8.99316 0.582235L8.0902 6.00001H12.5C12.6893 6.00001 12.8625 6.10701 12.9472 6.27641C13.0319 6.4458 13.0136 6.6485 12.8999 6.80001L6.89997 14.8C6.76167 14.9844 6.51521 15.0503 6.30328 14.9597C6.09135 14.869 5.96888 14.6452 6.00678 14.4178L6.90974 9H2.49999C2.31061 9 2.13748 8.893 2.05278 8.72361C1.96809 8.55422 1.98636 8.35151 2.09999 8.2L8.09997 0.200038C8.23828 0.0156255 8.48474 -0.0503301 8.69667 0.0403541ZM3.49999 8.00001H7.49997C7.64695 8.00001 7.78648 8.06467 7.88148 8.17682C7.97648 8.28896 8.01733 8.43723 7.99317 8.5822L7.33027 12.5596L11.5 7.00001H7.49997C7.353 7.00001 7.21347 6.93534 7.11846 6.8232C7.02346 6.71105 6.98261 6.56279 7.00678 6.41781L7.66968 2.44042L3.49999 8.00001Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),C2=["color"],_2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,C2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),E2=["color"],k2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,E2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),T2=["color"],P2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,T2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),M2=["color"],b2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,M2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M6.85357 3.85355L7.65355 3.05353C8.2981 2.40901 9.42858 1.96172 10.552 1.80125C11.1056 1.72217 11.6291 1.71725 12.0564 1.78124C12.4987 1.84748 12.7698 1.97696 12.8965 2.10357C13.0231 2.23018 13.1526 2.50125 13.2188 2.94357C13.2828 3.37086 13.2779 3.89439 13.1988 4.44801C13.0383 5.57139 12.591 6.70188 11.9464 7.34645L7.49999 11.7929L6.35354 10.6465C6.15827 10.4512 5.84169 10.4512 5.64643 10.6465C5.45117 10.8417 5.45117 11.1583 5.64643 11.3536L7.14644 12.8536C7.34171 13.0488 7.65829 13.0488 7.85355 12.8536L8.40073 12.3064L9.57124 14.2572C9.65046 14.3893 9.78608 14.4774 9.9389 14.4963C10.0917 14.5151 10.2447 14.4624 10.3535 14.3536L12.3535 12.3536C12.4648 12.2423 12.5172 12.0851 12.495 11.9293L12.0303 8.67679L12.6536 8.05355C13.509 7.19808 14.0117 5.82855 14.1887 4.58943C14.2784 3.9618 14.2891 3.33847 14.2078 2.79546C14.1287 2.26748 13.9519 1.74482 13.6035 1.39645C13.2552 1.04809 12.7325 0.871332 12.2045 0.792264C11.6615 0.710945 11.0382 0.721644 10.4105 0.8113C9.17143 0.988306 7.80189 1.491 6.94644 2.34642L6.32322 2.96968L3.07071 2.50504C2.91492 2.48278 2.75773 2.53517 2.64645 2.64646L0.646451 4.64645C0.537579 4.75533 0.484938 4.90829 0.50375 5.0611C0.522563 5.21391 0.61073 5.34954 0.742757 5.42876L2.69364 6.59928L2.14646 7.14645C2.0527 7.24022 2.00002 7.3674 2.00002 7.50001C2.00002 7.63261 2.0527 7.75979 2.14646 7.85356L3.64647 9.35356C3.84173 9.54883 4.15831 9.54883 4.35357 9.35356C4.54884 9.1583 4.54884 8.84172 4.35357 8.64646L3.20712 7.50001L3.85357 6.85356L6.85357 3.85355ZM10.0993 13.1936L9.12959 11.5775L11.1464 9.56067L11.4697 11.8232L10.0993 13.1936ZM3.42251 5.87041L5.43935 3.85356L3.17678 3.53034L1.80638 4.90074L3.42251 5.87041ZM2.35356 10.3535C2.54882 10.1583 2.54882 9.8417 2.35356 9.64644C2.1583 9.45118 1.84171 9.45118 1.64645 9.64644L0.646451 10.6464C0.451188 10.8417 0.451188 11.1583 0.646451 11.3535C0.841713 11.5488 1.1583 11.5488 1.35356 11.3535L2.35356 10.3535ZM3.85358 11.8536C4.04884 11.6583 4.04885 11.3417 3.85359 11.1465C3.65833 10.9512 3.34175 10.9512 3.14648 11.1465L1.14645 13.1464C0.95119 13.3417 0.951187 13.6583 1.14645 13.8535C1.34171 14.0488 1.65829 14.0488 1.85355 13.8536L3.85358 11.8536ZM5.35356 13.3535C5.54882 13.1583 5.54882 12.8417 5.35356 12.6464C5.1583 12.4512 4.84171 12.4512 4.64645 12.6464L3.64645 13.6464C3.45119 13.8417 3.45119 14.1583 3.64645 14.3535C3.84171 14.5488 4.1583 14.5488 4.35356 14.3535L5.35356 13.3535ZM9.49997 6.74881C10.1897 6.74881 10.7488 6.1897 10.7488 5.5C10.7488 4.8103 10.1897 4.25118 9.49997 4.25118C8.81026 4.25118 8.25115 4.8103 8.25115 5.5C8.25115 6.1897 8.81026 6.74881 9.49997 6.74881Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),L2=["color"],U2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,L2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M0.5 4C0.223858 4 0 4.22386 0 4.5V10.5C0 10.7761 0.223858 11 0.5 11H14.5C14.7761 11 15 10.7761 15 10.5V4.5C15 4.22386 14.7761 4 14.5 4H0.5ZM1 10V5H2.075V7.5C2.075 7.73472 2.26528 7.925 2.5 7.925C2.73472 7.925 2.925 7.73472 2.925 7.5V5H4.075V6.5C4.075 6.73472 4.26528 6.925 4.5 6.925C4.73472 6.925 4.925 6.73472 4.925 6.5V5H6.075V6.5C6.075 6.73472 6.26528 6.925 6.5 6.925C6.73472 6.925 6.925 6.73472 6.925 6.5V5H8.075V7.5C8.075 7.73472 8.26528 7.925 8.5 7.925C8.73472 7.925 8.925 7.73472 8.925 7.5V5H10.075V6.5C10.075 6.73472 10.2653 6.925 10.5 6.925C10.7347 6.925 10.925 6.73472 10.925 6.5V5H12.075V6.5C12.075 6.73472 12.2653 6.925 12.5 6.925C12.7347 6.925 12.925 6.73472 12.925 6.5V5H14V10H1Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),R2=["color"],A2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,R2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),D2=["color"],vd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,D2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:c}))}),I2=["color"],yd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,I2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:c}))}),O2=["color"],xd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,O2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.49998 1L6.92321 2.00307L1.17498 12L0.599976 13H1.7535H13.2464H14.4L13.825 12L8.07674 2.00307L7.49998 1ZM7.49998 3.00613L2.3285 12H12.6714L7.49998 3.00613Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))});function F2(o,n){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function j2(o){var n=F2(o,"string");return typeof n=="symbol"?n:String(n)}function z2(o,n,s){return n=j2(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function af(o,n){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);n&&(c=c.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),s.push.apply(s,c)}return s}function gl(o){for(var n=1;n(o==null?void 0:o.reduce((n,s)=>n+s,0))/o.length;class B2{constructor(n={}){this.names=[""],this.finished=[],this.gl=void 0,this.extension=void 0,this.query=void 0,this.paused=!1,this.overClock=!1,this.queryHasResult=!1,this.queryCreated=!1,this.isWebGL2=!0,this.memAccums=[],this.gpuAccums=[],this.activeAccums=[],this.logsAccums={mem:[],gpu:[],cpu:[],fps:[],fpsFixed:[]},this.fpsChart=[],this.gpuChart=[],this.cpuChart=[],this.memChart=[],this.paramLogger=()=>{},this.glFinish=()=>{},this.chartLogger=()=>{},this.chartLen=60,this.maxMemory=1500,this.chartHz=10,this.startCpuProfiling=!1,this.lastCalculateFixed=0,this.chartFrame=0,this.gpuTimeProcess=0,this.chartTime=0,this.activeQueries=0,this.circularId=0,this.detected=0,this.frameId=0,this.rafId=0,this.idleCbId=0,this.checkQueryId=0,this.uuid=void 0,this.currentCpu=0,this.currentMem=0,this.paramFrame=0,this.paramTime=0,this.now=()=>{},this.t0=0,window.GLPerf=window.GLPerf||{},Object.assign(this,n),this.fpsChart=new Array(this.chartLen).fill(0),this.gpuChart=new Array(this.chartLen).fill(0),this.cpuChart=new Array(this.chartLen).fill(0),this.memChart=new Array(this.chartLen).fill(0),this.now=()=>window.performance&&window.performance.now?window.performance.now():Date.now(),this.initGpu(),this.is120hz()}initGpu(){this.uuid=yf.generateUUID(),this.gl&&(this.isWebGL2=!0,this.extension||(this.extension=this.gl.getExtension("EXT_disjoint_timer_query_webgl2")),this.extension===null&&(this.isWebGL2=!1))}is120hz(){let n=0;const s=c=>{++n<20?this.rafId=window.requestAnimationFrame(s):(this.detected=Math.ceil(1e3*n/(c-this.t0)/70),window.cancelAnimationFrame(this.rafId)),this.t0||(this.t0=c)};this.rafId=window.requestAnimationFrame(s)}addUI(n){this.names.indexOf(n)===-1&&(this.names.push(n),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFps(n){const s=16.666666666666668,c=s-n.timeRemaining(),i=s*Dn.fpsLimit/10/c;i<0||(Dn.value=i,Dn.isOverLimit<25?Dn.isOverLimit++:Ge.setState({overclockingFps:!0}))}nextFrame(n){this.frameId++;const s=n||this.now();let c=s-this.paramTime,i=0;if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=s;else if(s>=this.paramTime){this.maxMemory=window.performance.memory?window.performance.memory.jsHeapSizeLimit/1048576:0;const r=this.frameId-this.paramFrame,l=r*1e3/c,f=Ge.getState().overclockingFps?Dn.value:l;if(i=this.isWebGL2?this.gpuAccums[0]:this.gpuAccums[0]/c,this.isWebGL2?this.gpuAccums[0]=0:Promise.all(this.finished).then(()=>{this.gpuAccums[0]=0,this.finished=[]}),this.currentMem=Math.round(window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize/1048576:0),window.performance&&this.startCpuProfiling){window.performance.mark("cpu-finished");const u=performance.measure("cpu-duration","cpu-started","cpu-finished");this.currentCpu=u.duration,this.logsAccums.cpu.push(this.currentCpu),this.startCpuProfiling=!1}this.logsAccums.mem.push(this.currentMem),this.logsAccums.fpsFixed.push(l),this.logsAccums.fps.push(f),this.logsAccums.gpu.push(i),this.overClock&&typeof window.requestIdleCallback<"u"&&(Dn.isOverLimit>0&&f>l?Dn.isOverLimit--:Ge.getState().overclockingFps&&Ge.setState({overclockingFps:!1})),s>=this.paramTime+180&&(this.paramLogger({cpu:vo(this.logsAccums.cpu),gpu:vo(this.logsAccums.gpu),mem:vo(this.logsAccums.mem),fps:vo(this.logsAccums.fps),duration:Math.round(c),maxMemory:this.maxMemory,frameCount:r}),this.logsAccums.mem=[],this.logsAccums.fps=[],this.logsAccums.gpu=[],this.logsAccums.cpu=[],this.paramFrame=this.frameId,this.paramTime=s),this.overClock&&s-this.lastCalculateFixed>=2*1e3&&(this.lastCalculateFixed=n,Dn.fpsLimit=Math.round(vo(this.logsAccums.fpsFixed)/10)*100,Ge.setState({fpsLimit:Dn.fpsLimit/10}),this.logsAccums.fpsFixed=[],this.paramFrame=this.frameId,this.paramTime=s)}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=s,this.circularId=0;else{const r=s-this.chartTime;let l=this.chartHz*r/1e3;for(;--l>0&&this.detected;){const u=(this.frameId-this.chartFrame)/r*1e3,p=Ge.getState().overclockingFps?Dn.value:u;this.fpsChart[this.circularId%this.chartLen]=p;const h=1e3/this.currentMem,g=this.currentCpu,v=(this.isWebGL2?this.gpuAccums[1]*2:Math.round(this.gpuAccums[1]/c*100))+4;v>0&&(this.gpuChart[this.circularId%this.chartLen]=v),g>0&&(this.cpuChart[this.circularId%this.chartLen]=g),h>0&&(this.memChart[this.circularId%this.chartLen]=h);for(let x=0;x0&&(i||this.activeAccums.forEach((u,p)=>{this.gpuAccums[p]=f}))}}(c||!this.query)&&(this.queryCreated=!0,this.query=n.createQuery(),n.beginQuery(s.TIME_ELAPSED_EXT,this.query))}}endGpu(){const n=this.extension,s=this.gl;this.isWebGL2&&this.queryCreated&&s.getQuery(n.TIME_ELAPSED_EXT,s.CURRENT_QUERY)&&s.endQuery(n.TIME_ELAPSED_EXT)}begin(n){this.startGpu(),this.updateAccums(n)}end(n){this.endGpu(),this.updateAccums(n)}updateAccums(n){let s=this.names.indexOf(n);s===-1&&(s=this.names.length,this.addUI(n));const c=this.now();this.activeAccums[s]=!this.activeAccums[s],this.t0=c}}const N2=o=>{o.forEach((n,s)=>{const{meshes:c}=n;if(!c)return;let i={total:0,type:"Triangle",data:[]};Object.keys(c).forEach(r=>{const l=c[r],{geometry:f,material:u}=l;let p=f.index;const h=f.attributes.position;if(!h)return;let g=1;u.wireframe===!0&&(g=0);const v=p!==null?p.count:h.count,x=f.drawRange.start*g,w=f.drawRange.count*g,k=x,_=Math.min(v,x+w)-1;let C=1;const S=l.count||1;let T="Triangle",A=0;l.isMesh?u.wireframe===!0?(T="Line",C=C/2):(T="Triangle",C=C/3):l.isLine?(T="Line",l.isLineSegments?C=C/2:l.isLineLoop?C=C:C=C-1):l.isPoints?(T="Point",C=C):l.isSprite&&(T="Triangle",C=C/3);const R=Math.round(Math.max(0,_-k+1)*(C*S));R>A&&(A=R,i.type=T),i.total+=R,i.data.push({drawCount:R,type:T}),l.userData.drawCount={type:T,count:R}}),n.drawCounts=i})},W2=Zr.prototype.updateMatrixWorld,G2=Zr.prototype.updateWorldMatrix,lf=Zr.prototype.updateMatrix;let Ri={value:0},nr={value:0};const H2=o=>{let n=""+o;return n=n.match("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"),n!==null},uf=(o,n)=>{o.defines||(o.defines={}),o.defines&&!o.defines.muiPerf&&(o.defines=Object.assign(o.defines||{},{muiPerf:o.uuid}));const s=o.uuid;return n[s]||(n[s]={meshes:{},material:o},o.needsUpdate=!0),o.needsUpdate=!1,s},V2=o=>o==="muiPerf",Ge=$d(o=>({log:null,paused:!1,triggerProgramsUpdate:0,customData:0,fpsLimit:60,overclockingFps:!1,chart:{data:{fps:[],cpu:[],gpu:[],mem:[]},circularId:0},gl:void 0,objectWithMaterials:null,scene:void 0,programs:new Map,sceneLength:void 0,tab:"infos"})),Sd=({trackCPU:o,overClock:n,chart:s,deepAnalyze:c,matrixUpdate:i})=>{const{gl:r,scene:l}=Ii();Ge.setState({gl:r,scene:l});const f=P.useMemo(()=>{const u=new B2({trackGPU:!0,overClock:n,chartLen:s?s.length:120,chartHz:s?s.hz:60,gl:r.getContext(),chartLogger:g=>{Ge.setState({chart:g})},paramLogger:g=>{Ge.setState({log:{maxMemory:g.maxMemory,gpu:g.gpu,cpu:g.cpu,mem:g.mem,fps:g.fps,totalTime:g.duration,frameCount:g.frameCount}})}}),p=new Map,h=new Map;return Object.defineProperty(Rs.prototype,"onBeforeRender",{get(){return(...g)=>{var v;u&&u.begin("profiler"),(v=p.get(this))===null||v===void 0||v(...g)}},set(g){p.set(this,g)},configurable:!0}),Object.defineProperty(Rs.prototype,"onAfterRender",{get(){return(...g)=>{var v;u&&u.end("profiler"),(v=h.get(this))===null||v===void 0||v(...g)}},set(g){h.set(this,g)},configurable:!0}),u},[]);return P.useEffect(()=>{f&&(f.overClock=n||!1,n===!1&&(Ge.setState({overclockingFps:!1}),Dn.value=0,Dn.isOverLimit=0),f.chartHz=(s==null?void 0:s.hz)||60,f.chartLen=(s==null?void 0:s.length)||120)},[n,f,s==null?void 0:s.length,s==null?void 0:s.hz]),P.useEffect(()=>{i&&(Zr.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&Ri.value++,W2.apply(this,arguments)},Zr.prototype.updateWorldMatrix=function(){Ri.value++,G2.apply(this,arguments)},Zr.prototype.updateMatrix=function(){nr.value++,lf.apply(this,arguments)}),r.info.autoReset=!1;let u=null,p=null;if(r.info)return u=q1(function(){Ge.getState().paused&&Ge.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),f.startCpuProfiling=!0),nr.value-=1,Ri.value=0,nr.value=0,r.info&&r.info.reset()}),p=$1(function(){if(f&&!f.paused&&(f.nextFrame(window.performance.now()),n&&typeof window.requestIdleCallback<"u"&&(f.idleCbId=requestIdleCallback(f.nextFps))),c){var g,v;const x={},w=new Map;l.traverse(function(_){if((_ instanceof Co||_ instanceof M1)&&_.material){let C=_.material.uuid;Array.isArray(_.material)&&_.material.length>1?C=uf(_.material[1],x):C=uf(_.material,x),x[C].meshes[_.uuid]=_}}),r==null||(g=r.info)===null||g===void 0||(v=g.programs)===null||v===void 0||v.forEach(k=>{const _=k.cacheKey.split(","),C=_[_.findIndex(V2)+1];if(H2(C)&&x[C]){const{material:S,meshes:T}=x[C];w.set(C,{program:k,material:S,meshes:T,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),w.size!==Ge.getState().programs.size&&(N2(w),Ge.setState({programs:w,triggerProgramsUpdate:Ge.getState().triggerProgramsUpdate++}))}}),()=>{f&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(f.idleCbId),window.cancelAnimationFrame(f.rafId),window.cancelAnimationFrame(f.checkQueryId)),i&&(Zr.prototype.updateMatrixWorld=lf),u(),p()}},[f,r,o,s,i]),P.useEffect(()=>{const u=eh(function(){return f&&(f.paused=!0,nr.value=0,Ri.value=0,Ge.setState({paused:!0,log:{maxMemory:0,gpu:0,mem:0,cpu:0,fps:0,totalTime:0,frameCount:0}})),!1});return()=>{u()}},[]),null},Z2=Tt("div",{position:"fixed",top:0,right:0,zIndex:9999,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif`,backgroundColor:"rgba(36, 36, 36, .9)",color:"#fff",margin:0,minHeight:"100px",padding:"4px 0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",userSelect:"none","&.top-left":{right:"initial",left:0},"&.bottom-left":{right:"initial",top:"initial",bottom:0,left:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.bottom-right":{top:"initial",bottom:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.minimal":{backgroundColor:"rgba(36, 36, 36, .75)"},"*":{margin:"0",padding:"0",border:"0",fontSize:"100%",lineHeight:"1",verticalAlign:"baseline"}}),qa=Tt("small",{position:"absolute",right:0,fontSize:"10px"}),Ht=Tt("div",{display:"inline-flex",fontStyle:"normal",padding:0,lineHeight:"13px",fontSize:"14px",width:"62px",position:"relative",pointerEvents:"auto",cursor:"default",fontWeight:500,letterSpacing:"0px",textAlign:"left",height:"29px",whiteSpace:"nowrap",justifyContent:"space-evenly",fontVariantNumeric:"tabular-nums",small:{paddingLeft:"12px"},svg:{padding:0,color:"rgba(145, 145, 145, 0.3)",fontSize:"40px",position:"absolute",zIndex:1,maxHeight:"20px",left:" 50%",marginLeft:"-23px",top:"4px"}}),cn=Tt("span",{verticalAlign:"bottom",position:"absolute",bottom:"5px",color:"rgba(101, 197, 188, 1)",textAlign:"right",letterSpacing:"1px",fontSize:"8px",fontWeight:"500",width:"60px"}),X2=Tt("div",{display:"flex"}),Q2=Tt("div",{backgroundColor:"#404040",padding:"6px",display:"block",fontSize:"12px",marginBottom:"6px",cursor:"pointer","*":{cursor:"pointer !important"},"> span":{},small:{fontSize:"9px"},"> b":{marginRight:"4px",cursor:"pointer"}}),Y2=Tt("div",{height:"66px",overflow:"hidden",position:"absolute",pointerEvents:"none",display:"flex",top:"0px",justifyContent:"center",width:"100%",minWidth:"310px",margin:"0 auto",canvas:{background:"transparent !important",position:"absolute !important"}}),K2=Tt("div",{textAlign:"center",fontWeight:700,fontSize:"12px",lineHeight:"12px",display:"flex",justifyContent:"center",alignItems:"center",verticalAlign:"middle",color:"#f1f1f1",padding:"7px",width:"100%",backgroundColor:"rgba(36, 36, 37, 0.8)",zIndex:1,position:"absolute",height:"100%"}),Ul=Tt("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),J2=Tt("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",float:"right",backgroundColor:"rgb(41, 43, 45)",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),q2=Tt("div",{padding:"4px 6px",fontSize:"12px",pointerEvents:"auto"}),$2=Tt("span",{fontWeight:"bold",letterSpacing:"0.08em",maxWidth:"145px",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"middle",fontSize:"11px",marginRight:"10px"}),em=Tt("div",{maxHeight:"50vh",overflowY:"auto",marginTop:"38px"}),tm=Tt("div",{marginTop:"0"}),cf=Tt("div",{display:"flex",position:"relative",fontWeight:"bold",color:"#fff",lineHeight:"14px",svg:{marginRight:"4px",display:"inline-block"}}),wd=Tt("ul",{display:"block",position:"relative",paddingLeft:"10px",margin:"6px 6px",img:{maxHeight:"60px",maxWidth:"100%",margin:"6px auto",display:"block"},"&:after":{content:"",position:"absolute",left:"0px",top:"0px",width:"1px",height:"100%",backgroundColor:"grey",transform:"translateX(-50%)",maxHeight:"50vh",overflowY:"auto"},li:{borderBottom:"1px solid #313131",display:"block",padding:"4px",margin:0,lineHeight:1,verticalAlign:"middle",height:"24px"},b:{fontWeight:"bold"},small:{textAlign:"revert",letterSpacing:"1px",fontSize:"10px",fontWeight:"500",marginLeft:"2px",color:"rgb(101, 197, 188)"}}),Cd=Tt("button",{fontWeight:"bold",letterSpacing:"0.02em",backgroundColor:"rgb(41, 43, 45)",color:"rgb(211, 211, 211)",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"block",verticalAlign:"middle",fontSize:"11px",padding:"5px",margin:"4px auto"}),nm=Tt("div",{display:"flex",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0 auto",color:"rgba(145, 145, 145, 1)",textAlign:"center",position:"absolute",right:0,bottom:" -20px",svg:{width:"12px",height:"12px",float:"left"}}),rm=Tt("li",{display:"flex !important",height:"auto !important",span:{height:"40px",display:"block",position:"relative"},b:{paddingLeft:"12px"}}),An=P.memo(({isPerf:o,color:n,colorBlind:s,customData:c,isMemory:i,isShadersInfo:r,metric:l,fontSize:f,offsetY:u=0,offsetX:p,round:h,hasInstance:g})=>{const{width:v,height:x}=Ii(_=>_.viewport),w=P.useRef(null),k=P.useRef(null);return Eo(function(){const C=Ge.getState().gl,S=Ge.getState().log;if(!S||!w.current||(c&&(w.current.text=Ge.getState().customData),!l))return;let T=S[l];if(r){var A;T=(A=C.info.programs)===null||A===void 0?void 0:A.length}else l==="matriceCount"?T=nr.value:!o&&C.info.render&&(T=(i?C.info.memory:C.info.render)[l]);if(l==="fps"&&(w.current.color=Ge.getState().overclockingFps?Vt(s).overClock.toString():`rgb(${Vt(s).fps.toString()})`),w.current.text=(Math.round(T*Math.pow(10,h))/Math.pow(10,h)).toFixed(h),g){const R=C.info.instance;if(typeof R>"u"&&l!=="matriceCount")return;let b;l==="matriceCount"?b=Ri.value:b=R[l],b>0?(w.current.fontSize=f/1.15,k.current.fontSize=T>0?f/1.4:f,w.current.position.y=x/2-u-f/1.9,k.current.text=" ± "+(Math.round(b*Math.pow(10,h))/Math.pow(10,h)).toFixed(h)):(w.current.position.y=x/2-u-f,w.current.fontSize=f)}nr.value-=1,w.current.updateMatrix(),w.current.matrixWorld.copy(w.current.matrix)}),L.jsxs(P.Suspense,{fallback:null,children:[L.jsxs(qc,{textAlign:"justify",matrixAutoUpdate:!1,ref:w,fontSize:f,position:[-v/2+p+f,x/2-u-f,0],color:n,characters:"0123456789",onUpdate:_=>{_.updateMatrix(),nr.value-=1,_.matrixWorld.copy(_.matrix)},children:[L.jsx("meshBasicMaterial",{blending:ac}),"0"]}),g&&L.jsx(qc,{textAlign:"justify",matrixAutoUpdate:!1,ref:k,fontSize:8,position:[-v/2+p+f,x/2-u-f*1.15,0],color:"lightgrey",characters:"0123456789",onUpdate:_=>{_.updateMatrix(),nr.value-=1,_.matrixWorld.copy(_.matrix)},children:L.jsx("meshBasicMaterial",{blending:ac})})]})}),im=({colorBlind:o,customData:n,minimal:s,matrixUpdate:c})=>L.jsxs(L.Fragment,{children:[L.jsx(An,{colorBlind:o,color:`rgb(${Vt(o).fps.toString()})`,isPerf:!0,metric:"fps",fontSize:14,offsetX:140,round:0}),L.jsx(An,{color:`rgb(${Vt(o).cpu.toString()})`,isPerf:!0,metric:"cpu",fontSize:14,offsetX:72,round:3}),L.jsx(An,{color:`rgb(${Vt(o).gpu.toString()})`,isPerf:!0,metric:"gpu",fontSize:14,offsetX:10,round:3}),s?null:L.jsxs(L.Fragment,{children:[L.jsx(An,{metric:"calls",fontSize:14,offsetX:200,round:0,hasInstance:!0}),L.jsx(An,{metric:"triangles",fontSize:14,offsetX:260,round:0,hasInstance:!0}),L.jsx(An,{isMemory:!0,metric:"geometries",fontSize:14,offsetY:30,offsetX:0,round:0}),L.jsx(An,{isMemory:!0,metric:"textures",fontSize:14,offsetY:30,offsetX:80,round:0}),L.jsx(An,{isShadersInfo:!0,metric:"programs",fontSize:14,offsetY:30,offsetX:140,round:0}),L.jsx(An,{metric:"lines",fontSize:14,offsetY:30,offsetX:200,round:0,hasInstance:!0}),L.jsx(An,{metric:"points",fontSize:14,offsetY:30,offsetX:260,round:0,hasInstance:!0}),c&&L.jsx(An,{isPerf:!0,metric:"matriceCount",fontSize:14,offsetY:30,offsetX:320,round:0,hasInstance:!0})]}),n&&L.jsx(An,{color:`rgb(${Vt(o).custom.toString()})`,customData:n,fontSize:14,offsetY:0,offsetX:s?200:320,round:0})]}),om=({colorBlind:o,minimal:n,chart:s={length:30,hz:15}})=>{const c=P.useMemo(()=>({fps:new Float32Array(s.length*3),cpu:new Float32Array(s.length*3),gpu:new Float32Array(s.length*3)}),[s]),i=P.useRef(null),r=P.useRef(null),l=P.useRef(null),f=P.useRef(null),u=P.useMemo(()=>new ct(0,0,0),[]),p=(h,g=1,v,x)=>{let w=0;const{width:k,height:_}=x,C=Ge.getState().chart.data[h];if(!C||C.length===0)return;const S=n?2:6,T=n?12:50;let A=C.length;for(let R=0;Rw&&(w=C[b]*g),u.set(S+R/(A-1)*(k-S*2)-k/2,Math.min(100,C[b])*g/100*(_-S*2-T)-_/2,0),u.toArray(v.attributes.position.array,R*3))}v.attributes.position.needsUpdate=!0};return Eo(function({viewport:g}){p("fps",1,i.current,g),r.current&&r.current.color.set(Ge.getState().overclockingFps?Vt(o).overClock.toString():`rgb(${Vt(o).fps.toString()})`),p("gpu",5,l.current,g),p("cpu",5,f.current,g)}),L.jsxs(L.Fragment,{children:[L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:i,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.fps,itemSize:3,usage:Ia,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{ref:r,color:`rgb(${Vt(o).fps.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:l,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.gpu,itemSize:3,usage:Ia,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Vt(o).gpu.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:f,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.cpu,itemSize:3,usage:Ia,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Vt(o).cpu.toString()})`,transparent:!0,opacity:.5})]})]})},sm=({colorBlind:o,chart:n,customData:s,matrixUpdate:c,showGraph:i=!0,antialias:r=!0,minimal:l})=>{const f=P.useRef(void 0),u=Ge(p=>p.paused);return L.jsxs(Y2,{style:{display:"flex",position:"absolute",height:`${l?37:i?100:60}px`,minWidth:`${l?"100px":s?"370px":"310px"}`},children:[L.jsx(_h,{ref:f,orthographic:!0,dpr:r?[1,2]:1,gl:{antialias:!0,alpha:!0,stencil:!1,depth:!1},onCreated:({scene:p})=>{p.traverse(h=>{h.matrixWorldAutoUpdate=!1,h.matrixAutoUpdate=!1})},flat:!0,style:{marginBottom:"-42px",position:"relative",pointerEvents:"none",background:"transparent !important",height:`${l?37:i?100:60}px`},children:u?null:L.jsxs(L.Fragment,{children:[L.jsx(am,{}),L.jsx(im,{customData:s,minimal:l,matrixUpdate:c}),i&&L.jsx(om,{colorBlind:o,minimal:l,chart:n})]})}),u&&L.jsxs(K2,{children:[L.jsx(P2,{})," PAUSED"]})]})},am=()=>(Eo(function({gl:n,scene:s,camera:c}){c.updateMatrix(),nr.value-=1,c.matrixWorld.copy(c.matrix),c.matrixWorldInverse.copy(c.matrixWorld).invert(),n.render(s,c),Ri.value=0,nr.value=0},1/0),null);function lm(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}function um(o,n){if(o==null)return{};var s=lm(o,n),c,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}const cm=["portal","className","children"],fm=P.forwardRef((o,n)=>{let{portal:s,className:c,children:i}=o,r=um(o,cm);const l=Ii(h=>h.gl),f=P.useRef(null),u=P.useRef(null),p=(s==null?void 0:s.current)!=null?s.current:l.domElement.parentNode;return P.useLayoutEffect(()=>{if(!f.current||!p)return;const h=document.createElement("div"),g=u.current=pf(h);return p.appendChild(h),()=>{g.unmount(),u.current=null,p.removeChild(h)}},[p]),P.useLayoutEffect(()=>{const h=u.current;h&&h.render(L.jsx("div",{ref:n,className:c,children:i}))}),L.jsx("group",gl(gl({},r),{},{ref:f}))}),ff=(o,n)=>{const s=i=>{switch(i){case 1e3:return"RepeatWrapping";case 1001:return"ClampToEdgeWrapping";case 1002:return"MirroredRepeatWrapping";default:return"ClampToEdgeWrapping"}},c=i=>{switch(i){case 3e3:return"LinearEncoding";case 3001:return"sRGBEncoding";case 3002:return"RGBEEncoding";case 3003:return"LogLuvEncoding";case 3004:return"RGBM7Encoding";case 3005:return"RGBM16Encoding";case 3006:return"RGBDEncoding";case 3007:return"GammaEncoding";default:return"ClampToEdgeWrapping"}};return{name:o,url:n.image.currentSrc,encoding:c(n.encoding),wrapT:s(n.image.wrapT),flipY:n.flipY.toString()}},dm=({program:o,material:n,setTexNumber:s})=>{const c=Ge(l=>l.gl),[i,r]=P.useState(null);return P.useEffect(()=>{if(c){const l=o==null?void 0:o.getUniforms();let f=0;const u=new Map;l.seq.forEach(p=>{if(!p.id.includes("uTroika")&&p.id!=="isOrthographic"&&p.id!=="uvTransform"&&p.id!=="lightProbe"&&p.id!=="projectionMatrix"&&p.id!=="viewMatrix"&&p.id!=="normalMatrix"&&p.id!=="modelMatrix"&&p.id!=="modelViewMatrix"){let h=[],g={name:p.id};p.cache&&(p.cache.forEach(v=>{typeof v<"u"&&h.push(v.toString().substring(0,4))}),g.value=h.join(),n[p.id]&&n[p.id].image&&n[p.id].image&&(f++,g.value=ff(p.id,n[p.id])),g.value||(g.value="empty"),u.set(p.id,g))}}),n.uniforms&&Object.keys(n.uniforms).forEach(p=>{const h=n.uniforms[p];if(h.value){const{value:g}=h;let v={name:p};if(p.includes("uTroika"))return;if(g instanceof vl)f++,v.value=ff(p,g);else{let x=JSON.stringify(g);try{x=JSON.stringify(g)}catch{x=g.toString()}v.value=x}u.set(p,v)}}),f>0&&s(f),r(u)}},[]),L.jsx(wd,{children:i&&Array.from(i.values()).map(l=>L.jsx("span",{children:typeof l.value=="string"?L.jsx("li",{children:L.jsxs("span",{children:[l.name," :"," ",L.jsxs("b",{children:[l.value.substring(0,30),l.value.length>30?"...":""]})]})}):L.jsxs(L.Fragment,{children:[L.jsx("li",{children:L.jsxs("b",{children:[l.value.name,":"]})}),L.jsxs("div",{children:[Object.keys(l.value).map(f=>f!=="name"?L.jsx("div",{children:f==="url"?L.jsx("a",{href:l.value[f],target:"_blank",children:L.jsx("img",{src:l.value[f]})}):L.jsxs("li",{children:[f,": ",L.jsx("b",{children:l.value[f]})]})},f):null),L.jsxs(Cd,{onClick:()=>{var f;console.info(n[l.value.name]||(n==null||(f=n.uniforms[l.value.name])===null||f===void 0?void 0:f.value))},children:["console.info(",l.value.name,");"]})]})]})},l.name))})},hm=({el:o})=>{Ge(c=>c.log);const n=Ge(c=>c.gl),s=c=>{if(!n)return 0;const i=Math.round(c.drawCounts.total/(n.info.render.triangles+n.info.render.lines+n.info.render.points)*100*10)/10;return isFinite(i)&&i||0};return L.jsx(L.Fragment,{children:o.drawCounts.total>0&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[o.drawCounts.type==="Triangle"?L.jsx(xd,{style:{top:"-1px"}}):L.jsx(gd,{style:{top:"-1px"}}),o.drawCounts.total,L.jsxs("small",{children:[o.drawCounts.type,"s"]}),n&&L.jsxs(cn,{style:{bottom:"-10px",width:"40px",fontWeight:"bold"},children:[o.visible&&!o.material.wireframe?s(o):0,"%"]})]})})},pm=({el:o})=>{const[n,s]=P.useState(o.visible),[c,i]=P.useState(o.expand),[r,l]=P.useState(0),{meshes:f,program:u,material:p}=o;return L.jsxs(q2,{children:[L.jsxs(Q2,{onClick:()=>{o.expand=!c,Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!1}),i(!c)},children:[L.jsx(Ul,{style:{marginRight:"6px"},children:c?L.jsx("span",{children:L.jsx(vd,{})}):L.jsx("span",{children:L.jsx(yd,{})})}),u&&L.jsxs("span",{children:[L.jsx($2,{children:u.name}),L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(x2,{style:{top:"-1px"}}),Object.keys(f).length,L.jsx("small",{children:Object.keys(f).length>1?"users":"user"})]}),r>0&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[r>1?L.jsx(ml,{style:{top:"-1px"}}):L.jsx(ml,{style:{top:"-1px"}}),r,L.jsx("small",{children:"tex"})]}),L.jsx(hm,{el:o}),p.glslVersion==="300 es"&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(b2,{style:{top:"-1px"}}),"300",L.jsx("small",{children:"es"}),L.jsx(cn,{style:{bottom:"-10px",width:"40px"},children:"glsl"})]})]}),L.jsx(J2,{onPointerEnter:()=>{Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!0})},onPointerLeave:()=>{Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!1})},onClick:h=>{h.stopPropagation(),Object.keys(f).forEach(g=>{const v=f[g],x=!n;v.visible=x,o.visible=x,s(x)})},children:n?L.jsx(p2,{}):L.jsx(d2,{})})]}),L.jsxs("div",{style:{maxHeight:c?"9999px":0,overflow:"hidden"},children:[L.jsxs(cf,{children:[L.jsx(i2,{})," Uniforms:"]}),L.jsx(dm,{program:u,material:p,setTexNumber:l}),L.jsxs(cf,{children:[L.jsx(s2,{})," Geometries:"]}),L.jsx(wd,{children:f&&Object.keys(f).map(h=>f[h]&&f[h].geometry&&L.jsxs(rm,{children:[L.jsxs("span",{children:[f[h].geometry.type,": "]}),f[h].userData&&f[h].userData.drawCount&&L.jsxs("b",{children:[L.jsxs("div",{children:[f[h].userData.drawCount.count,L.jsxs("small",{children:[" ",f[h].userData.drawCount.type,"s"]})]}),L.jsx("br",{}),L.jsxs("div",{children:[Math.round(kp(f[h].geometry)/1024*1e3)/1e3,"Kb",L.jsx("small",{children:" memory used"})]})]})]},h))}),L.jsxs(Cd,{onClick:()=>{console.info(p)},children:["console.info(",p.type,")"]})]})]})},mm=()=>{Ge(n=>n.triggerProgramsUpdate);const o=Ge(n=>n.programs);return L.jsx(tm,{children:o&&Array.from(o.values()).map(n=>n&&n?L.jsx(pm,{el:n},n.material.uuid):null)})},Vt=o=>({overClock:"#ff6eff",fps:o?"100, 143, 255":"238,38,110",cpu:o?"254, 254, 98":"66,226,46",gpu:o?"254,254,254":"253,151,31",custom:o?"86,180,233":"40,255,255"}),gm=({showGraph:o,colorBlind:n})=>{const s=Ge(i=>i.overclockingFps),c=Ge(i=>i.fpsLimit);return L.jsxs(cn,{style:o?{color:s?Vt(n).overClock.toString():`rgb(${Vt(n).fps})`}:{},children:["FPS ",s?`${c}🚀`:""]})},vm=({showGraph:o,colorBlind:n,customData:s,minimal:c})=>{const i=Ge(r=>r.gl);return i?L.jsxs(X2,{children:[L.jsxs(Ht,{children:[L.jsx(w2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).gpu.toString()})`}:{},children:"GPU"}),L.jsx(qa,{children:"ms"})]}),L.jsxs(Ht,{children:[L.jsx(U2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).cpu.toString()})`}:{},children:"CPU"}),L.jsx(qa,{children:"ms"})]}),L.jsxs(Ht,{children:[L.jsx(v2,{}),L.jsx(gm,{showGraph:o,colorBlind:n})]}),!c&&i&&L.jsxs(Ht,{children:[L.jsx(A2,{}),L.jsx(cn,{children:i.info.render.calls===1?"call":"calls"})]}),!c&&i&&L.jsxs(Ht,{children:[L.jsx(xd,{}),L.jsx(cn,{children:"Triangles"})]}),s&&L.jsxs(Ht,{children:[L.jsx(n2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).custom})`}:{},children:s.name}),s.info&&L.jsx(qa,{children:s.info})]})]}):null},ym=({showGraph:o,colorBlind:n,deepAnalyze:s,customData:c,matrixUpdate:i,openByDefault:r,minimal:l})=>L.jsxs(L.Fragment,{children:[L.jsx(vm,{showGraph:o,colorBlind:n,customData:c,minimal:l}),!l&&L.jsx(Sm,{matrixUpdate:i,openByDefault:r,deepAnalyze:s,showGraph:o})]}),xm=({matrixUpdate:o})=>L.jsxs("div",{children:[L.jsxs(Ht,{children:[L.jsx(_2,{}),L.jsx(cn,{children:"Geometries"})]}),L.jsxs(Ht,{children:[L.jsx(ml,{}),L.jsx(cn,{children:"Textures"})]}),L.jsxs(Ht,{children:[L.jsx(gd,{}),L.jsx(cn,{children:"shaders"})]}),L.jsxs(Ht,{children:[L.jsx(k2,{}),L.jsx(cn,{children:"Lines"})]}),L.jsxs(Ht,{children:[L.jsx(l2,{}),L.jsx(cn,{children:"Points"})]}),o&&L.jsxs(Ht,{children:[L.jsx(c2,{}),L.jsx(cn,{children:"Matrices"})]})]}),df=({tab:o,title:n,set:s})=>{const c=Ge(i=>i.tab);return L.jsx(Ul,{className:`${c===o?" __perf_toggle_tab_active":""}`,onClick:()=>{s(!0),Ge.setState({tab:o})},children:L.jsx("span",{children:n})})},Sm=({openByDefault:o,showGraph:n,deepAnalyze:s,matrixUpdate:c})=>{const[i,r]=er.useState(o);return L.jsxs("span",{children:[L.jsx(wm,{show:i,showGraph:n,matrixUpdate:c}),o&&!s?null:L.jsxs(nm,{className:"__perf_toggle",children:[s&&L.jsx(df,{tab:"programs",title:"Programs",set:r}),s&&L.jsx(df,{tab:"infos",title:"Infos",set:r}),L.jsx(Ul,{onClick:()=>{r(!i)},children:i?L.jsxs("span",{children:[L.jsx(vd,{})," Minimize"]}):L.jsxs("span",{children:[L.jsx(yd,{})," More"]})})]})]})},wm=({show:o,showGraph:n,matrixUpdate:s})=>{const c=Ge(i=>i.tab);return L.jsxs(L.Fragment,{children:[L.jsx(xm,{matrixUpdate:s}),o&&L.jsx("div",{children:L.jsx(em,{style:{marginTop:n?"38px":0},children:c==="programs"&&L.jsx(mm,{})})})]})},Cm=({showGraph:o,colorBlind:n,openByDefault:s,className:c,overClock:i,style:r,position:l,chart:f,deepAnalyze:u,antialias:p,customData:h,matrixUpdate:g,minimal:v})=>{const x=P.useRef(null);return L.jsxs(L.Fragment,{children:[L.jsx(Sd,{chart:f,overClock:i,deepAnalyze:u,matrixUpdate:g}),L.jsx(fm,{transform:!1,children:L.jsxs(Z2,{className:(c?" ".concat(c):" ")+` ${l||""} ${v?"minimal":""}`,style:gl({minHeight:v?"37px":o?"100px":"60px"},r),ref:x,children:[L.jsx(sm,{perfContainerRef:x,colorBlind:n,chart:f,showGraph:o,antialias:p,customData:h,minimal:v,matrixUpdate:g}),L.jsx(ym,{colorBlind:n,showGraph:o,deepAnalyze:u,openByDefault:s,customData:h,matrixUpdate:g,minimal:v})]})})]})},Dm=({headless:o=!1,colorBlind:n=!1,overClock:s=!1,showGraph:c=!0,trackCPU:i=!1,deepAnalyze:r=!1,antialias:l=!0,openByDefault:f=!0,customData:u,matrixUpdate:p=!1,position:h="top-right",chart:g={length:30,hz:15},className:v,style:x,minimal:w=!1})=>o?L.jsx(Sd,{chart:g,deepAnalyze:r,matrixUpdate:p,overClock:s}):L.jsx(Cm,{colorBlind:n,showGraph:c,trackCPU:i,openByDefault:f,className:v,style:x,overClock:s,position:h,antialias:l,chart:g,deepAnalyze:r,minimal:w,customData:u,matrixUpdate:p}),$a=5e3,_m={show:"#FF723C",clip:"#FFFF00",episode:"#FF7F50",guest:"#E066FF",topic:"#F8F8FF",Topic:"#F8F8FF",Organization:"#FF7F50"},Im=(o,n)=>{const s=_m[o]||"#F8F8FF";return n?s:parseInt(s.replace("#","0x"),16)},Om=(o,n)=>o.length>n?`${o.substring(0,n)}...`:o,Fm=o=>{const n=P.useRef();return P.useEffect(()=>{n.current=o}),n.current},jm={font:"/fonts/Inter-Bold.woff",characters:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!",fontSize:1,letterSpacing:-.05,lineHeight:1,"material-toneMapped":!1},zm=()=>{const o=P.useRef(null),n=P.useRef(null),s=P.useRef(null);return Eo(({camera:c,clock:i})=>{const r=i.getElapsedTime();if(o.current){const f=Math.sin(r/8)*1e3;o.current.position.setZ(f)}if(n.current&&n.current.position.lerp(c.position,.5),s.current){const l=r*.5,f=Math.sin(l)*$a,u=Math.cos(l)*$a;s.current.position.set(f,0,u)}}),L.jsxs(L.Fragment,{children:[L.jsx("hemisphereLight",{args:[fo.white,e1,t1]}),L.jsx("ambientLight",{color:fo.white,intensity:1}),L.jsx("pointLight",{ref:n,color:fo.white,distance:4e3,intensity:5,position:[0,0,0]}),L.jsx("directionalLight",{ref:s,color:fo.white,intensity:8,position:[$a,0,0]}),L.jsx("pointLight",{ref:o,color:fo.white,distance:4e3,intensity:8,position:[0,0,0]})]})};export{_h as C,_m as D,Pm as H,Mp as L,Am as P,qc as T,$a as U,Eo as a,Bf as b,Ml as c,Pl as d,z1 as e,jm as f,bm as g,Lm as h,Im as i,Fm as j,Dm as k,zm as l,Mm as m,Rm as n,q0 as q,Om as t,Ii as u}; diff --git a/build/assets/index-4f6b03b7.js b/build/assets/index-3ee49360.js similarity index 95% rename from build/assets/index-4f6b03b7.js rename to build/assets/index-3ee49360.js index 1030254f1..79b74234c 100644 --- a/build/assets/index-4f6b03b7.js +++ b/build/assets/index-3ee49360.js @@ -1,4 +1,4 @@ -import{e as a,o as M,n as B,u as T,k as z,q as G,b as L,aa as N,j as e,T as t,s as c,a as n,F as l}from"./index-f2cb870a.js";import{M as O,j as D,k as E,S as R,C as U,l as W,F as Y}from"./index-d6936fc6.js";const K=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{e as a,o as M,n as B,u as T,k as z,q as G,b as L,a7 as N,j as e,T as t,s as c,a as n,F as l}from"./index-794e801a.js";import{M as O,j as D,k as E,S as R,C as U,l as W,F as Y}from"./index-d39d2c64.js";const K=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/assets/index-9f1e2a07.js b/build/assets/index-3f21c8a7.js similarity index 77% rename from build/assets/index-9f1e2a07.js rename to build/assets/index-3f21c8a7.js index 37691653b..5dc48aa34 100644 --- a/build/assets/index-9f1e2a07.js +++ b/build/assets/index-3f21c8a7.js @@ -1,4 +1,4 @@ -import{r,j as e,bo as F,i as k,F as h,C as A,bd as O,bp as _,s as l,T as z,e as E,t as N,w as D,a as C,B as M,bq as Y,aY as G}from"./index-f2cb870a.js";import{aE as P,aF as X,aG as H,p as R}from"./index-d6936fc6.js";import{A as I,T as q}from"./index-d8ea0c8b.js";import{S as V,A as W}from"./constants-fc83fb70.js";import{C as T}from"./ClipLoader-83efcb6b.js";import"./Stack-a2ecd800.js";import"./createSvgIcon-968d1259.js";import"./TextareaAutosize-449c264d.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:W,search:u,skip:"0",limit:"1000"};o(!0);try{const S=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(S)}catch{n([])}finally{o(!1)}};return k.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(V,{onClick:()=>t(null),size:"medium",children:e.jsx(A,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(P,{})}),e.jsx(ae,{onClick:x,children:e.jsx(X,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},Q=l.div` +import{r,j as e,bo as B,i as k,F as h,C as F,bd as O,bp as _,s as l,T as z,e as E,t as N,v as D,a as C,B as M,bq as Y,aY as P}from"./index-794e801a.js";import{ay as X,az as G,aA as H,n as R}from"./index-d39d2c64.js";import{A as I,T as q}from"./index-f6ae5354.js";import{S as V,A as W}from"./constants-f6ae9f1c.js";import{C as T}from"./ClipLoader-548a512b.js";import"./Stack-0bfda087.js";import"./createSvgIcon-72fbec8f.js";import"./TextareaAutosize-cee09ef8.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await B();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:W,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(w)}catch{n([])}finally{o(!1)}};return k.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(V,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(X,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; @@ -84,9 +84,9 @@ import{r,j as e,bo as F,i as k,F as h,C as A,bd as O,bp as _,s as l,T as z,e as transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,re=()=>{const{close:t}=E("addEdgeToNode"),c=N({mode:"onChange"}),[p,d]=r.useState(!1),[n,f]=r.useState(""),[o,x]=r.useState(!1),[m,j]=r.useState(!1),[a,v]=r.useState(null),[s,u]=r.useState(),i=R();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:y}=await _(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),L=y.find(B=>B.node_type==="topic");u(L)}}catch(y){console.error(y)}finally{j(!1)}}})()},[i]);const w=()=>{t()},S=async()=>{const g=s||i;if(!(!a||!(g!=null&&g.ref_id))){d(!0);try{await Y({relationship:n,...o?{to:g.ref_id,from:a==null?void 0:a.ref_id}:{from:g.ref_id,to:a==null?void 0:a.ref_id}}),w()}catch(y){console.warn(y)}finally{d(!1)}}},b=p||!a||!n;return e.jsxs(D,{...c,children:[m?e.jsx(h,{align:"center",my:24,children:e.jsx(T,{color:C.lightGray,size:24})}):e.jsx(K,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:a,selectedType:n,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:b,onClick:S,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(T,{color:C.lightGray,size:12})})]})]})},le=l(M)` +`,re=()=>{const{close:t}=E("addEdgeToNode"),c=N({mode:"onChange"}),[p,d]=r.useState(!1),[n,f]=r.useState(""),[o,x]=r.useState(!1),[m,j]=r.useState(!1),[a,v]=r.useState(null),[s,u]=r.useState(),i=R();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:y}=await _(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),L=y.find(A=>A.node_type==="topic");u(L)}}catch(y){console.error(y)}finally{j(!1)}}})()},[i]);const S=()=>{t()},w=async()=>{const g=s||i;if(!(!a||!(g!=null&&g.ref_id))){d(!0);try{await Y({relationship:n,...o?{to:g.ref_id,from:a==null?void 0:a.ref_id}:{from:g.ref_id,to:a==null?void 0:a.ref_id}}),S()}catch(y){console.warn(y)}finally{d(!1)}}},b=p||!a||!n;return e.jsxs(D,{...c,children:[m?e.jsx(h,{align:"center",my:24,children:e.jsx(T,{color:C.lightGray,size:24})}):e.jsx(K,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:a,selectedType:n,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:b,onClick:w,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(T,{color:C.lightGray,size:12})})]})]})},le=l(M)` width: 293px !important; margin: 0 0 10px auto !important; `,ce=l.span` margin-top: 2px; -`,be=()=>{const{close:t}=E("addEdgeToNode");return e.jsx(G,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{be as AddNodeEdgeModal}; +`,be=()=>{const{close:t}=E("addEdgeToNode");return e.jsx(P,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{be as AddNodeEdgeModal}; diff --git a/build/assets/index-abdeac9a.js b/build/assets/index-42dc7de8.js similarity index 94% rename from build/assets/index-abdeac9a.js rename to build/assets/index-42dc7de8.js index daa2e0bbf..e408a03a5 100644 --- a/build/assets/index-abdeac9a.js +++ b/build/assets/index-42dc7de8.js @@ -1,4 +1,4 @@ -import{A as qO,ag as xa,i as Lv,ah as GL,r as P,ai as HO,a0 as zs,a1 as zL,a4 as Ps,y as ce,j as h,P as pb,O as fb,S as Mr,aj as qL,$ as Qt,U as Hi,V as gb,K as jl,X as Cr,Y as hb,a5 as Fl,ak as HL,al as WL,am as WO,s as B,a as M,an as VO,ao as mb,o as Bl,F,t as VL,u as Pr,b as Ul,ap as YO,w as YL,T as mt,aq as KL,D as dn,k as Ct,d as KO,ar as ei,as as Tt,at as XL,H as pt,B as Mt,n as XO,q as ZO,C as QO,z as ZL,au as JO,e as Mv,p as QL,av as e1,aw as t1,ax as ti,ay as Ne,L as U,az as JL,aA as eM,aB as tM,aC as Gl,aD as rM,aE as nM,aF as aM,aG as iM,aH as r1,aI as oM,aJ as zl,aK as sM,aL as lM,aM as uM,aN as cM,ae as dM,aO as Pv,l as pM,aP as fM,aQ as gM,I as hM,_ as ir,aR as mM,aS as bM}from"./index-f2cb870a.js";import{Q as na,U as $s,V as ac,W as n1,X as yM,Y as vM,Z as SM,$ as $v,a0 as js,a1 as Tn,a2 as jv,a3 as fs,a4 as a1,a5 as EM,h as bb,a6 as i1,b as $r,g as ri,a7 as vn,a8 as o1,i as s1,a9 as xM,u as Mo,aa as wM,ab as yb,ac as ql,ad as vb,ae as _M,af as l1,ag as u1,ah as TM,P as AM,ai as c1,aj as OM,ak as kM,al as RM,am as IM,d as Sb,e as Eb,an as NM,ao as CM,ap as DM,m as we,p as Pt,aq as d1,ar as LM,f as p1,as as MM,c as Po,at as PM,au as $M,av as jM,aw as FM,ax as BM,ay as UM,az as f1,aA as GM}from"./index-d6936fc6.js";import{c as zM,a as ic,C as Hl}from"./ClipLoader-83efcb6b.js";import{S as g1}from"./Skeleton-a2b376e5.js";import{u as h1,P as xb,a as qM,F as HM}from"./Stack-a2ecd800.js";import{S as WM,F as Fv,i as $o,g as yr,t as VM,_ as m1,a as YM,b as KM,c as ia,d as wb,e as XM,f as ZM,h as QM,j as jo,m as JM,k as eP,l as tP,n as b1,o as rP,p as nP}from"./isPlainObject-25422081.js";import{c as _b}from"./createSvgIcon-968d1259.js";import{useBriefDescriptionStore as aP}from"./index-21017702.js";import{u as y1}from"./index-57a408d8.js";const Bv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",iP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Bv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await iP(t),n={amount:t,refid:e};return await qO.post("/boost",JSON.stringify(n)),r},sP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Lv.groupBy(r,i=>i.timestamp),a=Lv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},lP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},uP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},cP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},dP=cP;function pP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const fP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Uv(e,t){var r;const{index:n}=(r=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},yP=e=>e;let bs;function oc(){return bs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bs=CSS.supports("touch-action","none"):bs=!0),bs}function vP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:m,scale:b=yP,step:v=1,tabIndex:S,value:O}=e,_=P.useRef(),[w,A]=P.useState(-1),[x,E]=P.useState(-1),[k,N]=P.useState(!1),I=P.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),z=Array.isArray(D);let q=z?D.slice().sort(S1):[D];q=q.map(te=>hi(te,l,s));const H=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((te,de)=>({value:l+v*de})):o||[],V=H.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:W,ref:Q}=HO(),[ae,re]=P.useState(-1),ue=P.useRef(),Se=zs(Q,ue),J=zs(m,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));W(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=q[ve],qe=V.indexOf(ge);let De=de.target.valueAsNumber;if(H&&v==null){const Ge=V[V.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Qe;if(Qe=gP(Ge,l,s),v)Qe=mP(Qe,v,l);else{const rr=Uv(V,Qe);Qe=V[rr]}Qe=hi(Qe,l,s);let jt=0;if(z){de?jt=ee.current:jt=Uv(q,Qe),a&&(Qe=hi(Qe,q[jt-1]||-1/0,q[jt+1]||1/0));const rr=Qe;Qe=Gv({values:q,newValue:Qe,index:jt}),a&&de||(jt=Qe.indexOf(rr),ee.current=jt)}return{newValue:Qe,activeIndex:jt}},X=Ps(te=>{const de=gs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});hs({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>fP&&N(!0),j&&!ms(ye,D)&&j(te,ye,ve)}),Ee=Ps(te=>{const de=gs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=Ps(te=>{if(n)return;oc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=gs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});hs({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!ms(ge,D)&&j(te,ge,qe)}I.current=0;const ve=$s(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=P.useCallback(()=>{const te=$s(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);P.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:oc()}),()=>{te.removeEventListener("touchstart",fe,{passive:oc()}),he()}},[he,fe]),P.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=gs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});hs({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!ms(qe,D)&&j(de,qe,De)}I.current=0;const ge=$s(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=qs(z?q[0]:l,l,s),et=qs(q[q.length-1],l,s)-nt,tr=(te={})=>{const de=ac(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:J},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:bP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ac(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:S,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},dP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ac(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:H,open:x,range:z,rootRef:J,trackLeap:et,trackOffset:nt,values:q,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const SP=_b(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),EP=_b(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),xP=_b(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function wP(e){return fb("MuiCheckbox",e)}const _P=pb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sc=_P,TP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],AP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Qt(n)}`,`size${Qt(a)}`]},o=hb(i,wP,t);return ce({},t,o)},OP=Mr(WM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Qt(r.size)}`],r.color!=="default"&&t[`color${Qt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sc.checked}, &.${sc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),kP=h.jsx(EP,{}),RP=h.jsx(SP,{}),IP=h.jsx(xP,{}),NP=P.forwardRef(function(t,r){var n,a;const i=gb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=kP,color:s="primary",icon:l=RP,indeterminate:c=!1,indeterminateIcon:d=IP,inputProps:p,size:g="medium",className:m}=i,b=jl(i,TP),v=c?d:l,S=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=AP(O);return h.jsx(OP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:P.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:g}),checkedIcon:P.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,m)},b,{classes:_}))}),CP=NP,DP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function LP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function MP(e){return typeof e=="function"?e():e}function ys(e,t,r){const n=MP(r),a=LP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const PP=P.forwardRef(function(t,r){const n=Fl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:m,onEntered:b,onEntering:v,onExit:S,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=yM}=t,E=jl(t,DP),k=P.useRef(null),N=zs(l.ref,k,r),I=G=>W=>{G&&(W===void 0?G(k.current):G(k.current,W))},D=I((G,W)=>{ys(d,G,c),SM(G),m&&m(G,W)}),L=I((G,W)=>{const Q=$v({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},Q)),G.style.transition=n.transitions.create("transform",ce({},Q)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,W)}),j=I(b),z=I(_),q=I(G=>{const W=$v({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",W),G.style.transition=n.transitions.create("transform",W),ys(d,G,c),S&&S(G)}),H=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),V=G=>{o&&o(k.current,G)},K=P.useCallback(()=>{k.current&&ys(d,k.current,c)},[d,c]);return P.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=vM(()=>{k.current&&ys(d,k.current,c)}),W=n1(k.current);return W.addEventListener("resize",G),()=>{G.clear(),W.removeEventListener("resize",G)}},[d,g,c]),P.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:q,onExited:H,onExiting:z,addEndListener:V,appear:s,in:g,timeout:A},E,{children:(G,W)=>P.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},W))}))}),Ca=PP,$P=e=>!e||!js(e),jP=$P;function FP(e){return fb("MuiSlider",e)}const BP=pb("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dr=BP,UP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function GP(e){const{children:t,className:r,value:n}=e,a=UP(e);return t?P.cloneElement(t,{className:Cr(t.props.className)},h.jsxs(P.Fragment,{children:[t.props.children,h.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const zP=["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 zv(e){return e}const qP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Qt(r.color)}`],r.size!=="medium"&&t[`size${Qt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ce({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ce({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),HP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),WP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),VP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Qt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Qt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ce({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),YP=Mr(GP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),KP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>WO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),XP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>WO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary})),ZP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Qt(s)}`,l&&`size${Qt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Qt(l)}`,s&&`thumbColor${Qt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hb(c,FP,o)},QP=({children:e})=>e,JP=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,N,I,D;const L=gb({props:t,name:"MuiSlider"}),z=Fl().direction==="rtl",{"aria-label":q,"aria-valuetext":H,"aria-labelledby":V,component:K="span",components:G={},componentsProps:W={},color:Q="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:J,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=zv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=zv}=L,tr=jl(L,zP),Pe=ce({},L,{isRtl:z,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:Q,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Qe,trackLeap:jt,getThumbStyle:rr}=vP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=ZP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:qP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:HP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:WP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:VP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:YP,Qr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:KP,xr=(v=(S=he==null?void 0:he.markLabel)!=null?S:G.MarkLabel)!=null?v:XP,Jr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:W.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:W.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:W.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:W.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:W.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:W.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:W.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:W.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},jP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Qe),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Qr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Jr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return h.jsxs(Kr,ce({},le,{children:[h.jsx(Xr,ce({},Gn)),h.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=qs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),h.jsxs(P.Fragment,{children:[h.jsx(Qr,ce({"data-index":We},Oe,!js(Qr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?h.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!js(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=qs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?QP:Bn;return h.jsx(ct,ce({},!js(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:h.jsx(Jr,ce({"data-index":We,"aria-label":J?J(We):q,"aria-valuenow":Ee(_e),"aria-labelledby":V,"aria-valuetext":Ie?Ie(Ee(_e),We):H,value:Ge[We]},da))}))}),We)})]}))}),Wl=JP;function e$(e){return fb("MuiTooltip",e)}const t$=pb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=t$,r$=["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 n$(e){return Math.round(e*1e5)/1e5}const a$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Qt(i.split("-")[0])}`],arrow:["arrow"]};return hb(o,e$,t)},i$=Mr(xb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),o$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Qt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${n$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),s$=Mr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vs=!1,lc=null,mi={x:0,y:0};function Ss(e,t){return r=>{t&&t(r),e(r)}}const l$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x;const E=gb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:z=!1,disableInteractive:q=!1,disableTouchListener:H=!1,enterDelay:V=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:W=!1,id:Q,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:J,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=jv,TransitionProps:Ee}=E,fe=jl(E,r$),he=P.isValidElement(N)?N:h.jsx("span",{children:N}),je=Fl(),nt=je.direction==="rtl",[et,tr]=P.useState(),[Pe,$e]=P.useState(null),Ye=P.useRef(!1),$t=q||W,Kt=P.useRef(),te=P.useRef(),de=P.useRef(),ye=P.useRef(),[ve,ge]=h1({controlled:J,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=qM(Q),Ge=P.useRef(),Qe=P.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);P.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Qe()},[Qe]);const jt=ke=>{clearTimeout(lc),vs=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Ps(ke=>{clearTimeout(lc),lc=setTimeout(()=>{vs=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),V||vs&&K?te.current=setTimeout(()=>{jt(ke)},vs?K:V):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=HO(),[,Qr]=P.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Qr(!1),Kr(ke))},Jr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Qr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Qe(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Qe(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};P.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=zs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=P.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!z?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},W?{onMouseMove:En}:{}),ut={};H||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),z||(Ft.onMouseOver=Ss(_r,Ft.onMouseOver),Ft.onMouseLeave=Ss(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Ss(Jr,Ft.onFocus),Ft.onBlur=Ss(xr,Ft.onBlur),$t||(ut.onFocus=Jr,ut.onBlur=xr));const zn=P.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=a$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:i$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:jv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:o$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:s$,tt=fs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:D.popper)==null?void 0:m.className)}),Oe),ct=fs(_e,ce({},Ee,(v=ee.transition)!=null?v:D.transition),Oe),Or=fs(We,ce({},(S=ee.tooltip)!=null?S:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=fs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(P.Fragment,{children:[P.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??xb,placement:Ie,anchorEl:W?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:h.jsxs(We,ce({},Or,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),u$=l$,c$=(e,t="down")=>{const r=Fl(),[n,a]=P.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},d$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function p$(e){return e.tldr_topic??e.name}var Hs=globalThis&&globalThis.__assign||function(){return Hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` +import{z as qO,ag as xa,i as Lv,ah as GL,r as P,ai as HO,Z as zs,$ as zL,a2 as Ps,x as ce,j as h,M as pb,L as fb,O as Mr,aj as qL,Y as Jt,P as Hi,S as gb,H as jl,U as Cr,V as hb,a3 as Fl,ak as HL,al as WL,am as WO,s as B,a as M,an as VO,ao as mb,o as Bl,F,t as VL,u as Pr,b as Ul,ap as YO,v as YL,T as mt,aq as KL,A as dn,k as Ct,d as KO,ar as ei,as as Tt,at as XL,a9 as pt,B as Mt,n as XO,q as ZO,C as JO,y as ZL,au as QO,e as Mv,p as JL,av as e1,aw as t1,ax as ti,ay as Ne,J as U,az as QL,aA as eM,aB as tM,aC as Gl,aD as rM,aE as nM,aF as aM,aG as iM,aH as r1,aI as oM,aJ as zl,aK as sM,aL as lM,aM as uM,aN as cM,ad as dM,aO as Pv,l as pM,aP as fM,aQ as gM,I as hM,_ as ir,aR as mM,aS as bM}from"./index-794e801a.js";import{G as na,J as $s,K as ac,L as n1,Q as yM,U as vM,V as SM,W as $v,X as js,Y as Tn,Z as jv,_ as fs,$ as a1,a0 as EM,h as bb,a1 as i1,b as $r,g as ri,a2 as vn,a3 as o1,i as s1,a4 as xM,u as Mo,a5 as wM,a6 as yb,a7 as ql,a8 as vb,a9 as _M,aa as l1,ab as u1,ac as TM,P as AM,ad as c1,ae as OM,af as kM,ag as RM,ah as IM,d as Sb,e as Eb,ai as NM,aj as CM,ak as DM,n as Pt,al as d1,am as LM,f as p1,an as MM,c as Po,ao as PM,ap as $M,aq as jM,ar as FM,as as BM,at as f1,au as UM}from"./index-d39d2c64.js";import{c as GM,a as ic,C as Hl}from"./ClipLoader-548a512b.js";import{S as g1}from"./Skeleton-8352c4ee.js";import{u as h1,P as xb,a as zM,F as qM}from"./Stack-0bfda087.js";import{S as HM,F as Fv,i as $o,g as yr,t as WM,_ as m1,a as VM,b as YM,c as ia,d as wb,e as KM,f as XM,h as ZM,j as jo,m as JM,k as QM,l as eP,n as b1,o as tP,p as rP}from"./isPlainObject-11606a25.js";import{c as _b}from"./createSvgIcon-72fbec8f.js";import{useBriefDescriptionStore as nP}from"./index-cf1b42c2.js";import{P as we,p as aP}from"./index-195d9df5.js";import{u as y1}from"./index-046f3837.js";const Bv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",iP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Bv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await iP(t),n={amount:t,refid:e};return await qO.post("/boost",JSON.stringify(n)),r},sP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Lv.groupBy(r,i=>i.timestamp),a=Lv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},lP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},uP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},cP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},dP=cP;function pP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const fP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Uv(e,t){var r;const{index:n}=(r=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},yP=e=>e;let bs;function oc(){return bs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bs=CSS.supports("touch-action","none"):bs=!0),bs}function vP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:m,scale:b=yP,step:v=1,tabIndex:S,value:O}=e,_=P.useRef(),[w,A]=P.useState(-1),[x,E]=P.useState(-1),[k,N]=P.useState(!1),I=P.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),z=Array.isArray(D);let q=z?D.slice().sort(S1):[D];q=q.map(te=>hi(te,l,s));const H=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((te,de)=>({value:l+v*de})):o||[],V=H.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:W,ref:J}=HO(),[ae,re]=P.useState(-1),ue=P.useRef(),Se=zs(J,ue),Q=zs(m,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));W(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=q[ve],qe=V.indexOf(ge);let De=de.target.valueAsNumber;if(H&&v==null){const Ge=V[V.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Je;if(Je=gP(Ge,l,s),v)Je=mP(Je,v,l);else{const rr=Uv(V,Je);Je=V[rr]}Je=hi(Je,l,s);let jt=0;if(z){de?jt=ee.current:jt=Uv(q,Je),a&&(Je=hi(Je,q[jt-1]||-1/0,q[jt+1]||1/0));const rr=Je;Je=Gv({values:q,newValue:Je,index:jt}),a&&de||(jt=Je.indexOf(rr),ee.current=jt)}return{newValue:Je,activeIndex:jt}},X=Ps(te=>{const de=gs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});hs({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>fP&&N(!0),j&&!ms(ye,D)&&j(te,ye,ve)}),Ee=Ps(te=>{const de=gs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=Ps(te=>{if(n)return;oc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=gs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});hs({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!ms(ge,D)&&j(te,ge,qe)}I.current=0;const ve=$s(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=P.useCallback(()=>{const te=$s(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);P.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:oc()}),()=>{te.removeEventListener("touchstart",fe,{passive:oc()}),he()}},[he,fe]),P.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=gs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});hs({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!ms(qe,D)&&j(de,qe,De)}I.current=0;const ge=$s(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=qs(z?q[0]:l,l,s),et=qs(q[q.length-1],l,s)-nt,tr=(te={})=>{const de=ac(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:Q},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:bP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ac(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:S,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},dP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ac(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:H,open:x,range:z,rootRef:Q,trackLeap:et,trackOffset:nt,values:q,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const SP=_b(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),EP=_b(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),xP=_b(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function wP(e){return fb("MuiCheckbox",e)}const _P=pb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sc=_P,TP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],AP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=hb(i,wP,t);return ce({},t,o)},OP=Mr(HM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Jt(r.size)}`],r.color!=="default"&&t[`color${Jt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sc.checked}, &.${sc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),kP=h.jsx(EP,{}),RP=h.jsx(SP,{}),IP=h.jsx(xP,{}),NP=P.forwardRef(function(t,r){var n,a;const i=gb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=kP,color:s="primary",icon:l=RP,indeterminate:c=!1,indeterminateIcon:d=IP,inputProps:p,size:g="medium",className:m}=i,b=jl(i,TP),v=c?d:l,S=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=AP(O);return h.jsx(OP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:P.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:g}),checkedIcon:P.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,m)},b,{classes:_}))}),CP=NP,DP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function LP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function MP(e){return typeof e=="function"?e():e}function ys(e,t,r){const n=MP(r),a=LP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const PP=P.forwardRef(function(t,r){const n=Fl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:m,onEntered:b,onEntering:v,onExit:S,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=yM}=t,E=jl(t,DP),k=P.useRef(null),N=zs(l.ref,k,r),I=G=>W=>{G&&(W===void 0?G(k.current):G(k.current,W))},D=I((G,W)=>{ys(d,G,c),SM(G),m&&m(G,W)}),L=I((G,W)=>{const J=$v({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},J)),G.style.transition=n.transitions.create("transform",ce({},J)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,W)}),j=I(b),z=I(_),q=I(G=>{const W=$v({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",W),G.style.transition=n.transitions.create("transform",W),ys(d,G,c),S&&S(G)}),H=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),V=G=>{o&&o(k.current,G)},K=P.useCallback(()=>{k.current&&ys(d,k.current,c)},[d,c]);return P.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=vM(()=>{k.current&&ys(d,k.current,c)}),W=n1(k.current);return W.addEventListener("resize",G),()=>{G.clear(),W.removeEventListener("resize",G)}},[d,g,c]),P.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:q,onExited:H,onExiting:z,addEndListener:V,appear:s,in:g,timeout:A},E,{children:(G,W)=>P.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},W))}))}),Ca=PP,$P=e=>!e||!js(e),jP=$P;function FP(e){return fb("MuiSlider",e)}const BP=pb("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dr=BP,UP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function GP(e){const{children:t,className:r,value:n}=e,a=UP(e);return t?P.cloneElement(t,{className:Cr(t.props.className)},h.jsxs(P.Fragment,{children:[t.props.children,h.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const zP=["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 zv(e){return e}const qP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Jt(r.color)}`],r.size!=="medium"&&t[`size${Jt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ce({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ce({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),HP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),WP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),VP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Jt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Jt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ce({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),YP=Mr(GP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),KP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>WO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),XP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>WO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary})),ZP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hb(c,FP,o)},JP=({children:e})=>e,QP=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,N,I,D;const L=gb({props:t,name:"MuiSlider"}),z=Fl().direction==="rtl",{"aria-label":q,"aria-valuetext":H,"aria-labelledby":V,component:K="span",components:G={},componentsProps:W={},color:J="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:Q,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=zv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=zv}=L,tr=jl(L,zP),Pe=ce({},L,{isRtl:z,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:J,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Je,trackLeap:jt,getThumbStyle:rr}=vP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=ZP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:qP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:HP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:WP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:VP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:YP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:KP,xr=(v=(S=he==null?void 0:he.markLabel)!=null?S:G.MarkLabel)!=null?v:XP,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:W.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:W.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:W.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:W.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:W.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:W.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:W.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:W.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},jP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Je),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Jr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Qr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return h.jsxs(Kr,ce({},le,{children:[h.jsx(Xr,ce({},Gn)),h.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=qs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),h.jsxs(P.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!js(Jr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?h.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!js(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=qs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?JP:Bn;return h.jsx(ct,ce({},!js(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:h.jsx(Qr,ce({"data-index":We,"aria-label":Q?Q(We):q,"aria-valuenow":Ee(_e),"aria-labelledby":V,"aria-valuetext":Ie?Ie(Ee(_e),We):H,value:Ge[We]},da))}))}),We)})]}))}),Wl=QP;function e$(e){return fb("MuiTooltip",e)}const t$=pb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=t$,r$=["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 n$(e){return Math.round(e*1e5)/1e5}const a$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return hb(o,e$,t)},i$=Mr(xb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),o$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${n$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),s$=Mr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vs=!1,lc=null,mi={x:0,y:0};function Ss(e,t){return r=>{t&&t(r),e(r)}}const l$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x;const E=gb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:z=!1,disableInteractive:q=!1,disableTouchListener:H=!1,enterDelay:V=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:W=!1,id:J,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:Q,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=jv,TransitionProps:Ee}=E,fe=jl(E,r$),he=P.isValidElement(N)?N:h.jsx("span",{children:N}),je=Fl(),nt=je.direction==="rtl",[et,tr]=P.useState(),[Pe,$e]=P.useState(null),Ye=P.useRef(!1),$t=q||W,Kt=P.useRef(),te=P.useRef(),de=P.useRef(),ye=P.useRef(),[ve,ge]=h1({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=zM(J),Ge=P.useRef(),Je=P.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);P.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Je()},[Je]);const jt=ke=>{clearTimeout(lc),vs=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Ps(ke=>{clearTimeout(lc),lc=setTimeout(()=>{vs=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),V||vs&&K?te.current=setTimeout(()=>{jt(ke)},vs?K:V):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=HO(),[,Jr]=P.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Je(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Je(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};P.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=zs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=P.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!z?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},W?{onMouseMove:En}:{}),ut={};H||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),z||(Ft.onMouseOver=Ss(_r,Ft.onMouseOver),Ft.onMouseLeave=Ss(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Ss(Qr,Ft.onFocus),Ft.onBlur=Ss(xr,Ft.onBlur),$t||(ut.onFocus=Qr,ut.onBlur=xr));const zn=P.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=a$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:i$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:jv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:o$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:s$,tt=fs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:D.popper)==null?void 0:m.className)}),Oe),ct=fs(_e,ce({},Ee,(v=ee.transition)!=null?v:D.transition),Oe),Or=fs(We,ce({},(S=ee.tooltip)!=null?S:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=fs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(P.Fragment,{children:[P.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??xb,placement:Ie,anchorEl:W?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:h.jsxs(We,ce({},Or,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),u$=l$,c$=(e,t="down")=>{const r=Fl(),[n,a]=P.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},d$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function p$(e){return e.tldr_topic??e.name}var Hs=globalThis&&globalThis.__assign||function(){return Hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -390,7 +390,7 @@ import{A as qO,ag as xa,i as Lv,ah as GL,r as P,ai as HO,a0 as zs,a1 as zL,a4 as `;var T1={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Tt,function(){var r;function n(){return r.apply(null,arguments)}function a(u){r=u}function i(u){return u instanceof Array||Object.prototype.toString.call(u)==="[object Array]"}function o(u){return u!=null&&Object.prototype.toString.call(u)==="[object Object]"}function s(u,f){return Object.prototype.hasOwnProperty.call(u,f)}function l(u){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(u).length===0;var f;for(f in u)if(s(u,f))return!1;return!0}function c(u){return u===void 0}function d(u){return typeof u=="number"||Object.prototype.toString.call(u)==="[object Number]"}function p(u){return u instanceof Date||Object.prototype.toString.call(u)==="[object Date]"}function g(u,f){var y=[],T,R=u.length;for(T=0;T>>0,T;for(T=0;T0)for(y=0;y<$;y++)T=A[y],R=f[T],c(R)||(u[T]=R);return u}function k(u){E(this,u),this._d=new Date(u._d!=null?u._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),x===!1&&(x=!0,n.updateOffset(this),x=!1)}function N(u){return u instanceof k||u!=null&&u._isAMomentObject!=null}function I(u){n.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+u)}function D(u,f){var y=!0;return m(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,u),y){var T=[],R,$,Y,me=arguments.length;for($=0;$=0;return($?y?"+":"":"-")+Math.pow(10,Math.max(0,R)).toString().substr(1)+T}var ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ue={},Se={};function J(u,f,y,T){var R=T;typeof T=="string"&&(R=function(){return this[T]()}),u&&(Se[u]=R),f&&(Se[f[0]]=function(){return Q(R.apply(this,arguments),f[1],f[2])}),y&&(Se[y]=function(){return this.localeData().ordinal(R.apply(this,arguments),u)})}function Ie(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Ue(u){var f=u.match(ae),y,T;for(y=0,T=f.length;y=0&&re.test(u);)u=u.replace(re,T),re.lastIndex=0,y-=1;return u}var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ie(u){var f=this._longDateFormat[u],y=this._longDateFormat[u.toUpperCase()];return f||!y?f:(this._longDateFormat[u]=y.match(ae).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[u])}var X="Invalid date";function Ee(){return this._invalidDate}var fe="%d",he=/\d{1,2}/;function je(u){return this._ordinal.replace("%d",u)}var nt={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 et(u,f,y,T){var R=this._relativeTime[y];return z(R)?R(u,f,y,T):R.replace(/%d/i,u)}function tr(u,f){var y=this._relativeTime[u>0?"future":"past"];return z(y)?y(f):y.replace(/%s/i,f)}var Pe={};function $e(u,f){var y=u.toLowerCase();Pe[y]=Pe[y+"s"]=Pe[f]=u}function Ye(u){return typeof u=="string"?Pe[u]||Pe[u.toLowerCase()]:void 0}function $t(u){var f={},y,T;for(T in u)s(u,T)&&(y=Ye(T),y&&(f[y]=u[T]));return f}var Kt={};function te(u,f){Kt[u]=f}function de(u){var f=[],y;for(y in u)s(u,y)&&f.push({unit:y,priority:Kt[y]});return f.sort(function(T,R){return T.priority-R.priority}),f}function ye(u){return u%4===0&&u%100!==0||u%400===0}function ve(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function ge(u){var f=+u,y=0;return f!==0&&isFinite(f)&&(y=ve(f)),y}function qe(u,f){return function(y){return y!=null?(Ge(this,u,y),n.updateOffset(this,f),this):De(this,u)}}function De(u,f){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+f]():NaN}function Ge(u,f,y){u.isValid()&&!isNaN(y)&&(f==="FullYear"&&ye(u.year())&&u.month()===1&&u.date()===29?(y=ge(y),u._d["set"+(u._isUTC?"UTC":"")+f](y,u.month(),ts(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+f](y))}function Qe(u){return u=Ye(u),z(this[u])?this[u]():this}function jt(u,f){if(typeof u=="object"){u=$t(u);var y=de(u),T,R=y.length;for(T=0;T68?1900:2e3)};var rv=qe("FullYear",!0);function AN(){return ye(this.year())}function ON(u,f,y,T,R,$,Y){var me;return u<100&&u>=0?(me=new Date(u+400,f,y,T,R,$,Y),isFinite(me.getFullYear())&&me.setFullYear(u)):me=new Date(u,f,y,T,R,$,Y),me}function ci(u){var f,y;return u<100&&u>=0?(y=Array.prototype.slice.call(arguments),y[0]=u+400,f=new Date(Date.UTC.apply(null,y)),isFinite(f.getUTCFullYear())&&f.setUTCFullYear(u)):f=new Date(Date.UTC.apply(null,arguments)),f}function rs(u,f,y){var T=7+f-y,R=(7+ci(u,0,T).getUTCDay()-f)%7;return-R+T-1}function nv(u,f,y,T,R){var $=(7+y-T)%7,Y=rs(u,T,R),me=1+7*(f-1)+$+Y,Te,Ke;return me<=0?(Te=u-1,Ke=ui(Te)+me):me>ui(u)?(Te=u+1,Ke=me-ui(u)):(Te=u,Ke=me),{year:Te,dayOfYear:Ke}}function di(u,f,y){var T=rs(u.year(),f,y),R=Math.floor((u.dayOfYear()-T-1)/7)+1,$,Y;return R<1?(Y=u.year()-1,$=R+tn(Y,f,y)):R>tn(u.year(),f,y)?($=R-tn(u.year(),f,y),Y=u.year()+1):(Y=u.year(),$=R),{week:$,year:Y}}function tn(u,f,y){var T=rs(u,f,y),R=rs(u+1,f,y);return(ui(u)-T+R)/7}J("w",["ww",2],"wo","week"),J("W",["WW",2],"Wo","isoWeek"),$e("week","w"),$e("isoWeek","W"),te("week",5),te("isoWeek",5),le("w",He),le("ww",He,ze),le("W",He),le("WW",He,ze),nr(["w","ww","W","WW"],function(u,f,y,T){f[T.substr(0,1)]=ge(u)});function kN(u){return di(u,this._week.dow,this._week.doy).week}var RN={dow:0,doy:6};function IN(){return this._week.dow}function NN(){return this._week.doy}function CN(u){var f=this.localeData().week(this);return u==null?f:this.add((u-f)*7,"d")}function DN(u){var f=di(this,1,4).week;return u==null?f:this.add((u-f)*7,"d")}J("d",0,"do","day"),J("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),J("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),J("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),J("e",0,0,"weekday"),J("E",0,0,"isoWeekday"),$e("day","d"),$e("weekday","e"),$e("isoWeekday","E"),te("day",11),te("weekday",11),te("isoWeekday",11),le("d",He),le("e",He),le("E",He),le("dd",function(u,f){return f.weekdaysMinRegex(u)}),le("ddd",function(u,f){return f.weekdaysShortRegex(u)}),le("dddd",function(u,f){return f.weekdaysRegex(u)}),nr(["dd","ddd","dddd"],function(u,f,y,T){var R=y._locale.weekdaysParse(u,T,y._strict);R!=null?f.d=R:S(y).invalidWeekday=u}),nr(["d","e","E"],function(u,f,y,T){f[T]=ge(u)});function LN(u,f){return typeof u!="string"?u:isNaN(u)?(u=f.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function MN(u,f){return typeof u=="string"?f.weekdaysParse(u)%7||7:isNaN(u)?null:u}function Uu(u,f){return u.slice(f,7).concat(u.slice(0,f))}var PN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),av="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$N="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jN=Ar,FN=Ar,BN=Ar;function UN(u,f){var y=i(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(f)?"format":"standalone"];return u===!0?Uu(y,this._week.dow):u?y[u.day()]:y}function GN(u){return u===!0?Uu(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function zN(u){return u===!0?Uu(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function qN(u,f,y){var T,R,$,Y=u.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)$=b([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays($,"").toLocaleLowerCase();return y?f==="dddd"?(R=ft.call(this._weekdaysParse,Y),R!==-1?R:null):f==="ddd"?(R=ft.call(this._shortWeekdaysParse,Y),R!==-1?R:null):(R=ft.call(this._minWeekdaysParse,Y),R!==-1?R:null):f==="dddd"?(R=ft.call(this._weekdaysParse,Y),R!==-1||(R=ft.call(this._shortWeekdaysParse,Y),R!==-1)?R:(R=ft.call(this._minWeekdaysParse,Y),R!==-1?R:null)):f==="ddd"?(R=ft.call(this._shortWeekdaysParse,Y),R!==-1||(R=ft.call(this._weekdaysParse,Y),R!==-1)?R:(R=ft.call(this._minWeekdaysParse,Y),R!==-1?R:null)):(R=ft.call(this._minWeekdaysParse,Y),R!==-1||(R=ft.call(this._weekdaysParse,Y),R!==-1)?R:(R=ft.call(this._shortWeekdaysParse,Y),R!==-1?R:null))}function HN(u,f,y){var T,R,$;if(this._weekdaysParseExact)return qN.call(this,u,f,y);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(R=b([2e3,1]).day(T),y&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(R,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(R,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(R,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||($="^"+this.weekdays(R,"")+"|^"+this.weekdaysShort(R,"")+"|^"+this.weekdaysMin(R,""),this._weekdaysParse[T]=new RegExp($.replace(".",""),"i")),y&&f==="dddd"&&this._fullWeekdaysParse[T].test(u))return T;if(y&&f==="ddd"&&this._shortWeekdaysParse[T].test(u))return T;if(y&&f==="dd"&&this._minWeekdaysParse[T].test(u))return T;if(!y&&this._weekdaysParse[T].test(u))return T}}function WN(u){if(!this.isValid())return u!=null?this:NaN;var f=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=LN(u,this.localeData()),this.add(u-f,"d")):f}function VN(u){if(!this.isValid())return u!=null?this:NaN;var f=(this.day()+7-this.localeData()._week.dow)%7;return u==null?f:this.add(u-f,"d")}function YN(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var f=MN(u,this.localeData());return this.day(this.day()%7?f:f-7)}else return this.day()||7}function KN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=jN),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function XN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=FN),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ZN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=BN),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Gu(){function u(Ut,sn){return sn.length-Ut.length}var f=[],y=[],T=[],R=[],$,Y,me,Te,Ke;for($=0;$<7;$++)Y=b([2e3,1]).day($),me=ut(this.weekdaysMin(Y,"")),Te=ut(this.weekdaysShort(Y,"")),Ke=ut(this.weekdays(Y,"")),f.push(me),y.push(Te),T.push(Ke),R.push(me),R.push(Te),R.push(Ke);f.sort(u),y.sort(u),T.sort(u),R.sort(u),this._weekdaysRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function zu(){return this.hours()%12||12}function QN(){return this.hours()||24}J("H",["HH",2],0,"hour"),J("h",["hh",2],0,zu),J("k",["kk",2],0,QN),J("hmm",0,0,function(){return""+zu.apply(this)+Q(this.minutes(),2)}),J("hmmss",0,0,function(){return""+zu.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)}),J("Hmm",0,0,function(){return""+this.hours()+Q(this.minutes(),2)}),J("Hmmss",0,0,function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)});function iv(u,f){J(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),f)})}iv("a",!0),iv("A",!1),$e("hour","h"),te("hour",13);function ov(u,f){return f._meridiemParse}le("a",ov),le("A",ov),le("H",He),le("h",He),le("k",He),le("HH",He,ze),le("hh",He,ze),le("kk",He,ze),le("hmm",Bn),le("hmmss",Qr),le("Hmm",Bn),le("Hmmss",Qr),Oe(["H","HH"],tt),Oe(["k","kk"],function(u,f,y){var T=ge(u);f[tt]=T===24?0:T}),Oe(["a","A"],function(u,f,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Oe(["h","hh"],function(u,f,y){f[tt]=ge(u),S(y).bigHour=!0}),Oe("hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T)),S(y).bigHour=!0}),Oe("hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R)),S(y).bigHour=!0}),Oe("Hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T))}),Oe("Hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R))});function JN(u){return(u+"").toLowerCase().charAt(0)==="p"}var eC=/[ap]\.?m?\.?/i,tC=qe("Hours",!0);function rC(u,f,y){return u>11?y?"pm":"PM":y?"am":"AM"}var sv={calendar:G,longDateFormat:oe,invalidDate:X,ordinal:fe,dayOfMonthOrdinalParse:he,relativeTime:nt,months:mN,monthsShort:Zy,week:RN,weekdays:PN,weekdaysMin:$N,weekdaysShort:av,meridiemParse:eC},st={},pi={},fi;function nC(u,f){var y,T=Math.min(u.length,f.length);for(y=0;y0;){if(R=ns($.slice(0,y).join("-")),R)return R;if(T&&T.length>=y&&nC($,T)>=y-1)break;y--}f++}return fi}function iC(u){return u.match("^[^/\\\\]*$")!=null}function ns(u){var f=null,y;if(st[u]===void 0&&e&&e.exports&&iC(u))try{f=fi._abbr,y=XL,y("./locale/"+u),xn(f)}catch{st[u]=null}return st[u]}function xn(u,f){var y;return u&&(c(f)?y=rn(u):y=qu(u,f),y?fi=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),fi._abbr}function qu(u,f){if(f!==null){var y,T=sv;if(f.abbr=u,st[u]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),T=st[u]._config;else if(f.parentLocale!=null)if(st[f.parentLocale]!=null)T=st[f.parentLocale]._config;else if(y=ns(f.parentLocale),y!=null)T=y._config;else return pi[f.parentLocale]||(pi[f.parentLocale]=[]),pi[f.parentLocale].push({name:u,config:f}),null;return st[u]=new V(H(T,f)),pi[u]&&pi[u].forEach(function(R){qu(R.name,R.config)}),xn(u),st[u]}else return delete st[u],null}function oC(u,f){if(f!=null){var y,T,R=sv;st[u]!=null&&st[u].parentLocale!=null?st[u].set(H(st[u]._config,f)):(T=ns(u),T!=null&&(R=T._config),f=H(R,f),T==null&&(f.abbr=u),y=new V(f),y.parentLocale=st[u],st[u]=y),xn(u)}else st[u]!=null&&(st[u].parentLocale!=null?(st[u]=st[u].parentLocale,u===xn()&&xn(u)):st[u]!=null&&delete st[u]);return st[u]}function rn(u){var f;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return fi;if(!i(u)){if(f=ns(u),f)return f;u=[u]}return aC(u)}function sC(){return K(st)}function Hu(u){var f,y=u._a;return y&&S(u).overflow===-2&&(f=y[We]<0||y[We]>11?We:y[kt]<1||y[kt]>ts(y[_e],y[We])?kt:y[tt]<0||y[tt]>24||y[tt]===24&&(y[ct]!==0||y[Or]!==0||y[en]!==0)?tt:y[ct]<0||y[ct]>59?ct:y[Or]<0||y[Or]>59?Or:y[en]<0||y[en]>999?en:-1,S(u)._overflowDayOfYear&&(f<_e||f>kt)&&(f=kt),S(u)._overflowWeeks&&f===-1&&(f=ke),S(u)._overflowWeekday&&f===-1&&(f=Bt),S(u).overflow=f),u}var lC=/^\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)?)?$/,uC=/^\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)?)?$/,cC=/Z|[+-]\d\d(?::?\d\d)?/,as=[["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]],Wu=[["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/]],dC=/^\/?Date\((-?\d+)/i,pC=/^(?:(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}))$/,fC={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 uv(u){var f,y,T=u._i,R=lC.exec(T)||uC.exec(T),$,Y,me,Te,Ke=as.length,Ut=Wu.length;if(R){for(S(u).iso=!0,f=0,y=Ke;fui(Y)||u._dayOfYear===0)&&(S(u)._overflowDayOfYear=!0),y=ci(Y,0,u._dayOfYear),u._a[We]=y.getUTCMonth(),u._a[kt]=y.getUTCDate()),f=0;f<3&&u._a[f]==null;++f)u._a[f]=T[f]=R[f];for(;f<7;f++)u._a[f]=T[f]=u._a[f]==null?f===2?1:0:u._a[f];u._a[tt]===24&&u._a[ct]===0&&u._a[Or]===0&&u._a[en]===0&&(u._nextDay=!0,u._a[tt]=0),u._d=(u._useUTC?ci:ON).apply(null,T),$=u._useUTC?u._d.getUTCDay():u._d.getDay(),u._tzm!=null&&u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),u._nextDay&&(u._a[tt]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(S(u).weekdayMismatch=!0)}}function EC(u){var f,y,T,R,$,Y,me,Te,Ke;f=u._w,f.GG!=null||f.W!=null||f.E!=null?($=1,Y=4,y=pa(f.GG,u._a[_e],di(at(),1,4).year),T=pa(f.W,1),R=pa(f.E,1),(R<1||R>7)&&(Te=!0)):($=u._locale._week.dow,Y=u._locale._week.doy,Ke=di(at(),$,Y),y=pa(f.gg,u._a[_e],Ke.year),T=pa(f.w,Ke.week),f.d!=null?(R=f.d,(R<0||R>6)&&(Te=!0)):f.e!=null?(R=f.e+$,(f.e<0||f.e>6)&&(Te=!0)):R=$),T<1||T>tn(y,$,Y)?S(u)._overflowWeeks=!0:Te!=null?S(u)._overflowWeekday=!0:(me=nv(y,T,R,$,Y),u._a[_e]=me.year,u._dayOfYear=me.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function Yu(u){if(u._f===n.ISO_8601){uv(u);return}if(u._f===n.RFC_2822){cv(u);return}u._a=[],S(u).empty=!0;var f=""+u._i,y,T,R,$,Y,me=f.length,Te=0,Ke,Ut;for(R=ee(u._f,u._locale).match(ae)||[],Ut=R.length,y=0;y0&&S(u).unusedInput.push(Y),f=f.slice(f.indexOf(T)+T.length),Te+=T.length),Se[$]?(T?S(u).empty=!1:S(u).unusedTokens.push($),da($,T,u)):u._strict&&!T&&S(u).unusedTokens.push($);S(u).charsLeftOver=me-Te,f.length>0&&S(u).unusedInput.push(f),u._a[tt]<=12&&S(u).bigHour===!0&&u._a[tt]>0&&(S(u).bigHour=void 0),S(u).parsedDateParts=u._a.slice(0),S(u).meridiem=u._meridiem,u._a[tt]=xC(u._locale,u._a[tt],u._meridiem),Ke=S(u).era,Ke!==null&&(u._a[_e]=u._locale.erasConvertYear(Ke,u._a[_e])),Vu(u),Hu(u)}function xC(u,f,y){var T;return y==null?f:u.meridiemHour!=null?u.meridiemHour(f,y):(u.isPM!=null&&(T=u.isPM(y),T&&f<12&&(f+=12),!T&&f===12&&(f=0)),f)}function wC(u){var f,y,T,R,$,Y,me=!1,Te=u._f.length;if(Te===0){S(u).invalidFormat=!0,u._d=new Date(NaN);return}for(R=0;Rthis?this:u:w()});function fv(u,f){var y,T;if(f.length===1&&i(f[0])&&(f=f[0]),!f.length)return at();for(y=f[0],T=1;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qC(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},f;return E(u,this),u=dv(u),u._a?(f=u._isUTC?b(u._a):at(u._a),this._isDSTShifted=this.isValid()&&MC(u._a,f.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function HC(){return this.isValid()?!this._isUTC:!1}function WC(){return this.isValid()?this._isUTC:!1}function hv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(u,f){var y=u,T=null,R,$,Y;return os(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:d(u)||!isNaN(+u)?(y={},f?y[f]=+u:y.milliseconds=+u):(T=VC.exec(u))?(R=T[1]==="-"?-1:1,y={y:0,d:ge(T[kt])*R,h:ge(T[tt])*R,m:ge(T[ct])*R,s:ge(T[Or])*R,ms:ge(Ku(T[en]*1e3))*R}):(T=YC.exec(u))?(R=T[1]==="-"?-1:1,y={y:qn(T[2],R),M:qn(T[3],R),w:qn(T[4],R),d:qn(T[5],R),h:qn(T[6],R),m:qn(T[7],R),s:qn(T[8],R)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(Y=KC(at(y.from),at(y.to)),y={},y.ms=Y.milliseconds,y.M=Y.months),$=new is(y),os(u)&&s(u,"_locale")&&($._locale=u._locale),os(u)&&s(u,"_isValid")&&($._isValid=u._isValid),$}kr.fn=is.prototype,kr.invalid=LC;function qn(u,f){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*f}function mv(u,f){var y={};return y.months=f.month()-u.month()+(f.year()-u.year())*12,u.clone().add(y.months,"M").isAfter(f)&&--y.months,y.milliseconds=+f-+u.clone().add(y.months,"M"),y}function KC(u,f){var y;return u.isValid()&&f.isValid()?(f=Zu(f,u),u.isBefore(f)?y=mv(u,f):(y=mv(f,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function bv(u,f){return function(y,T){var R,$;return T!==null&&!isNaN(+T)&&(j(f,"moment()."+f+"(period, number) is deprecated. Please use moment()."+f+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=y,y=T,T=$),R=kr(y,T),yv(this,R,u),this}}function yv(u,f,y,T){var R=f._milliseconds,$=Ku(f._days),Y=Ku(f._months);u.isValid()&&(T=T??!0,Y&&Jy(u,De(u,"Month")+Y*y),$&&Ge(u,"Date",De(u,"Date")+$*y),R&&u._d.setTime(u._d.valueOf()+R*y),T&&n.updateOffset(u,$||Y))}var XC=bv(1,"add"),ZC=bv(-1,"subtract");function vv(u){return typeof u=="string"||u instanceof String}function QC(u){return N(u)||p(u)||vv(u)||d(u)||eD(u)||JC(u)||u===null||u===void 0}function JC(u){var f=o(u)&&!l(u),y=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],R,$,Y=T.length;for(R=0;Ry.valueOf():y.valueOf()9999?xe(y,f?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?f?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xe(y,"Z")):xe(y,f?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gD(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",f="",y,T,R,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",f="Z"),y="["+u+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",R="-MM-DD[T]HH:mm:ss.SSS",$=f+'[")]',this.format(y+T+R+$)}function hD(u){u||(u=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var f=xe(this,u);return this.localeData().postformat(f)}function mD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({to:this,from:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function bD(u){return this.from(at(),u)}function yD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({from:this,to:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function vD(u){return this.to(at(),u)}function Sv(u){var f;return u===void 0?this._locale._abbr:(f=rn(u),f!=null&&(this._locale=f),this)}var Ev=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(u){return u===void 0?this.localeData():this.locale(u)});function xv(){return this._locale}var ls=1e3,fa=60*ls,us=60*fa,wv=(365*400+97)*24*us;function ga(u,f){return(u%f+f)%f}function _v(u,f,y){return u<100&&u>=0?new Date(u+400,f,y)-wv:new Date(u,f,y).valueOf()}function Tv(u,f,y){return u<100&&u>=0?Date.UTC(u+400,f,y)-wv:Date.UTC(u,f,y)}function SD(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Tv:_v,u){case"year":f=y(this.year(),0,1);break;case"quarter":f=y(this.year(),this.month()-this.month()%3,1);break;case"month":f=y(this.year(),this.month(),1);break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":f=y(this.year(),this.month(),this.date());break;case"hour":f=this._d.valueOf(),f-=ga(f+(this._isUTC?0:this.utcOffset()*fa),us);break;case"minute":f=this._d.valueOf(),f-=ga(f,fa);break;case"second":f=this._d.valueOf(),f-=ga(f,ls);break}return this._d.setTime(f),n.updateOffset(this,!0),this}function ED(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Tv:_v,u){case"year":f=y(this.year()+1,0,1)-1;break;case"quarter":f=y(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":f=y(this.year(),this.month()+1,1)-1;break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":f=y(this.year(),this.month(),this.date()+1)-1;break;case"hour":f=this._d.valueOf(),f+=us-ga(f+(this._isUTC?0:this.utcOffset()*fa),us)-1;break;case"minute":f=this._d.valueOf(),f+=fa-ga(f,fa)-1;break;case"second":f=this._d.valueOf(),f+=ls-ga(f,ls)-1;break}return this._d.setTime(f),n.updateOffset(this,!0),this}function xD(){return this._d.valueOf()-(this._offset||0)*6e4}function wD(){return Math.floor(this.valueOf()/1e3)}function _D(){return new Date(this.valueOf())}function TD(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function AD(){var u=this;return{years:u.year(),months:u.month(),date:u.date(),hours:u.hours(),minutes:u.minutes(),seconds:u.seconds(),milliseconds:u.milliseconds()}}function OD(){return this.isValid()?this.toISOString():null}function kD(){return _(this)}function RD(){return m({},S(this))}function ID(){return S(this).overflow}function ND(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}J("N",0,0,"eraAbbr"),J("NN",0,0,"eraAbbr"),J("NNN",0,0,"eraAbbr"),J("NNNN",0,0,"eraName"),J("NNNNN",0,0,"eraNarrow"),J("y",["y",1],"yo","eraYear"),J("y",["yy",2],0,"eraYear"),J("y",["yyy",3],0,"eraYear"),J("y",["yyyy",4],0,"eraYear"),le("N",Ju),le("NN",Ju),le("NNN",Ju),le("NNNN",GD),le("NNNNN",zD),Oe(["N","NN","NNN","NNNN","NNNNN"],function(u,f,y,T){var R=y._locale.erasParse(u,T,y._strict);R?S(y).era=R:S(y).invalidEra=u}),le("y",_r),le("yy",_r),le("yyy",_r),le("yyyy",_r),le("yo",qD),Oe(["y","yy","yyy","yyyy"],_e),Oe(["yo"],function(u,f,y,T){var R;y._locale._eraYearOrdinalRegex&&(R=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?f[_e]=y._locale.eraYearOrdinalParse(u,R):f[_e]=parseInt(u,10)});function CD(u,f){var y,T,R,$=this._eras||rn("en")._eras;for(y=0,T=$.length;y=0)return $[T]}function LD(u,f){var y=u.since<=u.until?1:-1;return f===void 0?n(u.since).year():n(u.since).year()+(f-u.offset)*y}function MD(){var u,f,y,T=this.localeData().eras();for(u=0,f=T.length;u$&&(f=$),ZD.call(this,u,f,y,T,R))}function ZD(u,f,y,T,R){var $=nv(u,f,y,T,R),Y=ci($.year,0,$.dayOfYear);return this.year(Y.getUTCFullYear()),this.month(Y.getUTCMonth()),this.date(Y.getUTCDate()),this}J("Q",0,"Qo","quarter"),$e("quarter","Q"),te("quarter",7),le("Q",rr),Oe("Q",function(u,f){f[We]=(ge(u)-1)*3});function QD(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}J("D",["DD",2],"Do","date"),$e("date","D"),te("date",9),le("D",He),le("DD",He,ze),le("Do",function(u,f){return u?f._dayOfMonthOrdinalParse||f._ordinalParse:f._dayOfMonthOrdinalParseLenient}),Oe(["D","DD"],kt),Oe("Do",function(u,f){f[kt]=ge(u.match(He)[0])});var Ov=qe("Date",!0);J("DDD",["DDDD",3],"DDDo","dayOfYear"),$e("dayOfYear","DDD"),te("dayOfYear",4),le("DDD",xr),le("DDDD",Kr),Oe(["DDD","DDDD"],function(u,f,y){y._dayOfYear=ge(u)});function JD(u){var f=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?f:this.add(u-f,"d")}J("m",["mm",2],0,"minute"),$e("minute","m"),te("minute",14),le("m",He),le("mm",He,ze),Oe(["m","mm"],ct);var eL=qe("Minutes",!1);J("s",["ss",2],0,"second"),$e("second","s"),te("second",15),le("s",He),le("ss",He,ze),Oe(["s","ss"],Or);var tL=qe("Seconds",!1);J("S",0,0,function(){return~~(this.millisecond()/100)}),J(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),J(0,["SSS",3],0,"millisecond"),J(0,["SSSS",4],0,function(){return this.millisecond()*10}),J(0,["SSSSS",5],0,function(){return this.millisecond()*100}),J(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),J(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),J(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),J(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$e("millisecond","ms"),te("millisecond",16),le("S",xr,rr),le("SS",xr,ze),le("SSS",xr,Kr);var wn,kv;for(wn="SSSS";wn.length<=9;wn+="S")le(wn,_r);function rL(u,f){f[en]=ge(("0."+u)*1e3)}for(wn="S";wn.length<=9;wn+="S")Oe(wn,rL);kv=qe("Milliseconds",!1),J("z",0,0,"zoneAbbr"),J("zz",0,0,"zoneName");function nL(){return this._isUTC?"UTC":""}function aL(){return this._isUTC?"Coordinated Universal Time":""}var ne=k.prototype;ne.add=XC,ne.calendar=nD,ne.clone=aD,ne.diff=dD,ne.endOf=ED,ne.format=hD,ne.from=mD,ne.fromNow=bD,ne.to=yD,ne.toNow=vD,ne.get=Qe,ne.invalidAt=ID,ne.isAfter=iD,ne.isBefore=oD,ne.isBetween=sD,ne.isSame=lD,ne.isSameOrAfter=uD,ne.isSameOrBefore=cD,ne.isValid=kD,ne.lang=Ev,ne.locale=Sv,ne.localeData=xv,ne.max=kC,ne.min=OC,ne.parsingFlags=RD,ne.set=jt,ne.startOf=SD,ne.subtract=ZC,ne.toArray=TD,ne.toObject=AD,ne.toDate=_D,ne.toISOString=fD,ne.inspect=gD,typeof Symbol<"u"&&Symbol.for!=null&&(ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ne.toJSON=OD,ne.toString=pD,ne.unix=wD,ne.valueOf=xD,ne.creationData=ND,ne.eraName=MD,ne.eraNarrow=PD,ne.eraAbbr=$D,ne.eraYear=jD,ne.year=rv,ne.isLeapYear=AN,ne.weekYear=HD,ne.isoWeekYear=WD,ne.quarter=ne.quarters=QD,ne.month=ev,ne.daysInMonth=wN,ne.week=ne.weeks=CN,ne.isoWeek=ne.isoWeeks=DN,ne.weeksInYear=KD,ne.weeksInWeekYear=XD,ne.isoWeeksInYear=VD,ne.isoWeeksInISOWeekYear=YD,ne.date=Ov,ne.day=ne.days=WN,ne.weekday=VN,ne.isoWeekday=YN,ne.dayOfYear=JD,ne.hour=ne.hours=tC,ne.minute=ne.minutes=eL,ne.second=ne.seconds=tL,ne.millisecond=ne.milliseconds=kv,ne.utcOffset=$C,ne.utc=FC,ne.local=BC,ne.parseZone=UC,ne.hasAlignedHourOffset=GC,ne.isDST=zC,ne.isLocal=HC,ne.isUtcOffset=WC,ne.isUtc=hv,ne.isUTC=hv,ne.zoneAbbr=nL,ne.zoneName=aL,ne.dates=D("dates accessor is deprecated. Use date instead.",Ov),ne.months=D("months accessor is deprecated. Use month instead",ev),ne.years=D("years accessor is deprecated. Use year instead",rv),ne.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jC),ne.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qC);function iL(u){return at(u*1e3)}function oL(){return at.apply(null,arguments).parseZone()}function Rv(u){return u}var Fe=V.prototype;Fe.calendar=W,Fe.longDateFormat=ie,Fe.invalidDate=Ee,Fe.ordinal=je,Fe.preparse=Rv,Fe.postformat=Rv,Fe.relativeTime=et,Fe.pastFuture=tr,Fe.set=q,Fe.eras=CD,Fe.erasParse=DD,Fe.erasConvertYear=LD,Fe.erasAbbrRegex=BD,Fe.erasNameRegex=FD,Fe.erasNarrowRegex=UD,Fe.months=vN,Fe.monthsShort=SN,Fe.monthsParse=xN,Fe.monthsRegex=TN,Fe.monthsShortRegex=_N,Fe.week=kN,Fe.firstDayOfYear=NN,Fe.firstDayOfWeek=IN,Fe.weekdays=UN,Fe.weekdaysMin=zN,Fe.weekdaysShort=GN,Fe.weekdaysParse=HN,Fe.weekdaysRegex=KN,Fe.weekdaysShortRegex=XN,Fe.weekdaysMinRegex=ZN,Fe.isPM=JN,Fe.meridiem=rC;function ds(u,f,y,T){var R=rn(),$=b().set(T,f);return R[y]($,u)}function Iv(u,f,y){if(d(u)&&(f=u,u=void 0),u=u||"",f!=null)return ds(u,f,y,"month");var T,R=[];for(T=0;T<12;T++)R[T]=ds(u,T,y,"month");return R}function tc(u,f,y,T){typeof u=="boolean"?(d(f)&&(y=f,f=void 0),f=f||""):(f=u,y=f,u=!1,d(f)&&(y=f,f=void 0),f=f||"");var R=rn(),$=u?R._week.dow:0,Y,me=[];if(y!=null)return ds(f,(y+$)%7,T,"day");for(Y=0;Y<7;Y++)me[Y]=ds(f,(Y+$)%7,T,"day");return me}function sL(u,f){return Iv(u,f,"months")}function lL(u,f){return Iv(u,f,"monthsShort")}function uL(u,f,y){return tc(u,f,y,"weekdays")}function cL(u,f,y){return tc(u,f,y,"weekdaysShort")}function dL(u,f,y){return tc(u,f,y,"weekdaysMin")}xn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(u){var f=u%10,y=ge(u%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th";return u+y}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",xn),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",rn);var nn=Math.abs;function pL(){var u=this._data;return this._milliseconds=nn(this._milliseconds),this._days=nn(this._days),this._months=nn(this._months),u.milliseconds=nn(u.milliseconds),u.seconds=nn(u.seconds),u.minutes=nn(u.minutes),u.hours=nn(u.hours),u.months=nn(u.months),u.years=nn(u.years),this}function Nv(u,f,y,T){var R=kr(f,y);return u._milliseconds+=T*R._milliseconds,u._days+=T*R._days,u._months+=T*R._months,u._bubble()}function fL(u,f){return Nv(this,u,f,1)}function gL(u,f){return Nv(this,u,f,-1)}function Cv(u){return u<0?Math.floor(u):Math.ceil(u)}function hL(){var u=this._milliseconds,f=this._days,y=this._months,T=this._data,R,$,Y,me,Te;return u>=0&&f>=0&&y>=0||u<=0&&f<=0&&y<=0||(u+=Cv(rc(y)+f)*864e5,f=0,y=0),T.milliseconds=u%1e3,R=ve(u/1e3),T.seconds=R%60,$=ve(R/60),T.minutes=$%60,Y=ve($/60),T.hours=Y%24,f+=ve(Y/24),Te=ve(Dv(f)),y+=Te,f-=Cv(rc(Te)),me=ve(y/12),y%=12,T.days=f,T.months=y,T.years=me,this}function Dv(u){return u*4800/146097}function rc(u){return u*146097/4800}function mL(u){if(!this.isValid())return NaN;var f,y,T=this._milliseconds;if(u=Ye(u),u==="month"||u==="quarter"||u==="year")switch(f=this._days+T/864e5,y=this._months+Dv(f),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(f=this._days+Math.round(rc(this._months)),u){case"week":return f/7+T/6048e5;case"day":return f+T/864e5;case"hour":return f*24+T/36e5;case"minute":return f*1440+T/6e4;case"second":return f*86400+T/1e3;case"millisecond":return Math.floor(f*864e5)+T;default:throw new Error("Unknown unit "+u)}}function bL(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ge(this._months/12)*31536e6:NaN}function an(u){return function(){return this.as(u)}}var yL=an("ms"),vL=an("s"),SL=an("m"),EL=an("h"),xL=an("d"),wL=an("w"),_L=an("M"),TL=an("Q"),AL=an("y");function OL(){return kr(this)}function kL(u){return u=Ye(u),this.isValid()?this[u+"s"]():NaN}function Hn(u){return function(){return this.isValid()?this._data[u]:NaN}}var RL=Hn("milliseconds"),IL=Hn("seconds"),NL=Hn("minutes"),CL=Hn("hours"),DL=Hn("days"),LL=Hn("months"),ML=Hn("years");function PL(){return ve(this.days()/7)}var on=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $L(u,f,y,T,R){return R.relativeTime(f||1,!!y,u,T)}function jL(u,f,y,T){var R=kr(u).abs(),$=on(R.as("s")),Y=on(R.as("m")),me=on(R.as("h")),Te=on(R.as("d")),Ke=on(R.as("M")),Ut=on(R.as("w")),sn=on(R.as("y")),_n=$<=y.ss&&["s",$]||$0,_n[4]=T,$L.apply(null,_n)}function FL(u){return u===void 0?on:typeof u=="function"?(on=u,!0):!1}function BL(u,f){return ha[u]===void 0?!1:f===void 0?ha[u]:(ha[u]=f,u==="s"&&(ha.ss=f-1),!0)}function UL(u,f){if(!this.isValid())return this.localeData().invalidDate();var y=!1,T=ha,R,$;return typeof u=="object"&&(f=u,u=!1),typeof u=="boolean"&&(y=u),typeof f=="object"&&(T=Object.assign({},ha,f),f.s!=null&&f.ss==null&&(T.ss=f.s-1)),R=this.localeData(),$=jL(this,!y,T,R),y&&($=R.pastFuture(+this,$)),R.postformat($)}var nc=Math.abs;function ma(u){return(u>0)-(u<0)||+u}function ps(){if(!this.isValid())return this.localeData().invalidDate();var u=nc(this._milliseconds)/1e3,f=nc(this._days),y=nc(this._months),T,R,$,Y,me=this.asSeconds(),Te,Ke,Ut,sn;return me?(T=ve(u/60),R=ve(T/60),u%=60,T%=60,$=ve(y/12),y%=12,Y=u?u.toFixed(3).replace(/\.?0+$/,""):"",Te=me<0?"-":"",Ke=ma(this._months)!==ma(me)?"-":"",Ut=ma(this._days)!==ma(me)?"-":"",sn=ma(this._milliseconds)!==ma(me)?"-":"",Te+"P"+($?Ke+$+"Y":"")+(y?Ke+y+"M":"")+(f?Ut+f+"D":"")+(R||T||u?"T":"")+(R?sn+R+"H":"")+(T?sn+T+"M":"")+(u?sn+Y+"S":"")):"P0D"}var Le=is.prototype;Le.isValid=DC,Le.abs=pL,Le.add=fL,Le.subtract=gL,Le.as=mL,Le.asMilliseconds=yL,Le.asSeconds=vL,Le.asMinutes=SL,Le.asHours=EL,Le.asDays=xL,Le.asWeeks=wL,Le.asMonths=_L,Le.asQuarters=TL,Le.asYears=AL,Le.valueOf=bL,Le._bubble=hL,Le.clone=OL,Le.get=kL,Le.milliseconds=RL,Le.seconds=IL,Le.minutes=NL,Le.hours=CL,Le.days=DL,Le.weeks=PL,Le.months=LL,Le.years=ML,Le.humanize=UL,Le.toISOString=ps,Le.toString=ps,Le.toJSON=ps,Le.locale=Sv,Le.localeData=xv,Le.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ps),Le.lang=Ev,J("X",0,0,"unix"),J("x",0,0,"valueOf"),le("x",Tr),le("X",li),Oe("X",function(u,f,y){y._d=new Date(parseFloat(u)*1e3)}),Oe("x",function(u,f,y){y._d=new Date(ge(u))});//! moment.js +`+new Error().stack),y=!1}return f.apply(this,arguments)},f)}var L={};function j(u,f){n.deprecationHandler!=null&&n.deprecationHandler(u,f),L[u]||(I(f),L[u]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function z(u){return typeof Function<"u"&&u instanceof Function||Object.prototype.toString.call(u)==="[object Function]"}function q(u){var f,y;for(y in u)s(u,y)&&(f=u[y],z(f)?this[y]=f:this["_"+y]=f);this._config=u,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function H(u,f){var y=m({},u),T;for(T in f)s(f,T)&&(o(u[T])&&o(f[T])?(y[T]={},m(y[T],u[T]),m(y[T],f[T])):f[T]!=null?y[T]=f[T]:delete y[T]);for(T in u)s(u,T)&&!s(f,T)&&o(u[T])&&(y[T]=m({},y[T]));return y}function V(u){u!=null&&this.set(u)}var K;Object.keys?K=Object.keys:K=function(u){var f,y=[];for(f in u)s(u,f)&&y.push(f);return y};var G={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function W(u,f,y){var T=this._calendar[u]||this._calendar.sameElse;return z(T)?T.call(f,y):T}function J(u,f,y){var T=""+Math.abs(u),R=f-T.length,$=u>=0;return($?y?"+":"":"-")+Math.pow(10,Math.max(0,R)).toString().substr(1)+T}var ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ue={},Se={};function Q(u,f,y,T){var R=T;typeof T=="string"&&(R=function(){return this[T]()}),u&&(Se[u]=R),f&&(Se[f[0]]=function(){return J(R.apply(this,arguments),f[1],f[2])}),y&&(Se[y]=function(){return this.localeData().ordinal(R.apply(this,arguments),u)})}function Ie(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Ue(u){var f=u.match(ae),y,T;for(y=0,T=f.length;y=0&&re.test(u);)u=u.replace(re,T),re.lastIndex=0,y-=1;return u}var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ie(u){var f=this._longDateFormat[u],y=this._longDateFormat[u.toUpperCase()];return f||!y?f:(this._longDateFormat[u]=y.match(ae).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[u])}var X="Invalid date";function Ee(){return this._invalidDate}var fe="%d",he=/\d{1,2}/;function je(u){return this._ordinal.replace("%d",u)}var nt={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 et(u,f,y,T){var R=this._relativeTime[y];return z(R)?R(u,f,y,T):R.replace(/%d/i,u)}function tr(u,f){var y=this._relativeTime[u>0?"future":"past"];return z(y)?y(f):y.replace(/%s/i,f)}var Pe={};function $e(u,f){var y=u.toLowerCase();Pe[y]=Pe[y+"s"]=Pe[f]=u}function Ye(u){return typeof u=="string"?Pe[u]||Pe[u.toLowerCase()]:void 0}function $t(u){var f={},y,T;for(T in u)s(u,T)&&(y=Ye(T),y&&(f[y]=u[T]));return f}var Kt={};function te(u,f){Kt[u]=f}function de(u){var f=[],y;for(y in u)s(u,y)&&f.push({unit:y,priority:Kt[y]});return f.sort(function(T,R){return T.priority-R.priority}),f}function ye(u){return u%4===0&&u%100!==0||u%400===0}function ve(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function ge(u){var f=+u,y=0;return f!==0&&isFinite(f)&&(y=ve(f)),y}function qe(u,f){return function(y){return y!=null?(Ge(this,u,y),n.updateOffset(this,f),this):De(this,u)}}function De(u,f){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+f]():NaN}function Ge(u,f,y){u.isValid()&&!isNaN(y)&&(f==="FullYear"&&ye(u.year())&&u.month()===1&&u.date()===29?(y=ge(y),u._d["set"+(u._isUTC?"UTC":"")+f](y,u.month(),ts(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+f](y))}function Je(u){return u=Ye(u),z(this[u])?this[u]():this}function jt(u,f){if(typeof u=="object"){u=$t(u);var y=de(u),T,R=y.length;for(T=0;T68?1900:2e3)};var rv=qe("FullYear",!0);function AN(){return ye(this.year())}function ON(u,f,y,T,R,$,Y){var me;return u<100&&u>=0?(me=new Date(u+400,f,y,T,R,$,Y),isFinite(me.getFullYear())&&me.setFullYear(u)):me=new Date(u,f,y,T,R,$,Y),me}function ci(u){var f,y;return u<100&&u>=0?(y=Array.prototype.slice.call(arguments),y[0]=u+400,f=new Date(Date.UTC.apply(null,y)),isFinite(f.getUTCFullYear())&&f.setUTCFullYear(u)):f=new Date(Date.UTC.apply(null,arguments)),f}function rs(u,f,y){var T=7+f-y,R=(7+ci(u,0,T).getUTCDay()-f)%7;return-R+T-1}function nv(u,f,y,T,R){var $=(7+y-T)%7,Y=rs(u,T,R),me=1+7*(f-1)+$+Y,Te,Ke;return me<=0?(Te=u-1,Ke=ui(Te)+me):me>ui(u)?(Te=u+1,Ke=me-ui(u)):(Te=u,Ke=me),{year:Te,dayOfYear:Ke}}function di(u,f,y){var T=rs(u.year(),f,y),R=Math.floor((u.dayOfYear()-T-1)/7)+1,$,Y;return R<1?(Y=u.year()-1,$=R+tn(Y,f,y)):R>tn(u.year(),f,y)?($=R-tn(u.year(),f,y),Y=u.year()+1):(Y=u.year(),$=R),{week:$,year:Y}}function tn(u,f,y){var T=rs(u,f,y),R=rs(u+1,f,y);return(ui(u)-T+R)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),$e("week","w"),$e("isoWeek","W"),te("week",5),te("isoWeek",5),le("w",He),le("ww",He,ze),le("W",He),le("WW",He,ze),nr(["w","ww","W","WW"],function(u,f,y,T){f[T.substr(0,1)]=ge(u)});function kN(u){return di(u,this._week.dow,this._week.doy).week}var RN={dow:0,doy:6};function IN(){return this._week.dow}function NN(){return this._week.doy}function CN(u){var f=this.localeData().week(this);return u==null?f:this.add((u-f)*7,"d")}function DN(u){var f=di(this,1,4).week;return u==null?f:this.add((u-f)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),Q("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),Q("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),$e("day","d"),$e("weekday","e"),$e("isoWeekday","E"),te("day",11),te("weekday",11),te("isoWeekday",11),le("d",He),le("e",He),le("E",He),le("dd",function(u,f){return f.weekdaysMinRegex(u)}),le("ddd",function(u,f){return f.weekdaysShortRegex(u)}),le("dddd",function(u,f){return f.weekdaysRegex(u)}),nr(["dd","ddd","dddd"],function(u,f,y,T){var R=y._locale.weekdaysParse(u,T,y._strict);R!=null?f.d=R:S(y).invalidWeekday=u}),nr(["d","e","E"],function(u,f,y,T){f[T]=ge(u)});function LN(u,f){return typeof u!="string"?u:isNaN(u)?(u=f.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function MN(u,f){return typeof u=="string"?f.weekdaysParse(u)%7||7:isNaN(u)?null:u}function Uu(u,f){return u.slice(f,7).concat(u.slice(0,f))}var PN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),av="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$N="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jN=Ar,FN=Ar,BN=Ar;function UN(u,f){var y=i(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(f)?"format":"standalone"];return u===!0?Uu(y,this._week.dow):u?y[u.day()]:y}function GN(u){return u===!0?Uu(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function zN(u){return u===!0?Uu(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function qN(u,f,y){var T,R,$,Y=u.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)$=b([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays($,"").toLocaleLowerCase();return y?f==="dddd"?(R=ft.call(this._weekdaysParse,Y),R!==-1?R:null):f==="ddd"?(R=ft.call(this._shortWeekdaysParse,Y),R!==-1?R:null):(R=ft.call(this._minWeekdaysParse,Y),R!==-1?R:null):f==="dddd"?(R=ft.call(this._weekdaysParse,Y),R!==-1||(R=ft.call(this._shortWeekdaysParse,Y),R!==-1)?R:(R=ft.call(this._minWeekdaysParse,Y),R!==-1?R:null)):f==="ddd"?(R=ft.call(this._shortWeekdaysParse,Y),R!==-1||(R=ft.call(this._weekdaysParse,Y),R!==-1)?R:(R=ft.call(this._minWeekdaysParse,Y),R!==-1?R:null)):(R=ft.call(this._minWeekdaysParse,Y),R!==-1||(R=ft.call(this._weekdaysParse,Y),R!==-1)?R:(R=ft.call(this._shortWeekdaysParse,Y),R!==-1?R:null))}function HN(u,f,y){var T,R,$;if(this._weekdaysParseExact)return qN.call(this,u,f,y);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(R=b([2e3,1]).day(T),y&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(R,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(R,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(R,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||($="^"+this.weekdays(R,"")+"|^"+this.weekdaysShort(R,"")+"|^"+this.weekdaysMin(R,""),this._weekdaysParse[T]=new RegExp($.replace(".",""),"i")),y&&f==="dddd"&&this._fullWeekdaysParse[T].test(u))return T;if(y&&f==="ddd"&&this._shortWeekdaysParse[T].test(u))return T;if(y&&f==="dd"&&this._minWeekdaysParse[T].test(u))return T;if(!y&&this._weekdaysParse[T].test(u))return T}}function WN(u){if(!this.isValid())return u!=null?this:NaN;var f=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=LN(u,this.localeData()),this.add(u-f,"d")):f}function VN(u){if(!this.isValid())return u!=null?this:NaN;var f=(this.day()+7-this.localeData()._week.dow)%7;return u==null?f:this.add(u-f,"d")}function YN(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var f=MN(u,this.localeData());return this.day(this.day()%7?f:f-7)}else return this.day()||7}function KN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=jN),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function XN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=FN),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ZN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=BN),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Gu(){function u(Ut,sn){return sn.length-Ut.length}var f=[],y=[],T=[],R=[],$,Y,me,Te,Ke;for($=0;$<7;$++)Y=b([2e3,1]).day($),me=ut(this.weekdaysMin(Y,"")),Te=ut(this.weekdaysShort(Y,"")),Ke=ut(this.weekdays(Y,"")),f.push(me),y.push(Te),T.push(Ke),R.push(me),R.push(Te),R.push(Ke);f.sort(u),y.sort(u),T.sort(u),R.sort(u),this._weekdaysRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function zu(){return this.hours()%12||12}function JN(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,zu),Q("k",["kk",2],0,JN),Q("hmm",0,0,function(){return""+zu.apply(this)+J(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+zu.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)});function iv(u,f){Q(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),f)})}iv("a",!0),iv("A",!1),$e("hour","h"),te("hour",13);function ov(u,f){return f._meridiemParse}le("a",ov),le("A",ov),le("H",He),le("h",He),le("k",He),le("HH",He,ze),le("hh",He,ze),le("kk",He,ze),le("hmm",Bn),le("hmmss",Jr),le("Hmm",Bn),le("Hmmss",Jr),Oe(["H","HH"],tt),Oe(["k","kk"],function(u,f,y){var T=ge(u);f[tt]=T===24?0:T}),Oe(["a","A"],function(u,f,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Oe(["h","hh"],function(u,f,y){f[tt]=ge(u),S(y).bigHour=!0}),Oe("hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T)),S(y).bigHour=!0}),Oe("hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R)),S(y).bigHour=!0}),Oe("Hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T))}),Oe("Hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R))});function QN(u){return(u+"").toLowerCase().charAt(0)==="p"}var eC=/[ap]\.?m?\.?/i,tC=qe("Hours",!0);function rC(u,f,y){return u>11?y?"pm":"PM":y?"am":"AM"}var sv={calendar:G,longDateFormat:oe,invalidDate:X,ordinal:fe,dayOfMonthOrdinalParse:he,relativeTime:nt,months:mN,monthsShort:Zy,week:RN,weekdays:PN,weekdaysMin:$N,weekdaysShort:av,meridiemParse:eC},st={},pi={},fi;function nC(u,f){var y,T=Math.min(u.length,f.length);for(y=0;y0;){if(R=ns($.slice(0,y).join("-")),R)return R;if(T&&T.length>=y&&nC($,T)>=y-1)break;y--}f++}return fi}function iC(u){return u.match("^[^/\\\\]*$")!=null}function ns(u){var f=null,y;if(st[u]===void 0&&e&&e.exports&&iC(u))try{f=fi._abbr,y=XL,y("./locale/"+u),xn(f)}catch{st[u]=null}return st[u]}function xn(u,f){var y;return u&&(c(f)?y=rn(u):y=qu(u,f),y?fi=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),fi._abbr}function qu(u,f){if(f!==null){var y,T=sv;if(f.abbr=u,st[u]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),T=st[u]._config;else if(f.parentLocale!=null)if(st[f.parentLocale]!=null)T=st[f.parentLocale]._config;else if(y=ns(f.parentLocale),y!=null)T=y._config;else return pi[f.parentLocale]||(pi[f.parentLocale]=[]),pi[f.parentLocale].push({name:u,config:f}),null;return st[u]=new V(H(T,f)),pi[u]&&pi[u].forEach(function(R){qu(R.name,R.config)}),xn(u),st[u]}else return delete st[u],null}function oC(u,f){if(f!=null){var y,T,R=sv;st[u]!=null&&st[u].parentLocale!=null?st[u].set(H(st[u]._config,f)):(T=ns(u),T!=null&&(R=T._config),f=H(R,f),T==null&&(f.abbr=u),y=new V(f),y.parentLocale=st[u],st[u]=y),xn(u)}else st[u]!=null&&(st[u].parentLocale!=null?(st[u]=st[u].parentLocale,u===xn()&&xn(u)):st[u]!=null&&delete st[u]);return st[u]}function rn(u){var f;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return fi;if(!i(u)){if(f=ns(u),f)return f;u=[u]}return aC(u)}function sC(){return K(st)}function Hu(u){var f,y=u._a;return y&&S(u).overflow===-2&&(f=y[We]<0||y[We]>11?We:y[kt]<1||y[kt]>ts(y[_e],y[We])?kt:y[tt]<0||y[tt]>24||y[tt]===24&&(y[ct]!==0||y[Or]!==0||y[en]!==0)?tt:y[ct]<0||y[ct]>59?ct:y[Or]<0||y[Or]>59?Or:y[en]<0||y[en]>999?en:-1,S(u)._overflowDayOfYear&&(f<_e||f>kt)&&(f=kt),S(u)._overflowWeeks&&f===-1&&(f=ke),S(u)._overflowWeekday&&f===-1&&(f=Bt),S(u).overflow=f),u}var lC=/^\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)?)?$/,uC=/^\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)?)?$/,cC=/Z|[+-]\d\d(?::?\d\d)?/,as=[["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]],Wu=[["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/]],dC=/^\/?Date\((-?\d+)/i,pC=/^(?:(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}))$/,fC={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 uv(u){var f,y,T=u._i,R=lC.exec(T)||uC.exec(T),$,Y,me,Te,Ke=as.length,Ut=Wu.length;if(R){for(S(u).iso=!0,f=0,y=Ke;fui(Y)||u._dayOfYear===0)&&(S(u)._overflowDayOfYear=!0),y=ci(Y,0,u._dayOfYear),u._a[We]=y.getUTCMonth(),u._a[kt]=y.getUTCDate()),f=0;f<3&&u._a[f]==null;++f)u._a[f]=T[f]=R[f];for(;f<7;f++)u._a[f]=T[f]=u._a[f]==null?f===2?1:0:u._a[f];u._a[tt]===24&&u._a[ct]===0&&u._a[Or]===0&&u._a[en]===0&&(u._nextDay=!0,u._a[tt]=0),u._d=(u._useUTC?ci:ON).apply(null,T),$=u._useUTC?u._d.getUTCDay():u._d.getDay(),u._tzm!=null&&u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),u._nextDay&&(u._a[tt]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(S(u).weekdayMismatch=!0)}}function EC(u){var f,y,T,R,$,Y,me,Te,Ke;f=u._w,f.GG!=null||f.W!=null||f.E!=null?($=1,Y=4,y=pa(f.GG,u._a[_e],di(at(),1,4).year),T=pa(f.W,1),R=pa(f.E,1),(R<1||R>7)&&(Te=!0)):($=u._locale._week.dow,Y=u._locale._week.doy,Ke=di(at(),$,Y),y=pa(f.gg,u._a[_e],Ke.year),T=pa(f.w,Ke.week),f.d!=null?(R=f.d,(R<0||R>6)&&(Te=!0)):f.e!=null?(R=f.e+$,(f.e<0||f.e>6)&&(Te=!0)):R=$),T<1||T>tn(y,$,Y)?S(u)._overflowWeeks=!0:Te!=null?S(u)._overflowWeekday=!0:(me=nv(y,T,R,$,Y),u._a[_e]=me.year,u._dayOfYear=me.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function Yu(u){if(u._f===n.ISO_8601){uv(u);return}if(u._f===n.RFC_2822){cv(u);return}u._a=[],S(u).empty=!0;var f=""+u._i,y,T,R,$,Y,me=f.length,Te=0,Ke,Ut;for(R=ee(u._f,u._locale).match(ae)||[],Ut=R.length,y=0;y0&&S(u).unusedInput.push(Y),f=f.slice(f.indexOf(T)+T.length),Te+=T.length),Se[$]?(T?S(u).empty=!1:S(u).unusedTokens.push($),da($,T,u)):u._strict&&!T&&S(u).unusedTokens.push($);S(u).charsLeftOver=me-Te,f.length>0&&S(u).unusedInput.push(f),u._a[tt]<=12&&S(u).bigHour===!0&&u._a[tt]>0&&(S(u).bigHour=void 0),S(u).parsedDateParts=u._a.slice(0),S(u).meridiem=u._meridiem,u._a[tt]=xC(u._locale,u._a[tt],u._meridiem),Ke=S(u).era,Ke!==null&&(u._a[_e]=u._locale.erasConvertYear(Ke,u._a[_e])),Vu(u),Hu(u)}function xC(u,f,y){var T;return y==null?f:u.meridiemHour!=null?u.meridiemHour(f,y):(u.isPM!=null&&(T=u.isPM(y),T&&f<12&&(f+=12),!T&&f===12&&(f=0)),f)}function wC(u){var f,y,T,R,$,Y,me=!1,Te=u._f.length;if(Te===0){S(u).invalidFormat=!0,u._d=new Date(NaN);return}for(R=0;Rthis?this:u:w()});function fv(u,f){var y,T;if(f.length===1&&i(f[0])&&(f=f[0]),!f.length)return at();for(y=f[0],T=1;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qC(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},f;return E(u,this),u=dv(u),u._a?(f=u._isUTC?b(u._a):at(u._a),this._isDSTShifted=this.isValid()&&MC(u._a,f.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function HC(){return this.isValid()?!this._isUTC:!1}function WC(){return this.isValid()?this._isUTC:!1}function hv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(u,f){var y=u,T=null,R,$,Y;return os(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:d(u)||!isNaN(+u)?(y={},f?y[f]=+u:y.milliseconds=+u):(T=VC.exec(u))?(R=T[1]==="-"?-1:1,y={y:0,d:ge(T[kt])*R,h:ge(T[tt])*R,m:ge(T[ct])*R,s:ge(T[Or])*R,ms:ge(Ku(T[en]*1e3))*R}):(T=YC.exec(u))?(R=T[1]==="-"?-1:1,y={y:qn(T[2],R),M:qn(T[3],R),w:qn(T[4],R),d:qn(T[5],R),h:qn(T[6],R),m:qn(T[7],R),s:qn(T[8],R)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(Y=KC(at(y.from),at(y.to)),y={},y.ms=Y.milliseconds,y.M=Y.months),$=new is(y),os(u)&&s(u,"_locale")&&($._locale=u._locale),os(u)&&s(u,"_isValid")&&($._isValid=u._isValid),$}kr.fn=is.prototype,kr.invalid=LC;function qn(u,f){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*f}function mv(u,f){var y={};return y.months=f.month()-u.month()+(f.year()-u.year())*12,u.clone().add(y.months,"M").isAfter(f)&&--y.months,y.milliseconds=+f-+u.clone().add(y.months,"M"),y}function KC(u,f){var y;return u.isValid()&&f.isValid()?(f=Zu(f,u),u.isBefore(f)?y=mv(u,f):(y=mv(f,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function bv(u,f){return function(y,T){var R,$;return T!==null&&!isNaN(+T)&&(j(f,"moment()."+f+"(period, number) is deprecated. Please use moment()."+f+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=y,y=T,T=$),R=kr(y,T),yv(this,R,u),this}}function yv(u,f,y,T){var R=f._milliseconds,$=Ku(f._days),Y=Ku(f._months);u.isValid()&&(T=T??!0,Y&&Qy(u,De(u,"Month")+Y*y),$&&Ge(u,"Date",De(u,"Date")+$*y),R&&u._d.setTime(u._d.valueOf()+R*y),T&&n.updateOffset(u,$||Y))}var XC=bv(1,"add"),ZC=bv(-1,"subtract");function vv(u){return typeof u=="string"||u instanceof String}function JC(u){return N(u)||p(u)||vv(u)||d(u)||eD(u)||QC(u)||u===null||u===void 0}function QC(u){var f=o(u)&&!l(u),y=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],R,$,Y=T.length;for(R=0;Ry.valueOf():y.valueOf()9999?xe(y,f?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?f?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xe(y,"Z")):xe(y,f?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gD(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",f="",y,T,R,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",f="Z"),y="["+u+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",R="-MM-DD[T]HH:mm:ss.SSS",$=f+'[")]',this.format(y+T+R+$)}function hD(u){u||(u=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var f=xe(this,u);return this.localeData().postformat(f)}function mD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({to:this,from:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function bD(u){return this.from(at(),u)}function yD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({from:this,to:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function vD(u){return this.to(at(),u)}function Sv(u){var f;return u===void 0?this._locale._abbr:(f=rn(u),f!=null&&(this._locale=f),this)}var Ev=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(u){return u===void 0?this.localeData():this.locale(u)});function xv(){return this._locale}var ls=1e3,fa=60*ls,us=60*fa,wv=(365*400+97)*24*us;function ga(u,f){return(u%f+f)%f}function _v(u,f,y){return u<100&&u>=0?new Date(u+400,f,y)-wv:new Date(u,f,y).valueOf()}function Tv(u,f,y){return u<100&&u>=0?Date.UTC(u+400,f,y)-wv:Date.UTC(u,f,y)}function SD(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Tv:_v,u){case"year":f=y(this.year(),0,1);break;case"quarter":f=y(this.year(),this.month()-this.month()%3,1);break;case"month":f=y(this.year(),this.month(),1);break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":f=y(this.year(),this.month(),this.date());break;case"hour":f=this._d.valueOf(),f-=ga(f+(this._isUTC?0:this.utcOffset()*fa),us);break;case"minute":f=this._d.valueOf(),f-=ga(f,fa);break;case"second":f=this._d.valueOf(),f-=ga(f,ls);break}return this._d.setTime(f),n.updateOffset(this,!0),this}function ED(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Tv:_v,u){case"year":f=y(this.year()+1,0,1)-1;break;case"quarter":f=y(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":f=y(this.year(),this.month()+1,1)-1;break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":f=y(this.year(),this.month(),this.date()+1)-1;break;case"hour":f=this._d.valueOf(),f+=us-ga(f+(this._isUTC?0:this.utcOffset()*fa),us)-1;break;case"minute":f=this._d.valueOf(),f+=fa-ga(f,fa)-1;break;case"second":f=this._d.valueOf(),f+=ls-ga(f,ls)-1;break}return this._d.setTime(f),n.updateOffset(this,!0),this}function xD(){return this._d.valueOf()-(this._offset||0)*6e4}function wD(){return Math.floor(this.valueOf()/1e3)}function _D(){return new Date(this.valueOf())}function TD(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function AD(){var u=this;return{years:u.year(),months:u.month(),date:u.date(),hours:u.hours(),minutes:u.minutes(),seconds:u.seconds(),milliseconds:u.milliseconds()}}function OD(){return this.isValid()?this.toISOString():null}function kD(){return _(this)}function RD(){return m({},S(this))}function ID(){return S(this).overflow}function ND(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),le("N",Qu),le("NN",Qu),le("NNN",Qu),le("NNNN",GD),le("NNNNN",zD),Oe(["N","NN","NNN","NNNN","NNNNN"],function(u,f,y,T){var R=y._locale.erasParse(u,T,y._strict);R?S(y).era=R:S(y).invalidEra=u}),le("y",_r),le("yy",_r),le("yyy",_r),le("yyyy",_r),le("yo",qD),Oe(["y","yy","yyy","yyyy"],_e),Oe(["yo"],function(u,f,y,T){var R;y._locale._eraYearOrdinalRegex&&(R=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?f[_e]=y._locale.eraYearOrdinalParse(u,R):f[_e]=parseInt(u,10)});function CD(u,f){var y,T,R,$=this._eras||rn("en")._eras;for(y=0,T=$.length;y=0)return $[T]}function LD(u,f){var y=u.since<=u.until?1:-1;return f===void 0?n(u.since).year():n(u.since).year()+(f-u.offset)*y}function MD(){var u,f,y,T=this.localeData().eras();for(u=0,f=T.length;u$&&(f=$),ZD.call(this,u,f,y,T,R))}function ZD(u,f,y,T,R){var $=nv(u,f,y,T,R),Y=ci($.year,0,$.dayOfYear);return this.year(Y.getUTCFullYear()),this.month(Y.getUTCMonth()),this.date(Y.getUTCDate()),this}Q("Q",0,"Qo","quarter"),$e("quarter","Q"),te("quarter",7),le("Q",rr),Oe("Q",function(u,f){f[We]=(ge(u)-1)*3});function JD(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),$e("date","D"),te("date",9),le("D",He),le("DD",He,ze),le("Do",function(u,f){return u?f._dayOfMonthOrdinalParse||f._ordinalParse:f._dayOfMonthOrdinalParseLenient}),Oe(["D","DD"],kt),Oe("Do",function(u,f){f[kt]=ge(u.match(He)[0])});var Ov=qe("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),$e("dayOfYear","DDD"),te("dayOfYear",4),le("DDD",xr),le("DDDD",Kr),Oe(["DDD","DDDD"],function(u,f,y){y._dayOfYear=ge(u)});function QD(u){var f=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?f:this.add(u-f,"d")}Q("m",["mm",2],0,"minute"),$e("minute","m"),te("minute",14),le("m",He),le("mm",He,ze),Oe(["m","mm"],ct);var eL=qe("Minutes",!1);Q("s",["ss",2],0,"second"),$e("second","s"),te("second",15),le("s",He),le("ss",He,ze),Oe(["s","ss"],Or);var tL=qe("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$e("millisecond","ms"),te("millisecond",16),le("S",xr,rr),le("SS",xr,ze),le("SSS",xr,Kr);var wn,kv;for(wn="SSSS";wn.length<=9;wn+="S")le(wn,_r);function rL(u,f){f[en]=ge(("0."+u)*1e3)}for(wn="S";wn.length<=9;wn+="S")Oe(wn,rL);kv=qe("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function nL(){return this._isUTC?"UTC":""}function aL(){return this._isUTC?"Coordinated Universal Time":""}var ne=k.prototype;ne.add=XC,ne.calendar=nD,ne.clone=aD,ne.diff=dD,ne.endOf=ED,ne.format=hD,ne.from=mD,ne.fromNow=bD,ne.to=yD,ne.toNow=vD,ne.get=Je,ne.invalidAt=ID,ne.isAfter=iD,ne.isBefore=oD,ne.isBetween=sD,ne.isSame=lD,ne.isSameOrAfter=uD,ne.isSameOrBefore=cD,ne.isValid=kD,ne.lang=Ev,ne.locale=Sv,ne.localeData=xv,ne.max=kC,ne.min=OC,ne.parsingFlags=RD,ne.set=jt,ne.startOf=SD,ne.subtract=ZC,ne.toArray=TD,ne.toObject=AD,ne.toDate=_D,ne.toISOString=fD,ne.inspect=gD,typeof Symbol<"u"&&Symbol.for!=null&&(ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ne.toJSON=OD,ne.toString=pD,ne.unix=wD,ne.valueOf=xD,ne.creationData=ND,ne.eraName=MD,ne.eraNarrow=PD,ne.eraAbbr=$D,ne.eraYear=jD,ne.year=rv,ne.isLeapYear=AN,ne.weekYear=HD,ne.isoWeekYear=WD,ne.quarter=ne.quarters=JD,ne.month=ev,ne.daysInMonth=wN,ne.week=ne.weeks=CN,ne.isoWeek=ne.isoWeeks=DN,ne.weeksInYear=KD,ne.weeksInWeekYear=XD,ne.isoWeeksInYear=VD,ne.isoWeeksInISOWeekYear=YD,ne.date=Ov,ne.day=ne.days=WN,ne.weekday=VN,ne.isoWeekday=YN,ne.dayOfYear=QD,ne.hour=ne.hours=tC,ne.minute=ne.minutes=eL,ne.second=ne.seconds=tL,ne.millisecond=ne.milliseconds=kv,ne.utcOffset=$C,ne.utc=FC,ne.local=BC,ne.parseZone=UC,ne.hasAlignedHourOffset=GC,ne.isDST=zC,ne.isLocal=HC,ne.isUtcOffset=WC,ne.isUtc=hv,ne.isUTC=hv,ne.zoneAbbr=nL,ne.zoneName=aL,ne.dates=D("dates accessor is deprecated. Use date instead.",Ov),ne.months=D("months accessor is deprecated. Use month instead",ev),ne.years=D("years accessor is deprecated. Use year instead",rv),ne.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jC),ne.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qC);function iL(u){return at(u*1e3)}function oL(){return at.apply(null,arguments).parseZone()}function Rv(u){return u}var Fe=V.prototype;Fe.calendar=W,Fe.longDateFormat=ie,Fe.invalidDate=Ee,Fe.ordinal=je,Fe.preparse=Rv,Fe.postformat=Rv,Fe.relativeTime=et,Fe.pastFuture=tr,Fe.set=q,Fe.eras=CD,Fe.erasParse=DD,Fe.erasConvertYear=LD,Fe.erasAbbrRegex=BD,Fe.erasNameRegex=FD,Fe.erasNarrowRegex=UD,Fe.months=vN,Fe.monthsShort=SN,Fe.monthsParse=xN,Fe.monthsRegex=TN,Fe.monthsShortRegex=_N,Fe.week=kN,Fe.firstDayOfYear=NN,Fe.firstDayOfWeek=IN,Fe.weekdays=UN,Fe.weekdaysMin=zN,Fe.weekdaysShort=GN,Fe.weekdaysParse=HN,Fe.weekdaysRegex=KN,Fe.weekdaysShortRegex=XN,Fe.weekdaysMinRegex=ZN,Fe.isPM=QN,Fe.meridiem=rC;function ds(u,f,y,T){var R=rn(),$=b().set(T,f);return R[y]($,u)}function Iv(u,f,y){if(d(u)&&(f=u,u=void 0),u=u||"",f!=null)return ds(u,f,y,"month");var T,R=[];for(T=0;T<12;T++)R[T]=ds(u,T,y,"month");return R}function tc(u,f,y,T){typeof u=="boolean"?(d(f)&&(y=f,f=void 0),f=f||""):(f=u,y=f,u=!1,d(f)&&(y=f,f=void 0),f=f||"");var R=rn(),$=u?R._week.dow:0,Y,me=[];if(y!=null)return ds(f,(y+$)%7,T,"day");for(Y=0;Y<7;Y++)me[Y]=ds(f,(Y+$)%7,T,"day");return me}function sL(u,f){return Iv(u,f,"months")}function lL(u,f){return Iv(u,f,"monthsShort")}function uL(u,f,y){return tc(u,f,y,"weekdays")}function cL(u,f,y){return tc(u,f,y,"weekdaysShort")}function dL(u,f,y){return tc(u,f,y,"weekdaysMin")}xn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(u){var f=u%10,y=ge(u%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th";return u+y}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",xn),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",rn);var nn=Math.abs;function pL(){var u=this._data;return this._milliseconds=nn(this._milliseconds),this._days=nn(this._days),this._months=nn(this._months),u.milliseconds=nn(u.milliseconds),u.seconds=nn(u.seconds),u.minutes=nn(u.minutes),u.hours=nn(u.hours),u.months=nn(u.months),u.years=nn(u.years),this}function Nv(u,f,y,T){var R=kr(f,y);return u._milliseconds+=T*R._milliseconds,u._days+=T*R._days,u._months+=T*R._months,u._bubble()}function fL(u,f){return Nv(this,u,f,1)}function gL(u,f){return Nv(this,u,f,-1)}function Cv(u){return u<0?Math.floor(u):Math.ceil(u)}function hL(){var u=this._milliseconds,f=this._days,y=this._months,T=this._data,R,$,Y,me,Te;return u>=0&&f>=0&&y>=0||u<=0&&f<=0&&y<=0||(u+=Cv(rc(y)+f)*864e5,f=0,y=0),T.milliseconds=u%1e3,R=ve(u/1e3),T.seconds=R%60,$=ve(R/60),T.minutes=$%60,Y=ve($/60),T.hours=Y%24,f+=ve(Y/24),Te=ve(Dv(f)),y+=Te,f-=Cv(rc(Te)),me=ve(y/12),y%=12,T.days=f,T.months=y,T.years=me,this}function Dv(u){return u*4800/146097}function rc(u){return u*146097/4800}function mL(u){if(!this.isValid())return NaN;var f,y,T=this._milliseconds;if(u=Ye(u),u==="month"||u==="quarter"||u==="year")switch(f=this._days+T/864e5,y=this._months+Dv(f),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(f=this._days+Math.round(rc(this._months)),u){case"week":return f/7+T/6048e5;case"day":return f+T/864e5;case"hour":return f*24+T/36e5;case"minute":return f*1440+T/6e4;case"second":return f*86400+T/1e3;case"millisecond":return Math.floor(f*864e5)+T;default:throw new Error("Unknown unit "+u)}}function bL(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ge(this._months/12)*31536e6:NaN}function an(u){return function(){return this.as(u)}}var yL=an("ms"),vL=an("s"),SL=an("m"),EL=an("h"),xL=an("d"),wL=an("w"),_L=an("M"),TL=an("Q"),AL=an("y");function OL(){return kr(this)}function kL(u){return u=Ye(u),this.isValid()?this[u+"s"]():NaN}function Hn(u){return function(){return this.isValid()?this._data[u]:NaN}}var RL=Hn("milliseconds"),IL=Hn("seconds"),NL=Hn("minutes"),CL=Hn("hours"),DL=Hn("days"),LL=Hn("months"),ML=Hn("years");function PL(){return ve(this.days()/7)}var on=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $L(u,f,y,T,R){return R.relativeTime(f||1,!!y,u,T)}function jL(u,f,y,T){var R=kr(u).abs(),$=on(R.as("s")),Y=on(R.as("m")),me=on(R.as("h")),Te=on(R.as("d")),Ke=on(R.as("M")),Ut=on(R.as("w")),sn=on(R.as("y")),_n=$<=y.ss&&["s",$]||$0,_n[4]=T,$L.apply(null,_n)}function FL(u){return u===void 0?on:typeof u=="function"?(on=u,!0):!1}function BL(u,f){return ha[u]===void 0?!1:f===void 0?ha[u]:(ha[u]=f,u==="s"&&(ha.ss=f-1),!0)}function UL(u,f){if(!this.isValid())return this.localeData().invalidDate();var y=!1,T=ha,R,$;return typeof u=="object"&&(f=u,u=!1),typeof u=="boolean"&&(y=u),typeof f=="object"&&(T=Object.assign({},ha,f),f.s!=null&&f.ss==null&&(T.ss=f.s-1)),R=this.localeData(),$=jL(this,!y,T,R),y&&($=R.pastFuture(+this,$)),R.postformat($)}var nc=Math.abs;function ma(u){return(u>0)-(u<0)||+u}function ps(){if(!this.isValid())return this.localeData().invalidDate();var u=nc(this._milliseconds)/1e3,f=nc(this._days),y=nc(this._months),T,R,$,Y,me=this.asSeconds(),Te,Ke,Ut,sn;return me?(T=ve(u/60),R=ve(T/60),u%=60,T%=60,$=ve(y/12),y%=12,Y=u?u.toFixed(3).replace(/\.?0+$/,""):"",Te=me<0?"-":"",Ke=ma(this._months)!==ma(me)?"-":"",Ut=ma(this._days)!==ma(me)?"-":"",sn=ma(this._milliseconds)!==ma(me)?"-":"",Te+"P"+($?Ke+$+"Y":"")+(y?Ke+y+"M":"")+(f?Ut+f+"D":"")+(R||T||u?"T":"")+(R?sn+R+"H":"")+(T?sn+T+"M":"")+(u?sn+Y+"S":"")):"P0D"}var Le=is.prototype;Le.isValid=DC,Le.abs=pL,Le.add=fL,Le.subtract=gL,Le.as=mL,Le.asMilliseconds=yL,Le.asSeconds=vL,Le.asMinutes=SL,Le.asHours=EL,Le.asDays=xL,Le.asWeeks=wL,Le.asMonths=_L,Le.asQuarters=TL,Le.asYears=AL,Le.valueOf=bL,Le._bubble=hL,Le.clone=OL,Le.get=kL,Le.milliseconds=RL,Le.seconds=IL,Le.minutes=NL,Le.hours=CL,Le.days=DL,Le.weeks=PL,Le.months=LL,Le.years=ML,Le.humanize=UL,Le.toISOString=ps,Le.toString=ps,Le.toJSON=ps,Le.locale=Sv,Le.localeData=xv,Le.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ps),Le.lang=Ev,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),le("x",Tr),le("X",li),Oe("X",function(u,f,y){y._d=new Date(parseFloat(u)*1e3)}),Oe("x",function(u,f,y){y._d=new Date(ge(u))});//! moment.js return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.unix=iL,n.months=sL,n.isDate=p,n.locale=xn,n.invalid=w,n.duration=kr,n.isMoment=N,n.weekdays=uL,n.parseZone=oL,n.localeData=rn,n.isDuration=os,n.monthsShort=lL,n.weekdaysMin=dL,n.defineLocale=qu,n.updateLocale=oC,n.locales=sC,n.weekdaysShort=cL,n.normalizeUnits=Ye,n.relativeTimeRounding=FL,n.relativeTimeThreshold=BL,n.calendarFormat=rD,n.prototype=ne,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})})(T1);var H$=T1.exports;const A1=pt(H$),W$=({text:e,type:t,sourceLink:r,date:n})=>h.jsxs(F,{direction:"column",children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsx(F,{align:"center",direction:"row",children:h.jsx(ri,{type:t})}),r&&h.jsx(Da,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(nj,{"data-testid":"episode-description",children:e}),h.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!n&&h.jsx(oa,{children:A1.unix(n).fromNow()})}),r&&h.jsxs(Da,{href:r,onClick:a=>a.stopPropagation(),target:"_blank",children:[h.jsx(o1,{}),h.jsx(V$,{children:r})]})]})]}),V$=B(mt)` max-width: 150px; overflow: hidden; @@ -416,7 +416,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni font-style: normal; font-weight: 600; line-height: 17px; -`,Z$=({text:e,imageUrl:t,date:r,twitterHandle:n,name:a,verified:i,sourceLink:o})=>h.jsxs(F,{direction:"column",children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",pr:16,children:[h.jsx(Q$,{children:h.jsx($r,{rounded:!0,size:27,src:t||"",type:"person"})}),h.jsxs(F,{children:[h.jsxs(J$,{align:"center",direction:"row",children:[a,i&&h.jsx("div",{className:"verification",children:h.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),n&&h.jsxs(ej,{children:["@",n]})]})]}),o&&h.jsx(Da,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:s=>s.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsxs(F,{grow:1,shrink:1,children:[h.jsx(tj,{"data-testid":"episode-description",children:e}),h.jsx(F,{"data-testid":"date-text",direction:"row",justify:"flex-start",children:!!r&&h.jsx(oa,{children:ei.unix(r).fromNow()})})]})]}),Q$=B(F)` +`,Z$=({text:e,imageUrl:t,date:r,twitterHandle:n,name:a,verified:i,sourceLink:o})=>h.jsxs(F,{direction:"column",children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",pr:16,children:[h.jsx(J$,{children:h.jsx($r,{rounded:!0,size:27,src:t||"",type:"person"})}),h.jsxs(F,{children:[h.jsxs(Q$,{align:"center",direction:"row",children:[a,i&&h.jsx("div",{className:"verification",children:h.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),n&&h.jsxs(ej,{children:["@",n]})]})]}),o&&h.jsx(Da,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:s=>s.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsxs(F,{grow:1,shrink:1,children:[h.jsx(tj,{"data-testid":"episode-description",children:e}),h.jsx(F,{"data-testid":"date-text",direction:"row",justify:"flex-start",children:!!r&&h.jsx(oa,{children:ei.unix(r).fromNow()})})]})]}),J$=B(F)` img { width: 64px; height: 64px; @@ -424,7 +424,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni object-fit: cover; } margin-right: 16px; -`,J$=B(F)` +`,Q$=B(F)` color: ${M.white}; font-family: Barlow; font-size: 12px; @@ -741,7 +741,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni overflow-x: hidden; flex: 1; width: 100%; -`,Oj=()=>{var p;const[e,t]=P.useState(null),{sidebarFilter:r,setSidebarFilter:n,sidebarFilterCounts:a=[]}=Pr(g=>g),i=(r??"").toLowerCase(),o=((p=a.find(g=>g.name===i))==null?void 0:p.count)||0,s=g=>g?g.charAt(0).toUpperCase()+g.slice(1):"",l=g=>{o>=1&&t(g.currentTarget)},c=()=>{t(null)},d=g=>{n(g),c()};return h.jsxs("div",{children:[h.jsxs(kj,{onClick:l,children:[h.jsx("div",{className:"text",children:"Show"}),h.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&h.jsx("div",{className:"icon",children:e?h.jsx(yb,{}):h.jsx(ql,{})})]}),h.jsx(Ij,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:h.jsx(HM,{children:a.filter(({name:g})=>g).map(({name:g,count:m})=>h.jsxs(Rj,{className:dn({active:g===r}),onClick:b=>{b.preventDefault(),d(g)},children:[h.jsx("span",{className:"icon",children:g===r?h.jsx(c1,{}):null}),h.jsx("span",{children:`${s(g)} (${m})`})]},g))})})]})},kj=B(F).attrs({direction:"row",align:"center"})` +`,Oj=()=>{var p;const[e,t]=P.useState(null),{sidebarFilter:r,setSidebarFilter:n,sidebarFilterCounts:a=[]}=Pr(g=>g),i=(r??"").toLowerCase(),o=((p=a.find(g=>g.name===i))==null?void 0:p.count)||0,s=g=>g?g.charAt(0).toUpperCase()+g.slice(1):"",l=g=>{o>=1&&t(g.currentTarget)},c=()=>{t(null)},d=g=>{n(g),c()};return h.jsxs("div",{children:[h.jsxs(kj,{onClick:l,children:[h.jsx("div",{className:"text",children:"Show"}),h.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&h.jsx("div",{className:"icon",children:e?h.jsx(yb,{}):h.jsx(ql,{})})]}),h.jsx(Ij,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:h.jsx(qM,{children:a.filter(({name:g})=>g).map(({name:g,count:m})=>h.jsxs(Rj,{className:dn({active:g===r}),onClick:b=>{b.preventDefault(),d(g)},children:[h.jsx("span",{className:"icon",children:g===r?h.jsx(c1,{}):null}),h.jsx("span",{children:`${s(g)} (${m})`})]},g))})})]})},kj=B(F).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${M.GRAY6}; @@ -907,7 +907,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni &:active { background: ${M.BUTTON1_PRESS}; } -`,Yj=({sourceNodes:e,setSourceNodes:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return h.jsxs(h.Fragment,{children:[h.jsxs(kb,{children:[h.jsx("div",{children:"Source Nodes"}),h.jsx(Ob,{children:"Core set of nodes based on search term"})]}),h.jsxs(Fo,{children:[h.jsxs(k1,{children:[h.jsx("span",{children:"0"}),h.jsx("span",{children:"100"})]}),h.jsx(O1,{direction:"row",children:h.jsx(Kj,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Kj=B(Wl)({"& .MuiSlider-valueLabel":{backgroundColor:`${M.primaryBlue}`}}),An={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},Xj=({anchorEl:e,setAnchorEl:t,onClose:r})=>{const[n,a]=KO(E=>[E.schemas,E.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s}=Pr(E=>E),[l,c]=P.useState(An.selectedTypes),[d,p]=P.useState(An.hops),[g,m]=P.useState(An.sourceNodes),[b,v]=P.useState(An.maxResults),{fastFiltersFeatureFlag:S}=ZO(E=>E);P.useEffect(()=>{(async()=>{try{const k=await ZL();a(k.schemas.filter(N=>!N.is_deleted))}catch(k){console.error("Error fetching schema:",k)}})()},[a]);const O=E=>{c(k=>k.includes(E)?k.filter(N=>N!==E):[...k,E])},_=E=>{c(E)},w=()=>{c(An.selectedTypes),p(An.hops),m(An.sourceNodes),v(An.maxResults)},A=async()=>{w(),i(),o()},x=async()=>{s({node_type:l,limit:b,depth:d.toString(),top_node_count:g.toString()}),t(null),r()};return h.jsxs(Zj,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[S&&h.jsxs(h.Fragment,{children:[h.jsx(Nj,{handleFastFiltersSelect:_}),h.jsx(vi,{})]}),h.jsx(Fj,{handleSchemaTypeClick:O,schemaAll:n,selectedTypes:l}),h.jsx(vi,{}),h.jsx(Yj,{setSourceNodes:m,sourceNodes:g}),h.jsx(vi,{}),h.jsx(Mj,{hops:d,setHops:p}),h.jsx(vi,{}),h.jsx($j,{maxResults:b,setMaxResults:v}),h.jsxs(Qj,{children:[h.jsx(vi,{}),h.jsxs(rF,{children:[h.jsxs(Jj,{color:"secondary",onClick:A,size:"large",style:{marginRight:20},variant:"contained",children:[h.jsx(eF,{children:h.jsx(QO,{})}),"Clear"]}),h.jsx(tF,{color:"secondary",onClick:x,size:"large",variant:"contained",children:"Apply"})]})]})]})},Zj=B(xb)` +`,Yj=({sourceNodes:e,setSourceNodes:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return h.jsxs(h.Fragment,{children:[h.jsxs(kb,{children:[h.jsx("div",{children:"Source Nodes"}),h.jsx(Ob,{children:"Core set of nodes based on search term"})]}),h.jsxs(Fo,{children:[h.jsxs(k1,{children:[h.jsx("span",{children:"0"}),h.jsx("span",{children:"100"})]}),h.jsx(O1,{direction:"row",children:h.jsx(Kj,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Kj=B(Wl)({"& .MuiSlider-valueLabel":{backgroundColor:`${M.primaryBlue}`}}),An={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},Xj=({anchorEl:e,setAnchorEl:t,onClose:r})=>{const[n,a]=KO(E=>[E.schemas,E.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s}=Pr(E=>E),[l,c]=P.useState(An.selectedTypes),[d,p]=P.useState(An.hops),[g,m]=P.useState(An.sourceNodes),[b,v]=P.useState(An.maxResults),{fastFiltersFeatureFlag:S}=ZO(E=>E);P.useEffect(()=>{(async()=>{try{const k=await ZL();a(k.schemas.filter(N=>!N.is_deleted))}catch(k){console.error("Error fetching schema:",k)}})()},[a]);const O=E=>{c(k=>k.includes(E)?k.filter(N=>N!==E):[...k,E])},_=E=>{c(E)},w=()=>{c(An.selectedTypes),p(An.hops),m(An.sourceNodes),v(An.maxResults)},A=async()=>{w(),i(),o()},x=async()=>{s({node_type:l,limit:b,depth:d.toString(),top_node_count:g.toString()}),t(null),r()};return h.jsxs(Zj,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[S&&h.jsxs(h.Fragment,{children:[h.jsx(Nj,{handleFastFiltersSelect:_}),h.jsx(vi,{})]}),h.jsx(Fj,{handleSchemaTypeClick:O,schemaAll:n,selectedTypes:l}),h.jsx(vi,{}),h.jsx(Yj,{setSourceNodes:m,sourceNodes:g}),h.jsx(vi,{}),h.jsx(Mj,{hops:d,setHops:p}),h.jsx(vi,{}),h.jsx($j,{maxResults:b,setMaxResults:v}),h.jsxs(Jj,{children:[h.jsx(vi,{}),h.jsxs(rF,{children:[h.jsxs(Qj,{color:"secondary",onClick:A,size:"large",style:{marginRight:20},variant:"contained",children:[h.jsx(eF,{children:h.jsx(JO,{})}),"Clear"]}),h.jsx(tF,{color:"secondary",onClick:x,size:"large",variant:"contained",children:"Apply"})]})]})]})},Zj=B(xb)` &&.MuiPopper-root { background: ${M.BG2}; padding: 16px; @@ -935,7 +935,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni overflow-y: hidden; } } -`,Qj=B.div` +`,Jj=B.div` justify-content: space-between; align-items: center; padding: 0px 8px 8px 8px; @@ -948,7 +948,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni border: 1px solid ${M.black}; width: calc(100% + 32px); margin: 13px -16px; -`,Jj=B(Mt)` +`,Qj=B(Mt)` && { color: ${M.white}; background-color: ${M.BUTTON1}; @@ -1110,9 +1110,9 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } } } -`,uF=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:r,nextPage:n}=Pr(A=>A),a=Mo(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Ct(A=>A),[l,c]=P.useState(0),[d,p]=P.useState(0),g=JO(),b=l*t+t,v=g&&g.length>0?g.length-1>b:!1,S=c$("sm","down"),O=P.useCallback(A=>{lP(A),r(A),s(!0),a(A),S&&o(!1)},[a,s,o,r,S]),_=()=>{n(),v&&(c(l+1),p(A=>A+1))},w=P.useMemo(()=>{if(g){const A=[...g].sort((x,E)=>(E.date||0)-(x.date||0));return i&&A.sort((x,E)=>{const k=x.node_type==="topic"&&x.name.toLowerCase()===i.toLowerCase()?1:0;return(E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0)-k}),A.slice(0,b)}return[]},[g,i,b]);return h.jsxs(h.Fragment,{children:[(w??[]).map(A=>{const x=Ab(A),{image_url:E,date:k,boost:N,show_title:I,node_type:D,text:L,source_link:j,name:z,verified:q=!1,twitter_handle:H}=x||{};return D?h.jsx(Tb,{boostCount:N||0,date:k||0,imageUrl:E||"",name:z||"",node:A,onClick:()=>{O(A)},showTitle:vb(I),sourceLink:j,text:L||"",twitterHandle:H,type:D,verified:q},x.ref_id):null}),h.jsx(dF,{align:"center",background:"BG1",direction:"row",justify:"center",children:v&&h.jsx(Mt,{onClick:_,size:"medium",children:"Load More"},d)})]})},cF=P.memo(uF),dF=B(F)` +`,uF=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:r,nextPage:n}=Pr(A=>A),a=Mo(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Ct(A=>A),[l,c]=P.useState(0),[d,p]=P.useState(0),g=QO(),b=l*t+t,v=g&&g.length>0?g.length-1>b:!1,S=c$("sm","down"),O=P.useCallback(A=>{lP(A),r(A),s(!0),a(A),S&&o(!1)},[a,s,o,r,S]),_=()=>{n(),v&&(c(l+1),p(A=>A+1))},w=P.useMemo(()=>{if(g){const A=[...g].sort((x,E)=>(E.date||0)-(x.date||0));return i&&A.sort((x,E)=>{const k=x.node_type==="topic"&&x.name.toLowerCase()===i.toLowerCase()?1:0;return(E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0)-k}),A.slice(0,b)}return[]},[g,i,b]);return h.jsxs(h.Fragment,{children:[(w??[]).map(A=>{const x=Ab(A),{image_url:E,date:k,boost:N,show_title:I,node_type:D,text:L,source_link:j,name:z,verified:q=!1,twitter_handle:H}=x||{};return D?h.jsx(Tb,{boostCount:N||0,date:k||0,imageUrl:E||"",name:z||"",node:A,onClick:()=>{O(A)},showTitle:vb(I),sourceLink:j,text:L||"",twitterHandle:H,type:D,verified:q},x.ref_id):null}),h.jsx(dF,{align:"center",background:"BG1",direction:"row",justify:"center",children:v&&h.jsx(Mt,{onClick:_,size:"medium",children:"Load More"},d)})]})},cF=P.memo(uF),dF=B(F)` flex: 0 0 86px; -`,pF=async()=>{const e="/get_trends";return await qO.get(e)},fF=["Drivechain","Ordinals","L402","Nostr","AI"],gF=()=>{var N;const{open:e}=Mv("addContent"),[t,r]=P.useState(!1),[n,a]=P.useState(!1),i=P.useRef(null),[o,s]=P.useState(0),[l,c]=P.useState(!1),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Ct(I=>I),g=Bl(),{open:m}=Mv("briefDescription"),{trendingTopics:b,setTrendingTopics:v}=Pr(I=>I),{setValue:S}=mb(),{setTrend:O}=aP(),_=P.useCallback(async()=>{r(!0),a(!1),s(0),c(!1),p(null);try{const I=await pF();if(I.length&&Array.isArray(I)){const D=new Map(I.map(j=>[j.name,j])),L=Array.from(D.values());v(L)}}catch{v(fF.map(D=>({name:D,count:0})))}finally{r(!1)}},[p,v]);P.useEffect(()=>{b.length||_()},[_,b.length]),P.useEffect(()=>{const I=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(I)},[a,t]);const w=I=>{S("search",I);const D=I.replace(/\s+/g,"+");g(`/search?q=${D}`)},A=(I,D)=>{I.stopPropagation(),I.currentTarget.blur(),D!=null&&D.tldr&&(O(D),m())},x=I=>{I.stopPropagation(),I.currentTarget.blur(),c(!l),p(i)};P.useEffect(()=>{var I,D;l?(I=i.current)==null||I.play():(D=i.current)==null||D.pause()},[o,l]),P.useEffect(()=>{d||c(!1)},[d]);const E=()=>{s(I=>{var L,j;let D=(I+1)%b.length;for(;D!==I&&!((L=b[D])!=null&&L.audio_EN);)D=(D+1)%b.length;return D===I?(c(!1),D):((j=i.current)==null||j.load(),D===0&&(c(!1),s(0)),D)}),p(i)},k=t?"Loading":"No new trending topics in the last 24 hours";return h.jsx(mF,{"data-testid":"trending-component",children:h.jsxs("div",{children:[h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Trending Topics"}),h.jsx("span",{className:"heading__icon",children:t?h.jsx(Hl,{color:M.white,size:16}):h.jsx(h.Fragment,{children:n?h.jsx(yF,{onClick:_,size:"small",startIcon:h.jsx(RM,{})}):h.jsx(IM,{})})})]}),d$(b)?h.jsxs("div",{children:[h.jsx(Mt,{onClick:I=>x(I),startIcon:l?h.jsx(Sb,{}):h.jsx(Eb,{}),children:l?"Pause":"Play All"}),h.jsx(EF,{ref:i,onEnded:E,src:(N=b[o])==null?void 0:N.audio_EN,children:h.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?h.jsxs("div",{className:"trending-empty",children:[h.jsx(bF,{children:k}),h.jsx(Mt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:h.jsx(bb,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):h.jsx("ul",{className:"list",children:b.map((I,D)=>h.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>w(I.tldr_topic??I.name),children:[h.jsxs(hF,{children:[h.jsx(SF,{children:h.jsx(NM,{})}),h.jsx("span",{className:"tldr",children:p$(I)})]}),I.tldr&&h.jsx(vF,{className:dn({isPlaying:o===D&&l}),onClick:L=>A(L,I),children:"TLDR"})]},I.name))})]})})},hF=B.div` +`,pF=async()=>{const e="/get_trends";return await qO.get(e)},fF=["Drivechain","Ordinals","L402","Nostr","AI"],gF=()=>{var N;const{open:e}=Mv("addContent"),[t,r]=P.useState(!1),[n,a]=P.useState(!1),i=P.useRef(null),[o,s]=P.useState(0),[l,c]=P.useState(!1),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Ct(I=>I),g=Bl(),{open:m}=Mv("briefDescription"),{trendingTopics:b,setTrendingTopics:v}=Pr(I=>I),{setValue:S}=mb(),{setTrend:O}=nP(),_=P.useCallback(async()=>{r(!0),a(!1),s(0),c(!1),p(null);try{const I=await pF();if(I.length&&Array.isArray(I)){const D=new Map(I.map(j=>[j.name,j])),L=Array.from(D.values());v(L)}}catch{v(fF.map(D=>({name:D,count:0})))}finally{r(!1)}},[p,v]);P.useEffect(()=>{b.length||_()},[_,b.length]),P.useEffect(()=>{const I=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(I)},[a,t]);const w=I=>{S("search",I);const D=I.replace(/\s+/g,"+");g(`/search?q=${D}`)},A=(I,D)=>{I.stopPropagation(),I.currentTarget.blur(),D!=null&&D.tldr&&(O(D),m())},x=I=>{I.stopPropagation(),I.currentTarget.blur(),c(!l),p(i)};P.useEffect(()=>{var I,D;l?(I=i.current)==null||I.play():(D=i.current)==null||D.pause()},[o,l]),P.useEffect(()=>{d||c(!1)},[d]);const E=()=>{s(I=>{var L,j;let D=(I+1)%b.length;for(;D!==I&&!((L=b[D])!=null&&L.audio_EN);)D=(D+1)%b.length;return D===I?(c(!1),D):((j=i.current)==null||j.load(),D===0&&(c(!1),s(0)),D)}),p(i)},k=t?"Loading":"No new trending topics in the last 24 hours";return h.jsx(mF,{"data-testid":"trending-component",children:h.jsxs("div",{children:[h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Trending Topics"}),h.jsx("span",{className:"heading__icon",children:t?h.jsx(Hl,{color:M.white,size:16}):h.jsx(h.Fragment,{children:n?h.jsx(yF,{onClick:_,size:"small",startIcon:h.jsx(RM,{})}):h.jsx(IM,{})})})]}),d$(b)?h.jsxs("div",{children:[h.jsx(Mt,{onClick:I=>x(I),startIcon:l?h.jsx(Sb,{}):h.jsx(Eb,{}),children:l?"Pause":"Play All"}),h.jsx(EF,{ref:i,onEnded:E,src:(N=b[o])==null?void 0:N.audio_EN,children:h.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?h.jsxs("div",{className:"trending-empty",children:[h.jsx(bF,{children:k}),h.jsx(Mt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:h.jsx(bb,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):h.jsx("ul",{className:"list",children:b.map((I,D)=>h.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>w(I.tldr_topic??I.name),children:[h.jsxs(hF,{children:[h.jsx(SF,{children:h.jsx(NM,{})}),h.jsx("span",{className:"tldr",children:p$(I)})]}),I.tldr&&h.jsx(vF,{className:dn({isPlaying:o===D&&l}),onClick:L=>A(L,I),children:"TLDR"})]},I.name))})]})})},hF=B.div` position: relative; display: flex; align-items: flex-start; @@ -1219,7 +1219,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni `,EF=B.audio` height: 0; width: 0; -`,xF=()=>{const{isFetching:e,setSidebarFilter:t}=Pr(k=>k),r=Mo(),n=JO(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Ct(k=>k),[s]=ZO(k=>[k.trendingTopicsFeatureFlag]),{setValue:l,watch:c}=mb(),d=P.useRef(null),[p,g]=P.useState(!1),[m,b]=P.useState(!1),[v,S]=P.useState(null),[O]=QL(),_=O.get("q")??"";P.useEffect(()=>{l("search",_||o)},[l,o,_]),P.useEffect(()=>{const k=d.current;if(!k)return;const N=()=>{g((k==null?void 0:k.scrollTop)>0)};k.addEventListener("scroll",N)},[]);const w=c("search"),A=k=>{S(m?null:k.currentTarget),b(N=>!N)},x=()=>{b(!1),S(null)},E=Bl();return h.jsxs(h.Fragment,{children:[h.jsxs(R1,{className:dn({"has-shadow":p}),children:[h.jsxs(kF,{children:[h.jsxs(wF,{children:[h.jsx(E1,{}),h.jsx(TF,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),r(null),E("/");return}if(w.trim()==="")return;const k=w.replace(/\s+/g,"+");E(`/search?q=${k}`)},children:e?h.jsx(Hl,{color:M.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):h.jsx(h.Fragment,{children:a!=null&&a.trim()?h.jsx(QO,{}):h.jsx(a1,{})})})]}),h.jsx(RF,{"data-testid":"search_filter_icon",isFilterOpen:m,onClick:A,children:m?h.jsx(CM,{}):h.jsx(DM,{})}),h.jsx(Xj,{anchorEl:v,onClose:x,setAnchorEl:S})]}),a&&h.jsx(_F,{children:e?h.jsx(nF,{}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"left",children:[h.jsx("span",{className:"count",children:n.length}),h.jsx("span",{className:"label",children:" results"})]}),h.jsx("div",{className:"right",style:{alignItems:"center"},children:h.jsx(Oj,{})})]})})]}),h.jsxs(AF,{ref:d,children:[!a&&s&&h.jsx(OF,{children:h.jsx(gF,{})}),!a&&h.jsx(sF,{}),e?h.jsx(w1,{}):h.jsx(cF,{isSearchResult:!!a})]})]})},R1=B(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:M.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),wF=B(F).attrs({direction:"row",justify:"center",align:"center"})` +`,xF=()=>{const{isFetching:e,setSidebarFilter:t}=Pr(k=>k),r=Mo(),n=QO(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Ct(k=>k),[s]=ZO(k=>[k.trendingTopicsFeatureFlag]),{setValue:l,watch:c}=mb(),d=P.useRef(null),[p,g]=P.useState(!1),[m,b]=P.useState(!1),[v,S]=P.useState(null),[O]=JL(),_=O.get("q")??"";P.useEffect(()=>{l("search",_||o)},[l,o,_]),P.useEffect(()=>{const k=d.current;if(!k)return;const N=()=>{g((k==null?void 0:k.scrollTop)>0)};k.addEventListener("scroll",N)},[]);const w=c("search"),A=k=>{S(m?null:k.currentTarget),b(N=>!N)},x=()=>{b(!1),S(null)},E=Bl();return h.jsxs(h.Fragment,{children:[h.jsxs(R1,{className:dn({"has-shadow":p}),children:[h.jsxs(kF,{children:[h.jsxs(wF,{children:[h.jsx(E1,{}),h.jsx(TF,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),r(null),E("/");return}if(w.trim()==="")return;const k=w.replace(/\s+/g,"+");E(`/search?q=${k}`)},children:e?h.jsx(Hl,{color:M.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):h.jsx(h.Fragment,{children:a!=null&&a.trim()?h.jsx(JO,{}):h.jsx(a1,{})})})]}),h.jsx(RF,{"data-testid":"search_filter_icon",isFilterOpen:m,onClick:A,children:m?h.jsx(CM,{}):h.jsx(DM,{})}),h.jsx(Xj,{anchorEl:v,onClose:x,setAnchorEl:S})]}),a&&h.jsx(_F,{children:e?h.jsx(nF,{}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"left",children:[h.jsx("span",{className:"count",children:n.length}),h.jsx("span",{className:"label",children:" results"})]}),h.jsx("div",{className:"right",style:{alignItems:"center"},children:h.jsx(Oj,{})})]})})]}),h.jsxs(AF,{ref:d,children:[!a&&s&&h.jsx(OF,{children:h.jsx(gF,{})}),!a&&h.jsx(sF,{}),e?h.jsx(w1,{}):h.jsx(cF,{isSearchResult:!!a})]})]})},R1=B(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:M.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),wF=B(F).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; `,_F=B(F).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; @@ -1291,33 +1291,33 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var At=typeof Symbol=="function"&&Symbol.for,Rb=At?Symbol.for("react.element"):60103,Ib=At?Symbol.for("react.portal"):60106,Yl=At?Symbol.for("react.fragment"):60107,Kl=At?Symbol.for("react.strict_mode"):60108,Xl=At?Symbol.for("react.profiler"):60114,Zl=At?Symbol.for("react.provider"):60109,Ql=At?Symbol.for("react.context"):60110,Nb=At?Symbol.for("react.async_mode"):60111,Jl=At?Symbol.for("react.concurrent_mode"):60111,eu=At?Symbol.for("react.forward_ref"):60112,tu=At?Symbol.for("react.suspense"):60113,CF=At?Symbol.for("react.suspense_list"):60120,ru=At?Symbol.for("react.memo"):60115,nu=At?Symbol.for("react.lazy"):60116,DF=At?Symbol.for("react.block"):60121,LF=At?Symbol.for("react.fundamental"):60117,MF=At?Symbol.for("react.responder"):60118,PF=At?Symbol.for("react.scope"):60119;function ur(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Rb:switch(e=e.type,e){case Nb:case Jl:case Yl:case Xl:case Kl:case tu:return e;default:switch(e=e&&e.$$typeof,e){case Ql:case eu:case nu:case ru:case Zl:return e;default:return t}}case Ib:return t}}}function C1(e){return ur(e)===Jl}Ve.AsyncMode=Nb;Ve.ConcurrentMode=Jl;Ve.ContextConsumer=Ql;Ve.ContextProvider=Zl;Ve.Element=Rb;Ve.ForwardRef=eu;Ve.Fragment=Yl;Ve.Lazy=nu;Ve.Memo=ru;Ve.Portal=Ib;Ve.Profiler=Xl;Ve.StrictMode=Kl;Ve.Suspense=tu;Ve.isAsyncMode=function(e){return C1(e)||ur(e)===Nb};Ve.isConcurrentMode=C1;Ve.isContextConsumer=function(e){return ur(e)===Ql};Ve.isContextProvider=function(e){return ur(e)===Zl};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Rb};Ve.isForwardRef=function(e){return ur(e)===eu};Ve.isFragment=function(e){return ur(e)===Yl};Ve.isLazy=function(e){return ur(e)===nu};Ve.isMemo=function(e){return ur(e)===ru};Ve.isPortal=function(e){return ur(e)===Ib};Ve.isProfiler=function(e){return ur(e)===Xl};Ve.isStrictMode=function(e){return ur(e)===Kl};Ve.isSuspense=function(e){return ur(e)===tu};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yl||e===Jl||e===Xl||e===Kl||e===tu||e===CF||typeof e=="object"&&e!==null&&(e.$$typeof===nu||e.$$typeof===ru||e.$$typeof===Zl||e.$$typeof===Ql||e.$$typeof===eu||e.$$typeof===LF||e.$$typeof===MF||e.$$typeof===PF||e.$$typeof===DF)};Ve.typeOf=ur;N1.exports=Ve;var Vh=N1.exports,$F=e1,jF=t1,FF="[object Number]";function BF(e){return typeof e=="number"||jF(e)&&$F(e)==FF}var D1=BF;const UF=pt(D1);var GF=D1;function zF(e){return GF(e)&&e!=+e}var qF=zF;const Bo=pt(qF);var Lr=function(t){return t===0?0:t>0?1:-1},Xn=function(t){return $o(t)&&t.indexOf("%")===t.length-1},se=function(t){return UF(t)&&!Bo(t)},Et=function(t){return se(t)||$o(t)},HF=0,Uo=function(t){var r=++HF;return"".concat(t||"").concat(r)},La=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!$o(t))return n;var i;if(Xn(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Bo(i)&&(i=n),a&&i>r&&(i=r),i},kn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},WF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var Kv={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},pn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Xv=null,pc=null,Db=function e(t){if(t===Xv&&Array.isArray(pc))return pc;var r=[];return P.Children.forEach(t,function(n){Ce(n)||(Vh.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),pc=r,Xv=t,r};function lr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return pn(a)}):n=[pn(t)],Db(e).forEach(function(a){var i=yr(a,"type.displayName")||yr(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function ln(e,t){var r=lr(e,t);return r&&r[0]}var Zv=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!se(n)||n<=0||!se(a)||a<=0)},eB=["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"],tB=function(t){return t&&t.type&&$o(t.type)&&eB.indexOf(t.type)>=0},rB=function(t,r,n,a){var i,o=(i=dc==null?void 0:dc[a])!==null&&i!==void 0?i:[];return!Ne(t)&&(a&&o.includes(r)||KF.includes(r))||n&&Cb.includes(r)},Me=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(P.isValidElement(t)&&(a=t.props),!ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;rB((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},L1=function e(t,r){if(t===r)return!0;var n=P.Children.count(t);if(n!==P.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Qv(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Xh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,c=oB(e,iB),d=a||{width:r,height:n,x:0,y:0},p=Ze("recharts-surface",i);return U.createElement("svg",Kh({},Me(c,!0,"svg"),{className:p,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var lB=["children","className"];function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var dt=U.forwardRef(function(e,t){var r=e.children,n=e.className,a=uB(e,lB),i=Ze("recharts-layer",n);return U.createElement("g",Zh({className:i},Me(a,!0),{ref:t}),r)}),ea=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=n?e:fB(e,t,r)}var hB=gB,mB="\\ud800-\\udfff",bB="\\u0300-\\u036f",yB="\\ufe20-\\ufe2f",vB="\\u20d0-\\u20ff",SB=bB+yB+vB,EB="\\ufe0e\\ufe0f",xB="\\u200d",wB=RegExp("["+xB+mB+SB+EB+"]");function _B(e){return wB.test(e)}var M1=_B;function TB(e){return e.split("")}var AB=TB,P1="\\ud800-\\udfff",OB="\\u0300-\\u036f",kB="\\ufe20-\\ufe2f",RB="\\u20d0-\\u20ff",IB=OB+kB+RB,NB="\\ufe0e\\ufe0f",CB="["+P1+"]",Qh="["+IB+"]",Jh="\\ud83c[\\udffb-\\udfff]",DB="(?:"+Qh+"|"+Jh+")",$1="[^"+P1+"]",j1="(?:\\ud83c[\\udde6-\\uddff]){2}",F1="[\\ud800-\\udbff][\\udc00-\\udfff]",LB="\\u200d",B1=DB+"?",U1="["+NB+"]?",MB="(?:"+LB+"(?:"+[$1,j1,F1].join("|")+")"+U1+B1+")*",PB=U1+B1+MB,$B="(?:"+[$1+Qh+"?",Qh,j1,F1,CB].join("|")+")",jB=RegExp(Jh+"(?="+Jh+")|"+$B+PB,"g");function FB(e){return e.match(jB)||[]}var BB=FB,UB=AB,GB=M1,zB=BB;function qB(e){return GB(e)?zB(e):UB(e)}var HB=qB,WB=hB,VB=M1,YB=HB,KB=VM;function XB(e){return function(t){t=KB(t);var r=VB(t)?YB(t):void 0,n=r?r[0]:t.charAt(0),a=r?WB(r,1).join(""):t.slice(1);return n[e]()+a}}var ZB=XB,QB=ZB,JB=QB("toUpperCase"),e2=JB;const au=pt(e2);function rt(e){return function(){return e}}const G1=Math.cos,Ys=Math.sin,jr=Math.sqrt,Ks=Math.PI,iu=2*Ks,em=Math.PI,tm=2*em,Yn=1e-6,t2=tm-Yn;function z1(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return z1;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aYn)if(!(Math.abs(p*l-c*d)>Yn)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,b=a-s,v=l*l+c*c,S=m*m+b*b,O=Math.sqrt(v),_=Math.sqrt(g),w=i*Math.tan((em-Math.acos((v+g-S)/(2*O*_)))/2),A=w/_,x=w/O;Math.abs(A-1)>Yn&&this._append`L${t+A*d},${r+A*p}`,this._append`A${i},${i},0,0,${+(p*m>d*b)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,d=r+l,p=1^o,g=o?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>Yn||Math.abs(this._y1-d)>Yn)&&this._append`L${c},${d}`,n&&(g<0&&(g=g%tm+tm),g>t2?this._append`A${n},${n},0,1,${p},${t-s},${r-l}A${n},${n},0,1,${p},${this._x1=c},${this._y1=d}`:g>Yn&&this._append`A${n},${n},0,${+(g>=em)},${p},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Lb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new n2(t)}function Mb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function q1(e){this._context=e}q1.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 ou(e){return new q1(e)}function H1(e){return e[0]}function W1(e){return e[1]}function V1(e,t){var r=rt(!0),n=null,a=ou,i=null,o=Lb(s);e=typeof e=="function"?e:e===void 0?H1:rt(e),t=typeof t=="function"?t:t===void 0?W1:rt(t);function s(l){var c,d=(l=Mb(l)).length,p,g=!1,m;for(n==null&&(i=a(m=o())),c=0;c<=d;++c)!(c=m;--b)s.point(w[b],A[b]);s.lineEnd(),s.areaEnd()}O&&(w[g]=+e(S,g,p),A[g]=+t(S,g,p),s.point(n?+n(S,g,p):w[g],r?+r(S,g,p):A[g]))}if(_)return s=null,_+""||null}function d(){return V1().defined(a).curve(o).context(i)}return c.x=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),n=null,c):e},c.x0=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),c):e},c.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:rt(+p),c):n},c.y=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),r=null,c):t},c.y0=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),c):t},c.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:rt(+p),c):r},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(r)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(p){return arguments.length?(a=typeof p=="function"?p:rt(!!p),c):a},c.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),c):o},c.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),c):i},c}class Y1{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function a2(e){return new Y1(e,!0)}function i2(e){return new Y1(e,!1)}const Pb={draw(e,t){const r=jr(t/Ks);e.moveTo(r,0),e.arc(0,0,r,0,iu)}},o2={draw(e,t){const r=jr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},K1=jr(1/3),s2=K1*2,l2={draw(e,t){const r=jr(t/s2),n=r*K1;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},u2={draw(e,t){const r=jr(t),n=-r/2;e.rect(n,n,r,r)}},c2=.8908130915292852,X1=Ys(Ks/10)/Ys(7*Ks/10),d2=Ys(iu/10)*X1,p2=-G1(iu/10)*X1,f2={draw(e,t){const r=jr(t*c2),n=d2*r,a=p2*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=iu*i/5,s=G1(o),l=Ys(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},fc=jr(3),g2={draw(e,t){const r=-jr(t/(fc*3));e.moveTo(0,r*2),e.lineTo(-fc*r,-r),e.lineTo(fc*r,-r),e.closePath()}},cr=-.5,dr=jr(3)/2,rm=1/jr(12),h2=(rm/2+1)*3,m2={draw(e,t){const r=jr(t/h2),n=r/2,a=r*rm,i=n,o=r*rm+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(cr*n-dr*a,dr*n+cr*a),e.lineTo(cr*i-dr*o,dr*i+cr*o),e.lineTo(cr*s-dr*l,dr*s+cr*l),e.lineTo(cr*n+dr*a,cr*a-dr*n),e.lineTo(cr*i+dr*o,cr*o-dr*i),e.lineTo(cr*s+dr*l,cr*l-dr*s),e.closePath()}};function b2(e,t){let r=null,n=Lb(a);e=typeof e=="function"?e:rt(e||Pb),t=typeof t=="function"?t:rt(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:rt(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:rt(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Xs(){}function Zs(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Z1(e){this._context=e}Z1.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:Zs(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:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function y2(e){return new Z1(e)}function Q1(e){this._context=e}Q1.prototype={areaStart:Xs,areaEnd:Xs,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:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function v2(e){return new Q1(e)}function J1(e){this._context=e}J1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S2(e){return new J1(e)}function ek(e){this._context=e}ek.prototype={areaStart:Xs,areaEnd:Xs,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 E2(e){return new ek(e)}function eS(e){return e<0?-1:1}function tS(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(eS(i)+eS(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function rS(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function gc(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function Qs(e){this._context=e}Qs.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:gc(this,this._t0,rS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,gc(this,rS(this,r=tS(this,e,t)),r);break;default:gc(this,this._t0,r=tS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function tk(e){this._context=new rk(e)}(tk.prototype=Object.create(Qs.prototype)).point=function(e,t){Qs.prototype.point.call(this,t,e)};function rk(e){this._context=e}rk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function x2(e){return new Qs(e)}function w2(e){return new tk(e)}function nk(e){this._context=e}nk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=nS(e),a=nS(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function T2(e){return new su(e,.5)}function A2(e){return new su(e,0)}function O2(e){return new su(e,1)}function Ma(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function k2(e,t){return e[t]}function R2(e){const t=[];return t.key=e,t}function I2(){var e=rt([]),t=nm,r=Ma,n=k2;function a(i){var o=Array.from(e.apply(this,arguments),R2),s,l=o.length,c=-1,d;for(const p of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var ak={symbolCircle:Pb,symbolCross:o2,symbolDiamond:l2,symbolSquare:u2,symbolStar:f2,symbolTriangle:g2,symbolWye:m2},B2=Math.PI/180,U2=function(t){var r="symbol".concat(au(t));return ak[r]||Pb},G2=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*B2;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}},z2=function(t,r){ak["symbol".concat(au(t))]=r},lu=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=j2(t,L2),c=iS(iS({},l),{},{type:n,size:i,sizeType:s}),d=function(){var S=U2(n),O=b2().type(S).size(G2(i,s,n));return O()},p=c.className,g=c.cx,m=c.cy,b=Me(c,!0);return g===+g&&m===+m&&i===+i?U.createElement("path",am({},b,{className:Ze("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(m,")"),d:d()})):null};lu.registerSymbol=z2;function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function im(){return im=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 Js(e){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Js(e)}function Yi(e,t,r){return t=ik(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=Q2(e,"string");return Pa(t)==="symbol"?t:String(t)}function Q2(e,t){if(Pa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pr=32,$b=function(e){V2(r,e);var t=Y2(r);function r(){return H2(this,r),t.apply(this,arguments)}return W2(r,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=pr/2,s=pr/6,l=pr/3,c=a.inactive?i:a.color;if(a.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:pr,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,` + */var At=typeof Symbol=="function"&&Symbol.for,Rb=At?Symbol.for("react.element"):60103,Ib=At?Symbol.for("react.portal"):60106,Yl=At?Symbol.for("react.fragment"):60107,Kl=At?Symbol.for("react.strict_mode"):60108,Xl=At?Symbol.for("react.profiler"):60114,Zl=At?Symbol.for("react.provider"):60109,Jl=At?Symbol.for("react.context"):60110,Nb=At?Symbol.for("react.async_mode"):60111,Ql=At?Symbol.for("react.concurrent_mode"):60111,eu=At?Symbol.for("react.forward_ref"):60112,tu=At?Symbol.for("react.suspense"):60113,CF=At?Symbol.for("react.suspense_list"):60120,ru=At?Symbol.for("react.memo"):60115,nu=At?Symbol.for("react.lazy"):60116,DF=At?Symbol.for("react.block"):60121,LF=At?Symbol.for("react.fundamental"):60117,MF=At?Symbol.for("react.responder"):60118,PF=At?Symbol.for("react.scope"):60119;function ur(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Rb:switch(e=e.type,e){case Nb:case Ql:case Yl:case Xl:case Kl:case tu:return e;default:switch(e=e&&e.$$typeof,e){case Jl:case eu:case nu:case ru:case Zl:return e;default:return t}}case Ib:return t}}}function C1(e){return ur(e)===Ql}Ve.AsyncMode=Nb;Ve.ConcurrentMode=Ql;Ve.ContextConsumer=Jl;Ve.ContextProvider=Zl;Ve.Element=Rb;Ve.ForwardRef=eu;Ve.Fragment=Yl;Ve.Lazy=nu;Ve.Memo=ru;Ve.Portal=Ib;Ve.Profiler=Xl;Ve.StrictMode=Kl;Ve.Suspense=tu;Ve.isAsyncMode=function(e){return C1(e)||ur(e)===Nb};Ve.isConcurrentMode=C1;Ve.isContextConsumer=function(e){return ur(e)===Jl};Ve.isContextProvider=function(e){return ur(e)===Zl};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Rb};Ve.isForwardRef=function(e){return ur(e)===eu};Ve.isFragment=function(e){return ur(e)===Yl};Ve.isLazy=function(e){return ur(e)===nu};Ve.isMemo=function(e){return ur(e)===ru};Ve.isPortal=function(e){return ur(e)===Ib};Ve.isProfiler=function(e){return ur(e)===Xl};Ve.isStrictMode=function(e){return ur(e)===Kl};Ve.isSuspense=function(e){return ur(e)===tu};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yl||e===Ql||e===Xl||e===Kl||e===tu||e===CF||typeof e=="object"&&e!==null&&(e.$$typeof===nu||e.$$typeof===ru||e.$$typeof===Zl||e.$$typeof===Jl||e.$$typeof===eu||e.$$typeof===LF||e.$$typeof===MF||e.$$typeof===PF||e.$$typeof===DF)};Ve.typeOf=ur;N1.exports=Ve;var Vh=N1.exports,$F=e1,jF=t1,FF="[object Number]";function BF(e){return typeof e=="number"||jF(e)&&$F(e)==FF}var D1=BF;const UF=pt(D1);var GF=D1;function zF(e){return GF(e)&&e!=+e}var qF=zF;const Bo=pt(qF);var Lr=function(t){return t===0?0:t>0?1:-1},Xn=function(t){return $o(t)&&t.indexOf("%")===t.length-1},se=function(t){return UF(t)&&!Bo(t)},Et=function(t){return se(t)||$o(t)},HF=0,Uo=function(t){var r=++HF;return"".concat(t||"").concat(r)},La=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!$o(t))return n;var i;if(Xn(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Bo(i)&&(i=n),a&&i>r&&(i=r),i},kn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},WF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var Kv={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},pn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Xv=null,pc=null,Db=function e(t){if(t===Xv&&Array.isArray(pc))return pc;var r=[];return P.Children.forEach(t,function(n){Ce(n)||(Vh.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),pc=r,Xv=t,r};function lr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return pn(a)}):n=[pn(t)],Db(e).forEach(function(a){var i=yr(a,"type.displayName")||yr(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function ln(e,t){var r=lr(e,t);return r&&r[0]}var Zv=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!se(n)||n<=0||!se(a)||a<=0)},eB=["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"],tB=function(t){return t&&t.type&&$o(t.type)&&eB.indexOf(t.type)>=0},rB=function(t,r,n,a){var i,o=(i=dc==null?void 0:dc[a])!==null&&i!==void 0?i:[];return!Ne(t)&&(a&&o.includes(r)||KF.includes(r))||n&&Cb.includes(r)},Me=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(P.isValidElement(t)&&(a=t.props),!ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;rB((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},L1=function e(t,r){if(t===r)return!0;var n=P.Children.count(t);if(n!==P.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Jv(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Xh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,c=oB(e,iB),d=a||{width:r,height:n,x:0,y:0},p=Ze("recharts-surface",i);return U.createElement("svg",Kh({},Me(c,!0,"svg"),{className:p,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var lB=["children","className"];function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var dt=U.forwardRef(function(e,t){var r=e.children,n=e.className,a=uB(e,lB),i=Ze("recharts-layer",n);return U.createElement("g",Zh({className:i},Me(a,!0),{ref:t}),r)}),ea=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=n?e:fB(e,t,r)}var hB=gB,mB="\\ud800-\\udfff",bB="\\u0300-\\u036f",yB="\\ufe20-\\ufe2f",vB="\\u20d0-\\u20ff",SB=bB+yB+vB,EB="\\ufe0e\\ufe0f",xB="\\u200d",wB=RegExp("["+xB+mB+SB+EB+"]");function _B(e){return wB.test(e)}var M1=_B;function TB(e){return e.split("")}var AB=TB,P1="\\ud800-\\udfff",OB="\\u0300-\\u036f",kB="\\ufe20-\\ufe2f",RB="\\u20d0-\\u20ff",IB=OB+kB+RB,NB="\\ufe0e\\ufe0f",CB="["+P1+"]",Jh="["+IB+"]",Qh="\\ud83c[\\udffb-\\udfff]",DB="(?:"+Jh+"|"+Qh+")",$1="[^"+P1+"]",j1="(?:\\ud83c[\\udde6-\\uddff]){2}",F1="[\\ud800-\\udbff][\\udc00-\\udfff]",LB="\\u200d",B1=DB+"?",U1="["+NB+"]?",MB="(?:"+LB+"(?:"+[$1,j1,F1].join("|")+")"+U1+B1+")*",PB=U1+B1+MB,$B="(?:"+[$1+Jh+"?",Jh,j1,F1,CB].join("|")+")",jB=RegExp(Qh+"(?="+Qh+")|"+$B+PB,"g");function FB(e){return e.match(jB)||[]}var BB=FB,UB=AB,GB=M1,zB=BB;function qB(e){return GB(e)?zB(e):UB(e)}var HB=qB,WB=hB,VB=M1,YB=HB,KB=WM;function XB(e){return function(t){t=KB(t);var r=VB(t)?YB(t):void 0,n=r?r[0]:t.charAt(0),a=r?WB(r,1).join(""):t.slice(1);return n[e]()+a}}var ZB=XB,JB=ZB,QB=JB("toUpperCase"),e2=QB;const au=pt(e2);function rt(e){return function(){return e}}const G1=Math.cos,Ys=Math.sin,jr=Math.sqrt,Ks=Math.PI,iu=2*Ks,em=Math.PI,tm=2*em,Yn=1e-6,t2=tm-Yn;function z1(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return z1;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aYn)if(!(Math.abs(p*l-c*d)>Yn)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,b=a-s,v=l*l+c*c,S=m*m+b*b,O=Math.sqrt(v),_=Math.sqrt(g),w=i*Math.tan((em-Math.acos((v+g-S)/(2*O*_)))/2),A=w/_,x=w/O;Math.abs(A-1)>Yn&&this._append`L${t+A*d},${r+A*p}`,this._append`A${i},${i},0,0,${+(p*m>d*b)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,d=r+l,p=1^o,g=o?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>Yn||Math.abs(this._y1-d)>Yn)&&this._append`L${c},${d}`,n&&(g<0&&(g=g%tm+tm),g>t2?this._append`A${n},${n},0,1,${p},${t-s},${r-l}A${n},${n},0,1,${p},${this._x1=c},${this._y1=d}`:g>Yn&&this._append`A${n},${n},0,${+(g>=em)},${p},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Lb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new n2(t)}function Mb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function q1(e){this._context=e}q1.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 ou(e){return new q1(e)}function H1(e){return e[0]}function W1(e){return e[1]}function V1(e,t){var r=rt(!0),n=null,a=ou,i=null,o=Lb(s);e=typeof e=="function"?e:e===void 0?H1:rt(e),t=typeof t=="function"?t:t===void 0?W1:rt(t);function s(l){var c,d=(l=Mb(l)).length,p,g=!1,m;for(n==null&&(i=a(m=o())),c=0;c<=d;++c)!(c=m;--b)s.point(w[b],A[b]);s.lineEnd(),s.areaEnd()}O&&(w[g]=+e(S,g,p),A[g]=+t(S,g,p),s.point(n?+n(S,g,p):w[g],r?+r(S,g,p):A[g]))}if(_)return s=null,_+""||null}function d(){return V1().defined(a).curve(o).context(i)}return c.x=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),n=null,c):e},c.x0=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),c):e},c.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:rt(+p),c):n},c.y=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),r=null,c):t},c.y0=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),c):t},c.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:rt(+p),c):r},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(r)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(p){return arguments.length?(a=typeof p=="function"?p:rt(!!p),c):a},c.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),c):o},c.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),c):i},c}class Y1{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function a2(e){return new Y1(e,!0)}function i2(e){return new Y1(e,!1)}const Pb={draw(e,t){const r=jr(t/Ks);e.moveTo(r,0),e.arc(0,0,r,0,iu)}},o2={draw(e,t){const r=jr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},K1=jr(1/3),s2=K1*2,l2={draw(e,t){const r=jr(t/s2),n=r*K1;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},u2={draw(e,t){const r=jr(t),n=-r/2;e.rect(n,n,r,r)}},c2=.8908130915292852,X1=Ys(Ks/10)/Ys(7*Ks/10),d2=Ys(iu/10)*X1,p2=-G1(iu/10)*X1,f2={draw(e,t){const r=jr(t*c2),n=d2*r,a=p2*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=iu*i/5,s=G1(o),l=Ys(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},fc=jr(3),g2={draw(e,t){const r=-jr(t/(fc*3));e.moveTo(0,r*2),e.lineTo(-fc*r,-r),e.lineTo(fc*r,-r),e.closePath()}},cr=-.5,dr=jr(3)/2,rm=1/jr(12),h2=(rm/2+1)*3,m2={draw(e,t){const r=jr(t/h2),n=r/2,a=r*rm,i=n,o=r*rm+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(cr*n-dr*a,dr*n+cr*a),e.lineTo(cr*i-dr*o,dr*i+cr*o),e.lineTo(cr*s-dr*l,dr*s+cr*l),e.lineTo(cr*n+dr*a,cr*a-dr*n),e.lineTo(cr*i+dr*o,cr*o-dr*i),e.lineTo(cr*s+dr*l,cr*l-dr*s),e.closePath()}};function b2(e,t){let r=null,n=Lb(a);e=typeof e=="function"?e:rt(e||Pb),t=typeof t=="function"?t:rt(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:rt(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:rt(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Xs(){}function Zs(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Z1(e){this._context=e}Z1.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:Zs(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:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function y2(e){return new Z1(e)}function J1(e){this._context=e}J1.prototype={areaStart:Xs,areaEnd:Xs,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:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function v2(e){return new J1(e)}function Q1(e){this._context=e}Q1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S2(e){return new Q1(e)}function ek(e){this._context=e}ek.prototype={areaStart:Xs,areaEnd:Xs,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 E2(e){return new ek(e)}function eS(e){return e<0?-1:1}function tS(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(eS(i)+eS(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function rS(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function gc(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function Js(e){this._context=e}Js.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:gc(this,this._t0,rS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,gc(this,rS(this,r=tS(this,e,t)),r);break;default:gc(this,this._t0,r=tS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function tk(e){this._context=new rk(e)}(tk.prototype=Object.create(Js.prototype)).point=function(e,t){Js.prototype.point.call(this,t,e)};function rk(e){this._context=e}rk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function x2(e){return new Js(e)}function w2(e){return new tk(e)}function nk(e){this._context=e}nk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=nS(e),a=nS(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function T2(e){return new su(e,.5)}function A2(e){return new su(e,0)}function O2(e){return new su(e,1)}function Ma(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function k2(e,t){return e[t]}function R2(e){const t=[];return t.key=e,t}function I2(){var e=rt([]),t=nm,r=Ma,n=k2;function a(i){var o=Array.from(e.apply(this,arguments),R2),s,l=o.length,c=-1,d;for(const p of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var ak={symbolCircle:Pb,symbolCross:o2,symbolDiamond:l2,symbolSquare:u2,symbolStar:f2,symbolTriangle:g2,symbolWye:m2},B2=Math.PI/180,U2=function(t){var r="symbol".concat(au(t));return ak[r]||Pb},G2=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*B2;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}},z2=function(t,r){ak["symbol".concat(au(t))]=r},lu=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=j2(t,L2),c=iS(iS({},l),{},{type:n,size:i,sizeType:s}),d=function(){var S=U2(n),O=b2().type(S).size(G2(i,s,n));return O()},p=c.className,g=c.cx,m=c.cy,b=Me(c,!0);return g===+g&&m===+m&&i===+i?U.createElement("path",am({},b,{className:Ze("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(m,")"),d:d()})):null};lu.registerSymbol=z2;function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function im(){return im=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 Qs(e){return Qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qs(e)}function Yi(e,t,r){return t=ik(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=J2(e,"string");return Pa(t)==="symbol"?t:String(t)}function J2(e,t){if(Pa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pr=32,$b=function(e){V2(r,e);var t=Y2(r);function r(){return H2(this,r),t.apply(this,arguments)}return W2(r,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=pr/2,s=pr/6,l=pr/3,c=a.inactive?i:a.color;if(a.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:pr,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,` A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,` H`).concat(pr,"M").concat(2*l,",").concat(o,` - A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return U.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(pr/8,"h").concat(pr,"v").concat(pr*3/4,"h").concat(-pr,"z"),className:"recharts-legend-icon"});if(U.isValidElement(a.legendIcon)){var d=q2({},a);return delete d.legendIcon,U.cloneElement(a.legendIcon,d)}return U.createElement(lu,{fill:c,cx:o,cy:o,size:pr,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,p={x:0,y:0,width:pr,height:pr},g={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,v){var S,O=b.formatter||c,_=Ze((S={"recharts-legend-item":!0},Yi(S,"legend-item-".concat(v),!0),Yi(S,"inactive",b.inactive),S));if(b.type==="none")return null;var w=Ne(b.value)?null:b.value;ea(!Ne(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=b.inactive?d:b.color;return U.createElement("li",im({className:_,style:g,key:"legend-item-".concat(v)},Wi(a.props,b,v)),U.createElement(Xh,{width:s,height:s,viewBox:p,style:m},a.renderIcon(b)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},O?O(w,b,v):w))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),r}(P.PureComponent);Yi($b,"displayName","Legend");Yi($b,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function J2(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i-1}var dU=cU;function pU(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=OU){var c=t?null:TU(e);if(c)return AU(c);o=!1,a=_U,l=new EU}else l=t?[]:s;e:for(;++n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},el(e)}function uu(e,t,r){return t=uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uk(e){var t=UU(e,"string");return $a(t)==="symbol"?t:String(t)}function UU(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GU(e,t){if(e==null)return{};var r=zU(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zU(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function qU(e){return e.value}function HU(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var r=GU(t,LU);return U.createElement($b,r)}var dS=1,Ki=function(e){$U(r,e);var t=jU(r);function r(){var n;MU(this,r);for(var a=arguments.length,i=new Array(a),o=0;odS||Math.abs(i.height-this.lastBoundingBox.height)>dS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,p=i.chartHeight,g,m;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();g={left:((d||0)-b.width)/2}}else g=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((p||0)-v.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Wn(Wn({},g),m)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,p=i.payload,g=Wn(Wn({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return U.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(b){a.wrapperNode=b}},HU(o,Wn(Wn({},this.props),{},{payload:sk(p,d,qU)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&se(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),r}(P.PureComponent);uu(Ki,"displayName","Legend");uu(Ki,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var pS=eM,WU=tM,VU=Gl,fS=pS?pS.isConcatSpreadable:void 0;function YU(e){return VU(e)||WU(e)||!!(fS&&e&&e[fS])}var KU=YU,XU=rM,ZU=KU;function ck(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=ZU),a||(a=[]);++i0&&r(s)?t>1?ck(s,t-1,r,n,a):XU(a,s):n||(a[a.length]=s)}return a}var dk=ck;function QU(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var JU=QU,gS=wb;function eG(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=gS(e),o=t!==void 0,s=t===null,l=t===t,c=gS(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!c&&e=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var aG=nG,mc=XM,iG=ZM,oG=ia,sG=QM,lG=JU,uG=nM,cG=aG,dG=jo,pG=Gl;function fG(e,t,r){t.length?t=mc(t,function(i){return pG(i)?function(o){return iG(o,i.length===1?i[0]:i)}:i}):t=[dG];var n=-1;t=mc(t,uG(oG));var a=sG(e,function(i,o,s){var l=mc(t,function(c){return c(i)});return{criteria:l,index:++n,value:i}});return lG(a,function(i,o){return cG(i,o,r)})}var gG=fG;function hG(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var mG=hG,bG=mG,hS=Math.max;function yG(e,t,r){return t=hS(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=hS(n.length-t,0),o=Array(i);++a0){if(++t>=AG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var IG=RG,NG=TG,CG=IG,DG=CG(NG),LG=DG,MG=jo,PG=vG,$G=LG;function jG(e,t){return $G(PG(e,t,MG),e+"")}var FG=jG,BG=iM,UG=r1,GG=oM,zG=zl;function qG(e,t,r){if(!zG(r))return!1;var n=typeof t;return(n=="number"?UG(r)&&GG(t,r.length):n=="string"&&t in r)?BG(r[t],e):!1}var cu=qG,HG=dk,WG=gG,VG=FG,bS=cu,YG=VG(function(e,t){if(e==null)return[];var r=t.length;return r>1&&bS(e,t[0],t[1])?t=[]:r>2&&bS(t[0],t[1],t[2])&&(t=[t[0]]),WG(e,HG(t,1),[])}),KG=YG;const jb=pt(KG);function Xi(e){"@babel/helpers - typeof";return Xi=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},Xi(e)}function XG(e,t){return ez(e)||JG(e,t)||QG(e,t)||ZG()}function ZG(){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 QG(e,t){if(e){if(typeof e=="string")return yS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yS(e,t)}}function yS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function cz(e,t){return ni(e.getTime(),t.getTime())}function _S(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),c=!1,d=0;(s=l.next())&&!s.done;){var p=o.value,g=p[0],m=p[1],b=s.value,v=b[0],S=b[1];!c&&!n[d]&&(c=r.equals(g,v,i,d,e,t,r)&&r.equals(m,S,g,v,e,t,r))&&(n[d]=!0),d++}if(!c)return!1;i++}return!0}function dz(e,t,r){var n=wS(e),a=n.length;if(wS(t).length!==a)return!1;for(var i;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function Si(e,t,r){var n=ES(e),a=n.length;if(ES(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r)||(o=xS(e,i),s=xS(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function pz(e,t){return ni(e.valueOf(),t.valueOf())}function fz(e,t){return e.source===t.source&&e.flags===t.flags}function TS(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,c=0;(o=s.next())&&!o.done;)!l&&!n[c]&&(l=r.equals(i.value,o.value,i.value,o.value,e,t,r))&&(n[c]=!0),c++;if(!l)return!1}return!0}function gz(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var hz="[object Arguments]",mz="[object Boolean]",bz="[object Date]",yz="[object Map]",vz="[object Number]",Sz="[object Object]",Ez="[object RegExp]",xz="[object Set]",wz="[object String]",_z=Array.isArray,AS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,OS=Object.assign,Tz=Object.prototype.toString.call.bind(Object.prototype.toString);function Az(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(d,p,g){if(d===p)return!0;if(d==null||p==null||typeof d!="object"||typeof p!="object")return d!==d&&p!==p;var m=d.constructor;if(m!==p.constructor)return!1;if(m===Object)return a(d,p,g);if(_z(d))return t(d,p,g);if(AS!=null&&AS(d))return l(d,p,g);if(m===Date)return r(d,p,g);if(m===RegExp)return o(d,p,g);if(m===Map)return n(d,p,g);if(m===Set)return s(d,p,g);var b=Tz(d);return b===bz?r(d,p,g):b===Ez?o(d,p,g):b===yz?n(d,p,g):b===xz?s(d,p,g):b===Sz?typeof d.then!="function"&&typeof p.then!="function"&&a(d,p,g):b===hz?a(d,p,g):b===mz||b===vz||b===wz?i(d,p,g):!1}}function Oz(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Si:uz,areDatesEqual:cz,areMapsEqual:n?SS(_S,Si):_S,areObjectsEqual:n?Si:dz,arePrimitiveWrappersEqual:pz,areRegExpsEqual:fz,areSetsEqual:n?SS(TS,Si):TS,areTypedArraysEqual:n?Si:gz};if(r&&(a=OS({},a,r(a))),t){var i=_s(a.areArraysEqual),o=_s(a.areMapsEqual),s=_s(a.areObjectsEqual),l=_s(a.areSetsEqual);a=OS({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function kz(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function Rz(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(l,c){var d=n(),p=d.cache,g=p===void 0?t?new WeakMap:void 0:p,m=d.meta;return r(l,c,{cache:g,equals:a,meta:m,strict:i})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return r(l,c,o)}}var Iz=Pn();Pn({strict:!0});Pn({circular:!0});Pn({circular:!0,strict:!0});Pn({createInternalComparator:function(){return ni}});Pn({strict:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni},strict:!0});function Pn(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=Oz(e),l=Az(s),c=n?n(l):kz(l);return Rz({circular:r,comparator:l,createState:a,equals:c,strict:o})}function Nz(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function kS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):Nz(a)};requestAnimationFrame(n)}function lm(e){"@babel/helpers - typeof";return lm=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},lm(e)}function Cz(e){return Pz(e)||Mz(e)||Lz(e)||Dz()}function Dz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return U.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(pr/8,"h").concat(pr,"v").concat(pr*3/4,"h").concat(-pr,"z"),className:"recharts-legend-icon"});if(U.isValidElement(a.legendIcon)){var d=q2({},a);return delete d.legendIcon,U.cloneElement(a.legendIcon,d)}return U.createElement(lu,{fill:c,cx:o,cy:o,size:pr,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,p={x:0,y:0,width:pr,height:pr},g={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,v){var S,O=b.formatter||c,_=Ze((S={"recharts-legend-item":!0},Yi(S,"legend-item-".concat(v),!0),Yi(S,"inactive",b.inactive),S));if(b.type==="none")return null;var w=Ne(b.value)?null:b.value;ea(!Ne(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=b.inactive?d:b.color;return U.createElement("li",im({className:_,style:g,key:"legend-item-".concat(v)},Wi(a.props,b,v)),U.createElement(Xh,{width:s,height:s,viewBox:p,style:m},a.renderIcon(b)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},O?O(w,b,v):w))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),r}(P.PureComponent);Yi($b,"displayName","Legend");Yi($b,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function Q2(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i-1}var dU=cU;function pU(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=OU){var c=t?null:TU(e);if(c)return AU(c);o=!1,a=_U,l=new EU}else l=t?[]:s;e:for(;++n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},el(e)}function uu(e,t,r){return t=uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uk(e){var t=UU(e,"string");return $a(t)==="symbol"?t:String(t)}function UU(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GU(e,t){if(e==null)return{};var r=zU(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zU(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function qU(e){return e.value}function HU(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var r=GU(t,LU);return U.createElement($b,r)}var dS=1,Ki=function(e){$U(r,e);var t=jU(r);function r(){var n;MU(this,r);for(var a=arguments.length,i=new Array(a),o=0;odS||Math.abs(i.height-this.lastBoundingBox.height)>dS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,p=i.chartHeight,g,m;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();g={left:((d||0)-b.width)/2}}else g=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((p||0)-v.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Wn(Wn({},g),m)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,p=i.payload,g=Wn(Wn({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return U.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(b){a.wrapperNode=b}},HU(o,Wn(Wn({},this.props),{},{payload:sk(p,d,qU)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&se(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),r}(P.PureComponent);uu(Ki,"displayName","Legend");uu(Ki,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var pS=eM,WU=tM,VU=Gl,fS=pS?pS.isConcatSpreadable:void 0;function YU(e){return VU(e)||WU(e)||!!(fS&&e&&e[fS])}var KU=YU,XU=rM,ZU=KU;function ck(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=ZU),a||(a=[]);++i0&&r(s)?t>1?ck(s,t-1,r,n,a):XU(a,s):n||(a[a.length]=s)}return a}var dk=ck;function JU(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var QU=JU,gS=wb;function eG(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=gS(e),o=t!==void 0,s=t===null,l=t===t,c=gS(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!c&&e=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var aG=nG,mc=KM,iG=XM,oG=ia,sG=ZM,lG=QU,uG=nM,cG=aG,dG=jo,pG=Gl;function fG(e,t,r){t.length?t=mc(t,function(i){return pG(i)?function(o){return iG(o,i.length===1?i[0]:i)}:i}):t=[dG];var n=-1;t=mc(t,uG(oG));var a=sG(e,function(i,o,s){var l=mc(t,function(c){return c(i)});return{criteria:l,index:++n,value:i}});return lG(a,function(i,o){return cG(i,o,r)})}var gG=fG;function hG(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var mG=hG,bG=mG,hS=Math.max;function yG(e,t,r){return t=hS(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=hS(n.length-t,0),o=Array(i);++a0){if(++t>=AG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var IG=RG,NG=TG,CG=IG,DG=CG(NG),LG=DG,MG=jo,PG=vG,$G=LG;function jG(e,t){return $G(PG(e,t,MG),e+"")}var FG=jG,BG=iM,UG=r1,GG=oM,zG=zl;function qG(e,t,r){if(!zG(r))return!1;var n=typeof t;return(n=="number"?UG(r)&&GG(t,r.length):n=="string"&&t in r)?BG(r[t],e):!1}var cu=qG,HG=dk,WG=gG,VG=FG,bS=cu,YG=VG(function(e,t){if(e==null)return[];var r=t.length;return r>1&&bS(e,t[0],t[1])?t=[]:r>2&&bS(t[0],t[1],t[2])&&(t=[t[0]]),WG(e,HG(t,1),[])}),KG=YG;const jb=pt(KG);function Xi(e){"@babel/helpers - typeof";return Xi=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},Xi(e)}function XG(e,t){return ez(e)||QG(e,t)||JG(e,t)||ZG()}function ZG(){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 JG(e,t){if(e){if(typeof e=="string")return yS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yS(e,t)}}function yS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function cz(e,t){return ni(e.getTime(),t.getTime())}function _S(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),c=!1,d=0;(s=l.next())&&!s.done;){var p=o.value,g=p[0],m=p[1],b=s.value,v=b[0],S=b[1];!c&&!n[d]&&(c=r.equals(g,v,i,d,e,t,r)&&r.equals(m,S,g,v,e,t,r))&&(n[d]=!0),d++}if(!c)return!1;i++}return!0}function dz(e,t,r){var n=wS(e),a=n.length;if(wS(t).length!==a)return!1;for(var i;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function Si(e,t,r){var n=ES(e),a=n.length;if(ES(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r)||(o=xS(e,i),s=xS(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function pz(e,t){return ni(e.valueOf(),t.valueOf())}function fz(e,t){return e.source===t.source&&e.flags===t.flags}function TS(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,c=0;(o=s.next())&&!o.done;)!l&&!n[c]&&(l=r.equals(i.value,o.value,i.value,o.value,e,t,r))&&(n[c]=!0),c++;if(!l)return!1}return!0}function gz(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var hz="[object Arguments]",mz="[object Boolean]",bz="[object Date]",yz="[object Map]",vz="[object Number]",Sz="[object Object]",Ez="[object RegExp]",xz="[object Set]",wz="[object String]",_z=Array.isArray,AS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,OS=Object.assign,Tz=Object.prototype.toString.call.bind(Object.prototype.toString);function Az(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(d,p,g){if(d===p)return!0;if(d==null||p==null||typeof d!="object"||typeof p!="object")return d!==d&&p!==p;var m=d.constructor;if(m!==p.constructor)return!1;if(m===Object)return a(d,p,g);if(_z(d))return t(d,p,g);if(AS!=null&&AS(d))return l(d,p,g);if(m===Date)return r(d,p,g);if(m===RegExp)return o(d,p,g);if(m===Map)return n(d,p,g);if(m===Set)return s(d,p,g);var b=Tz(d);return b===bz?r(d,p,g):b===Ez?o(d,p,g):b===yz?n(d,p,g):b===xz?s(d,p,g):b===Sz?typeof d.then!="function"&&typeof p.then!="function"&&a(d,p,g):b===hz?a(d,p,g):b===mz||b===vz||b===wz?i(d,p,g):!1}}function Oz(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Si:uz,areDatesEqual:cz,areMapsEqual:n?SS(_S,Si):_S,areObjectsEqual:n?Si:dz,arePrimitiveWrappersEqual:pz,areRegExpsEqual:fz,areSetsEqual:n?SS(TS,Si):TS,areTypedArraysEqual:n?Si:gz};if(r&&(a=OS({},a,r(a))),t){var i=_s(a.areArraysEqual),o=_s(a.areMapsEqual),s=_s(a.areObjectsEqual),l=_s(a.areSetsEqual);a=OS({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function kz(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function Rz(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(l,c){var d=n(),p=d.cache,g=p===void 0?t?new WeakMap:void 0:p,m=d.meta;return r(l,c,{cache:g,equals:a,meta:m,strict:i})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return r(l,c,o)}}var Iz=Pn();Pn({strict:!0});Pn({circular:!0});Pn({circular:!0,strict:!0});Pn({createInternalComparator:function(){return ni}});Pn({strict:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni},strict:!0});function Pn(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=Oz(e),l=Az(s),c=n?n(l):kz(l);return Rz({circular:r,comparator:l,createState:a,equals:c,strict:o})}function Nz(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function kS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):Nz(a)};requestAnimationFrame(n)}function lm(e){"@babel/helpers - typeof";return lm=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},lm(e)}function Cz(e){return Pz(e)||Mz(e)||Lz(e)||Dz()}function Dz(){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 Lz(e,t){if(e){if(typeof e=="string")return RS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RS(e,t)}}function RS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:O<0?0:O},v=function(O){for(var _=O>1?1:O,w=_,A=0;A<8;++A){var x=p(w)-_,E=m(w);if(Math.abs(x-_)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(d,p,g){var m=-(d-p)*n,b=g*i,v=g+(m-b)*s/1e3,S=g*s/1e3+d;return Math.abs(S-p)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:O<0?0:O},v=function(O){for(var _=O>1?1:O,w=_,A=0;A<8;++A){var x=p(w)-_,E=m(w);if(Math.abs(x-_)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(d,p,g){var m=-(d-p)*n,b=g*i,v=g+(m-b)*s/1e3,S=g*s/1e3+d;return Math.abs(S-p)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bq(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function yc(e){return Eq(e)||Sq(e)||vq(e)||yq()}function yq(){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 vq(e,t){if(e){if(typeof e=="string")return fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fm(e,t)}}function Sq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eq(e){if(Array.isArray(e))return fm(e)}function fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);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 al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},al(e)}var hn=function(e){Tq(r,e);var t=Aq(r);function r(n,a){var i;xq(this,r),i=t.call(this,n,a);var o=i.props,s=o.isActive,l=o.attributeName,c=o.from,d=o.to,p=o.steps,g=o.children,m=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(mm(i)),i.changeStyle=i.changeStyle.bind(mm(i)),!s||m<=0)return i.state={style:{}},typeof g=="function"&&(i.state={style:d}),hm(i);if(p&&p.length)i.state={style:p[0].style};else if(c){if(typeof g=="function")return i.state={style:c},hm(i);i.state={style:l?Ci({},l,c):c}}else i.state={style:{}};return i}return wq(r,[{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,c=i.shouldReAnimate,d=i.to,p=i.from,g=this.state.style;if(s){if(!o){var m={style:l?Ci({},l,d):d};this.state&&g&&(l&&g[l]!==d||!l&&g!==d)&&this.setState(m);return}if(!(Iz(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||c?p:a.to;if(this.state&&g){var S={style:l?Ci({},l,v):v};(l&&[l]!==v||!l&&g!==v)&&this.setState(S)}this.runAnimation(Rr(Rr({},this.props),{},{from:v,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,c=a.easing,d=a.begin,p=a.onAnimationEnd,g=a.onAnimationStart,m=gq(o,s,nq(c),l,this.changeStyle),b=function(){i.stopJSAnimation=m()};this.manager.start([g,d,b,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,c=o[0],d=c.style,p=c.duration,g=p===void 0?0:p,m=function(v,S,O){if(O===0)return v;var _=S.duration,w=S.easing,A=w===void 0?"ease":w,x=S.style,E=S.properties,k=S.onAnimationEnd,N=O>0?o[O-1]:S,I=E||Object.keys(x);if(typeof A=="function"||A==="spring")return[].concat(yc(v),[i.runJSAnimation.bind(i,{from:N.style,to:x,duration:_,easing:A}),_]);var D=NS(I,_,A),L=Rr(Rr(Rr({},N.style),x),{},{transition:D});return[].concat(yc(v),[L,_,k]).filter(qz)};return this.manager.start([l].concat(yc(o.reduce(m,[d,Math.max(g,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=$z());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,c=a.easing,d=a.onAnimationStart,p=a.onAnimationEnd,g=a.steps,m=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof c=="function"||typeof m=="function"||c==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var v=s?Ci({},s,l):l,S=NS(Object.keys(v),o,c);b.start([d,i,Rr(Rr({},v),{},{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=mq(a,hq),c=P.Children.count(i),d=Fb(this.state.style);if(typeof i=="function")return i(d);if(!s||c===0||o<=0)return i;var p=function(m){var b=m.props,v=b.style,S=v===void 0?{}:v,O=b.className,_=P.cloneElement(m,Rr(Rr({},l),{},{style:Rr(Rr({},S),d),className:O}));return _};return c===1?p(P.Children.only(i)):U.createElement("div",null,P.Children.map(i,function(g){return p(g)}))}}]),r}(P.PureComponent);hn.displayName="Animate";hn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};hn.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});we.object,we.object,we.object,we.element;we.object,we.object,we.object,we.oneOfType([we.array,we.element]),we.any;function Ji(e){"@babel/helpers - typeof";return Ji=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},Ji(e)}function Ts(e,t,r){return t=kq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kq(e){var t=Rq(e,"string");return Ji(t)==="symbol"?t:String(t)}function Rq(e,t){if(Ji(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ji(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ei="recharts-tooltip-wrapper",Iq={visibility:"hidden"};function Nq(e){var t,r=e.coordinate,n=e.translateX,a=e.translateY;return Ze(Ei,(t={},Ts(t,"".concat(Ei,"-right"),se(n)&&r&&se(r.x)&&n>=r.x),Ts(t,"".concat(Ei,"-left"),se(n)&&r&&se(r.x)&&n=r.y),Ts(t,"".concat(Ei,"-top"),se(a)&&r&&se(r.y)&&av?Math.max(d,l[n]):Math.max(p,l[n])}function Cq(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return Fb({transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})}function Dq(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,d,p;return o.height>0&&o.width>0&&r?(d=jS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=jS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=Cq({translateX:d,translateY:p,useTranslate3d:s})):c=Iq,{cssProperties:c,cssClasses:Nq({translateX:d,translateY:p,coordinate:r})}}function Ba(e){"@babel/helpers - typeof";return Ba=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},Ba(e)}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vc(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 il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},il(e)}function Bs(e,t,r){return t=vk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vk(e){var t=Bq(e,"string");return Ba(t)==="symbol"?t:String(t)}function Bq(e,t){if(Ba(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ba(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var US=1,Uq=function(e){Pq(r,e);var t=$q(r);function r(){var n;Lq(this,r);for(var a=arguments.length,i=new Array(a),o=0;oUS||Math.abs(a.height-this.lastBoundingBox.height)>US)&&(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,c=i.animationEasing,d=i.children,p=i.coordinate,g=i.hasPayload,m=i.isAnimationActive,b=i.offset,v=i.position,S=i.reverseDirection,O=i.useTranslate3d,_=i.viewBox,w=i.wrapperStyle,A=Dq({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:b,position:v,reverseDirection:S,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:O,viewBox:_}),x=A.cssClasses,E=A.cssProperties,k=vc(vc(vc({},m&&o&&Fb({transition:"transform ".concat(l,"ms ").concat(c)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&g?"visible":"hidden",position:"absolute",top:0,left:0},w);return U.createElement("div",{tabIndex:-1,role:"dialog",className:x,style:k,ref:function(I){a.wrapperNode=I}},d)}}]),r}(P.PureComponent),Gq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},fn={isSsr:Gq(),get:function(t){return fn[t]},set:function(t,r){if(typeof t=="string")fn[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){fn[a]=t[a]})}}};function Ua(e){"@babel/helpers - typeof";return Ua=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},Ua(e)}function GS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zS(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 ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ol(e)}function Bb(e,t,r){return t=Sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Xq(e,"string");return Ua(t)==="symbol"?t:String(t)}function Xq(e,t){if(Ua(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ua(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zq(e){return e.dataKey}function Qq(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(iz,t)}var Zn=function(e){Hq(r,e);var t=Wq(r);function r(){return zq(this,r),t.apply(this,arguments)}return qq(r,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,c=a.content,d=a.coordinate,p=a.filterNull,g=a.isAnimationActive,m=a.offset,b=a.payload,v=a.payloadUniqBy,S=a.position,O=a.reverseDirection,_=a.useTranslate3d,w=a.viewBox,A=a.wrapperStyle,x=b??[];p&&x.length&&(x=sk(b.filter(function(k){return k.value!=null}),v,Zq));var E=x.length>0;return U.createElement(Uq,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:g,active:i,coordinate:d,hasPayload:E,offset:m,position:S,reverseDirection:O,useTranslate3d:_,viewBox:w,wrapperStyle:A},Qq(c,zS(zS({},this.props),{},{payload:x})))}}]),r}(P.PureComponent);Bb(Zn,"displayName","Tooltip");Bb(Zn,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!fn.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 Jq=sM,eH=function(){return Jq.Date.now()},tH=eH,rH=/\s/;function nH(e){for(var t=e.length;t--&&rH.test(e.charAt(t)););return t}var aH=nH,iH=aH,oH=/^\s+/;function sH(e){return e&&e.slice(0,iH(e)+1).replace(oH,"")}var lH=sH,uH=lH,HS=zl,cH=wb,WS=0/0,dH=/^[-+]0x[0-9a-f]+$/i,pH=/^0b[01]+$/i,fH=/^0o[0-7]+$/i,gH=parseInt;function hH(e){if(typeof e=="number")return e;if(cH(e))return WS;if(HS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=HS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uH(e);var r=pH.test(e);return r||fH.test(e)?gH(e.slice(2),r?2:8):dH.test(e)?WS:+e}var Ek=hH,mH=zl,Sc=tH,VS=Ek,bH="Expected a function",yH=Math.max,vH=Math.min;function SH(e,t,r){var n,a,i,o,s,l,c=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(bH);t=VS(t)||0,mH(r)&&(d=!!r.leading,p="maxWait"in r,i=p?yH(VS(r.maxWait)||0,t):i,g="trailing"in r?!!r.trailing:g);function m(E){var k=n,N=a;return n=a=void 0,c=E,o=e.apply(N,k),o}function b(E){return c=E,s=setTimeout(O,t),d?m(E):o}function v(E){var k=E-l,N=E-c,I=t-k;return p?vH(I,i-N):I}function S(E){var k=E-l,N=E-c;return l===void 0||k>=t||k<0||p&&N>=i}function O(){var E=Sc();if(S(E))return _(E);s=setTimeout(O,v(E))}function _(E){return s=void 0,g&&n?m(E):(n=a=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function A(){return s===void 0?o:_(Sc())}function x(){var E=Sc(),k=S(E);if(n=arguments,a=this,l=E,k){if(s===void 0)return b(l);if(p)return clearTimeout(s),s=setTimeout(O,t),m(l)}return s===void 0&&(s=setTimeout(O,t)),o}return x.cancel=w,x.flush=A,x}var EH=SH,xH=EH,wH=zl,_H="Expected a function";function TH(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(_H);return wH(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),xH(e,t,{leading:n,maxWait:t,trailing:a})}var AH=TH;const xk=pt(AH);function eo(e){"@babel/helpers - typeof";return eo=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},eo(e)}function YS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(z=xk(z,v,{trailing:!0,leading:!1}));var q=new ResizeObserver(z),H=x.current.getBoundingClientRect(),V=H.width,K=H.height;return L(V,K),q.observe(x.current),function(){q.disconnect()}},[L,v]);var j=P.useMemo(function(){var z=I.containerWidth,q=I.containerHeight;if(z<0||q<0)return null;ea(Xn(o)||Xn(l),`The width(%s) and height(%s) are both fixed numbers, +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vq(e,t){if(e){if(typeof e=="string")return fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fm(e,t)}}function Sq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eq(e){if(Array.isArray(e))return fm(e)}function fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);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 al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},al(e)}var hn=function(e){Tq(r,e);var t=Aq(r);function r(n,a){var i;xq(this,r),i=t.call(this,n,a);var o=i.props,s=o.isActive,l=o.attributeName,c=o.from,d=o.to,p=o.steps,g=o.children,m=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(mm(i)),i.changeStyle=i.changeStyle.bind(mm(i)),!s||m<=0)return i.state={style:{}},typeof g=="function"&&(i.state={style:d}),hm(i);if(p&&p.length)i.state={style:p[0].style};else if(c){if(typeof g=="function")return i.state={style:c},hm(i);i.state={style:l?Ci({},l,c):c}}else i.state={style:{}};return i}return wq(r,[{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,c=i.shouldReAnimate,d=i.to,p=i.from,g=this.state.style;if(s){if(!o){var m={style:l?Ci({},l,d):d};this.state&&g&&(l&&g[l]!==d||!l&&g!==d)&&this.setState(m);return}if(!(Iz(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||c?p:a.to;if(this.state&&g){var S={style:l?Ci({},l,v):v};(l&&[l]!==v||!l&&g!==v)&&this.setState(S)}this.runAnimation(Rr(Rr({},this.props),{},{from:v,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,c=a.easing,d=a.begin,p=a.onAnimationEnd,g=a.onAnimationStart,m=gq(o,s,nq(c),l,this.changeStyle),b=function(){i.stopJSAnimation=m()};this.manager.start([g,d,b,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,c=o[0],d=c.style,p=c.duration,g=p===void 0?0:p,m=function(v,S,O){if(O===0)return v;var _=S.duration,w=S.easing,A=w===void 0?"ease":w,x=S.style,E=S.properties,k=S.onAnimationEnd,N=O>0?o[O-1]:S,I=E||Object.keys(x);if(typeof A=="function"||A==="spring")return[].concat(yc(v),[i.runJSAnimation.bind(i,{from:N.style,to:x,duration:_,easing:A}),_]);var D=NS(I,_,A),L=Rr(Rr(Rr({},N.style),x),{},{transition:D});return[].concat(yc(v),[L,_,k]).filter(qz)};return this.manager.start([l].concat(yc(o.reduce(m,[d,Math.max(g,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=$z());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,c=a.easing,d=a.onAnimationStart,p=a.onAnimationEnd,g=a.steps,m=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof c=="function"||typeof m=="function"||c==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var v=s?Ci({},s,l):l,S=NS(Object.keys(v),o,c);b.start([d,i,Rr(Rr({},v),{},{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=mq(a,hq),c=P.Children.count(i),d=Fb(this.state.style);if(typeof i=="function")return i(d);if(!s||c===0||o<=0)return i;var p=function(m){var b=m.props,v=b.style,S=v===void 0?{}:v,O=b.className,_=P.cloneElement(m,Rr(Rr({},l),{},{style:Rr(Rr({},S),d),className:O}));return _};return c===1?p(P.Children.only(i)):U.createElement("div",null,P.Children.map(i,function(g){return p(g)}))}}]),r}(P.PureComponent);hn.displayName="Animate";hn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};hn.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});we.object,we.object,we.object,we.element;we.object,we.object,we.object,we.oneOfType([we.array,we.element]),we.any;function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function Ts(e,t,r){return t=kq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kq(e){var t=Rq(e,"string");return Qi(t)==="symbol"?t:String(t)}function Rq(e,t){if(Qi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ei="recharts-tooltip-wrapper",Iq={visibility:"hidden"};function Nq(e){var t,r=e.coordinate,n=e.translateX,a=e.translateY;return Ze(Ei,(t={},Ts(t,"".concat(Ei,"-right"),se(n)&&r&&se(r.x)&&n>=r.x),Ts(t,"".concat(Ei,"-left"),se(n)&&r&&se(r.x)&&n=r.y),Ts(t,"".concat(Ei,"-top"),se(a)&&r&&se(r.y)&&av?Math.max(d,l[n]):Math.max(p,l[n])}function Cq(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return Fb({transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})}function Dq(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,d,p;return o.height>0&&o.width>0&&r?(d=jS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=jS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=Cq({translateX:d,translateY:p,useTranslate3d:s})):c=Iq,{cssProperties:c,cssClasses:Nq({translateX:d,translateY:p,coordinate:r})}}function Ba(e){"@babel/helpers - typeof";return Ba=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},Ba(e)}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vc(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 il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},il(e)}function Bs(e,t,r){return t=vk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vk(e){var t=Bq(e,"string");return Ba(t)==="symbol"?t:String(t)}function Bq(e,t){if(Ba(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ba(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var US=1,Uq=function(e){Pq(r,e);var t=$q(r);function r(){var n;Lq(this,r);for(var a=arguments.length,i=new Array(a),o=0;oUS||Math.abs(a.height-this.lastBoundingBox.height)>US)&&(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,c=i.animationEasing,d=i.children,p=i.coordinate,g=i.hasPayload,m=i.isAnimationActive,b=i.offset,v=i.position,S=i.reverseDirection,O=i.useTranslate3d,_=i.viewBox,w=i.wrapperStyle,A=Dq({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:b,position:v,reverseDirection:S,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:O,viewBox:_}),x=A.cssClasses,E=A.cssProperties,k=vc(vc(vc({},m&&o&&Fb({transition:"transform ".concat(l,"ms ").concat(c)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&g?"visible":"hidden",position:"absolute",top:0,left:0},w);return U.createElement("div",{tabIndex:-1,role:"dialog",className:x,style:k,ref:function(I){a.wrapperNode=I}},d)}}]),r}(P.PureComponent),Gq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},fn={isSsr:Gq(),get:function(t){return fn[t]},set:function(t,r){if(typeof t=="string")fn[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){fn[a]=t[a]})}}};function Ua(e){"@babel/helpers - typeof";return Ua=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},Ua(e)}function GS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zS(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 ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ol(e)}function Bb(e,t,r){return t=Sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Xq(e,"string");return Ua(t)==="symbol"?t:String(t)}function Xq(e,t){if(Ua(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ua(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zq(e){return e.dataKey}function Jq(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(iz,t)}var Zn=function(e){Hq(r,e);var t=Wq(r);function r(){return zq(this,r),t.apply(this,arguments)}return qq(r,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,c=a.content,d=a.coordinate,p=a.filterNull,g=a.isAnimationActive,m=a.offset,b=a.payload,v=a.payloadUniqBy,S=a.position,O=a.reverseDirection,_=a.useTranslate3d,w=a.viewBox,A=a.wrapperStyle,x=b??[];p&&x.length&&(x=sk(b.filter(function(k){return k.value!=null}),v,Zq));var E=x.length>0;return U.createElement(Uq,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:g,active:i,coordinate:d,hasPayload:E,offset:m,position:S,reverseDirection:O,useTranslate3d:_,viewBox:w,wrapperStyle:A},Jq(c,zS(zS({},this.props),{},{payload:x})))}}]),r}(P.PureComponent);Bb(Zn,"displayName","Tooltip");Bb(Zn,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!fn.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 Qq=sM,eH=function(){return Qq.Date.now()},tH=eH,rH=/\s/;function nH(e){for(var t=e.length;t--&&rH.test(e.charAt(t)););return t}var aH=nH,iH=aH,oH=/^\s+/;function sH(e){return e&&e.slice(0,iH(e)+1).replace(oH,"")}var lH=sH,uH=lH,HS=zl,cH=wb,WS=0/0,dH=/^[-+]0x[0-9a-f]+$/i,pH=/^0b[01]+$/i,fH=/^0o[0-7]+$/i,gH=parseInt;function hH(e){if(typeof e=="number")return e;if(cH(e))return WS;if(HS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=HS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uH(e);var r=pH.test(e);return r||fH.test(e)?gH(e.slice(2),r?2:8):dH.test(e)?WS:+e}var Ek=hH,mH=zl,Sc=tH,VS=Ek,bH="Expected a function",yH=Math.max,vH=Math.min;function SH(e,t,r){var n,a,i,o,s,l,c=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(bH);t=VS(t)||0,mH(r)&&(d=!!r.leading,p="maxWait"in r,i=p?yH(VS(r.maxWait)||0,t):i,g="trailing"in r?!!r.trailing:g);function m(E){var k=n,N=a;return n=a=void 0,c=E,o=e.apply(N,k),o}function b(E){return c=E,s=setTimeout(O,t),d?m(E):o}function v(E){var k=E-l,N=E-c,I=t-k;return p?vH(I,i-N):I}function S(E){var k=E-l,N=E-c;return l===void 0||k>=t||k<0||p&&N>=i}function O(){var E=Sc();if(S(E))return _(E);s=setTimeout(O,v(E))}function _(E){return s=void 0,g&&n?m(E):(n=a=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function A(){return s===void 0?o:_(Sc())}function x(){var E=Sc(),k=S(E);if(n=arguments,a=this,l=E,k){if(s===void 0)return b(l);if(p)return clearTimeout(s),s=setTimeout(O,t),m(l)}return s===void 0&&(s=setTimeout(O,t)),o}return x.cancel=w,x.flush=A,x}var EH=SH,xH=EH,wH=zl,_H="Expected a function";function TH(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(_H);return wH(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),xH(e,t,{leading:n,maxWait:t,trailing:a})}var AH=TH;const xk=pt(AH);function eo(e){"@babel/helpers - typeof";return eo=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},eo(e)}function YS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(z=xk(z,v,{trailing:!0,leading:!1}));var q=new ResizeObserver(z),H=x.current.getBoundingClientRect(),V=H.width,K=H.height;return L(V,K),q.observe(x.current),function(){q.disconnect()}},[L,v]);var j=P.useMemo(function(){var z=I.containerWidth,q=I.containerHeight;if(z<0||q<0)return null;ea(Xn(o)||Xn(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,o,l),ea(!r||r>0,"The aspect(%s) must be greater than zero.",r);var H=Xn(o)?z:o,V=Xn(l)?q:l;r&&r>0&&(H?V=H/r:V&&(H=V*r),g&&V>g&&(V=g)),ea(H>0||V>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.`,H,V,o,l,d,p,r);var K=!Array.isArray(m)&&Vh.isElement(m)&&pn(m.type).endsWith("Chart");return U.Children.map(m,function(G){return Vh.isElement(G)?P.cloneElement(G,As({width:H,height:V},K?{style:As({height:"100%",width:"100%",maxHeight:V,maxWidth:H},G.props.style)}:{})):G})},[r,m,l,g,p,d,I,o]);return U.createElement("div",{id:S?"".concat(S):void 0,className:Ze("recharts-responsive-container",O),style:As(As({},A),{},{width:o,height:l,minWidth:d,minHeight:p,maxHeight:g}),ref:x},j)}),Ub=function(t){return null};Ub.displayName="Cell";function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function XS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||fn.isSsr)return{width:0,height:0};var n=UH(r),a=JSON.stringify({text:t,copyStyle:n});if(ba.widthCache[a])return ba.widthCache[a];try{var i=document.getElementById(ZS);i||(i=document.createElement("span"),i.setAttribute("id",ZS),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=vm(vm({},BH),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return ba.widthCache[a]=l,++ba.cacheCount>FH&&(ba.cacheCount=0,ba.widthCache={}),l}catch{return{width:0,height:0}}},GH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 sl(e,t){return WH(e)||HH(e,t)||qH(e,t)||zH()}function zH(){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 qH(e,t){if(e){if(typeof e=="string")return QS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QS(e,t)}}function QS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oW(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function aE(e,t){return cW(e)||uW(e,t)||lW(e,t)||sW()}function sW(){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 lW(e,t){if(e){if(typeof e=="string")return iE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iE(e,t)}}function iE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return H.reduce(function(V,K){var G=K.word,W=K.width,Q=V[V.length-1];if(Q&&(a==null||i||Q.width+W+nK.width?V:K})};if(!d)return m;for(var v="…",S=function(H){var V=p.slice(0,H),K=Ak({breakAll:c,style:l,children:V+v}).wordsWithComputedWidth,G=g(K),W=G.length>o||b(G).width>Number(a);return[W,G]},O=0,_=p.length-1,w=0,A;O<=_&&w<=p.length-1;){var x=Math.floor((O+_)/2),E=x-1,k=S(E),N=aE(k,2),I=N[0],D=N[1],L=S(x),j=aE(L,1),z=j[0];if(!I&&!z&&(O=x+1),I&&z&&(_=x-1),!I&&z){A=D;break}w++}return A||m},oE=function(t){var r=Ce(t)?[]:t.toString().split(Tk);return[{words:r}]},pW=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!fn.isSsr){var l,c,d=Ak({breakAll:o,children:a,style:i});if(d){var p=d.wordsWithComputedWidth,g=d.spaceWidth;l=p,c=g}else return oE(a);return dW({breakAll:o,children:a,maxLines:s,style:i},l,c,r,n)}return oE(a)},sE="#808080",ll=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,p=d===void 0?!1:d,g=t.textAnchor,m=g===void 0?"start":g,b=t.verticalAnchor,v=b===void 0?"end":b,S=t.fill,O=S===void 0?sE:S,_=nE(t,aW),w=P.useMemo(function(){return pW({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,x=_.dy,E=_.angle,k=_.className,N=_.breakAll,I=nE(_,iW);if(!Et(n)||!Et(i))return null;var D=n+(se(A)?A:0),L=i+(se(x)?x:0),j;switch(v){case"start":j=Ec("calc(".concat(c,")"));break;case"middle":j=Ec("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:j=Ec("calc(".concat(w.length-1," * -").concat(s,")"));break}var z=[];if(p){var q=w[0].width,H=_.width;z.push("scale(".concat((se(H)?H/q:1)/q,")"))}return E&&z.push("rotate(".concat(E,", ").concat(D,", ").concat(L,")")),z.length&&(I.transform=z.join(" ")),U.createElement("text",Sm({},Me(I,!0),{x:D,y:L,className:Ze("recharts-text",k),textAnchor:m,fill:O.includes("url")?sE:O}),w.map(function(V,K){var G=V.words.join(N?"":" ");return U.createElement("tspan",{x:D,dy:K===0?j:s,key:G},G)}))};function Ln(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function fW(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Gb(e){let t,r,n;e.length!==2?(t=Ln,r=(s,l)=>Ln(e(s),l),n=(s,l)=>e(s)-l):(t=e===Ln||e===fW?e:gW,r=e,n=e);function a(s,l,c=0,d=s.length){if(c>>1;r(s[p],l)<0?c=p+1:d=p}while(c>>1;r(s[p],l)<=0?c=p+1:d=p}while(cc&&n(s[p-1],l)>-n(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function gW(){return 0}function Ok(e){return e===null?NaN:+e}function*hW(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const mW=Gb(Ln),bW=mW.right;Gb(Ok).center;const Go=bW;class lE extends Map{constructor(t,r=SW){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(uE(this,t))}has(t){return super.has(uE(this,t))}set(t,r){return super.set(yW(this,t),r)}delete(t){return super.delete(vW(this,t))}}function uE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function yW({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function vW({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function SW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function EW(e=Ln){if(e===Ln)return kk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function kk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const xW=Math.sqrt(50),wW=Math.sqrt(10),_W=Math.sqrt(2);function ul(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=xW?10:i>=wW?5:i>=_W?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function dE(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function Rk(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?kk:EW(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,d=Math.log(l),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(l-p)/l)*(c-l/2<0?-1:1),m=Math.max(r,Math.floor(t-c*p/l+g)),b=Math.min(n,Math.floor(t+(l-c)*p/l+g));Rk(e,t,m,b,a)}const i=e[t];let o=r,s=n;for(xi(e,r,t),a(e[n],i)>0&&xi(e,r,n);o0;)--s}a(e[r],i)===0?xi(e,r,s):(++s,xi(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function xi(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function TW(e,t,r){if(e=Float64Array.from(hW(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return dE(e);if(t>=1)return cE(e);var n,a=(n-1)*t,i=Math.floor(a),o=cE(Rk(e,i).subarray(0,i+1)),s=dE(e.subarray(i+1));return o+(s-o)*(a-i)}}function AW(e,t,r=Ok){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function OW(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ks(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ks(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=RW.exec(e))?new Jt(t[1],t[2],t[3],1):(t=IW.exec(e))?new Jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=NW.exec(e))?ks(t[1],t[2],t[3],t[4]):(t=CW.exec(e))?ks(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DW.exec(e))?yE(t[1],t[2]/100,t[3]/100,1):(t=LW.exec(e))?yE(t[1],t[2]/100,t[3]/100,t[4]):pE.hasOwnProperty(e)?hE(pE[e]):e==="transparent"?new Jt(NaN,NaN,NaN,0):null}function hE(e){return new Jt(e>>16&255,e>>8&255,e&255,1)}function ks(e,t,r,n){return n<=0&&(e=t=r=NaN),new Jt(e,t,r,n)}function $W(e){return e instanceof zo||(e=oo(e)),e?(e=e.rgb(),new Jt(e.r,e.g,e.b,e.opacity)):new Jt}function Tm(e,t,r,n){return arguments.length===1?$W(e):new Jt(e,t,r,n??1)}function Jt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}qb(Jt,Tm,Nk(zo,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jt(ta(this.r),ta(this.g),ta(this.b),dl(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:mE,formatHex:mE,formatHex8:jW,formatRgb:bE,toString:bE}));function mE(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}`}function jW(){return`#${Qn(this.r)}${Qn(this.g)}${Qn(this.b)}${Qn((isNaN(this.opacity)?1:this.opacity)*255)}`}function bE(){const e=dl(this.opacity);return`${e===1?"rgb(":"rgba("}${ta(this.r)}, ${ta(this.g)}, ${ta(this.b)}${e===1?")":`, ${e})`}`}function dl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ta(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qn(e){return e=ta(e),(e<16?"0":"")+e.toString(16)}function yE(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,n)}function Ck(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof zo||(e=oo(e)),!e)return new Nr;if(e instanceof Nr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new Nr(o,s,l,e.opacity)}function FW(e,t,r,n){return arguments.length===1?Ck(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}qb(Nr,FW,Nk(zo,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Nr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Jt(xc(e>=240?e-240:e+120,a,n),xc(e,a,n),xc(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Nr(vE(this.h),Rs(this.s),Rs(this.l),dl(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=dl(this.opacity);return`${e===1?"hsl(":"hsla("}${vE(this.h)}, ${Rs(this.s)*100}%, ${Rs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vE(e){return e=(e||0)%360,e<0?e+360:e}function Rs(e){return Math.max(0,Math.min(1,e||0))}function xc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Hb=e=>()=>e;function BW(e,t){return function(r){return e+r*t}}function UW(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function GW(e){return(e=+e)==1?Dk:function(t,r){return r-t?UW(t,r,e):Hb(isNaN(t)?r:t)}}function Dk(e,t){var r=t-e;return r?BW(e,r):Hb(isNaN(e)?t:e)}const SE=function e(t){var r=GW(t);function n(a,i){var o=r((a=Tm(a)).r,(i=Tm(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=Dk(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=s(d),a.b=l(d),a.opacity=c(d),a+""}}return n.gamma=e,n}(1);function zW(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:pl(n,a)})),r=wc.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function e3(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?t3:e3,l=c=null,p}function p(g){return g==null||isNaN(g=+g)?i:(l||(l=s(e.map(n),t,r)))(n(o(g)))}return p.invert=function(g){return o(a((c||(c=s(t,e.map(n),pl)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,fl),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Wb,d()},p.clamp=function(g){return arguments.length?(o=g?!0:Vt,d()):o!==Vt},p.interpolate=function(g){return arguments.length?(r=g,d()):r},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,m){return n=g,a=m,d()}}function Vb(){return du()(Vt,Vt)}function r3(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ga(e){return e=gl(Math.abs(e)),e?e[1]:NaN}function n3(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function a3(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var i3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function so(e){if(!(t=i3.exec(e)))throw new Error("invalid format: "+e);var t;return new Yb({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]})}so.prototype=Yb.prototype;function Yb(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+""}Yb.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 o3(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Lk;function s3(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Lk=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+gl(e,Math.max(0,t+i-1))[0]}function xE(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const wE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:r3,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)=>xE(e*100,t),r:xE,s:s3,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function _E(e){return e}var TE=Array.prototype.map,AE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l3(e){var t=e.grouping===void 0||e.thousands===void 0?_E:n3(TE.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?_E:a3(TE.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(p){p=so(p);var g=p.fill,m=p.align,b=p.sign,v=p.symbol,S=p.zero,O=p.width,_=p.comma,w=p.precision,A=p.trim,x=p.type;x==="n"?(_=!0,x="g"):wE[x]||(w===void 0&&(w=12),A=!0,x="g"),(S||g==="0"&&m==="=")&&(S=!0,g="0",m="=");var E=v==="$"?r:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k=v==="$"?n:/[%p]/.test(x)?o:"",N=wE[x],I=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function D(L){var j=E,z=k,q,H,V;if(x==="c")z=N(L)+z,L="";else{L=+L;var K=L<0||1/L<0;if(L=isNaN(L)?l:N(Math.abs(L),w),A&&(L=o3(L)),K&&+L==0&&b!=="+"&&(K=!1),j=(K?b==="("?b:s:b==="-"||b==="("?"":b)+j,z=(x==="s"?AE[8+Lk/3]:"")+z+(K&&b==="("?")":""),I){for(q=-1,H=L.length;++qV||V>57){z=(V===46?a+L.slice(q+1):L.slice(q))+z,L=L.slice(0,q);break}}}_&&!S&&(L=t(L,1/0));var G=j.length+L.length+z.length,W=G>1)+j+L+z+W.slice(G);break;default:L=W+j+L+z;break}return i(L)}return D.toString=function(){return p+""},D}function d(p,g){var m=c((p=so(p),p.type="f",p)),b=Math.max(-8,Math.min(8,Math.floor(Ga(g)/3)))*3,v=Math.pow(10,-b),S=AE[8+b/3];return function(O){return m(v*O)+S}}return{format:c,formatPrefix:d}}var Is,Kb,Mk;u3({thousands:",",grouping:[3],currency:["$",""]});function u3(e){return Is=l3(e),Kb=Is.format,Mk=Is.formatPrefix,Is}function c3(e){return Math.max(0,-Ga(Math.abs(e)))}function d3(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ga(t)/3)))*3-Ga(Math.abs(e)))}function p3(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ga(t)-Ga(e))+1}function Pk(e,t,r,n){var a=wm(e,t,r),i;switch(n=so(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=d3(a,o))&&(n.precision=i),Mk(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=p3(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=c3(a))&&(n.precision=i-(n.type==="%")*2);break}}return Kb(n)}function $n(e){var t=e.domain;return e.ticks=function(r){var n=t();return Em(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Pk(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,d=10;for(s0;){if(c=xm(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function hl(){var e=Vb();return e.copy=function(){return qo(e,hl())},Sr.apply(e,arguments),$n(e)}function $k(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,fl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return $k(e).unknown(t)},e=arguments.length?Array.from(e,fl):[0,1],$n(r)}function jk(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function b3(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 RE(e){return(t,r)=>-e(-t,r)}function Xb(e){const t=e(OE,kE),r=t.domain;let n=10,a,i;function o(){return a=b3(n),i=m3(n),r()[0]<0?(a=RE(a),i=RE(i),e(f3,g3)):e(OE,kE),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],d=l[l.length-1];const p=d0){for(;g<=m;++g)for(b=1;bd)break;O.push(v)}}else for(;g<=m;++g)for(b=n-1;b>=1;--b)if(v=g>0?b/i(-g):b*i(g),!(vd)break;O.push(v)}O.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=so(l)).precision==null&&(l.trim=!0),l=Kb(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*nr(jk(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Fk(){const e=Xb(du()).domain([1,10]);return e.copy=()=>qo(e,Fk()).base(e.base()),Sr.apply(e,arguments),e}function IE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Zb(e){var t=1,r=e(IE(t),NE(t));return r.constant=function(n){return arguments.length?e(IE(t=+n),NE(t)):t},$n(r)}function Bk(){var e=Zb(du());return e.copy=function(){return qo(e,Bk()).constant(e.constant())},Sr.apply(e,arguments)}function CE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function y3(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function v3(e){return e<0?-e*e:e*e}function Qb(e){var t=e(Vt,Vt),r=1;function n(){return r===1?e(Vt,Vt):r===.5?e(y3,v3):e(CE(r),CE(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},$n(t)}function Jb(){var e=Qb(du());return e.copy=function(){return qo(e,Jb()).exponent(e.exponent())},Sr.apply(e,arguments),e}function S3(){return Jb.apply(null,arguments).exponent(.5)}function DE(e){return Math.sign(e)*e*e}function E3(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Uk(){var e=Vb(),t=[0,1],r=!1,n;function a(i){var o=E3(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(DE(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,fl)).map(DE)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Uk(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sr.apply(a,arguments),$n(a)}function Gk(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return zk().domain([e,t]).range(a).unknown(i)},Sr.apply($n(o),arguments)}function qk(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Go(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return qk().domain(e).range(t).unknown(r)},Sr.apply(a,arguments)}const _c=new Date,Tc=new Date;function xt(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cxt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(_c.setTime(+i),Tc.setTime(+o),e(_c),e(Tc),Math.floor(r(_c,Tc))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const ml=xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ml.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ml);ml.range;const un=1e3,br=un*60,cn=br*60,mn=cn*24,ey=mn*7,LE=mn*30,Ac=mn*365,Jn=xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getUTCSeconds());Jn.range;const ty=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getMinutes());ty.range;const ry=xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCMinutes());ry.range;const ny=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un-e.getMinutes()*br)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getHours());ny.range;const ay=xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getUTCHours());ay.range;const Ho=xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*br)/mn,e=>e.getDate()-1);Ho.range;const pu=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>e.getUTCDate()-1);pu.range;const Hk=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>Math.floor(e/mn));Hk.range;function sa(e){return xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*br)/ey)}const fu=sa(0),bl=sa(1),x3=sa(2),w3=sa(3),za=sa(4),_3=sa(5),T3=sa(6);fu.range;bl.range;x3.range;w3.range;za.range;_3.range;T3.range;function la(e){return xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ey)}const gu=la(0),yl=la(1),A3=la(2),O3=la(3),qa=la(4),k3=la(5),R3=la(6);gu.range;yl.range;A3.range;O3.range;qa.range;k3.range;R3.range;const iy=xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iy.range;const oy=xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());oy.range;const bn=xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bn.range;const yn=xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yn.range;function Wk(e,t,r,n,a,i){const o=[[Jn,1,un],[Jn,5,5*un],[Jn,15,15*un],[Jn,30,30*un],[i,1,br],[i,5,5*br],[i,15,15*br],[i,30,30*br],[a,1,cn],[a,3,3*cn],[a,6,6*cn],[a,12,12*cn],[n,1,mn],[n,2,2*mn],[r,1,ey],[t,1,LE],[t,3,3*LE],[e,1,Ac]];function s(c,d,p){const g=dS).right(o,g);if(m===o.length)return e.every(wm(c/Ac,d/Ac,p));if(m===0)return ml.every(Math.max(wm(c,d,p),1));const[b,v]=o[g/o[m-1][2]53)return null;"w"in X||(X.w=1),"Z"in X?(fe=kc(wi(X.y,0,1)),he=fe.getUTCDay(),fe=he>4||he===0?yl.ceil(fe):yl(fe),fe=pu.offset(fe,(X.V-1)*7),X.y=fe.getUTCFullYear(),X.m=fe.getUTCMonth(),X.d=fe.getUTCDate()+(X.w+6)%7):(fe=Oc(wi(X.y,0,1)),he=fe.getDay(),fe=he>4||he===0?bl.ceil(fe):bl(fe),fe=Ho.offset(fe,(X.V-1)*7),X.y=fe.getFullYear(),X.m=fe.getMonth(),X.d=fe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),he="Z"in X?kc(wi(X.y,0,1)).getUTCDay():Oc(wi(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(he+5)%7:X.w+X.U*7-(he+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,kc(X)):Oc(X)}}function N(ee,oe,ie,X){for(var Ee=0,fe=oe.length,he=ie.length,je,nt;Ee=he)return-1;if(je=oe.charCodeAt(Ee++),je===37){if(je=oe.charAt(Ee++),nt=x[je in ME?oe.charAt(Ee++):je],!nt||(X=nt(ee,ie,X))<0)return-1}else if(je!=ie.charCodeAt(X++))return-1}return X}function I(ee,oe,ie){var X=c.exec(oe.slice(ie));return X?(ee.p=d.get(X[0].toLowerCase()),ie+X[0].length):-1}function D(ee,oe,ie){var X=m.exec(oe.slice(ie));return X?(ee.w=b.get(X[0].toLowerCase()),ie+X[0].length):-1}function L(ee,oe,ie){var X=p.exec(oe.slice(ie));return X?(ee.w=g.get(X[0].toLowerCase()),ie+X[0].length):-1}function j(ee,oe,ie){var X=O.exec(oe.slice(ie));return X?(ee.m=_.get(X[0].toLowerCase()),ie+X[0].length):-1}function z(ee,oe,ie){var X=v.exec(oe.slice(ie));return X?(ee.m=S.get(X[0].toLowerCase()),ie+X[0].length):-1}function q(ee,oe,ie){return N(ee,t,oe,ie)}function H(ee,oe,ie){return N(ee,r,oe,ie)}function V(ee,oe,ie){return N(ee,n,oe,ie)}function K(ee){return o[ee.getDay()]}function G(ee){return i[ee.getDay()]}function W(ee){return l[ee.getMonth()]}function Q(ee){return s[ee.getMonth()]}function ae(ee){return a[+(ee.getHours()>=12)]}function re(ee){return 1+~~(ee.getMonth()/3)}function ue(ee){return o[ee.getUTCDay()]}function Se(ee){return i[ee.getUTCDay()]}function J(ee){return l[ee.getUTCMonth()]}function Ie(ee){return s[ee.getUTCMonth()]}function Ue(ee){return a[+(ee.getUTCHours()>=12)]}function xe(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var oe=E(ee+="",w);return oe.toString=function(){return ee},oe},parse:function(ee){var oe=k(ee+="",!1);return oe.toString=function(){return ee},oe},utcFormat:function(ee){var oe=E(ee+="",A);return oe.toString=function(){return ee},oe},utcParse:function(ee){var oe=k(ee+="",!0);return oe.toString=function(){return ee},oe}}}var ME={"-":"",_:" ",0:"0"},Ot=/^\s*\d+/,M3=/^%/,P3=/[\\^$*+?|[\]().{}]/g;function Be(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function j3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function F3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function B3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function U3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function G3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function PE(e,t,r){var n=Ot.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function $E(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function z3(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function q3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function H3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function jE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function W3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function FE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function V3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Y3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function K3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function X3(e,t,r){var n=Ot.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Z3(e,t,r){var n=M3.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Q3(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function J3(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function BE(e,t){return Be(e.getDate(),t,2)}function eV(e,t){return Be(e.getHours(),t,2)}function tV(e,t){return Be(e.getHours()%12||12,t,2)}function rV(e,t){return Be(1+Ho.count(bn(e),e),t,3)}function Vk(e,t){return Be(e.getMilliseconds(),t,3)}function nV(e,t){return Vk(e,t)+"000"}function aV(e,t){return Be(e.getMonth()+1,t,2)}function iV(e,t){return Be(e.getMinutes(),t,2)}function oV(e,t){return Be(e.getSeconds(),t,2)}function sV(e){var t=e.getDay();return t===0?7:t}function lV(e,t){return Be(fu.count(bn(e)-1,e),t,2)}function Yk(e){var t=e.getDay();return t>=4||t===0?za(e):za.ceil(e)}function uV(e,t){return e=Yk(e),Be(za.count(bn(e),e)+(bn(e).getDay()===4),t,2)}function cV(e){return e.getDay()}function dV(e,t){return Be(bl.count(bn(e)-1,e),t,2)}function pV(e,t){return Be(e.getFullYear()%100,t,2)}function fV(e,t){return e=Yk(e),Be(e.getFullYear()%100,t,2)}function gV(e,t){return Be(e.getFullYear()%1e4,t,4)}function hV(e,t){var r=e.getDay();return e=r>=4||r===0?za(e):za.ceil(e),Be(e.getFullYear()%1e4,t,4)}function mV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function UE(e,t){return Be(e.getUTCDate(),t,2)}function bV(e,t){return Be(e.getUTCHours(),t,2)}function yV(e,t){return Be(e.getUTCHours()%12||12,t,2)}function vV(e,t){return Be(1+pu.count(yn(e),e),t,3)}function Kk(e,t){return Be(e.getUTCMilliseconds(),t,3)}function SV(e,t){return Kk(e,t)+"000"}function EV(e,t){return Be(e.getUTCMonth()+1,t,2)}function xV(e,t){return Be(e.getUTCMinutes(),t,2)}function wV(e,t){return Be(e.getUTCSeconds(),t,2)}function _V(e){var t=e.getUTCDay();return t===0?7:t}function TV(e,t){return Be(gu.count(yn(e)-1,e),t,2)}function Xk(e){var t=e.getUTCDay();return t>=4||t===0?qa(e):qa.ceil(e)}function AV(e,t){return e=Xk(e),Be(qa.count(yn(e),e)+(yn(e).getUTCDay()===4),t,2)}function OV(e){return e.getUTCDay()}function kV(e,t){return Be(yl.count(yn(e)-1,e),t,2)}function RV(e,t){return Be(e.getUTCFullYear()%100,t,2)}function IV(e,t){return e=Xk(e),Be(e.getUTCFullYear()%100,t,2)}function NV(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function CV(e,t){var r=e.getUTCDay();return e=r>=4||r===0?qa(e):qa.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function DV(){return"+0000"}function GE(){return"%"}function zE(e){return+e}function qE(e){return Math.floor(+e/1e3)}var ya,Zk,Qk;LV({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 LV(e){return ya=L3(e),Zk=ya.format,ya.parse,Qk=ya.utcFormat,ya.utcParse,ya}function MV(e){return new Date(e)}function PV(e){return e instanceof Date?+e:+new Date(+e)}function sy(e,t,r,n,a,i,o,s,l,c){var d=Vb(),p=d.invert,g=d.domain,m=c(".%L"),b=c(":%S"),v=c("%I:%M"),S=c("%I %p"),O=c("%a %d"),_=c("%b %d"),w=c("%B"),A=c("%Y");function x(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>TW(e,i/n))},r.copy=function(){return rR(t).domain(e)},Sn.apply(r,arguments)}function mu(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=Vt,d,p=!1,g;function m(v){return isNaN(v=+v)?g:(v=.5+((v=+d(v))-i)*(n*vt}var qV=zV,HV=oR,WV=qV,VV=jo;function YV(e){return e&&e.length?HV(e,VV,WV):void 0}var KV=YV;const bu=pt(KV);function XV(e,t){return ee.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pe.dividedBy=pe.div=function(e){return gn(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,r=t.constructor;return Je(gn(t,new r(e),0,1),r.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return bt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(sr))throw Error(vr+"NaN");if(r.s<1)throw Error(vr+(r.s?"NaN":"-Infinity"));return r.eq(sr)?new n(0):(lt=!1,t=gn(lo(r,i),lo(e,i),i),lt=!0,Je(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cR(t,e):lR(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(vr+"NaN");return r.s?(lt=!1,t=gn(r,e,0,1).times(e),lt=!0,r.minus(t)):Je(new n(r),a)};pe.naturalExponential=pe.exp=function(){return uR(this)};pe.naturalLogarithm=pe.ln=function(){return lo(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lR(t,e):cR(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=bt(a)+1,n=a.d.length-1,r=n*ot+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pe.squareRoot=pe.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(vr+"NaN")}for(e=bt(s),lt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=zr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=oi((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(gn(s,i,o+2)).times(.5),zr(i.d).slice(0,o)===(t=zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Je(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return lt=!0,Je(n,r)};pe.times=pe.mul=function(e){var t,r,n,a,i,o,s,l,c,d=this,p=d.constructor,g=d.d,m=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,r=d.e+e.e,l=g.length,c=m.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+m[n]*g[a-n-1]+t,i[a--]=s%_t|0,t=s/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,lt?Je(e,p.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vr(e,0,ii),t===void 0?t=n.rounding:Vr(t,0,8),Je(r,e+bt(r)+1,t))};pe.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=aa(n,!0):(Vr(e,0,ii),t===void 0?t=a.rounding:Vr(t,0,8),n=Je(new a(n),e+1,t),r=aa(n,!0,e+1)),r};pe.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?aa(a):(Vr(e,0,ii),t===void 0?t=i.rounding:Vr(t,0,8),n=Je(new i(a),e+bt(a)+1,t),r=aa(n.abs(),!1,e+bt(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return Je(new t(e),bt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(sr);if(s=new l(s),!s.s){if(e.s<1)throw Error(vr+"Infinity");return s}if(s.eq(sr))return s;if(n=l.precision,e.eq(sr))return Je(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=d<0?-d:d)<=sR){for(a=new l(sr),t=Math.ceil(n/ot+4),lt=!1;r%2&&(a=a.times(s),VE(a.d,t)),r=oi(r/2),r!==0;)s=s.times(s),VE(s.d,t);return lt=!0,e.s<0?new l(sr).div(a):Je(a,n)}}else if(i<0)throw Error(vr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,lt=!1,a=e.times(lo(s,n+c)),lt=!0,a=uR(a),a.s=i,a};pe.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=bt(a),n=aa(a,r<=i.toExpNeg||r>=i.toExpPos)):(Vr(e,1,ii),t===void 0?t=i.rounding:Vr(t,0,8),a=Je(new i(a),e,t),r=bt(a),n=aa(a,e<=r||r<=i.toExpNeg,e)),n};pe.toSignificantDigits=pe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vr(e,1,ii),t===void 0?t=n.rounding:Vr(t,0,8)),Je(new n(r),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),r=e.constructor;return aa(e,t<=r.toExpNeg||t>=r.toExpPos)};function lR(e,t){var r,n,a,i,o,s,l,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),lt?Je(t,p):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(p/ot),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/_t|0,l[i]%=_t;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,lt?Je(t,p):t}function Vr(e,t,r){if(e!==~~e||er)throw Error(ra+e)}function zr(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,N,I=n.constructor,D=n.s==a.s?1:-1,L=n.d,j=a.d;if(!n.s)return new I(n);if(!a.s)throw Error(vr+"Division by zero");for(l=n.e-a.e,k=j.length,x=L.length,m=new I(D),b=m.d=[],c=0;j[c]==(L[c]||0);)++c;if(j[c]>(L[c]||0)&&--l,i==null?_=i=I.precision:o?_=i+(bt(n)-bt(a))+1:_=i,_<0)return new I(0);if(_=_/ot+2|0,c=0,k==1)for(d=0,j=j[0],_++;(c1&&(j=e(j,d),L=e(L,d),k=j.length,x=L.length),A=k,v=L.slice(0,k),S=v.length;S=_t/2&&++E;do d=0,s=t(j,v,k,S),s<0?(O=v[0],k!=S&&(O=O*_t+(v[1]||0)),d=O/E|0,d>1?(d>=_t&&(d=_t-1),p=e(j,d),g=p.length,S=v.length,s=t(p,v,g,S),s==1&&(d--,r(p,k16)throw Error(cy+bt(e));if(!e.s)return new d(sr);for(t==null?(lt=!1,s=p):s=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Kn(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new d(sr),d.precision=s;;){if(a=Je(a.times(e),s),r=r.times(++l),o=i.plus(gn(a,r,s)),zr(o.d).slice(0,s)===zr(i.d).slice(0,s)){for(;c--;)i=Je(i.times(i),s);return d.precision=p,t==null?(lt=!0,Je(i,p)):i}i=o}}function bt(e){for(var t=e.e*ot,r=e.d[0];r>=10;r/=10)t++;return t}function Rc(e,t,r){if(t>e.LN10.sd())throw lt=!0,r&&(e.precision=r),Error(vr+"LN10 precision limit exceeded");return Je(new e(e.LN10),t)}function In(e){for(var t="";e--;)t+="0";return t}function lo(e,t){var r,n,a,i,o,s,l,c,d,p=1,g=10,m=e,b=m.d,v=m.constructor,S=v.precision;if(m.s<1)throw Error(vr+(m.s?"NaN":"-Infinity"));if(m.eq(sr))return new v(0);if(t==null?(lt=!1,c=S):c=t,m.eq(10))return t==null&&(lt=!0),Rc(v,c);if(c+=g,v.precision=c,r=zr(b),n=r.charAt(0),i=bt(m),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=zr(m.d),n=r.charAt(0),p++;i=bt(m),n>1?(m=new v("0."+r),i++):m=new v(n+"."+r.slice(1))}else return l=Rc(v,c+2,S).times(i+""),m=lo(new v(n+"."+r.slice(1)),c-g).plus(l),v.precision=S,t==null?(lt=!0,Je(m,S)):m;for(s=o=m=gn(m.minus(sr),m.plus(sr),c),d=Je(m.times(m),c),a=3;;){if(o=Je(o.times(d),c),l=s.plus(gn(o,new v(a),c)),zr(l.d).slice(0,c)===zr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Rc(v,c+2,S).times(i+""))),s=gn(s,new v(p),c),v.precision=S,t==null?(lt=!0,Je(s,S)):s;s=l,a+=2}}function WE(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=oi(r/ot),e.d=[],n=(r+1)%ot,r<0&&(n+=ot),nvl||e.e<-vl))throw Error(cy+r)}else e.s=0,e.e=0,e.d=[0];return e}function Je(e,t,r){var n,a,i,o,s,l,c,d,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ot,a=t,c=p[d=0];else{if(d=Math.ceil((n+1)/ot),i=p.length,d>=i)return e;for(c=i=p[d],o=1;i>=10;i/=10)o++;n%=ot,a=n-ot+o}if(r!==void 0&&(i=Kn(10,o-a-1),s=c/i%10|0,l=t<0||p[d+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Kn(10,o-a):0:p[d-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return l?(i=bt(e),p.length=1,t=t-i-1,p[0]=Kn(10,(ot-t%ot)%ot),e.e=oi(-t/ot)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=d,i=1,d--):(p.length=d+1,i=Kn(10,ot-n),p[d]=a>0?(c/Kn(10,o-a)%Kn(10,a)|0)*i:0),l)for(;;)if(d==0){(p[0]+=i)==_t&&(p[0]=1,++e.e);break}else{if(p[d]+=i,p[d]!=_t)break;p[d--]=0,i=1}for(n=p.length;p[--n]===0;)p.pop();if(lt&&(e.e>vl||e.e<-vl))throw Error(cy+bt(e));return e}function cR(e,t){var r,n,a,i,o,s,l,c,d,p,g=e.constructor,m=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),lt?Je(t,m):t;if(l=e.d,p=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(d=o<0,d?(r=l,o=-o,s=p.length):(r=p,n=c,s=l.length),a=Math.max(Math.ceil(m/ot),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=p.length,d=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+In(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+In(-a-1)+i,r&&(n=r-o)>0&&(i+=In(n))):a>=o?(i+=In(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+In(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=In(n))),e.s<0?"-"+i:i}function VE(e,t){if(e.length>t)return e.length=t,!0}function dR(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ra+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return WE(o,i.toString())}else if(typeof i!="string")throw Error(ra+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,pY.test(i))WE(o,i);else throw Error(ra+i)}if(a.prototype=pe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=dR,a.config=a.set=fY,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var dy=dR(dY);sr=new dy(1);const Xe=dy;function gY(e){return yY(e)||bY(e)||mY(e)||hY()}function hY(){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 qH(e,t){if(e){if(typeof e=="string")return JS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JS(e,t)}}function JS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oW(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function aE(e,t){return cW(e)||uW(e,t)||lW(e,t)||sW()}function sW(){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 lW(e,t){if(e){if(typeof e=="string")return iE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iE(e,t)}}function iE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return H.reduce(function(V,K){var G=K.word,W=K.width,J=V[V.length-1];if(J&&(a==null||i||J.width+W+nK.width?V:K})};if(!d)return m;for(var v="…",S=function(H){var V=p.slice(0,H),K=Ak({breakAll:c,style:l,children:V+v}).wordsWithComputedWidth,G=g(K),W=G.length>o||b(G).width>Number(a);return[W,G]},O=0,_=p.length-1,w=0,A;O<=_&&w<=p.length-1;){var x=Math.floor((O+_)/2),E=x-1,k=S(E),N=aE(k,2),I=N[0],D=N[1],L=S(x),j=aE(L,1),z=j[0];if(!I&&!z&&(O=x+1),I&&z&&(_=x-1),!I&&z){A=D;break}w++}return A||m},oE=function(t){var r=Ce(t)?[]:t.toString().split(Tk);return[{words:r}]},pW=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!fn.isSsr){var l,c,d=Ak({breakAll:o,children:a,style:i});if(d){var p=d.wordsWithComputedWidth,g=d.spaceWidth;l=p,c=g}else return oE(a);return dW({breakAll:o,children:a,maxLines:s,style:i},l,c,r,n)}return oE(a)},sE="#808080",ll=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,p=d===void 0?!1:d,g=t.textAnchor,m=g===void 0?"start":g,b=t.verticalAnchor,v=b===void 0?"end":b,S=t.fill,O=S===void 0?sE:S,_=nE(t,aW),w=P.useMemo(function(){return pW({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,x=_.dy,E=_.angle,k=_.className,N=_.breakAll,I=nE(_,iW);if(!Et(n)||!Et(i))return null;var D=n+(se(A)?A:0),L=i+(se(x)?x:0),j;switch(v){case"start":j=Ec("calc(".concat(c,")"));break;case"middle":j=Ec("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:j=Ec("calc(".concat(w.length-1," * -").concat(s,")"));break}var z=[];if(p){var q=w[0].width,H=_.width;z.push("scale(".concat((se(H)?H/q:1)/q,")"))}return E&&z.push("rotate(".concat(E,", ").concat(D,", ").concat(L,")")),z.length&&(I.transform=z.join(" ")),U.createElement("text",Sm({},Me(I,!0),{x:D,y:L,className:Ze("recharts-text",k),textAnchor:m,fill:O.includes("url")?sE:O}),w.map(function(V,K){var G=V.words.join(N?"":" ");return U.createElement("tspan",{x:D,dy:K===0?j:s,key:G},G)}))};function Ln(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function fW(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Gb(e){let t,r,n;e.length!==2?(t=Ln,r=(s,l)=>Ln(e(s),l),n=(s,l)=>e(s)-l):(t=e===Ln||e===fW?e:gW,r=e,n=e);function a(s,l,c=0,d=s.length){if(c>>1;r(s[p],l)<0?c=p+1:d=p}while(c>>1;r(s[p],l)<=0?c=p+1:d=p}while(cc&&n(s[p-1],l)>-n(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function gW(){return 0}function Ok(e){return e===null?NaN:+e}function*hW(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const mW=Gb(Ln),bW=mW.right;Gb(Ok).center;const Go=bW;class lE extends Map{constructor(t,r=SW){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(uE(this,t))}has(t){return super.has(uE(this,t))}set(t,r){return super.set(yW(this,t),r)}delete(t){return super.delete(vW(this,t))}}function uE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function yW({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function vW({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function SW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function EW(e=Ln){if(e===Ln)return kk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function kk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const xW=Math.sqrt(50),wW=Math.sqrt(10),_W=Math.sqrt(2);function ul(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=xW?10:i>=wW?5:i>=_W?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function dE(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function Rk(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?kk:EW(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,d=Math.log(l),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(l-p)/l)*(c-l/2<0?-1:1),m=Math.max(r,Math.floor(t-c*p/l+g)),b=Math.min(n,Math.floor(t+(l-c)*p/l+g));Rk(e,t,m,b,a)}const i=e[t];let o=r,s=n;for(xi(e,r,t),a(e[n],i)>0&&xi(e,r,n);o0;)--s}a(e[r],i)===0?xi(e,r,s):(++s,xi(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function xi(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function TW(e,t,r){if(e=Float64Array.from(hW(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return dE(e);if(t>=1)return cE(e);var n,a=(n-1)*t,i=Math.floor(a),o=cE(Rk(e,i).subarray(0,i+1)),s=dE(e.subarray(i+1));return o+(s-o)*(a-i)}}function AW(e,t,r=Ok){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function OW(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ks(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ks(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=RW.exec(e))?new Qt(t[1],t[2],t[3],1):(t=IW.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=NW.exec(e))?ks(t[1],t[2],t[3],t[4]):(t=CW.exec(e))?ks(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DW.exec(e))?yE(t[1],t[2]/100,t[3]/100,1):(t=LW.exec(e))?yE(t[1],t[2]/100,t[3]/100,t[4]):pE.hasOwnProperty(e)?hE(pE[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function hE(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function ks(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qt(e,t,r,n)}function $W(e){return e instanceof zo||(e=oo(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function Tm(e,t,r,n){return arguments.length===1?$W(e):new Qt(e,t,r,n??1)}function Qt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}qb(Qt,Tm,Nk(zo,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(ta(this.r),ta(this.g),ta(this.b),dl(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:mE,formatHex:mE,formatHex8:jW,formatRgb:bE,toString:bE}));function mE(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}`}function jW(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}${Jn((isNaN(this.opacity)?1:this.opacity)*255)}`}function bE(){const e=dl(this.opacity);return`${e===1?"rgb(":"rgba("}${ta(this.r)}, ${ta(this.g)}, ${ta(this.b)}${e===1?")":`, ${e})`}`}function dl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ta(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jn(e){return e=ta(e),(e<16?"0":"")+e.toString(16)}function yE(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,n)}function Ck(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof zo||(e=oo(e)),!e)return new Nr;if(e instanceof Nr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new Nr(o,s,l,e.opacity)}function FW(e,t,r,n){return arguments.length===1?Ck(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}qb(Nr,FW,Nk(zo,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Nr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Qt(xc(e>=240?e-240:e+120,a,n),xc(e,a,n),xc(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Nr(vE(this.h),Rs(this.s),Rs(this.l),dl(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=dl(this.opacity);return`${e===1?"hsl(":"hsla("}${vE(this.h)}, ${Rs(this.s)*100}%, ${Rs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vE(e){return e=(e||0)%360,e<0?e+360:e}function Rs(e){return Math.max(0,Math.min(1,e||0))}function xc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Hb=e=>()=>e;function BW(e,t){return function(r){return e+r*t}}function UW(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function GW(e){return(e=+e)==1?Dk:function(t,r){return r-t?UW(t,r,e):Hb(isNaN(t)?r:t)}}function Dk(e,t){var r=t-e;return r?BW(e,r):Hb(isNaN(e)?t:e)}const SE=function e(t){var r=GW(t);function n(a,i){var o=r((a=Tm(a)).r,(i=Tm(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=Dk(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=s(d),a.b=l(d),a.opacity=c(d),a+""}}return n.gamma=e,n}(1);function zW(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:pl(n,a)})),r=wc.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function e3(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?t3:e3,l=c=null,p}function p(g){return g==null||isNaN(g=+g)?i:(l||(l=s(e.map(n),t,r)))(n(o(g)))}return p.invert=function(g){return o(a((c||(c=s(t,e.map(n),pl)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,fl),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Wb,d()},p.clamp=function(g){return arguments.length?(o=g?!0:Vt,d()):o!==Vt},p.interpolate=function(g){return arguments.length?(r=g,d()):r},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,m){return n=g,a=m,d()}}function Vb(){return du()(Vt,Vt)}function r3(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ga(e){return e=gl(Math.abs(e)),e?e[1]:NaN}function n3(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function a3(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var i3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function so(e){if(!(t=i3.exec(e)))throw new Error("invalid format: "+e);var t;return new Yb({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]})}so.prototype=Yb.prototype;function Yb(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+""}Yb.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 o3(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Lk;function s3(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Lk=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+gl(e,Math.max(0,t+i-1))[0]}function xE(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const wE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:r3,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)=>xE(e*100,t),r:xE,s:s3,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function _E(e){return e}var TE=Array.prototype.map,AE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l3(e){var t=e.grouping===void 0||e.thousands===void 0?_E:n3(TE.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?_E:a3(TE.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(p){p=so(p);var g=p.fill,m=p.align,b=p.sign,v=p.symbol,S=p.zero,O=p.width,_=p.comma,w=p.precision,A=p.trim,x=p.type;x==="n"?(_=!0,x="g"):wE[x]||(w===void 0&&(w=12),A=!0,x="g"),(S||g==="0"&&m==="=")&&(S=!0,g="0",m="=");var E=v==="$"?r:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k=v==="$"?n:/[%p]/.test(x)?o:"",N=wE[x],I=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function D(L){var j=E,z=k,q,H,V;if(x==="c")z=N(L)+z,L="";else{L=+L;var K=L<0||1/L<0;if(L=isNaN(L)?l:N(Math.abs(L),w),A&&(L=o3(L)),K&&+L==0&&b!=="+"&&(K=!1),j=(K?b==="("?b:s:b==="-"||b==="("?"":b)+j,z=(x==="s"?AE[8+Lk/3]:"")+z+(K&&b==="("?")":""),I){for(q=-1,H=L.length;++qV||V>57){z=(V===46?a+L.slice(q+1):L.slice(q))+z,L=L.slice(0,q);break}}}_&&!S&&(L=t(L,1/0));var G=j.length+L.length+z.length,W=G>1)+j+L+z+W.slice(G);break;default:L=W+j+L+z;break}return i(L)}return D.toString=function(){return p+""},D}function d(p,g){var m=c((p=so(p),p.type="f",p)),b=Math.max(-8,Math.min(8,Math.floor(Ga(g)/3)))*3,v=Math.pow(10,-b),S=AE[8+b/3];return function(O){return m(v*O)+S}}return{format:c,formatPrefix:d}}var Is,Kb,Mk;u3({thousands:",",grouping:[3],currency:["$",""]});function u3(e){return Is=l3(e),Kb=Is.format,Mk=Is.formatPrefix,Is}function c3(e){return Math.max(0,-Ga(Math.abs(e)))}function d3(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ga(t)/3)))*3-Ga(Math.abs(e)))}function p3(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ga(t)-Ga(e))+1}function Pk(e,t,r,n){var a=wm(e,t,r),i;switch(n=so(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=d3(a,o))&&(n.precision=i),Mk(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=p3(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=c3(a))&&(n.precision=i-(n.type==="%")*2);break}}return Kb(n)}function $n(e){var t=e.domain;return e.ticks=function(r){var n=t();return Em(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Pk(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,d=10;for(s0;){if(c=xm(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function hl(){var e=Vb();return e.copy=function(){return qo(e,hl())},Sr.apply(e,arguments),$n(e)}function $k(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,fl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return $k(e).unknown(t)},e=arguments.length?Array.from(e,fl):[0,1],$n(r)}function jk(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function b3(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 RE(e){return(t,r)=>-e(-t,r)}function Xb(e){const t=e(OE,kE),r=t.domain;let n=10,a,i;function o(){return a=b3(n),i=m3(n),r()[0]<0?(a=RE(a),i=RE(i),e(f3,g3)):e(OE,kE),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],d=l[l.length-1];const p=d0){for(;g<=m;++g)for(b=1;bd)break;O.push(v)}}else for(;g<=m;++g)for(b=n-1;b>=1;--b)if(v=g>0?b/i(-g):b*i(g),!(vd)break;O.push(v)}O.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=so(l)).precision==null&&(l.trim=!0),l=Kb(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*nr(jk(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Fk(){const e=Xb(du()).domain([1,10]);return e.copy=()=>qo(e,Fk()).base(e.base()),Sr.apply(e,arguments),e}function IE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Zb(e){var t=1,r=e(IE(t),NE(t));return r.constant=function(n){return arguments.length?e(IE(t=+n),NE(t)):t},$n(r)}function Bk(){var e=Zb(du());return e.copy=function(){return qo(e,Bk()).constant(e.constant())},Sr.apply(e,arguments)}function CE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function y3(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function v3(e){return e<0?-e*e:e*e}function Jb(e){var t=e(Vt,Vt),r=1;function n(){return r===1?e(Vt,Vt):r===.5?e(y3,v3):e(CE(r),CE(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},$n(t)}function Qb(){var e=Jb(du());return e.copy=function(){return qo(e,Qb()).exponent(e.exponent())},Sr.apply(e,arguments),e}function S3(){return Qb.apply(null,arguments).exponent(.5)}function DE(e){return Math.sign(e)*e*e}function E3(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Uk(){var e=Vb(),t=[0,1],r=!1,n;function a(i){var o=E3(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(DE(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,fl)).map(DE)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Uk(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sr.apply(a,arguments),$n(a)}function Gk(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return zk().domain([e,t]).range(a).unknown(i)},Sr.apply($n(o),arguments)}function qk(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Go(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return qk().domain(e).range(t).unknown(r)},Sr.apply(a,arguments)}const _c=new Date,Tc=new Date;function xt(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cxt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(_c.setTime(+i),Tc.setTime(+o),e(_c),e(Tc),Math.floor(r(_c,Tc))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const ml=xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ml.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ml);ml.range;const un=1e3,br=un*60,cn=br*60,mn=cn*24,ey=mn*7,LE=mn*30,Ac=mn*365,Qn=xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getUTCSeconds());Qn.range;const ty=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getMinutes());ty.range;const ry=xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCMinutes());ry.range;const ny=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un-e.getMinutes()*br)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getHours());ny.range;const ay=xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getUTCHours());ay.range;const Ho=xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*br)/mn,e=>e.getDate()-1);Ho.range;const pu=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>e.getUTCDate()-1);pu.range;const Hk=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>Math.floor(e/mn));Hk.range;function sa(e){return xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*br)/ey)}const fu=sa(0),bl=sa(1),x3=sa(2),w3=sa(3),za=sa(4),_3=sa(5),T3=sa(6);fu.range;bl.range;x3.range;w3.range;za.range;_3.range;T3.range;function la(e){return xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ey)}const gu=la(0),yl=la(1),A3=la(2),O3=la(3),qa=la(4),k3=la(5),R3=la(6);gu.range;yl.range;A3.range;O3.range;qa.range;k3.range;R3.range;const iy=xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iy.range;const oy=xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());oy.range;const bn=xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bn.range;const yn=xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yn.range;function Wk(e,t,r,n,a,i){const o=[[Qn,1,un],[Qn,5,5*un],[Qn,15,15*un],[Qn,30,30*un],[i,1,br],[i,5,5*br],[i,15,15*br],[i,30,30*br],[a,1,cn],[a,3,3*cn],[a,6,6*cn],[a,12,12*cn],[n,1,mn],[n,2,2*mn],[r,1,ey],[t,1,LE],[t,3,3*LE],[e,1,Ac]];function s(c,d,p){const g=dS).right(o,g);if(m===o.length)return e.every(wm(c/Ac,d/Ac,p));if(m===0)return ml.every(Math.max(wm(c,d,p),1));const[b,v]=o[g/o[m-1][2]53)return null;"w"in X||(X.w=1),"Z"in X?(fe=kc(wi(X.y,0,1)),he=fe.getUTCDay(),fe=he>4||he===0?yl.ceil(fe):yl(fe),fe=pu.offset(fe,(X.V-1)*7),X.y=fe.getUTCFullYear(),X.m=fe.getUTCMonth(),X.d=fe.getUTCDate()+(X.w+6)%7):(fe=Oc(wi(X.y,0,1)),he=fe.getDay(),fe=he>4||he===0?bl.ceil(fe):bl(fe),fe=Ho.offset(fe,(X.V-1)*7),X.y=fe.getFullYear(),X.m=fe.getMonth(),X.d=fe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),he="Z"in X?kc(wi(X.y,0,1)).getUTCDay():Oc(wi(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(he+5)%7:X.w+X.U*7-(he+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,kc(X)):Oc(X)}}function N(ee,oe,ie,X){for(var Ee=0,fe=oe.length,he=ie.length,je,nt;Ee=he)return-1;if(je=oe.charCodeAt(Ee++),je===37){if(je=oe.charAt(Ee++),nt=x[je in ME?oe.charAt(Ee++):je],!nt||(X=nt(ee,ie,X))<0)return-1}else if(je!=ie.charCodeAt(X++))return-1}return X}function I(ee,oe,ie){var X=c.exec(oe.slice(ie));return X?(ee.p=d.get(X[0].toLowerCase()),ie+X[0].length):-1}function D(ee,oe,ie){var X=m.exec(oe.slice(ie));return X?(ee.w=b.get(X[0].toLowerCase()),ie+X[0].length):-1}function L(ee,oe,ie){var X=p.exec(oe.slice(ie));return X?(ee.w=g.get(X[0].toLowerCase()),ie+X[0].length):-1}function j(ee,oe,ie){var X=O.exec(oe.slice(ie));return X?(ee.m=_.get(X[0].toLowerCase()),ie+X[0].length):-1}function z(ee,oe,ie){var X=v.exec(oe.slice(ie));return X?(ee.m=S.get(X[0].toLowerCase()),ie+X[0].length):-1}function q(ee,oe,ie){return N(ee,t,oe,ie)}function H(ee,oe,ie){return N(ee,r,oe,ie)}function V(ee,oe,ie){return N(ee,n,oe,ie)}function K(ee){return o[ee.getDay()]}function G(ee){return i[ee.getDay()]}function W(ee){return l[ee.getMonth()]}function J(ee){return s[ee.getMonth()]}function ae(ee){return a[+(ee.getHours()>=12)]}function re(ee){return 1+~~(ee.getMonth()/3)}function ue(ee){return o[ee.getUTCDay()]}function Se(ee){return i[ee.getUTCDay()]}function Q(ee){return l[ee.getUTCMonth()]}function Ie(ee){return s[ee.getUTCMonth()]}function Ue(ee){return a[+(ee.getUTCHours()>=12)]}function xe(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var oe=E(ee+="",w);return oe.toString=function(){return ee},oe},parse:function(ee){var oe=k(ee+="",!1);return oe.toString=function(){return ee},oe},utcFormat:function(ee){var oe=E(ee+="",A);return oe.toString=function(){return ee},oe},utcParse:function(ee){var oe=k(ee+="",!0);return oe.toString=function(){return ee},oe}}}var ME={"-":"",_:" ",0:"0"},Ot=/^\s*\d+/,M3=/^%/,P3=/[\\^$*+?|[\]().{}]/g;function Be(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function j3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function F3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function B3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function U3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function G3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function PE(e,t,r){var n=Ot.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function $E(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function z3(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function q3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function H3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function jE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function W3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function FE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function V3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Y3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function K3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function X3(e,t,r){var n=Ot.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Z3(e,t,r){var n=M3.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function J3(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Q3(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function BE(e,t){return Be(e.getDate(),t,2)}function eV(e,t){return Be(e.getHours(),t,2)}function tV(e,t){return Be(e.getHours()%12||12,t,2)}function rV(e,t){return Be(1+Ho.count(bn(e),e),t,3)}function Vk(e,t){return Be(e.getMilliseconds(),t,3)}function nV(e,t){return Vk(e,t)+"000"}function aV(e,t){return Be(e.getMonth()+1,t,2)}function iV(e,t){return Be(e.getMinutes(),t,2)}function oV(e,t){return Be(e.getSeconds(),t,2)}function sV(e){var t=e.getDay();return t===0?7:t}function lV(e,t){return Be(fu.count(bn(e)-1,e),t,2)}function Yk(e){var t=e.getDay();return t>=4||t===0?za(e):za.ceil(e)}function uV(e,t){return e=Yk(e),Be(za.count(bn(e),e)+(bn(e).getDay()===4),t,2)}function cV(e){return e.getDay()}function dV(e,t){return Be(bl.count(bn(e)-1,e),t,2)}function pV(e,t){return Be(e.getFullYear()%100,t,2)}function fV(e,t){return e=Yk(e),Be(e.getFullYear()%100,t,2)}function gV(e,t){return Be(e.getFullYear()%1e4,t,4)}function hV(e,t){var r=e.getDay();return e=r>=4||r===0?za(e):za.ceil(e),Be(e.getFullYear()%1e4,t,4)}function mV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function UE(e,t){return Be(e.getUTCDate(),t,2)}function bV(e,t){return Be(e.getUTCHours(),t,2)}function yV(e,t){return Be(e.getUTCHours()%12||12,t,2)}function vV(e,t){return Be(1+pu.count(yn(e),e),t,3)}function Kk(e,t){return Be(e.getUTCMilliseconds(),t,3)}function SV(e,t){return Kk(e,t)+"000"}function EV(e,t){return Be(e.getUTCMonth()+1,t,2)}function xV(e,t){return Be(e.getUTCMinutes(),t,2)}function wV(e,t){return Be(e.getUTCSeconds(),t,2)}function _V(e){var t=e.getUTCDay();return t===0?7:t}function TV(e,t){return Be(gu.count(yn(e)-1,e),t,2)}function Xk(e){var t=e.getUTCDay();return t>=4||t===0?qa(e):qa.ceil(e)}function AV(e,t){return e=Xk(e),Be(qa.count(yn(e),e)+(yn(e).getUTCDay()===4),t,2)}function OV(e){return e.getUTCDay()}function kV(e,t){return Be(yl.count(yn(e)-1,e),t,2)}function RV(e,t){return Be(e.getUTCFullYear()%100,t,2)}function IV(e,t){return e=Xk(e),Be(e.getUTCFullYear()%100,t,2)}function NV(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function CV(e,t){var r=e.getUTCDay();return e=r>=4||r===0?qa(e):qa.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function DV(){return"+0000"}function GE(){return"%"}function zE(e){return+e}function qE(e){return Math.floor(+e/1e3)}var ya,Zk,Jk;LV({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 LV(e){return ya=L3(e),Zk=ya.format,ya.parse,Jk=ya.utcFormat,ya.utcParse,ya}function MV(e){return new Date(e)}function PV(e){return e instanceof Date?+e:+new Date(+e)}function sy(e,t,r,n,a,i,o,s,l,c){var d=Vb(),p=d.invert,g=d.domain,m=c(".%L"),b=c(":%S"),v=c("%I:%M"),S=c("%I %p"),O=c("%a %d"),_=c("%b %d"),w=c("%B"),A=c("%Y");function x(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>TW(e,i/n))},r.copy=function(){return rR(t).domain(e)},Sn.apply(r,arguments)}function mu(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=Vt,d,p=!1,g;function m(v){return isNaN(v=+v)?g:(v=.5+((v=+d(v))-i)*(n*vt}var qV=zV,HV=oR,WV=qV,VV=jo;function YV(e){return e&&e.length?HV(e,VV,WV):void 0}var KV=YV;const bu=pt(KV);function XV(e,t){return ee.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pe.dividedBy=pe.div=function(e){return gn(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,r=t.constructor;return Qe(gn(t,new r(e),0,1),r.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return bt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(sr))throw Error(vr+"NaN");if(r.s<1)throw Error(vr+(r.s?"NaN":"-Infinity"));return r.eq(sr)?new n(0):(lt=!1,t=gn(lo(r,i),lo(e,i),i),lt=!0,Qe(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cR(t,e):lR(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(vr+"NaN");return r.s?(lt=!1,t=gn(r,e,0,1).times(e),lt=!0,r.minus(t)):Qe(new n(r),a)};pe.naturalExponential=pe.exp=function(){return uR(this)};pe.naturalLogarithm=pe.ln=function(){return lo(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lR(t,e):cR(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=bt(a)+1,n=a.d.length-1,r=n*ot+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pe.squareRoot=pe.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(vr+"NaN")}for(e=bt(s),lt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=zr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=oi((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(gn(s,i,o+2)).times(.5),zr(i.d).slice(0,o)===(t=zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Qe(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return lt=!0,Qe(n,r)};pe.times=pe.mul=function(e){var t,r,n,a,i,o,s,l,c,d=this,p=d.constructor,g=d.d,m=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,r=d.e+e.e,l=g.length,c=m.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+m[n]*g[a-n-1]+t,i[a--]=s%_t|0,t=s/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,lt?Qe(e,p.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vr(e,0,ii),t===void 0?t=n.rounding:Vr(t,0,8),Qe(r,e+bt(r)+1,t))};pe.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=aa(n,!0):(Vr(e,0,ii),t===void 0?t=a.rounding:Vr(t,0,8),n=Qe(new a(n),e+1,t),r=aa(n,!0,e+1)),r};pe.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?aa(a):(Vr(e,0,ii),t===void 0?t=i.rounding:Vr(t,0,8),n=Qe(new i(a),e+bt(a)+1,t),r=aa(n.abs(),!1,e+bt(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),bt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(sr);if(s=new l(s),!s.s){if(e.s<1)throw Error(vr+"Infinity");return s}if(s.eq(sr))return s;if(n=l.precision,e.eq(sr))return Qe(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=d<0?-d:d)<=sR){for(a=new l(sr),t=Math.ceil(n/ot+4),lt=!1;r%2&&(a=a.times(s),VE(a.d,t)),r=oi(r/2),r!==0;)s=s.times(s),VE(s.d,t);return lt=!0,e.s<0?new l(sr).div(a):Qe(a,n)}}else if(i<0)throw Error(vr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,lt=!1,a=e.times(lo(s,n+c)),lt=!0,a=uR(a),a.s=i,a};pe.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=bt(a),n=aa(a,r<=i.toExpNeg||r>=i.toExpPos)):(Vr(e,1,ii),t===void 0?t=i.rounding:Vr(t,0,8),a=Qe(new i(a),e,t),r=bt(a),n=aa(a,e<=r||r<=i.toExpNeg,e)),n};pe.toSignificantDigits=pe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vr(e,1,ii),t===void 0?t=n.rounding:Vr(t,0,8)),Qe(new n(r),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),r=e.constructor;return aa(e,t<=r.toExpNeg||t>=r.toExpPos)};function lR(e,t){var r,n,a,i,o,s,l,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),lt?Qe(t,p):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(p/ot),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/_t|0,l[i]%=_t;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,lt?Qe(t,p):t}function Vr(e,t,r){if(e!==~~e||er)throw Error(ra+e)}function zr(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,N,I=n.constructor,D=n.s==a.s?1:-1,L=n.d,j=a.d;if(!n.s)return new I(n);if(!a.s)throw Error(vr+"Division by zero");for(l=n.e-a.e,k=j.length,x=L.length,m=new I(D),b=m.d=[],c=0;j[c]==(L[c]||0);)++c;if(j[c]>(L[c]||0)&&--l,i==null?_=i=I.precision:o?_=i+(bt(n)-bt(a))+1:_=i,_<0)return new I(0);if(_=_/ot+2|0,c=0,k==1)for(d=0,j=j[0],_++;(c1&&(j=e(j,d),L=e(L,d),k=j.length,x=L.length),A=k,v=L.slice(0,k),S=v.length;S=_t/2&&++E;do d=0,s=t(j,v,k,S),s<0?(O=v[0],k!=S&&(O=O*_t+(v[1]||0)),d=O/E|0,d>1?(d>=_t&&(d=_t-1),p=e(j,d),g=p.length,S=v.length,s=t(p,v,g,S),s==1&&(d--,r(p,k16)throw Error(cy+bt(e));if(!e.s)return new d(sr);for(t==null?(lt=!1,s=p):s=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Kn(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new d(sr),d.precision=s;;){if(a=Qe(a.times(e),s),r=r.times(++l),o=i.plus(gn(a,r,s)),zr(o.d).slice(0,s)===zr(i.d).slice(0,s)){for(;c--;)i=Qe(i.times(i),s);return d.precision=p,t==null?(lt=!0,Qe(i,p)):i}i=o}}function bt(e){for(var t=e.e*ot,r=e.d[0];r>=10;r/=10)t++;return t}function Rc(e,t,r){if(t>e.LN10.sd())throw lt=!0,r&&(e.precision=r),Error(vr+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function In(e){for(var t="";e--;)t+="0";return t}function lo(e,t){var r,n,a,i,o,s,l,c,d,p=1,g=10,m=e,b=m.d,v=m.constructor,S=v.precision;if(m.s<1)throw Error(vr+(m.s?"NaN":"-Infinity"));if(m.eq(sr))return new v(0);if(t==null?(lt=!1,c=S):c=t,m.eq(10))return t==null&&(lt=!0),Rc(v,c);if(c+=g,v.precision=c,r=zr(b),n=r.charAt(0),i=bt(m),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=zr(m.d),n=r.charAt(0),p++;i=bt(m),n>1?(m=new v("0."+r),i++):m=new v(n+"."+r.slice(1))}else return l=Rc(v,c+2,S).times(i+""),m=lo(new v(n+"."+r.slice(1)),c-g).plus(l),v.precision=S,t==null?(lt=!0,Qe(m,S)):m;for(s=o=m=gn(m.minus(sr),m.plus(sr),c),d=Qe(m.times(m),c),a=3;;){if(o=Qe(o.times(d),c),l=s.plus(gn(o,new v(a),c)),zr(l.d).slice(0,c)===zr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Rc(v,c+2,S).times(i+""))),s=gn(s,new v(p),c),v.precision=S,t==null?(lt=!0,Qe(s,S)):s;s=l,a+=2}}function WE(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=oi(r/ot),e.d=[],n=(r+1)%ot,r<0&&(n+=ot),nvl||e.e<-vl))throw Error(cy+r)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,r){var n,a,i,o,s,l,c,d,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ot,a=t,c=p[d=0];else{if(d=Math.ceil((n+1)/ot),i=p.length,d>=i)return e;for(c=i=p[d],o=1;i>=10;i/=10)o++;n%=ot,a=n-ot+o}if(r!==void 0&&(i=Kn(10,o-a-1),s=c/i%10|0,l=t<0||p[d+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Kn(10,o-a):0:p[d-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return l?(i=bt(e),p.length=1,t=t-i-1,p[0]=Kn(10,(ot-t%ot)%ot),e.e=oi(-t/ot)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=d,i=1,d--):(p.length=d+1,i=Kn(10,ot-n),p[d]=a>0?(c/Kn(10,o-a)%Kn(10,a)|0)*i:0),l)for(;;)if(d==0){(p[0]+=i)==_t&&(p[0]=1,++e.e);break}else{if(p[d]+=i,p[d]!=_t)break;p[d--]=0,i=1}for(n=p.length;p[--n]===0;)p.pop();if(lt&&(e.e>vl||e.e<-vl))throw Error(cy+bt(e));return e}function cR(e,t){var r,n,a,i,o,s,l,c,d,p,g=e.constructor,m=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),lt?Qe(t,m):t;if(l=e.d,p=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(d=o<0,d?(r=l,o=-o,s=p.length):(r=p,n=c,s=l.length),a=Math.max(Math.ceil(m/ot),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=p.length,d=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+In(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+In(-a-1)+i,r&&(n=r-o)>0&&(i+=In(n))):a>=o?(i+=In(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+In(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=In(n))),e.s<0?"-"+i:i}function VE(e,t){if(e.length>t)return e.length=t,!0}function dR(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ra+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return WE(o,i.toString())}else if(typeof i!="string")throw Error(ra+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,pY.test(i))WE(o,i);else throw Error(ra+i)}if(a.prototype=pe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=dR,a.config=a.set=fY,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var dy=dR(dY);sr=new dy(1);const Xe=dy;function gY(e){return yY(e)||bY(e)||mY(e)||hY()}function hY(){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 mY(e,t){if(e){if(typeof e=="string")return km(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return km(e,t)}}function bY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function yY(e){if(Array.isArray(e))return km(e)}function km(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,a):e(t-o,YE(function(){for(var s=arguments.length,l=new Array(s),c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function DY(e){if(Array.isArray(e))return e}function mR(e){var t=uo(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function bR(e,t,r){if(e.lte(0))return new Xe(0);var n=Eu.getDigitCount(e.toNumber()),a=new Xe(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new Xe(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?l:new Xe(Math.ceil(l))}function LY(e,t,r){var n=1,a=new Xe(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Xe(10).pow(Eu.getDigitCount(e)-1),a=new Xe(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Xe(Math.floor(e)))}else e===0?a=new Xe(Math.floor((t-1)/2)):r||(a=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=xY(EY(function(l){return a.add(new Xe(l-o).mul(n)).toNumber()}),Rm);return s(0,t)}function yR(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var i=bR(new Xe(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(i).toNumber()),c=s+l+1;return c>r?yR(e,t,r,n,a+1):(c0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:i,tickMin:o.sub(new Xe(s).mul(i)),tickMax:o.add(new Xe(l).mul(i))})}function MY(e){var t=uo(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=mR([r,n]),l=uo(s,2),c=l[0],d=l[1];if(c===-1/0||d===1/0){var p=d===1/0?[c].concat(Nm(Rm(0,a-1).map(function(){return 1/0}))):[].concat(Nm(Rm(0,a-1).map(function(){return-1/0})),[d]);return r>n?Im(p):p}if(c===d)return LY(c,a,i);var g=yR(c,d,o,i),m=g.step,b=g.tickMin,v=g.tickMax,S=Eu.rangeStep(b,v.add(new Xe(.1).mul(m)),m);return r>n?Im(S):S}function PY(e,t){var r=uo(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=mR([n,a]),s=uo(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,a];if(l===c)return[l];var d=Math.max(t,2),p=bR(new Xe(c).sub(l).div(d-1),i,0),g=[].concat(Nm(Eu.rangeStep(new Xe(l),new Xe(c).sub(new Xe(.99).mul(p)),p)),[c]);return n>a?Im(g):g}var $Y=gR(MY),jY=gR(PY),FY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WY(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Wo(e){var t=e.offset,r=e.layout,n=e.width,a=e.dataKey,i=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,c=HY(e,FY),d=Me(c),p=i.map(function(g){var m=o(g,a),b=m.x,v=m.y,S=m.value,O=m.errorVal;if(!O)return null;var _=[],w,A;if(Array.isArray(O)){var x=BY(O,2);w=x[0],A=x[1]}else w=A=O;if(r==="vertical"){var E=s.scale,k=v+t,N=k+n,I=k-n,D=E(S-w),L=E(S+A);_.push({x1:L,y1:N,x2:L,y2:I}),_.push({x1:D,y1:k,x2:L,y2:k}),_.push({x1:D,y1:N,x2:D,y2:I})}else if(r==="horizontal"){var j=l.scale,z=b+t,q=z-n,H=z+n,V=j(S-w),K=j(S+A);_.push({x1:q,y1:K,x2:H,y2:K}),_.push({x1:z,y1:V,x2:z,y2:K}),_.push({x1:q,y1:V,x2:H,y2:V})}return U.createElement(dt,Sl({className:"recharts-errorBar",key:"bar-".concat(_.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),_.map(function(G){return U.createElement("line",Sl({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},p)}Wo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Wo.displayName="ErrorBar";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 XE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&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=(r=n==null?void 0:n.length)!==null&&r!==void 0?r: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,c=0;c0?a[c-1].coordinate:a[s-1].coordinate,p=a[c].coordinate,g=c>=s-1?a[0].coordinate:a[c+1].coordinate,m=void 0;if(Lr(p-d)!==Lr(g-p)){var b=[];if(Lr(g-p)===Lr(l[1]-l[0])){m=g;var v=p+l[1]-l[0];b[0]=Math.min(v,(v+d)/2),b[1]=Math.max(v,(v+d)/2)}else{m=d;var S=g+l[1]-l[0];b[0]=Math.min(p,(S+p)/2),b[1]=Math.max(p,(S+p)/2)}var O=[Math.min(p,(m+p)/2),Math.max(p,(m+p)/2)];if(t>O[0]&&t<=O[1]||t>=b[0]&&t<=b[1]){o=a[c].index;break}}else{var _=Math.min(d,g),w=Math.max(d,g);if(t>(_+p)/2&&t<=(w+p)/2){o=a[c].index;break}}}else for(var A=0;A0&&A(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},py=function(t){var r=t,n=r.type.displayName,a=t.props,i=a.stroke,o=a.fill,s;switch(n){case"Line":s=i;break;case"Area":case"Radar":s=i&&i!=="none"?i:o;break;default:s=o;break}return s},n4=function(t){var r=t.barSize,n=t.stackGroups,a=n===void 0?{}:n;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s=0});if(S&&S.length){var O=S[0].props.barSize,_=S[0].props[v];i[_]||(i[_]=[]),i[_].push({item:S[0],stackList:S.slice(1),barSize:Ce(O)?r:O})}}return i},a4=function(t){var r=t.barGap,n=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 c=La(r,a,0,!0),d,p=[];if(o[0].barSize===+o[0].barSize){var g=!1,m=a/l,b=o.reduce(function(A,x){return A+x.barSize||0},0);b+=(l-1)*c,b>=a&&(b-=(l-1)*c,c=0),b>=a&&m>0&&(g=!0,m*=.9,b=l*m);var v=(a-b)/2>>0,S={offset:v-c,size:0};d=o.reduce(function(A,x){var E={item:x.item,position:{offset:S.offset+S.size+c,size:g?m:x.barSize}},k=[].concat(QE(A),[E]);return S=k[k.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:S})}),k},p)}else{var O=La(n,a,0,!0);a-2*O-(l-1)*c<=0&&(c=0);var _=(a-2*O-(l-1)*c)/l;_>1&&(_>>=0);var w=s===+s?Math.min(_,s):_;d=o.reduce(function(A,x,E){var k=[].concat(QE(A),[{item:x.item,position:{offset:O+(_+c)*E+(_-w)/2,size:w}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:k[k.length-1].position})}),k},p)}return d},i4=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=vR({children:i,legendWidth:l});if(c){var d=a||{},p=d.width,g=d.height,m=c.align,b=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&m!=="center"&&se(t[m]))return mr(mr({},t),{},Na({},m,t[m]+(p||0)));if((v==="horizontal"||v==="vertical"&&m==="center")&&b!=="middle"&&se(t[b]))return mr(mr({},t),{},Na({},b,t[b]+(g||0)))}return t},o4=function(t,r,n){return Ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},SR=function(t,r,n,a,i){var o=r.props.children,s=lr(o,Wo).filter(function(c){return o4(a,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,d){var p=Yt(d,n,0),g=Array.isArray(p)?[yu(p),bu(p)]:[p,p],m=l.reduce(function(b,v){var S=Yt(d,v,0),O=g[0]-Math.abs(Array.isArray(S)?S[0]:S),_=g[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(O,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(m[0],c[0]),Math.max(m[1],c[1])]},[1/0,-1/0])}return null},s4=function(t,r,n,a,i){var o=r.map(function(s){return SR(t,s,n,i,a)}).filter(function(s){return!Ce(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},ER=function(t,r,n,a,i){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&SR(t,l,c,a)||Ui(t,c,n,i)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var d=0,p=c.length;d=2?Lr(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(p){var g=i?i.indexOf(p):p;return{coordinate:a(g)+c,value:p,offset:c}});return d.filter(function(p){return!Bo(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:a(p)+c,value:p,index:g,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+c,value:p,offset:c}}):a.domain().map(function(p,g){return{coordinate:a(p)+c,value:i?i[p]:p,index:g,offset:c}})},Nc=new WeakMap,Ns=function(t,r){if(typeof r!="function")return t;Nc.has(t)||Nc.set(t,new WeakMap);var n=Nc.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},l4=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:no(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:hl(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Bi(),realScaleType:"point"}:i==="category"?{scale:no(),realScaleType:"band"}:{scale:hl(),realScaleType:"linear"};if($o(a)){var l="scale".concat(au(a));return{scale:(HE[l]||Bi)(),realScaleType:HE[l]?l:"point"}}return Ne(a)?{scale:a}:{scale:Bi(),realScaleType:"point"}},e0=1e-4,u4=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-e0,o=Math.max(a[0],a[1])+e0,s=t(r[0]),l=t(r[n-1]);(so||lo)&&t.domain([r[0],r[n-1]])}},c4=function(t,r){if(!t)return null;for(var n=0,a=t.length;na)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]=0?(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},f4=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},g4={sign:p4,expand:N2,none:Ma,silhouette:C2,wiggle:D2,positive:f4},h4=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=g4[n],o=I2().keys(a).value(function(s,l){return+Yt(s,l,0)}).order(nm).offset(i);return o(t)},m4=function(t,r,n,a,i,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(p,g){var m=g.props,b=m.stackId,v=m.hide;if(v)return p;var S=g.props[n],O=p[S]||{hasStack:!1,stackGroups:{}};if(Et(b)){var _=O.stackGroups[b]||{numericAxisId:n,cateAxisId:a,items:[]};_.items.push(g),O.hasStack=!0,O.stackGroups[b]=_}else O.stackGroups[Uo("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[g]};return mr(mr({},p),{},Na({},S,O))},l),d={};return Object.keys(c).reduce(function(p,g){var m=c[g];if(m.hasStack){var b={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(v,S){var O=m.stackGroups[S];return mr(mr({},v),{},Na({},S,{numericAxisId:n,cateAxisId:a,items:O.items,stackedData:h4(t,O.items,i)}))},b)}return mr(mr({},p),{},Na({},g,m))},d)},b4=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var d=$Y(c,i,s);return t.domain([yu(d),bu(d)]),{niceTicks:d}}if(i&&a==="number"){var p=t.domain(),g=jY(p,i,s);return{niceTicks:g}}return null},t0=function(t){var r=t.axis,n=t.ticks,a=t.bandSize,i=t.entry,o=t.index,s=t.dataKey;if(r.type==="category"){if(!r.allowDuplicatedCategory&&r.dataKey&&!Ce(i[r.dataKey])){var l=Ws(n,"value",i[r.dataKey]);if(l)return l.coordinate+a/2}return n[o]?n[o].coordinate+a/2:null}var c=Yt(i,Ce(s)?r.dataKey:s);return Ce(c)?null:r.scale(c)},r0=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var l=Yt(o,r.dataKey,r.domain[s]);return Ce(l)?null:r.scale(l)-i/2+a},y4=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},v4=function(t,r){var n=t.props.stackId;if(Et(n)){var a=r[n];if(a){var i=a.items.indexOf(t);return i>=0?a.stackedData[i]:null}}return null},S4=function(t){return t.reduce(function(r,n){return[yu(n.concat([r[0]]).filter(se)),bu(n.concat([r[1]]).filter(se))]},[1/0,-1/0])},wR=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(c,d){var p=S4(d.slice(r,n+1));return[Math.min(c[0],p[0]),Math.max(c[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})},n0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,a0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Lm=function(t,r,n){if(Ne(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(se(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(n0.test(t[0])){var i=+n0.exec(t[0])[1];a[0]=r[0]-i}else Ne(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(se(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(a0.test(t[1])){var o=+a0.exec(t[1])[1];a[1]=r[1]+o}else Ne(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},El=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=jb(r,function(p){return p.coordinate}),o=1/0,s=1,l=i.length;so&&(c=2*Math.PI-c),{radius:s,angle:_4(c),angleInRadian:c}},O4=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},k4=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},l0=function(t,r){var n=t.x,a=t.y,i=A4({x:n,y:a},r),o=i.radius,s=i.angle,l=r.innerRadius,c=r.outerRadius;if(oc)return!1;if(o===0)return!0;var d=O4(r),p=d.startAngle,g=d.endAngle,m=s,b;if(p<=g){for(;m>g;)m-=360;for(;m=p&&m<=g}else{for(;m>p;)m-=360;for(;m=g&&m<=p}return b?s0(s0({},r),{},{radius:o,angle:k4(m,r)}):null};function go(e){"@babel/helpers - typeof";return go=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},go(e)}var R4=["offset"];function I4(e){return L4(e)||D4(e)||C4(e)||N4()}function N4(){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 GY(e,t){if(e){if(typeof e=="string")return KE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KE(e,t)}}function KE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WY(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Wo(e){var t=e.offset,r=e.layout,n=e.width,a=e.dataKey,i=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,c=HY(e,FY),d=Me(c),p=i.map(function(g){var m=o(g,a),b=m.x,v=m.y,S=m.value,O=m.errorVal;if(!O)return null;var _=[],w,A;if(Array.isArray(O)){var x=BY(O,2);w=x[0],A=x[1]}else w=A=O;if(r==="vertical"){var E=s.scale,k=v+t,N=k+n,I=k-n,D=E(S-w),L=E(S+A);_.push({x1:L,y1:N,x2:L,y2:I}),_.push({x1:D,y1:k,x2:L,y2:k}),_.push({x1:D,y1:N,x2:D,y2:I})}else if(r==="horizontal"){var j=l.scale,z=b+t,q=z-n,H=z+n,V=j(S-w),K=j(S+A);_.push({x1:q,y1:K,x2:H,y2:K}),_.push({x1:z,y1:V,x2:z,y2:K}),_.push({x1:q,y1:V,x2:H,y2:V})}return U.createElement(dt,Sl({className:"recharts-errorBar",key:"bar-".concat(_.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),_.map(function(G){return U.createElement("line",Sl({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},p)}Wo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Wo.displayName="ErrorBar";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 XE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&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=(r=n==null?void 0:n.length)!==null&&r!==void 0?r: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,c=0;c0?a[c-1].coordinate:a[s-1].coordinate,p=a[c].coordinate,g=c>=s-1?a[0].coordinate:a[c+1].coordinate,m=void 0;if(Lr(p-d)!==Lr(g-p)){var b=[];if(Lr(g-p)===Lr(l[1]-l[0])){m=g;var v=p+l[1]-l[0];b[0]=Math.min(v,(v+d)/2),b[1]=Math.max(v,(v+d)/2)}else{m=d;var S=g+l[1]-l[0];b[0]=Math.min(p,(S+p)/2),b[1]=Math.max(p,(S+p)/2)}var O=[Math.min(p,(m+p)/2),Math.max(p,(m+p)/2)];if(t>O[0]&&t<=O[1]||t>=b[0]&&t<=b[1]){o=a[c].index;break}}else{var _=Math.min(d,g),w=Math.max(d,g);if(t>(_+p)/2&&t<=(w+p)/2){o=a[c].index;break}}}else for(var A=0;A0&&A(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},py=function(t){var r=t,n=r.type.displayName,a=t.props,i=a.stroke,o=a.fill,s;switch(n){case"Line":s=i;break;case"Area":case"Radar":s=i&&i!=="none"?i:o;break;default:s=o;break}return s},n4=function(t){var r=t.barSize,n=t.stackGroups,a=n===void 0?{}:n;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s=0});if(S&&S.length){var O=S[0].props.barSize,_=S[0].props[v];i[_]||(i[_]=[]),i[_].push({item:S[0],stackList:S.slice(1),barSize:Ce(O)?r:O})}}return i},a4=function(t){var r=t.barGap,n=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 c=La(r,a,0,!0),d,p=[];if(o[0].barSize===+o[0].barSize){var g=!1,m=a/l,b=o.reduce(function(A,x){return A+x.barSize||0},0);b+=(l-1)*c,b>=a&&(b-=(l-1)*c,c=0),b>=a&&m>0&&(g=!0,m*=.9,b=l*m);var v=(a-b)/2>>0,S={offset:v-c,size:0};d=o.reduce(function(A,x){var E={item:x.item,position:{offset:S.offset+S.size+c,size:g?m:x.barSize}},k=[].concat(JE(A),[E]);return S=k[k.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:S})}),k},p)}else{var O=La(n,a,0,!0);a-2*O-(l-1)*c<=0&&(c=0);var _=(a-2*O-(l-1)*c)/l;_>1&&(_>>=0);var w=s===+s?Math.min(_,s):_;d=o.reduce(function(A,x,E){var k=[].concat(JE(A),[{item:x.item,position:{offset:O+(_+c)*E+(_-w)/2,size:w}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:k[k.length-1].position})}),k},p)}return d},i4=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=vR({children:i,legendWidth:l});if(c){var d=a||{},p=d.width,g=d.height,m=c.align,b=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&m!=="center"&&se(t[m]))return mr(mr({},t),{},Na({},m,t[m]+(p||0)));if((v==="horizontal"||v==="vertical"&&m==="center")&&b!=="middle"&&se(t[b]))return mr(mr({},t),{},Na({},b,t[b]+(g||0)))}return t},o4=function(t,r,n){return Ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},SR=function(t,r,n,a,i){var o=r.props.children,s=lr(o,Wo).filter(function(c){return o4(a,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,d){var p=Yt(d,n,0),g=Array.isArray(p)?[yu(p),bu(p)]:[p,p],m=l.reduce(function(b,v){var S=Yt(d,v,0),O=g[0]-Math.abs(Array.isArray(S)?S[0]:S),_=g[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(O,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(m[0],c[0]),Math.max(m[1],c[1])]},[1/0,-1/0])}return null},s4=function(t,r,n,a,i){var o=r.map(function(s){return SR(t,s,n,i,a)}).filter(function(s){return!Ce(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},ER=function(t,r,n,a,i){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&SR(t,l,c,a)||Ui(t,c,n,i)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var d=0,p=c.length;d=2?Lr(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(p){var g=i?i.indexOf(p):p;return{coordinate:a(g)+c,value:p,offset:c}});return d.filter(function(p){return!Bo(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:a(p)+c,value:p,index:g,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+c,value:p,offset:c}}):a.domain().map(function(p,g){return{coordinate:a(p)+c,value:i?i[p]:p,index:g,offset:c}})},Nc=new WeakMap,Ns=function(t,r){if(typeof r!="function")return t;Nc.has(t)||Nc.set(t,new WeakMap);var n=Nc.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},l4=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:no(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:hl(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Bi(),realScaleType:"point"}:i==="category"?{scale:no(),realScaleType:"band"}:{scale:hl(),realScaleType:"linear"};if($o(a)){var l="scale".concat(au(a));return{scale:(HE[l]||Bi)(),realScaleType:HE[l]?l:"point"}}return Ne(a)?{scale:a}:{scale:Bi(),realScaleType:"point"}},e0=1e-4,u4=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-e0,o=Math.max(a[0],a[1])+e0,s=t(r[0]),l=t(r[n-1]);(so||lo)&&t.domain([r[0],r[n-1]])}},c4=function(t,r){if(!t)return null;for(var n=0,a=t.length;na)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]=0?(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},f4=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},g4={sign:p4,expand:N2,none:Ma,silhouette:C2,wiggle:D2,positive:f4},h4=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=g4[n],o=I2().keys(a).value(function(s,l){return+Yt(s,l,0)}).order(nm).offset(i);return o(t)},m4=function(t,r,n,a,i,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(p,g){var m=g.props,b=m.stackId,v=m.hide;if(v)return p;var S=g.props[n],O=p[S]||{hasStack:!1,stackGroups:{}};if(Et(b)){var _=O.stackGroups[b]||{numericAxisId:n,cateAxisId:a,items:[]};_.items.push(g),O.hasStack=!0,O.stackGroups[b]=_}else O.stackGroups[Uo("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[g]};return mr(mr({},p),{},Na({},S,O))},l),d={};return Object.keys(c).reduce(function(p,g){var m=c[g];if(m.hasStack){var b={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(v,S){var O=m.stackGroups[S];return mr(mr({},v),{},Na({},S,{numericAxisId:n,cateAxisId:a,items:O.items,stackedData:h4(t,O.items,i)}))},b)}return mr(mr({},p),{},Na({},g,m))},d)},b4=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var d=$Y(c,i,s);return t.domain([yu(d),bu(d)]),{niceTicks:d}}if(i&&a==="number"){var p=t.domain(),g=jY(p,i,s);return{niceTicks:g}}return null},t0=function(t){var r=t.axis,n=t.ticks,a=t.bandSize,i=t.entry,o=t.index,s=t.dataKey;if(r.type==="category"){if(!r.allowDuplicatedCategory&&r.dataKey&&!Ce(i[r.dataKey])){var l=Ws(n,"value",i[r.dataKey]);if(l)return l.coordinate+a/2}return n[o]?n[o].coordinate+a/2:null}var c=Yt(i,Ce(s)?r.dataKey:s);return Ce(c)?null:r.scale(c)},r0=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var l=Yt(o,r.dataKey,r.domain[s]);return Ce(l)?null:r.scale(l)-i/2+a},y4=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},v4=function(t,r){var n=t.props.stackId;if(Et(n)){var a=r[n];if(a){var i=a.items.indexOf(t);return i>=0?a.stackedData[i]:null}}return null},S4=function(t){return t.reduce(function(r,n){return[yu(n.concat([r[0]]).filter(se)),bu(n.concat([r[1]]).filter(se))]},[1/0,-1/0])},wR=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(c,d){var p=S4(d.slice(r,n+1));return[Math.min(c[0],p[0]),Math.max(c[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})},n0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,a0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Lm=function(t,r,n){if(Ne(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(se(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(n0.test(t[0])){var i=+n0.exec(t[0])[1];a[0]=r[0]-i}else Ne(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(se(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(a0.test(t[1])){var o=+a0.exec(t[1])[1];a[1]=r[1]+o}else Ne(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},El=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=jb(r,function(p){return p.coordinate}),o=1/0,s=1,l=i.length;so&&(c=2*Math.PI-c),{radius:s,angle:_4(c),angleInRadian:c}},O4=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},k4=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},l0=function(t,r){var n=t.x,a=t.y,i=A4({x:n,y:a},r),o=i.radius,s=i.angle,l=r.innerRadius,c=r.outerRadius;if(oc)return!1;if(o===0)return!0;var d=O4(r),p=d.startAngle,g=d.endAngle,m=s,b;if(p<=g){for(;m>g;)m-=360;for(;m=p&&m<=g}else{for(;m>p;)m-=360;for(;m=g&&m<=p}return b?s0(s0({},r),{},{radius:o,angle:k4(m,r)}):null};function go(e){"@babel/helpers - typeof";return go=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},go(e)}var R4=["offset"];function I4(e){return L4(e)||D4(e)||C4(e)||N4()}function N4(){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 C4(e,t){if(e){if(typeof e=="string")return Mm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mm(e,t)}}function D4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function L4(e){if(Array.isArray(e))return Mm(e)}function Mm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function P4(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function u0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t=0?1:-1,w,A;a==="insideStart"?(w=m+_*o,A=v):a==="insideEnd"?(w=b-_*o,A=!v):a==="end"&&(w=b+_*o,A=v),A=O<=0?A:!A;var x=Nt(c,d,S,w),E=Nt(c,d,S,w+(A?1:-1)*359),k="M".concat(x.x,",").concat(x.y,` A`).concat(S,",").concat(S,",0,1,").concat(A?0:1,`, - `).concat(E.x,",").concat(E.y),N=Ce(t.id)?Uo("recharts-radial-line-"):t.id;return U.createElement("text",ho({},n,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",s)}),U.createElement("defs",null,U.createElement("path",{id:N,d:k})),U.createElement("textPath",{xlinkHref:"#".concat(N)},r))},z4=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,s=i.cy,l=i.innerRadius,c=i.outerRadius,d=i.startAngle,p=i.endAngle,g=(d+p)/2;if(a==="outside"){var m=Nt(o,s,c+n,g),b=m.x,v=m.y;return{x:b,y:v,textAnchor:b>=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+c)/2,O=Nt(o,s,S,g),_=O.x,w=O.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},q4=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,s=o.x,l=o.y,c=o.width,d=o.height,p=d>=0?1:-1,g=p*a,m=p>0?"end":"start",b=p>0?"start":"end",v=c>=0?1:-1,S=v*a,O=v>0?"end":"start",_=v>0?"start":"end";if(i==="top"){var w={x:s+c/2,y:l-p*a,textAnchor:"middle",verticalAnchor:m};return St(St({},w),n?{height:Math.max(l-n.y,0),width:c}:{})}if(i==="bottom"){var A={x:s+c/2,y:l+d+g,textAnchor:"middle",verticalAnchor:b};return St(St({},A),n?{height:Math.max(n.y+n.height-(l+d),0),width:c}:{})}if(i==="left"){var x={x:s-S,y:l+d/2,textAnchor:O,verticalAnchor:"middle"};return St(St({},x),n?{width:Math.max(x.x-n.x,0),height:d}:{})}if(i==="right"){var E={x:s+c+S,y:l+d/2,textAnchor:_,verticalAnchor:"middle"};return St(St({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:d}:{})}var k=n?{width:c,height:d}:{};return i==="insideLeft"?St({x:s+S,y:l+d/2,textAnchor:_,verticalAnchor:"middle"},k):i==="insideRight"?St({x:s+c-S,y:l+d/2,textAnchor:O,verticalAnchor:"middle"},k):i==="insideTop"?St({x:s+c/2,y:l+g,textAnchor:"middle",verticalAnchor:b},k):i==="insideBottom"?St({x:s+c/2,y:l+d-g,textAnchor:"middle",verticalAnchor:m},k):i==="insideTopLeft"?St({x:s+S,y:l+g,textAnchor:_,verticalAnchor:b},k):i==="insideTopRight"?St({x:s+c-S,y:l+g,textAnchor:O,verticalAnchor:b},k):i==="insideBottomLeft"?St({x:s+S,y:l+d-g,textAnchor:_,verticalAnchor:m},k):i==="insideBottomRight"?St({x:s+c-S,y:l+d-g,textAnchor:O,verticalAnchor:m},k):ti(i)&&(se(i.x)||Xn(i.x))&&(se(i.y)||Xn(i.y))?St({x:s+La(i.x,c),y:l+La(i.y,d),textAnchor:"end",verticalAnchor:"end"},k):St({x:s+c/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},k)},H4=function(t){return"cx"in t&&se(t.cx)};function Lt(e){var t=e.offset,r=t===void 0?5:t,n=M4(e,R4),a=St({offset:r},n),i=a.viewBox,o=a.position,s=a.value,l=a.children,c=a.content,d=a.className,p=d===void 0?"":d,g=a.textBreakAll;if(!i||Ce(s)&&Ce(l)&&!P.isValidElement(c)&&!Ne(c))return null;if(P.isValidElement(c))return P.cloneElement(c,a);var m;if(Ne(c)){if(m=P.createElement(c,a),P.isValidElement(m))return m}else m=B4(a);var b=H4(i),v=Me(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return G4(a,m,v);var S=b?z4(a):q4(a);return U.createElement(ll,ho({className:Ze("recharts-label",p)},v,S,{breakAll:g}),m)}Lt.displayName="Label";var TR=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,d=t.outerRadius,p=t.x,g=t.y,m=t.top,b=t.left,v=t.width,S=t.height,O=t.clockWise,_=t.labelViewBox;if(_)return _;if(se(v)&&se(S)){if(se(p)&&se(g))return{x:p,y:g,width:v,height:S};if(se(m)&&se(b))return{x:m,y:b,width:v,height:S}}return se(p)&&se(g)?{x:p,y:g,width:0,height:0}:se(r)&&se(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:d||l||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},W4=function(t,r){return t?t===!0?U.createElement(Lt,{key:"label-implicit",viewBox:r}):Et(t)?U.createElement(Lt,{key:"label-implicit",viewBox:r,value:t}):P.isValidElement(t)?t.type===Lt?P.cloneElement(t,{key:"label-implicit",viewBox:r}):U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):Ne(t)?U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):ti(t)?U.createElement(Lt,ho({viewBox:r},t,{key:"label-implicit"})):null:null},V4=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=TR(t),o=lr(a,Lt).map(function(l,c){return P.cloneElement(l,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return o;var s=W4(t.label,r||i);return[s].concat(I4(o))};Lt.parseViewBox=TR;Lt.renderCallByParent=V4;function Y4(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var K4=Y4;const X4=pt(K4);function mo(e){"@babel/helpers - typeof";return mo=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},mo(e)}var Z4=["valueAccessor"],Q4=["data","dataKey","clockWise","id","textBreakAll"];function J4(e){return n6(e)||r6(e)||t6(e)||e6()}function e6(){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 t6(e,t){if(e){if(typeof e=="string")return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pm(e,t)}}function r6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n6(e){if(Array.isArray(e))return Pm(e)}function Pm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var l6=function(t){return Array.isArray(t.value)?X4(t.value):t.value};function Mn(e){var t=e.valueAccessor,r=t===void 0?l6:t,n=p0(e,Z4),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=p0(n,Q4);return!a||!a.length?null:U.createElement(dt,{className:"recharts-label-list"},a.map(function(d,p){var g=Ce(i)?r(d,p):Yt(d&&d.payload,i),m=Ce(s)?{}:{id:"".concat(s,"-").concat(p)};return U.createElement(Lt,wl({},Me(d,!0),c,m,{parentViewBox:d.parentViewBox,value:g,textBreakAll:l,viewBox:Lt.parseViewBox(Ce(o)?d:d0(d0({},d),{},{clockWise:o})),key:"label-".concat(p),index:p}))}))}Mn.displayName="LabelList";function u6(e,t){return e?e===!0?U.createElement(Mn,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Ne(e)?U.createElement(Mn,{key:"labelList-implicit",data:t,content:e}):ti(e)?U.createElement(Mn,wl({data:t},e,{key:"labelList-implicit"})):null:null}function c6(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=lr(n,Mn).map(function(o,s){return P.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=u6(e.label,t);return[i].concat(J4(a))}Mn.renderCallByParent=c6;function bo(e){"@babel/helpers - typeof";return bo=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},bo(e)}function $m(){return $m=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+c)/2,O=Nt(o,s,S,g),_=O.x,w=O.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},q4=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,s=o.x,l=o.y,c=o.width,d=o.height,p=d>=0?1:-1,g=p*a,m=p>0?"end":"start",b=p>0?"start":"end",v=c>=0?1:-1,S=v*a,O=v>0?"end":"start",_=v>0?"start":"end";if(i==="top"){var w={x:s+c/2,y:l-p*a,textAnchor:"middle",verticalAnchor:m};return St(St({},w),n?{height:Math.max(l-n.y,0),width:c}:{})}if(i==="bottom"){var A={x:s+c/2,y:l+d+g,textAnchor:"middle",verticalAnchor:b};return St(St({},A),n?{height:Math.max(n.y+n.height-(l+d),0),width:c}:{})}if(i==="left"){var x={x:s-S,y:l+d/2,textAnchor:O,verticalAnchor:"middle"};return St(St({},x),n?{width:Math.max(x.x-n.x,0),height:d}:{})}if(i==="right"){var E={x:s+c+S,y:l+d/2,textAnchor:_,verticalAnchor:"middle"};return St(St({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:d}:{})}var k=n?{width:c,height:d}:{};return i==="insideLeft"?St({x:s+S,y:l+d/2,textAnchor:_,verticalAnchor:"middle"},k):i==="insideRight"?St({x:s+c-S,y:l+d/2,textAnchor:O,verticalAnchor:"middle"},k):i==="insideTop"?St({x:s+c/2,y:l+g,textAnchor:"middle",verticalAnchor:b},k):i==="insideBottom"?St({x:s+c/2,y:l+d-g,textAnchor:"middle",verticalAnchor:m},k):i==="insideTopLeft"?St({x:s+S,y:l+g,textAnchor:_,verticalAnchor:b},k):i==="insideTopRight"?St({x:s+c-S,y:l+g,textAnchor:O,verticalAnchor:b},k):i==="insideBottomLeft"?St({x:s+S,y:l+d-g,textAnchor:_,verticalAnchor:m},k):i==="insideBottomRight"?St({x:s+c-S,y:l+d-g,textAnchor:O,verticalAnchor:m},k):ti(i)&&(se(i.x)||Xn(i.x))&&(se(i.y)||Xn(i.y))?St({x:s+La(i.x,c),y:l+La(i.y,d),textAnchor:"end",verticalAnchor:"end"},k):St({x:s+c/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},k)},H4=function(t){return"cx"in t&&se(t.cx)};function Lt(e){var t=e.offset,r=t===void 0?5:t,n=M4(e,R4),a=St({offset:r},n),i=a.viewBox,o=a.position,s=a.value,l=a.children,c=a.content,d=a.className,p=d===void 0?"":d,g=a.textBreakAll;if(!i||Ce(s)&&Ce(l)&&!P.isValidElement(c)&&!Ne(c))return null;if(P.isValidElement(c))return P.cloneElement(c,a);var m;if(Ne(c)){if(m=P.createElement(c,a),P.isValidElement(m))return m}else m=B4(a);var b=H4(i),v=Me(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return G4(a,m,v);var S=b?z4(a):q4(a);return U.createElement(ll,ho({className:Ze("recharts-label",p)},v,S,{breakAll:g}),m)}Lt.displayName="Label";var TR=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,d=t.outerRadius,p=t.x,g=t.y,m=t.top,b=t.left,v=t.width,S=t.height,O=t.clockWise,_=t.labelViewBox;if(_)return _;if(se(v)&&se(S)){if(se(p)&&se(g))return{x:p,y:g,width:v,height:S};if(se(m)&&se(b))return{x:m,y:b,width:v,height:S}}return se(p)&&se(g)?{x:p,y:g,width:0,height:0}:se(r)&&se(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:d||l||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},W4=function(t,r){return t?t===!0?U.createElement(Lt,{key:"label-implicit",viewBox:r}):Et(t)?U.createElement(Lt,{key:"label-implicit",viewBox:r,value:t}):P.isValidElement(t)?t.type===Lt?P.cloneElement(t,{key:"label-implicit",viewBox:r}):U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):Ne(t)?U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):ti(t)?U.createElement(Lt,ho({viewBox:r},t,{key:"label-implicit"})):null:null},V4=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=TR(t),o=lr(a,Lt).map(function(l,c){return P.cloneElement(l,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return o;var s=W4(t.label,r||i);return[s].concat(I4(o))};Lt.parseViewBox=TR;Lt.renderCallByParent=V4;function Y4(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var K4=Y4;const X4=pt(K4);function mo(e){"@babel/helpers - typeof";return mo=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},mo(e)}var Z4=["valueAccessor"],J4=["data","dataKey","clockWise","id","textBreakAll"];function Q4(e){return n6(e)||r6(e)||t6(e)||e6()}function e6(){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 t6(e,t){if(e){if(typeof e=="string")return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pm(e,t)}}function r6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n6(e){if(Array.isArray(e))return Pm(e)}function Pm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var l6=function(t){return Array.isArray(t.value)?X4(t.value):t.value};function Mn(e){var t=e.valueAccessor,r=t===void 0?l6:t,n=p0(e,Z4),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=p0(n,J4);return!a||!a.length?null:U.createElement(dt,{className:"recharts-label-list"},a.map(function(d,p){var g=Ce(i)?r(d,p):Yt(d&&d.payload,i),m=Ce(s)?{}:{id:"".concat(s,"-").concat(p)};return U.createElement(Lt,wl({},Me(d,!0),c,m,{parentViewBox:d.parentViewBox,value:g,textBreakAll:l,viewBox:Lt.parseViewBox(Ce(o)?d:d0(d0({},d),{},{clockWise:o})),key:"label-".concat(p),index:p}))}))}Mn.displayName="LabelList";function u6(e,t){return e?e===!0?U.createElement(Mn,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Ne(e)?U.createElement(Mn,{key:"labelList-implicit",data:t,content:e}):ti(e)?U.createElement(Mn,wl({data:t},e,{key:"labelList-implicit"})):null:null}function c6(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=lr(n,Mn).map(function(o,s){return P.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=u6(e.label,t);return[i].concat(Q4(a))}Mn.renderCallByParent=c6;function bo(e){"@babel/helpers - typeof";return bo=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},bo(e)}function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>c),`, `).concat(p.x,",").concat(p.y,` @@ -1346,18 +1346,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+n-l*b,",").concat(r+a,` L `).concat(t+l*b,",").concat(r+a,` A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t,",").concat(r+a-s*b," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},I6=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),d=Math.max(i,i+s),p=Math.min(o,o+l),g=Math.max(o,o+l);return n>=c&&n<=d&&a>=p&&a<=g}return!1},N6={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fy=function(t){var r=S0(S0({},N6),t),n=P.useRef(),a=P.useState(-1),i=x6(a,2),o=i[0],s=i[1];P.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,c=r.y,d=r.width,p=r.height,g=r.radius,m=r.className,b=r.animationEasing,v=r.animationDuration,S=r.animationBegin,O=r.isAnimationActive,_=r.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||p!==+p||d===0||p===0)return null;var w=Ze("recharts-rectangle",m);return _?U.createElement(hn,{canBegin:o>0,from:{width:d,height:p,x:l,y:c},to:{width:d,height:p,x:l,y:c},duration:v,animationEasing:b,isActive:_},function(A){var x=A.width,E=A.height,k=A.x,N=A.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:v,isActive:O,easing:b},U.createElement("path",_l({},Me(r,!0),{className:w,d:E0(k,N,x,E,g),ref:n})))}):U.createElement("path",_l({},Me(r,!0),{className:w,d:E0(l,c,d,p,g)}))};function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var F6=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},B6=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,d=t.width,p=d===void 0?0:d,g=t.height,m=g===void 0?0:g,b=t.className,v=$6(t,C6),S=D6({x:n,y:i,top:s,left:c,width:p,height:m},v);return!se(n)||!se(i)||!se(p)||!se(m)||!se(s)||!se(c)?null:U.createElement("path",Um({},Me(S,!0),{className:Ze("recharts-cross",b),d:F6(n,i,p,m,s,c)}))},U6=e1,G6=t1,z6="[object Boolean]";function q6(e){return e===!0||e===!1||G6(e)&&U6(e)==z6}var H6=q6;const W6=pt(H6);function Eo(e){"@babel/helpers - typeof";return Eo=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},Eo(e)}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:g,x:l,y:c},to:{upperWidth:d,lowerWidth:p,height:g,x:l,y:c},duration:v,animationEasing:b,isActive:O},function(w){var A=w.upperWidth,x=w.lowerWidth,E=w.height,k=w.x,N=w.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:v,easing:b},U.createElement("path",Tl({},Me(r,!0),{className:_,d:A0(k,N,A,x,E),ref:n})))}):U.createElement("g",null,U.createElement("path",Tl({},Me(r,!0),{className:_,d:A0(l,c,d,p,g)})))},n5=["option","shapeType","propTransformer","activeClassName","isActive"];function xo(e){"@babel/helpers - typeof";return xo=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},xo(e)}function a5(e,t){if(e==null)return{};var r=i5(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function i5(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function O0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Al(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 Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rl(e)}function or(e,t,r){return t=IR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IR(e){var t=z5(e,"string");return Ha(t)==="symbol"?t:String(t)}function z5(e,t){if(Ha(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ha(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q5=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=Bi().domain(Ol(0,l)).range([i,i+o-s]),d=c.domain().map(function(p){return c(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:d}},L0=function(t){return t.changedTouches&&!!t.changedTouches.length},To=function(e){F5(r,e);var t=B5(r);function r(n){var a;return $5(this,r),a=t.call(this,n),or(Br(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),or(Br(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),or(Br(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),or(Br(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),or(Br(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),or(Br(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),or(Br(a),"handleSlideDragStart",function(i){var o=L0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(Br(a),"startX"),endX:a.handleTravellerDragStart.bind(Br(a),"endX")},a.state={},a}return j5(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,p=d.length-1,g=Math.min(i,o),m=Math.max(i,o),b=r.getIndexInRange(s,g),v=r.getIndexInRange(s,m);return{startIndex:b-b%c,endIndex:v===p?p:v-v%c}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,c=Yt(o[a],l,a);return Ne(s)?s(c,a):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,c=this.props,d=c.x,p=c.width,g=c.travellerWidth,m=c.startIndex,b=c.endIndex,v=c.onChange,S=a.pageX-o;S>0?S=Math.min(S,d+p-g-l,d+p-g-s):S<0&&(S=Math.max(S,d-s,d-l));var O=this.getIndex({startX:s+S,endX:l+S});(O.startIndex!==m||O.endIndex!==b)&&v&&v(O),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=L0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,c=o.endX,d=o.startX,p=this.state[l],g=this.props,m=g.x,b=g.width,v=g.travellerWidth,S=g.onChange,O=g.gap,_=g.data,w={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,m+b-v-p):A<0&&(A=Math.max(A,m-p)),w[l]=p+A;var x=this.getIndex(w),E=x.startIndex,k=x.endIndex,N=function(){var D=_.length-1;return l==="startX"&&(c>d?E%O===0:k%O===0)||cd?k%O===0:E%O===0)||c>d&&k===D};this.setState((i={},or(i,l,p+A),or(i,"brushMoveStartX",a.pageX),i),function(){S&&N()&&S(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,c=s.startX,d=s.endX,p=this.state[i],g=l.indexOf(p);if(g!==-1){var m=g+a;if(!(m===-1||m>=l.length)){var b=l[m];i==="startX"&&b>=d||i==="endX"&&b<=c||this.setState(or({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.fill,d=a.stroke;return U.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.data,d=a.children,p=a.padding,g=P.Children.only(d);return g?U.cloneElement(g,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,c=s.travellerWidth,d=s.height,p=s.traveller,g=s.ariaLabel,m=s.data,b=s.startIndex,v=s.endIndex,S=Math.max(a,this.props.x),O=Dc(Dc({},Me(this.props)),{},{x:S,y:l,width:c,height:d}),_=g||"Min value: ".concat(m[b].name,", Max value: ").concat(m[v].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(p,O))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,p=Math.min(a,i)+d,g=Math.max(Math.abs(i-a)-d,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:p,y:s,width:g,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,c=a.travellerWidth,d=a.stroke,p=this.state,g=p.startX,m=p.endX,b=5,v={pointerEvents:"none",fill:d};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(ll,kl({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,m)-b,y:s+l/2},v),this.getTextOfTick(i)),U.createElement(ll,kl({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,m)+c+b,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,c=a.y,d=a.width,p=a.height,g=a.alwaysShowText,m=this.state,b=m.startX,v=m.endX,S=m.isTextActive,O=m.isSlideMoving,_=m.isTravellerMoving,w=m.isTravellerFocused;if(!i||!i.length||!se(l)||!se(c)||!se(d)||!se(p)||d<=0||p<=0)return null;var A=Ze("recharts-brush",o),x=U.Children.count(s)===1,E=P5("userSelect","none");return U.createElement(dt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(b,v),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(v,"endX"),(S||O||_||w||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,c=a.stroke,d=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:i,y:o,width:s,height:l,fill:c,stroke:"none"}),U.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return U.isValidElement(a)?o=U.cloneElement(a,i):Ne(a)?o=a(i):o=r.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,c=a.travellerWidth,d=a.updateId,p=a.startIndex,g=a.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return Dc({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s},o&&o.length?q5({data:o,width:s,x:l,travellerWidth:c,startIndex:p,endIndex:g}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+s-c]);var m=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var c=Math.floor((s+l)/2);a[c]>i?l=c:s=c}return i>=a[l]?l:s}}]),r}(P.PureComponent);or(To,"displayName","Brush");or(To,"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 H5=b1;function W5(e,t){var r;return H5(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var V5=W5,Y5=rP,K5=ia,X5=V5,Z5=Gl,Q5=cu;function J5(e,t,r){var n=Z5(e)?Y5:X5;return r&&Q5(e,t,r)&&(t=void 0),n(e,K5(t))}var e8=J5;const t8=pt(e8);var Wr=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},r8=lM,n8=nP,a8=ia;function i8(e,t){var r={};return t=a8(t),n8(e,function(n,a,i){r8(r,a,t(n,a,i))}),r}var o8=i8;const s8=pt(o8);function l8(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function A8(e,t){var r=e.x,n=e.y,a=_8(e,S8),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||a.height),d=parseInt(c,10),p="".concat(t.width||a.width),g=parseInt(p,10);return ki(ki(ki(ki(ki({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:d,width:g,name:t.name,radius:t.radius})}function P0(e){return U.createElement(Gm,qm({shapeType:"rectangle",propTransformer:A8,activeClassName:"recharts-active-bar"},e))}var O8=["value","background"];function Wa(e){"@babel/helpers - typeof";return Wa=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},Wa(e)}function k8(e,t){if(e==null)return{};var r=R8(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nl(e)}function Cn(e,t,r){return t=CR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CR(e){var t=P8(e,"string");return Wa(t)==="symbol"?t:String(t)}function P8(e,t){if(Wa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _u=function(e){C8(r,e);var t=D8(r);function r(){var n;I8(this,r);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(q)0&&Math.abs(z)0&&(z=Math.min((Se||0)-(q[J-1]||0),z))});var H=z/j,V=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(k=H*V/2),v.padding==="no-gap"){var K=La(t.barCategoryGap,H*V),G=H*V/2;k=G-K-(G-K)/V*K}}a==="xAxis"?N=[n.left+(w.left||0)+(k||0),n.left+n.width-(w.right||0)-(k||0)]:a==="yAxis"?N=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(k||0),n.top+n.height-(w.bottom||0)-(k||0)]:N=v.range,x&&(N=[N[1],N[0]]);var W=l4(v,i,g),Q=W.scale,ae=W.realScaleType;Q.domain(O).range(N),u4(Q);var re=b4(Q,Ir(Ir({},v),{},{realScaleType:ae}));a==="xAxis"?(L=S==="top"&&!A||S==="bottom"&&A,I=n.left,D=p[E]-L*v.height):a==="yAxis"&&(L=S==="left"&&!A||S==="right"&&A,I=p[E]-L*v.width,D=n.top);var ue=Ir(Ir(Ir({},v),re),{},{realScaleType:ae,x:I,y:D,scale:Q,width:a==="xAxis"?n.width:v.width,height:a==="yAxis"?n.height:v.height});return ue.bandSize=El(ue,re),!v.hide&&a==="xAxis"?p[E]+=(L?-1:1)*ue.height:v.hide||(p[E]+=(L?-1:1)*ue.width),Ir(Ir({},m),{},Tu({},b,ue))},{})},LR=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},U8=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return LR({x:r,y:n},{x:a,y:i})},MR=function(){function e(t){$8(this,e),this.scale=t}return j8(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Tu(MR,"EPS",1e-4);var hy=function(t){var r=Object.keys(t).reduce(function(n,a){return Ir(Ir({},n),{},Tu({},a,MR.create(t[a])))},{});return Ir(Ir({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return s8(a,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return NR(a,function(i,o){return r[o].isInRange(i)})}})};function G8(e){return(e%180+180)%180}var z8=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=G8(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function cK(e,t){return PR(e,t+1)}function dK(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,d=o,p=function(){var b=n==null?void 0:n[l];if(b===void 0)return{v:PR(n,c)};var v=l,S,O=function(){return S===void 0&&(S=r(b,v)),S},_=b.coordinate,w=l===0||Cl(e,_,O,d,s);w||(l=0,d=o,c+=1),w&&(d=_+e*(O()/2+a),l+=c)},g;c<=i.length;)if(g=p(),g)return g.v;return[]}function 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 Y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t0?m.coordinate-S*e:m.coordinate})}else i[g]=m=Dt(Dt({},m),{},{tickCoord:m.coordinate});var O=Cl(e,m.tickCoord,v,s,l);O&&(l=m.tickCoord-e*(v()/2+a),i[g]=Dt(Dt({},m),{},{isShow:!0}))},d=o-1;d>=0;d--)c(d);return i}function mK(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var d=n[s-1],p=r(d,s-1),g=e*(d.coordinate+e*p/2-c);o[s-1]=d=Dt(Dt({},d),{},{tickCoord:g>0?d.coordinate-g*e:d.coordinate});var m=Cl(e,d.tickCoord,function(){return p},l,c);m&&(c=d.tickCoord-e*(p/2+a),o[s-1]=Dt(Dt({},d),{},{isShow:!0}))}for(var b=i?s-1:s,v=function(_){var w=o[_],A,x=function(){return A===void 0&&(A=r(w,_)),A};if(_===0){var E=e*(w.coordinate-e*x()/2-l);o[_]=w=Dt(Dt({},w),{},{tickCoord:E<0?w.coordinate-E*e:w.coordinate})}else o[_]=w=Dt(Dt({},w),{},{tickCoord:w.coordinate});var k=Cl(e,w.tickCoord,x,l,c);k&&(l=w.tickCoord+e*(x()/2+a),o[_]=Dt(Dt({},w),{},{isShow:!0}))},S=0;S=2?Lr(a[1].coordinate-a[0].coordinate):1,O=uK(i,S,m);return l==="equidistantPreserveStart"?dK(S,O,v,a,o):(l==="preserveStart"||l==="preserveStartEnd"?g=mK(S,O,v,a,o,l==="preserveStartEnd"):g=hK(S,O,v,a,o),g.filter(function(_){return _.isShow}))}var bK=["viewBox"],yK=["viewBox"],vK=["ticks"];function Va(e){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function EK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X0(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dl(e)}function by(e,t,r){return t=$R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e){var t=kK(e,"string");return Va(t)==="symbol"?t:String(t)}function kK(e,t){if(Va(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Va(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gi=function(e){wK(r,e);var t=_K(r);function r(n){var a;return EK(this,r),a=t.call(this,n),a.state={fontSize:"",letterSpacing:""},a}return xK(r,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Lc(a,bK),l=this.props,c=l.viewBox,d=Lc(l,yK);return!Ra(o,c)||!Ra(s,d)||!Ra(i,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var i=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var i=this.props,o=i.x,s=i.y,l=i.width,c=i.height,d=i.orientation,p=i.tickSize,g=i.mirror,m=i.tickMargin,b,v,S,O,_,w,A=g?-1:1,x=a.tickSize||p,E=se(a.tickCoord)?a.tickCoord:a.coordinate;switch(d){case"top":b=v=a.coordinate,O=s+ +!g*c,S=O-A*x,w=S-A*m,_=E;break;case"left":S=O=a.coordinate,v=o+ +!g*l,b=v-A*x,_=b-A*m,w=E;break;case"right":S=O=a.coordinate,v=o+ +g*l,b=v+A*x,_=b+A*m,w=E;break;default:b=v=a.coordinate,O=s+ +g*c,S=O+A*x,w=S+A*m,_=E;break}return{line:{x1:b,y1:S,x2:v,y2:O},tick:{x:_,y:w}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.orientation,d=a.mirror,p=a.axisLine,g=Gt(Gt(Gt({},Me(this.props)),Me(p)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!d||c==="bottom"&&d);g=Gt(Gt({},g),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var b=+(c==="left"&&!d||c==="right"&&d);g=Gt(Gt({},g),{},{x1:i+b*s,y1:o,x2:i+b*s,y2:o+l})}return U.createElement("line",Aa({},g,{className:Ze("recharts-cartesian-axis-line",yr(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,c=l.tickLine,d=l.stroke,p=l.tick,g=l.tickFormatter,m=l.unit,b=Km(Gt(Gt({},this.props),{},{ticks:a}),i,o),v=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),O=Me(this.props),_=Me(p),w=Gt(Gt({},O),{},{fill:"none"},Me(c)),A=b.map(function(x,E){var k=s.getTickLineCoord(x),N=k.line,I=k.tick,D=Gt(Gt(Gt(Gt({textAnchor:v,verticalAnchor:S},O),{},{stroke:"none",fill:d},_),I),{},{index:E,payload:x,visibleTicksCount:b.length,tickFormatter:g});return U.createElement(dt,Aa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},Wi(s.props,x,E)),c&&U.createElement("line",Aa({},w,N,{className:Ze("recharts-cartesian-axis-tick-line",yr(c,"className"))})),p&&r.renderTickItem(p,D,"".concat(Ne(g)?g(x.value,E):x.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var a=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,c=i.ticksGenerator,d=i.className,p=i.hide;if(p)return null;var g=this.props,m=g.ticks,b=Lc(g,vK),v=m;return Ne(c)&&(v=m&&m.length>0?c(this.props):c(b)),s<=0||l<=0||!v||!v.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",d),ref:function(O){a.layerReference=O}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return U.isValidElement(a)?s=U.cloneElement(a,i):Ne(a)?s=a(i):s=U.createElement(ll,Aa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),r}(P.Component);by(Gi,"displayName","CartesianAxis");by(Gi,"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 RK=["x1","y1","x2","y2","key"],IK=["offset"];function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function yy(e,t,r){return t=jR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=FK(e,"string");return Ya(t)==="symbol"?t:String(t)}function FK(e,t){if(Ya(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ya(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vy=function(e){LK(r,e);var t=MK(r);function r(){return CK(this,r),t.apply(this,arguments)}return DK(r,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,c=o.horizontal;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,c=o.vertical;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}},{key:"renderVerticalStripes",value:function(a){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+l-l)}).sort(function(b,v){return b-v});l!==g[0]&&g.unshift(0);var m=g.map(function(b,v){var S=!g[v+1],O=S?l+d-b:g[v+1]-b;if(O<=0)return null;var _=v%i.length;return U.createElement("rect",{key:"react-".concat(v),x:b,y:c,width:O,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(a){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+c-c)}).sort(function(b,v){return b-v});c!==g[0]&&g.unshift(0);var m=g.map(function(b,v){var S=!g[v+1],O=S?c+p-b:g[v+1]-b;if(O<=0)return null;var _=v%i.length;return U.createElement("rect",{key:"react-".concat(v),y:b,x:l,height:O,width:d,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var a=this.props.fill;if(!a||a==="none")return null;var i=this.props,o=i.fillOpacity,s=i.x,l=i.y,c=i.width,d=i.height;return U.createElement("rect",{x:s,y:l,width:c,height:d,stroke:"none",fill:a,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.horizontal,d=a.vertical,p=a.horizontalCoordinatesGenerator,g=a.verticalCoordinatesGenerator,m=a.xAxis,b=a.yAxis,v=a.offset,S=a.chartWidth,O=a.chartHeight,_=a.syncWithTicks,w=a.horizontalValues,A=a.verticalValues;if(!se(s)||s<=0||!se(l)||l<=0||!se(i)||i!==+i||!se(o)||o!==+o)return null;var x=this.props,E=x.horizontalPoints,k=x.verticalPoints;if((!E||!E.length)&&Ne(p)){var N=w&&w.length;E=p({yAxis:b?On(On({},b),{},{ticks:N?w:b.ticks}):void 0,width:S,height:O,offset:v},N?!0:_)}if((!k||!k.length)&&Ne(g)){var I=A&&A.length;k=g({xAxis:m?On(On({},m),{},{ticks:I?A:m.ticks}):void 0,width:S,height:O,offset:v},I?!0:_)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),c&&this.renderHorizontal(E),d&&this.renderVertical(k),c&&this.renderHorizontalStripes(E),d&&this.renderVerticalStripes(k))}}],[{key:"renderLineItem",value:function(a,i){var o;if(U.isValidElement(a))o=U.cloneElement(a,i);else if(Ne(a))o=a(i);else{var s=i.x1,l=i.y1,c=i.x2,d=i.y2,p=i.key,g=Z0(i,RK),m=Me(g);m.offset;var b=Z0(m,IK);o=U.createElement("line",Zm({},b,{x1:s,y1:l,x2:c,y2:d,fill:"none",key:p}))}return o}}]),r}(P.PureComponent);yy(vy,"displayName","CartesianGrid");yy(vy,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Au=function(){return null};Au.displayName="ZAxis";Au.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var BK=["option","isActive"];function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function zK(e){var t=e.option,r=e.isActive,n=UK(e,BK);return typeof t=="string"?U.createElement(Gm,zi({option:U.createElement(lu,zi({type:t},n)),isActive:r,shapeType:"symbols"},n)):U.createElement(Gm,zi({option:t,isActive:r,shapeType:"symbols"},n))}function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(e)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ml(e)}function Dn(e,t,r){return t=FR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FR(e){var t=XK(e,"string");return Ka(t)==="symbol"?t:String(t)}function XK(e,t){if(Ka(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ka(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ko=function(e){WK(r,e);var t=VK(r);function r(){var n;qK(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var t9=e9,r9=kR;function n9(e){var t=r9(e),r=t%1;return t===t?r?t-r:t:0}var a9=n9,i9=ok,o9=ia,s9=a9,l9=Math.max;function u9(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:s9(r);return a<0&&(a=l9(n+a,0)),i9(e,o9(t),a)}var c9=u9,d9=t9,p9=c9,f9=d9(p9),g9=f9;const h9=pt(g9);var m9="Invariant failed";function b9(e,t){if(!e)throw new Error(m9)}function BR(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=Nt(t,r,n,a),s=Nt(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function rx(e){return E9(e)||S9(e)||v9(e)||y9()}function y9(){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 K6(e,t){if(e){if(typeof e=="string")return w0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w0(e,t)}}function w0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:g,x:l,y:c},to:{upperWidth:d,lowerWidth:p,height:g,x:l,y:c},duration:v,animationEasing:b,isActive:O},function(w){var A=w.upperWidth,x=w.lowerWidth,E=w.height,k=w.x,N=w.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:v,easing:b},U.createElement("path",Tl({},Me(r,!0),{className:_,d:A0(k,N,A,x,E),ref:n})))}):U.createElement("g",null,U.createElement("path",Tl({},Me(r,!0),{className:_,d:A0(l,c,d,p,g)})))},n5=["option","shapeType","propTransformer","activeClassName","isActive"];function xo(e){"@babel/helpers - typeof";return xo=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},xo(e)}function a5(e,t){if(e==null)return{};var r=i5(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function i5(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function O0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Al(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 Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rl(e)}function or(e,t,r){return t=IR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IR(e){var t=z5(e,"string");return Ha(t)==="symbol"?t:String(t)}function z5(e,t){if(Ha(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ha(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q5=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=Bi().domain(Ol(0,l)).range([i,i+o-s]),d=c.domain().map(function(p){return c(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:d}},L0=function(t){return t.changedTouches&&!!t.changedTouches.length},To=function(e){F5(r,e);var t=B5(r);function r(n){var a;return $5(this,r),a=t.call(this,n),or(Br(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),or(Br(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),or(Br(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),or(Br(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),or(Br(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),or(Br(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),or(Br(a),"handleSlideDragStart",function(i){var o=L0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(Br(a),"startX"),endX:a.handleTravellerDragStart.bind(Br(a),"endX")},a.state={},a}return j5(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,p=d.length-1,g=Math.min(i,o),m=Math.max(i,o),b=r.getIndexInRange(s,g),v=r.getIndexInRange(s,m);return{startIndex:b-b%c,endIndex:v===p?p:v-v%c}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,c=Yt(o[a],l,a);return Ne(s)?s(c,a):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,c=this.props,d=c.x,p=c.width,g=c.travellerWidth,m=c.startIndex,b=c.endIndex,v=c.onChange,S=a.pageX-o;S>0?S=Math.min(S,d+p-g-l,d+p-g-s):S<0&&(S=Math.max(S,d-s,d-l));var O=this.getIndex({startX:s+S,endX:l+S});(O.startIndex!==m||O.endIndex!==b)&&v&&v(O),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=L0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,c=o.endX,d=o.startX,p=this.state[l],g=this.props,m=g.x,b=g.width,v=g.travellerWidth,S=g.onChange,O=g.gap,_=g.data,w={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,m+b-v-p):A<0&&(A=Math.max(A,m-p)),w[l]=p+A;var x=this.getIndex(w),E=x.startIndex,k=x.endIndex,N=function(){var D=_.length-1;return l==="startX"&&(c>d?E%O===0:k%O===0)||cd?k%O===0:E%O===0)||c>d&&k===D};this.setState((i={},or(i,l,p+A),or(i,"brushMoveStartX",a.pageX),i),function(){S&&N()&&S(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,c=s.startX,d=s.endX,p=this.state[i],g=l.indexOf(p);if(g!==-1){var m=g+a;if(!(m===-1||m>=l.length)){var b=l[m];i==="startX"&&b>=d||i==="endX"&&b<=c||this.setState(or({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.fill,d=a.stroke;return U.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.data,d=a.children,p=a.padding,g=P.Children.only(d);return g?U.cloneElement(g,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,c=s.travellerWidth,d=s.height,p=s.traveller,g=s.ariaLabel,m=s.data,b=s.startIndex,v=s.endIndex,S=Math.max(a,this.props.x),O=Dc(Dc({},Me(this.props)),{},{x:S,y:l,width:c,height:d}),_=g||"Min value: ".concat(m[b].name,", Max value: ").concat(m[v].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(p,O))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,p=Math.min(a,i)+d,g=Math.max(Math.abs(i-a)-d,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:p,y:s,width:g,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,c=a.travellerWidth,d=a.stroke,p=this.state,g=p.startX,m=p.endX,b=5,v={pointerEvents:"none",fill:d};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(ll,kl({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,m)-b,y:s+l/2},v),this.getTextOfTick(i)),U.createElement(ll,kl({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,m)+c+b,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,c=a.y,d=a.width,p=a.height,g=a.alwaysShowText,m=this.state,b=m.startX,v=m.endX,S=m.isTextActive,O=m.isSlideMoving,_=m.isTravellerMoving,w=m.isTravellerFocused;if(!i||!i.length||!se(l)||!se(c)||!se(d)||!se(p)||d<=0||p<=0)return null;var A=Ze("recharts-brush",o),x=U.Children.count(s)===1,E=P5("userSelect","none");return U.createElement(dt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(b,v),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(v,"endX"),(S||O||_||w||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,c=a.stroke,d=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:i,y:o,width:s,height:l,fill:c,stroke:"none"}),U.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return U.isValidElement(a)?o=U.cloneElement(a,i):Ne(a)?o=a(i):o=r.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,c=a.travellerWidth,d=a.updateId,p=a.startIndex,g=a.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return Dc({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s},o&&o.length?q5({data:o,width:s,x:l,travellerWidth:c,startIndex:p,endIndex:g}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+s-c]);var m=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var c=Math.floor((s+l)/2);a[c]>i?l=c:s=c}return i>=a[l]?l:s}}]),r}(P.PureComponent);or(To,"displayName","Brush");or(To,"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 H5=b1;function W5(e,t){var r;return H5(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var V5=W5,Y5=tP,K5=ia,X5=V5,Z5=Gl,J5=cu;function Q5(e,t,r){var n=Z5(e)?Y5:X5;return r&&J5(e,t,r)&&(t=void 0),n(e,K5(t))}var e8=Q5;const t8=pt(e8);var Wr=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},r8=lM,n8=rP,a8=ia;function i8(e,t){var r={};return t=a8(t),n8(e,function(n,a,i){r8(r,a,t(n,a,i))}),r}var o8=i8;const s8=pt(o8);function l8(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function A8(e,t){var r=e.x,n=e.y,a=_8(e,S8),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||a.height),d=parseInt(c,10),p="".concat(t.width||a.width),g=parseInt(p,10);return ki(ki(ki(ki(ki({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:d,width:g,name:t.name,radius:t.radius})}function P0(e){return U.createElement(Gm,qm({shapeType:"rectangle",propTransformer:A8,activeClassName:"recharts-active-bar"},e))}var O8=["value","background"];function Wa(e){"@babel/helpers - typeof";return Wa=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},Wa(e)}function k8(e,t){if(e==null)return{};var r=R8(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nl(e)}function Cn(e,t,r){return t=CR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CR(e){var t=P8(e,"string");return Wa(t)==="symbol"?t:String(t)}function P8(e,t){if(Wa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _u=function(e){C8(r,e);var t=D8(r);function r(){var n;I8(this,r);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(q)0&&Math.abs(z)0&&(z=Math.min((Se||0)-(q[Q-1]||0),z))});var H=z/j,V=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(k=H*V/2),v.padding==="no-gap"){var K=La(t.barCategoryGap,H*V),G=H*V/2;k=G-K-(G-K)/V*K}}a==="xAxis"?N=[n.left+(w.left||0)+(k||0),n.left+n.width-(w.right||0)-(k||0)]:a==="yAxis"?N=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(k||0),n.top+n.height-(w.bottom||0)-(k||0)]:N=v.range,x&&(N=[N[1],N[0]]);var W=l4(v,i,g),J=W.scale,ae=W.realScaleType;J.domain(O).range(N),u4(J);var re=b4(J,Ir(Ir({},v),{},{realScaleType:ae}));a==="xAxis"?(L=S==="top"&&!A||S==="bottom"&&A,I=n.left,D=p[E]-L*v.height):a==="yAxis"&&(L=S==="left"&&!A||S==="right"&&A,I=p[E]-L*v.width,D=n.top);var ue=Ir(Ir(Ir({},v),re),{},{realScaleType:ae,x:I,y:D,scale:J,width:a==="xAxis"?n.width:v.width,height:a==="yAxis"?n.height:v.height});return ue.bandSize=El(ue,re),!v.hide&&a==="xAxis"?p[E]+=(L?-1:1)*ue.height:v.hide||(p[E]+=(L?-1:1)*ue.width),Ir(Ir({},m),{},Tu({},b,ue))},{})},LR=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},U8=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return LR({x:r,y:n},{x:a,y:i})},MR=function(){function e(t){$8(this,e),this.scale=t}return j8(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Tu(MR,"EPS",1e-4);var hy=function(t){var r=Object.keys(t).reduce(function(n,a){return Ir(Ir({},n),{},Tu({},a,MR.create(t[a])))},{});return Ir(Ir({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return s8(a,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return NR(a,function(i,o){return r[o].isInRange(i)})}})};function G8(e){return(e%180+180)%180}var z8=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=G8(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function cK(e,t){return PR(e,t+1)}function dK(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,d=o,p=function(){var b=n==null?void 0:n[l];if(b===void 0)return{v:PR(n,c)};var v=l,S,O=function(){return S===void 0&&(S=r(b,v)),S},_=b.coordinate,w=l===0||Cl(e,_,O,d,s);w||(l=0,d=o,c+=1),w&&(d=_+e*(O()/2+a),l+=c)},g;c<=i.length;)if(g=p(),g)return g.v;return[]}function 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 Y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t0?m.coordinate-S*e:m.coordinate})}else i[g]=m=Dt(Dt({},m),{},{tickCoord:m.coordinate});var O=Cl(e,m.tickCoord,v,s,l);O&&(l=m.tickCoord-e*(v()/2+a),i[g]=Dt(Dt({},m),{},{isShow:!0}))},d=o-1;d>=0;d--)c(d);return i}function mK(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var d=n[s-1],p=r(d,s-1),g=e*(d.coordinate+e*p/2-c);o[s-1]=d=Dt(Dt({},d),{},{tickCoord:g>0?d.coordinate-g*e:d.coordinate});var m=Cl(e,d.tickCoord,function(){return p},l,c);m&&(c=d.tickCoord-e*(p/2+a),o[s-1]=Dt(Dt({},d),{},{isShow:!0}))}for(var b=i?s-1:s,v=function(_){var w=o[_],A,x=function(){return A===void 0&&(A=r(w,_)),A};if(_===0){var E=e*(w.coordinate-e*x()/2-l);o[_]=w=Dt(Dt({},w),{},{tickCoord:E<0?w.coordinate-E*e:w.coordinate})}else o[_]=w=Dt(Dt({},w),{},{tickCoord:w.coordinate});var k=Cl(e,w.tickCoord,x,l,c);k&&(l=w.tickCoord+e*(x()/2+a),o[_]=Dt(Dt({},w),{},{isShow:!0}))},S=0;S=2?Lr(a[1].coordinate-a[0].coordinate):1,O=uK(i,S,m);return l==="equidistantPreserveStart"?dK(S,O,v,a,o):(l==="preserveStart"||l==="preserveStartEnd"?g=mK(S,O,v,a,o,l==="preserveStartEnd"):g=hK(S,O,v,a,o),g.filter(function(_){return _.isShow}))}var bK=["viewBox"],yK=["viewBox"],vK=["ticks"];function Va(e){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function EK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X0(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dl(e)}function by(e,t,r){return t=$R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e){var t=kK(e,"string");return Va(t)==="symbol"?t:String(t)}function kK(e,t){if(Va(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Va(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gi=function(e){wK(r,e);var t=_K(r);function r(n){var a;return EK(this,r),a=t.call(this,n),a.state={fontSize:"",letterSpacing:""},a}return xK(r,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Lc(a,bK),l=this.props,c=l.viewBox,d=Lc(l,yK);return!Ra(o,c)||!Ra(s,d)||!Ra(i,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var i=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var i=this.props,o=i.x,s=i.y,l=i.width,c=i.height,d=i.orientation,p=i.tickSize,g=i.mirror,m=i.tickMargin,b,v,S,O,_,w,A=g?-1:1,x=a.tickSize||p,E=se(a.tickCoord)?a.tickCoord:a.coordinate;switch(d){case"top":b=v=a.coordinate,O=s+ +!g*c,S=O-A*x,w=S-A*m,_=E;break;case"left":S=O=a.coordinate,v=o+ +!g*l,b=v-A*x,_=b-A*m,w=E;break;case"right":S=O=a.coordinate,v=o+ +g*l,b=v+A*x,_=b+A*m,w=E;break;default:b=v=a.coordinate,O=s+ +g*c,S=O+A*x,w=S+A*m,_=E;break}return{line:{x1:b,y1:S,x2:v,y2:O},tick:{x:_,y:w}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.orientation,d=a.mirror,p=a.axisLine,g=Gt(Gt(Gt({},Me(this.props)),Me(p)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!d||c==="bottom"&&d);g=Gt(Gt({},g),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var b=+(c==="left"&&!d||c==="right"&&d);g=Gt(Gt({},g),{},{x1:i+b*s,y1:o,x2:i+b*s,y2:o+l})}return U.createElement("line",Aa({},g,{className:Ze("recharts-cartesian-axis-line",yr(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,c=l.tickLine,d=l.stroke,p=l.tick,g=l.tickFormatter,m=l.unit,b=Km(Gt(Gt({},this.props),{},{ticks:a}),i,o),v=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),O=Me(this.props),_=Me(p),w=Gt(Gt({},O),{},{fill:"none"},Me(c)),A=b.map(function(x,E){var k=s.getTickLineCoord(x),N=k.line,I=k.tick,D=Gt(Gt(Gt(Gt({textAnchor:v,verticalAnchor:S},O),{},{stroke:"none",fill:d},_),I),{},{index:E,payload:x,visibleTicksCount:b.length,tickFormatter:g});return U.createElement(dt,Aa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},Wi(s.props,x,E)),c&&U.createElement("line",Aa({},w,N,{className:Ze("recharts-cartesian-axis-tick-line",yr(c,"className"))})),p&&r.renderTickItem(p,D,"".concat(Ne(g)?g(x.value,E):x.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var a=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,c=i.ticksGenerator,d=i.className,p=i.hide;if(p)return null;var g=this.props,m=g.ticks,b=Lc(g,vK),v=m;return Ne(c)&&(v=m&&m.length>0?c(this.props):c(b)),s<=0||l<=0||!v||!v.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",d),ref:function(O){a.layerReference=O}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return U.isValidElement(a)?s=U.cloneElement(a,i):Ne(a)?s=a(i):s=U.createElement(ll,Aa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),r}(P.Component);by(Gi,"displayName","CartesianAxis");by(Gi,"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 RK=["x1","y1","x2","y2","key"],IK=["offset"];function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function J0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function yy(e,t,r){return t=jR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=FK(e,"string");return Ya(t)==="symbol"?t:String(t)}function FK(e,t){if(Ya(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ya(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vy=function(e){LK(r,e);var t=MK(r);function r(){return CK(this,r),t.apply(this,arguments)}return DK(r,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,c=o.horizontal;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,c=o.vertical;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}},{key:"renderVerticalStripes",value:function(a){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+l-l)}).sort(function(b,v){return b-v});l!==g[0]&&g.unshift(0);var m=g.map(function(b,v){var S=!g[v+1],O=S?l+d-b:g[v+1]-b;if(O<=0)return null;var _=v%i.length;return U.createElement("rect",{key:"react-".concat(v),x:b,y:c,width:O,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(a){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+c-c)}).sort(function(b,v){return b-v});c!==g[0]&&g.unshift(0);var m=g.map(function(b,v){var S=!g[v+1],O=S?c+p-b:g[v+1]-b;if(O<=0)return null;var _=v%i.length;return U.createElement("rect",{key:"react-".concat(v),y:b,x:l,height:O,width:d,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var a=this.props.fill;if(!a||a==="none")return null;var i=this.props,o=i.fillOpacity,s=i.x,l=i.y,c=i.width,d=i.height;return U.createElement("rect",{x:s,y:l,width:c,height:d,stroke:"none",fill:a,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.horizontal,d=a.vertical,p=a.horizontalCoordinatesGenerator,g=a.verticalCoordinatesGenerator,m=a.xAxis,b=a.yAxis,v=a.offset,S=a.chartWidth,O=a.chartHeight,_=a.syncWithTicks,w=a.horizontalValues,A=a.verticalValues;if(!se(s)||s<=0||!se(l)||l<=0||!se(i)||i!==+i||!se(o)||o!==+o)return null;var x=this.props,E=x.horizontalPoints,k=x.verticalPoints;if((!E||!E.length)&&Ne(p)){var N=w&&w.length;E=p({yAxis:b?On(On({},b),{},{ticks:N?w:b.ticks}):void 0,width:S,height:O,offset:v},N?!0:_)}if((!k||!k.length)&&Ne(g)){var I=A&&A.length;k=g({xAxis:m?On(On({},m),{},{ticks:I?A:m.ticks}):void 0,width:S,height:O,offset:v},I?!0:_)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),c&&this.renderHorizontal(E),d&&this.renderVertical(k),c&&this.renderHorizontalStripes(E),d&&this.renderVerticalStripes(k))}}],[{key:"renderLineItem",value:function(a,i){var o;if(U.isValidElement(a))o=U.cloneElement(a,i);else if(Ne(a))o=a(i);else{var s=i.x1,l=i.y1,c=i.x2,d=i.y2,p=i.key,g=Z0(i,RK),m=Me(g);m.offset;var b=Z0(m,IK);o=U.createElement("line",Zm({},b,{x1:s,y1:l,x2:c,y2:d,fill:"none",key:p}))}return o}}]),r}(P.PureComponent);yy(vy,"displayName","CartesianGrid");yy(vy,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Au=function(){return null};Au.displayName="ZAxis";Au.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var BK=["option","isActive"];function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function zK(e){var t=e.option,r=e.isActive,n=UK(e,BK);return typeof t=="string"?U.createElement(Gm,zi({option:U.createElement(lu,zi({type:t},n)),isActive:r,shapeType:"symbols"},n)):U.createElement(Gm,zi({option:t,isActive:r,shapeType:"symbols"},n))}function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(e)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ml(e)}function Dn(e,t,r){return t=FR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FR(e){var t=XK(e,"string");return Ka(t)==="symbol"?t:String(t)}function XK(e,t){if(Ka(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ka(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ko=function(e){WK(r,e);var t=VK(r);function r(){var n;qK(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var t9=e9,r9=kR;function n9(e){var t=r9(e),r=t%1;return t===t?r?t-r:t:0}var a9=n9,i9=ok,o9=ia,s9=a9,l9=Math.max;function u9(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:s9(r);return a<0&&(a=l9(n+a,0)),i9(e,o9(t),a)}var c9=u9,d9=t9,p9=c9,f9=d9(p9),g9=f9;const h9=pt(g9);var m9="Invariant failed";function b9(e,t){if(!e)throw new Error(m9)}function BR(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=Nt(t,r,n,a),s=Nt(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function rx(e){return E9(e)||S9(e)||v9(e)||y9()}function y9(){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 v9(e,t){if(e){if(typeof e=="string")return eb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eb(e,t)}}function S9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E9(e){if(Array.isArray(e))return eb(e)}function eb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function P9(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function $9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ox(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pl(e){return Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pl(e)}function Za(e){return H9(e)||q9(e)||zR(e)||z9()}function z9(){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 zR(e,t){if(e){if(typeof e=="string")return nb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nb(e,t)}}function q9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function H9(e){if(Array.isArray(e))return nb(e)}function nb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&se(a)&&se(i)?t.slice(a,i+1):[]};function WR(e){return e==="number"?[0,"auto"]:void 0}var VR=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=Ru(r,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce(function(l,c){var d,p=c.props.hide;if(p)return l;var g=(d=c.props.data)!==null&&d!==void 0?d:r;g&&t.dataStartIndex+t.dataEndIndex!==0&&(g=g.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var b=g===void 0?s:g;m=Ws(b,o.dataKey,a)}else m=g&&g[n]||s[n];return m?[].concat(Za(l),[_R(c,m)]):l},[])},lx=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=K9(i,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,d=r4(o,s,c,l);if(d>=0&&c){var p=c[d]&&c[d].value,g=VR(t,r,d,p),m=X9(n,s,d,i);return{activeTooltipIndex:d,activeLabel:p,activePayload:g,activeCoordinate:m}}return null},Z9=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=t.stackOffset,m=xR(d,i);return n.reduce(function(b,v){var S,O=v.props,_=O.type,w=O.dataKey,A=O.allowDataOverflow,x=O.allowDuplicatedCategory,E=O.scale,k=O.ticks,N=O.includeHidden,I=v.props[o];if(b[I])return b;var D=Ru(t.data,{graphicalItems:a.filter(function(re){return re.props[o]===I}),dataStartIndex:l,dataEndIndex:c}),L=D.length,j,z,q;k9(v.props.domain,A,_)&&(j=Lm(v.props.domain,null,A),m&&(_==="number"||E!=="auto")&&(q=Ui(D,w,"category")));var H=WR(_);if(!j||j.length===0){var V,K=(V=v.props.domain)!==null&&V!==void 0?V:H;if(w){if(j=Ui(D,w,_),_==="category"&&m){var G=WF(j);x&&G?(z=j,j=Ol(0,L)):x||(j=i0(K,j,v).reduce(function(re,ue){return re.indexOf(ue)>=0?re:[].concat(Za(re),[ue])},[]))}else if(_==="category")x?j=j.filter(function(re){return re!==""&&!Ce(re)}):j=i0(K,j,v).reduce(function(re,ue){return re.indexOf(ue)>=0||ue===""||Ce(ue)?re:[].concat(Za(re),[ue])},[]);else if(_==="number"){var W=s4(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),w,i,d);W&&(j=W)}m&&(_==="number"||E!=="auto")&&(q=Ui(D,w,"category"))}else m?j=Ol(0,L):s&&s[I]&&s[I].hasStack&&_==="number"?j=g==="expand"?[0,1]:wR(s[I].stackGroups,l,c):j=ER(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),_,d,!0);if(_==="number")j=tb(p,j,I,i,k),K&&(j=Lm(K,j,A));else if(_==="category"&&K){var Q=K,ae=j.every(function(re){return Q.indexOf(re)>=0});ae&&(j=Q)}}return Z(Z({},b),{},be({},I,Z(Z({},v.props),{},{axisType:i,domain:j,categoricalDomain:q,duplicateDomain:z,originalDomain:(S=v.props.domain)!==null&&S!==void 0?S:H,isCategorical:m,layout:d})))},{})},Q9=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=Ru(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),m=g.length,b=xR(d,i),v=-1;return n.reduce(function(S,O){var _=O.props[o],w=WR("number");if(!S[_]){v++;var A;return b?A=Ol(0,m):s&&s[_]&&s[_].hasStack?(A=wR(s[_].stackGroups,l,c),A=tb(p,A,_,i)):(A=Lm(w,ER(g,n.filter(function(x){return x.props[o]===_&&!x.props.hide}),"number",d),a.defaultProps.allowDataOverflow),A=tb(p,A,_,i)),Z(Z({},S),{},be({},_,Z(Z({axisType:i},a.defaultProps),{},{hide:!0,orientation:yr(V9,"".concat(i,".").concat(v%2),null),domain:A,originalDomain:w,isCategorical:b,layout:d})))}return S},{})},J9=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.children,p="".concat(a,"Id"),g=lr(d,i),m={};return g&&g.length?m=Z9(t,{axes:g,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(m=Q9(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),m},eX=function(t){var r=kn(t),n=Rn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:jb(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:El(r,n)}},ux=function(t){var r=t.children,n=t.defaultShowTooltip,a=ln(r,To),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:!!n}},tX=function(t){return!t||!t.length?!1:t.some(function(r){var n=pn(r&&r.type);return n&&n.indexOf("Bar")>=0})},cx=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"}},rX=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,d=n.height,p=n.children,g=n.margin||{},m=ln(p,To),b=ln(p,Ki),v=Object.keys(l).reduce(function(x,E){var k=l[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,x[N]+k.width)):x},{left:g.left||0,right:g.right||0}),S=Object.keys(o).reduce(function(x,E){var k=o[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,yr(x,"".concat(N))+k.height)):x},{top:g.top||0,bottom:g.bottom||0}),O=Z(Z({},S),v),_=O.bottom;m&&(O.bottom+=m.props.height||To.defaultProps.height),b&&r&&(O=i4(O,a,n,r));var w=c-O.left-O.right,A=d-O.top-O.bottom;return Z(Z({brushBottom:_},O),{},{width:Math.max(w,0),height:Math.max(A,0)})},nX=function(t){var r,n=t.chartName,a=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,c=t.axisComponents,d=t.legendContent,p=t.formatAxisMap,g=t.defaultProps,m=function(S,O){var _=O.graphicalItems,w=O.stackGroups,A=O.offset,x=O.updateId,E=O.dataStartIndex,k=O.dataEndIndex,N=S.barSize,I=S.layout,D=S.barGap,L=S.barCategoryGap,j=S.maxBarSize,z=cx(I),q=z.numericAxisName,H=z.cateAxisName,V=tX(_),K=V&&n4({barSize:N,stackGroups:w}),G=[];return _.forEach(function(W,Q){var ae=Ru(S.data,{graphicalItems:[W],dataStartIndex:E,dataEndIndex:k}),re=W.props,ue=re.dataKey,Se=re.maxBarSize,J=W.props["".concat(q,"Id")],Ie=W.props["".concat(H,"Id")],Ue={},xe=c.reduce(function($e,Ye){var $t,Kt=O["".concat(Ye.axisType,"Map")],te=W.props["".concat(Ye.axisType,"Id")];Kt&&Kt[te]||Ye.axisType==="zAxis"||b9(!1);var de=Kt[te];return Z(Z({},$e),{},($t={},be($t,Ye.axisType,de),be($t,"".concat(Ye.axisType,"Ticks"),Rn(de)),$t))},Ue),ee=xe[H],oe=xe["".concat(H,"Ticks")],ie=w&&w[J]&&w[J].hasStack&&v4(W,w[J].stackGroups),X=pn(W.type).indexOf("Bar")>=0,Ee=El(ee,oe),fe=[];if(X){var he,je,nt=Ce(Se)?j:Se,et=(he=(je=El(ee,oe,!0))!==null&&je!==void 0?je:nt)!==null&&he!==void 0?he:0;fe=a4({barGap:D,barCategoryGap:L,bandSize:et!==Ee?et:Ee,sizeList:K[Ie],maxBarSize:nt}),et!==Ee&&(fe=fe.map(function($e){return Z(Z({},$e),{},{position:Z(Z({},$e.position),{},{offset:$e.position.offset-et/2})})}))}var tr=W&&W.type&&W.type.getComposedData;if(tr){var Pe;G.push({props:Z(Z({},tr(Z(Z({},xe),{},{displayedData:ae,props:S,dataKey:ue,item:W,bandSize:Ee,barPosition:fe,offset:A,stackedData:ie,layout:I,dataStartIndex:E,dataEndIndex:k}))),{},(Pe={key:W.key||"item-".concat(Q)},be(Pe,q,xe[q]),be(Pe,H,xe[H]),be(Pe,"animationId",x),Pe)),childIndex:aB(W,S.children),item:W})}}),G},b=function(S,O){var _=S.props,w=S.dataStartIndex,A=S.dataEndIndex,x=S.updateId;if(!Zv({props:_}))return null;var E=_.children,k=_.layout,N=_.stackOffset,I=_.data,D=_.reverseStackOrder,L=cx(k),j=L.numericAxisName,z=L.cateAxisName,q=lr(E,a),H=m4(I,q,"".concat(j,"Id"),"".concat(z,"Id"),N,D),V=c.reduce(function(ae,re){var ue="".concat(re.axisType,"Map");return Z(Z({},ae),{},be({},ue,J9(_,Z(Z({},re),{},{graphicalItems:q,stackGroups:re.axisType===j&&H,dataStartIndex:w,dataEndIndex:A}))))},{}),K=rX(Z(Z({},V),{},{props:_,graphicalItems:q}),O==null?void 0:O.legendBBox);Object.keys(V).forEach(function(ae){V[ae]=p(_,V[ae],K,ae.replace("Map",""),n)});var G=V["".concat(z,"Map")],W=eX(G),Q=m(_,Z(Z({},V),{},{dataStartIndex:w,dataEndIndex:A,updateId:x,graphicalItems:q,stackGroups:H,offset:K}));return Z(Z({formattedGraphicalItems:Q,graphicalItems:q,offset:K,stackGroups:H},W),V)};return r=function(v){F9(O,v);var S=B9(O);function O(_){var w,A,x;return $9(this,O),x=S.call(this,_),be(Ae(x),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),be(Ae(x),"accessibilityManager",new O9),be(Ae(x),"handleLegendBBoxUpdate",function(E){if(E){var k=x.state,N=k.dataStartIndex,I=k.dataEndIndex,D=k.updateId;x.setState(Z({legendBBox:E},b({props:x.props,dataStartIndex:N,dataEndIndex:I,updateId:D},Z(Z({},x.state),{},{legendBBox:E}))))}}),be(Ae(x),"handleReceiveSyncEvent",function(E,k,N){if(x.props.syncId===E){if(N===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(k)}}),be(Ae(x),"handleBrushChange",function(E){var k=E.startIndex,N=E.endIndex;if(k!==x.state.dataStartIndex||N!==x.state.dataEndIndex){var I=x.state.updateId;x.setState(function(){return Z({dataStartIndex:k,dataEndIndex:N},b({props:x.props,dataStartIndex:k,dataEndIndex:N,updateId:I},x.state))}),x.triggerSyncEvent({dataStartIndex:k,dataEndIndex:N})}}),be(Ae(x),"handleMouseEnter",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseEnter;Ne(I)&&I(N,E)}}),be(Ae(x),"triggeredAfterMouseMove",function(E){var k=x.getMouseInfo(E),N=k?Z(Z({},k),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseMove;Ne(I)&&I(N,E)}),be(Ae(x),"handleItemMouseEnter",function(E){x.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),be(Ae(x),"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),be(Ae(x),"handleMouseMove",function(E){E.persist(),x.throttleTriggeredAfterMouseMove(E)}),be(Ae(x),"handleMouseLeave",function(E){var k={isTooltipActive:!1};x.setState(k),x.triggerSyncEvent(k);var N=x.props.onMouseLeave;Ne(N)&&N(k,E)}),be(Ae(x),"handleOuterEvent",function(E){var k=nB(E),N=yr(x.props,"".concat(k));if(k&&Ne(N)){var I,D;/.*touch.*/i.test(k)?D=x.getMouseInfo(E.changedTouches[0]):D=x.getMouseInfo(E),N((I=D)!==null&&I!==void 0?I:{},E)}}),be(Ae(x),"handleClick",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onClick;Ne(I)&&I(N,E)}}),be(Ae(x),"handleMouseDown",function(E){var k=x.props.onMouseDown;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleMouseUp",function(E){var k=x.props.onMouseUp;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),be(Ae(x),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseDown(E.changedTouches[0])}),be(Ae(x),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseUp(E.changedTouches[0])}),be(Ae(x),"triggerSyncEvent",function(E){x.props.syncId!==void 0&&Mc.emit(Pc,x.props.syncId,E,x.eventEmitterSymbol)}),be(Ae(x),"applySyncEvent",function(E){var k=x.props,N=k.layout,I=k.syncMethod,D=x.state.updateId,L=E.dataStartIndex,j=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)x.setState(Z({dataStartIndex:L,dataEndIndex:j},b({props:x.props,dataStartIndex:L,dataEndIndex:j,updateId:D},x.state)));else if(E.activeTooltipIndex!==void 0){var z=E.chartX,q=E.chartY,H=E.activeTooltipIndex,V=x.state,K=V.offset,G=V.tooltipTicks;if(!K)return;if(typeof I=="function")H=I(G,E);else if(I==="value"){H=-1;for(var W=0;W=0){var ie,X;if(z.dataKey&&!z.allowDuplicatedCategory){var Ee=typeof z.dataKey=="function"?oe:"payload.".concat(z.dataKey.toString());ie=Ws(W,Ee,H),X=Q&&ae&&Ws(ae,Ee,H)}else ie=W==null?void 0:W[q],X=Q&&ae&&ae[q];if(Ie||J){var fe=E.props.activeIndex!==void 0?E.props.activeIndex:q;return[P.cloneElement(E,Z(Z(Z({},I.props),xe),{},{activeIndex:fe})),null,null]}if(!Ce(ie))return[ee].concat(Za(x.renderActivePoints({item:I,activePoint:ie,basePoint:X,childIndex:q,isRange:Q})))}else{var he,je=(he=x.getItemByXY(x.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:ee},nt=je.graphicalItem,et=nt.item,tr=et===void 0?E:et,Pe=nt.childIndex,$e=Z(Z(Z({},I.props),xe),{},{activeIndex:Pe});return[P.cloneElement(tr,$e),null,null]}return Q?[ee,null,null]:[ee,null]}),be(Ae(x),"renderCustomized",function(E,k,N){return P.cloneElement(E,Z(Z({key:"recharts-customized-".concat(N)},x.props),x.state))}),be(Ae(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((w=_.id)!==null&&w!==void 0?w:Uo("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=xk(x.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),x.state={},x}return j9(O,[{key:"componentDidMount",value:function(){var w,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w: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(w,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var x,E;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ln(this.props.children,Zn);if(w&&typeof w.props.shared=="boolean"){var A=w.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var A=this.container,x=A.getBoundingClientRect(),E=GH(x),k={chartX:Math.round(w.pageX-E.left),chartY:Math.round(w.pageY-E.top)},N=x.width/A.offsetWidth||1,I=this.inRange(k.chartX,k.chartY,N);if(!I)return null;var D=this.state,L=D.xAxisMap,j=D.yAxisMap,z=this.getTooltipEventType();if(z!=="axis"&&L&&j){var q=kn(L).scale,H=kn(j).scale,V=q&&q.invert?q.invert(k.chartX):null,K=H&&H.invert?H.invert(k.chartY):null;return Z(Z({},k),{},{xValue:V,yValue:K})}var G=lx(this.state,this.props.data,this.props.layout,I);return G?Z(Z({},k),G):null}},{key:"inRange",value:function(w,A){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,k=w/x,N=A/x;if(E==="horizontal"||E==="vertical"){var I=this.state.offset,D=k>=I.left&&k<=I.left+I.width&&N>=I.top&&N<=I.top+I.height;return D?{x:k,y:N}:null}var L=this.state,j=L.angleAxisMap,z=L.radiusAxisMap;if(j&&z){var q=kn(j);return l0({x:k,y:N},q)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,A=this.getTooltipEventType(),x=ln(w,Zn),E={};x&&A==="axis"&&(x.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var k=Vs(this.props,this.handleOuterEvent);return Z(Z({},k),E)}},{key:"addListener",value:function(){Mc.on(Pc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Mc.removeListener(Pc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,A,x){for(var E=this.state.formattedGraphicalItems,k=0,N=E.length;kh.jsx(gy,{cx:e,cy:t,fill:M.blueTextAccent,r:2}),oX=()=>{const e=Pt(),t=[...(e==null?void 0:e.data)||[]].sort((a,i)=>(a.year||0)-(i.year||0)),r=t.map(a=>a.year).filter(a=>a),n=t.map(a=>a.rate).filter(a=>a);return h.jsx(sX,{direction:"column",px:24,py:16,children:h.jsx(MH,{height:"100%",width:"100%",children:h.jsxs(aX,{margin:{bottom:20,left:20,right:20,top:20},children:[h.jsx(vy,{stroke:"#f5f5f5"}),h.jsx(Ou,{dataKey:"year",domain:[Math.min(...r),Math.max(...r)],label:{fill:M.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:M.white,fontSize:"8px"},type:"number"}),h.jsx(ku,{color:"#000",dataKey:"rate",domain:[Math.min(...n),Math.max(...n)],label:{angle:-90,fill:M.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:M.white,fontSize:"8px"},type:"number"}),h.jsx(Zn,{cursor:{strokeDasharray:"3 3"}}),h.jsx(Ko,{data:t,fill:M.blueTextAccent,line:!0,name:"A scatter",shape:h.jsx(iX,{})})]})})})},sX=B(F)` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zR(e,t){if(e){if(typeof e=="string")return nb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nb(e,t)}}function q9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function H9(e){if(Array.isArray(e))return nb(e)}function nb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&se(a)&&se(i)?t.slice(a,i+1):[]};function WR(e){return e==="number"?[0,"auto"]:void 0}var VR=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=Ru(r,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce(function(l,c){var d,p=c.props.hide;if(p)return l;var g=(d=c.props.data)!==null&&d!==void 0?d:r;g&&t.dataStartIndex+t.dataEndIndex!==0&&(g=g.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var b=g===void 0?s:g;m=Ws(b,o.dataKey,a)}else m=g&&g[n]||s[n];return m?[].concat(Za(l),[_R(c,m)]):l},[])},lx=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=K9(i,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,d=r4(o,s,c,l);if(d>=0&&c){var p=c[d]&&c[d].value,g=VR(t,r,d,p),m=X9(n,s,d,i);return{activeTooltipIndex:d,activeLabel:p,activePayload:g,activeCoordinate:m}}return null},Z9=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=t.stackOffset,m=xR(d,i);return n.reduce(function(b,v){var S,O=v.props,_=O.type,w=O.dataKey,A=O.allowDataOverflow,x=O.allowDuplicatedCategory,E=O.scale,k=O.ticks,N=O.includeHidden,I=v.props[o];if(b[I])return b;var D=Ru(t.data,{graphicalItems:a.filter(function(re){return re.props[o]===I}),dataStartIndex:l,dataEndIndex:c}),L=D.length,j,z,q;k9(v.props.domain,A,_)&&(j=Lm(v.props.domain,null,A),m&&(_==="number"||E!=="auto")&&(q=Ui(D,w,"category")));var H=WR(_);if(!j||j.length===0){var V,K=(V=v.props.domain)!==null&&V!==void 0?V:H;if(w){if(j=Ui(D,w,_),_==="category"&&m){var G=WF(j);x&&G?(z=j,j=Ol(0,L)):x||(j=i0(K,j,v).reduce(function(re,ue){return re.indexOf(ue)>=0?re:[].concat(Za(re),[ue])},[]))}else if(_==="category")x?j=j.filter(function(re){return re!==""&&!Ce(re)}):j=i0(K,j,v).reduce(function(re,ue){return re.indexOf(ue)>=0||ue===""||Ce(ue)?re:[].concat(Za(re),[ue])},[]);else if(_==="number"){var W=s4(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),w,i,d);W&&(j=W)}m&&(_==="number"||E!=="auto")&&(q=Ui(D,w,"category"))}else m?j=Ol(0,L):s&&s[I]&&s[I].hasStack&&_==="number"?j=g==="expand"?[0,1]:wR(s[I].stackGroups,l,c):j=ER(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),_,d,!0);if(_==="number")j=tb(p,j,I,i,k),K&&(j=Lm(K,j,A));else if(_==="category"&&K){var J=K,ae=j.every(function(re){return J.indexOf(re)>=0});ae&&(j=J)}}return Z(Z({},b),{},be({},I,Z(Z({},v.props),{},{axisType:i,domain:j,categoricalDomain:q,duplicateDomain:z,originalDomain:(S=v.props.domain)!==null&&S!==void 0?S:H,isCategorical:m,layout:d})))},{})},J9=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=Ru(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),m=g.length,b=xR(d,i),v=-1;return n.reduce(function(S,O){var _=O.props[o],w=WR("number");if(!S[_]){v++;var A;return b?A=Ol(0,m):s&&s[_]&&s[_].hasStack?(A=wR(s[_].stackGroups,l,c),A=tb(p,A,_,i)):(A=Lm(w,ER(g,n.filter(function(x){return x.props[o]===_&&!x.props.hide}),"number",d),a.defaultProps.allowDataOverflow),A=tb(p,A,_,i)),Z(Z({},S),{},be({},_,Z(Z({axisType:i},a.defaultProps),{},{hide:!0,orientation:yr(V9,"".concat(i,".").concat(v%2),null),domain:A,originalDomain:w,isCategorical:b,layout:d})))}return S},{})},Q9=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.children,p="".concat(a,"Id"),g=lr(d,i),m={};return g&&g.length?m=Z9(t,{axes:g,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(m=J9(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),m},eX=function(t){var r=kn(t),n=Rn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:jb(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:El(r,n)}},ux=function(t){var r=t.children,n=t.defaultShowTooltip,a=ln(r,To),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:!!n}},tX=function(t){return!t||!t.length?!1:t.some(function(r){var n=pn(r&&r.type);return n&&n.indexOf("Bar")>=0})},cx=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"}},rX=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,d=n.height,p=n.children,g=n.margin||{},m=ln(p,To),b=ln(p,Ki),v=Object.keys(l).reduce(function(x,E){var k=l[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,x[N]+k.width)):x},{left:g.left||0,right:g.right||0}),S=Object.keys(o).reduce(function(x,E){var k=o[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,yr(x,"".concat(N))+k.height)):x},{top:g.top||0,bottom:g.bottom||0}),O=Z(Z({},S),v),_=O.bottom;m&&(O.bottom+=m.props.height||To.defaultProps.height),b&&r&&(O=i4(O,a,n,r));var w=c-O.left-O.right,A=d-O.top-O.bottom;return Z(Z({brushBottom:_},O),{},{width:Math.max(w,0),height:Math.max(A,0)})},nX=function(t){var r,n=t.chartName,a=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,c=t.axisComponents,d=t.legendContent,p=t.formatAxisMap,g=t.defaultProps,m=function(S,O){var _=O.graphicalItems,w=O.stackGroups,A=O.offset,x=O.updateId,E=O.dataStartIndex,k=O.dataEndIndex,N=S.barSize,I=S.layout,D=S.barGap,L=S.barCategoryGap,j=S.maxBarSize,z=cx(I),q=z.numericAxisName,H=z.cateAxisName,V=tX(_),K=V&&n4({barSize:N,stackGroups:w}),G=[];return _.forEach(function(W,J){var ae=Ru(S.data,{graphicalItems:[W],dataStartIndex:E,dataEndIndex:k}),re=W.props,ue=re.dataKey,Se=re.maxBarSize,Q=W.props["".concat(q,"Id")],Ie=W.props["".concat(H,"Id")],Ue={},xe=c.reduce(function($e,Ye){var $t,Kt=O["".concat(Ye.axisType,"Map")],te=W.props["".concat(Ye.axisType,"Id")];Kt&&Kt[te]||Ye.axisType==="zAxis"||b9(!1);var de=Kt[te];return Z(Z({},$e),{},($t={},be($t,Ye.axisType,de),be($t,"".concat(Ye.axisType,"Ticks"),Rn(de)),$t))},Ue),ee=xe[H],oe=xe["".concat(H,"Ticks")],ie=w&&w[Q]&&w[Q].hasStack&&v4(W,w[Q].stackGroups),X=pn(W.type).indexOf("Bar")>=0,Ee=El(ee,oe),fe=[];if(X){var he,je,nt=Ce(Se)?j:Se,et=(he=(je=El(ee,oe,!0))!==null&&je!==void 0?je:nt)!==null&&he!==void 0?he:0;fe=a4({barGap:D,barCategoryGap:L,bandSize:et!==Ee?et:Ee,sizeList:K[Ie],maxBarSize:nt}),et!==Ee&&(fe=fe.map(function($e){return Z(Z({},$e),{},{position:Z(Z({},$e.position),{},{offset:$e.position.offset-et/2})})}))}var tr=W&&W.type&&W.type.getComposedData;if(tr){var Pe;G.push({props:Z(Z({},tr(Z(Z({},xe),{},{displayedData:ae,props:S,dataKey:ue,item:W,bandSize:Ee,barPosition:fe,offset:A,stackedData:ie,layout:I,dataStartIndex:E,dataEndIndex:k}))),{},(Pe={key:W.key||"item-".concat(J)},be(Pe,q,xe[q]),be(Pe,H,xe[H]),be(Pe,"animationId",x),Pe)),childIndex:aB(W,S.children),item:W})}}),G},b=function(S,O){var _=S.props,w=S.dataStartIndex,A=S.dataEndIndex,x=S.updateId;if(!Zv({props:_}))return null;var E=_.children,k=_.layout,N=_.stackOffset,I=_.data,D=_.reverseStackOrder,L=cx(k),j=L.numericAxisName,z=L.cateAxisName,q=lr(E,a),H=m4(I,q,"".concat(j,"Id"),"".concat(z,"Id"),N,D),V=c.reduce(function(ae,re){var ue="".concat(re.axisType,"Map");return Z(Z({},ae),{},be({},ue,Q9(_,Z(Z({},re),{},{graphicalItems:q,stackGroups:re.axisType===j&&H,dataStartIndex:w,dataEndIndex:A}))))},{}),K=rX(Z(Z({},V),{},{props:_,graphicalItems:q}),O==null?void 0:O.legendBBox);Object.keys(V).forEach(function(ae){V[ae]=p(_,V[ae],K,ae.replace("Map",""),n)});var G=V["".concat(z,"Map")],W=eX(G),J=m(_,Z(Z({},V),{},{dataStartIndex:w,dataEndIndex:A,updateId:x,graphicalItems:q,stackGroups:H,offset:K}));return Z(Z({formattedGraphicalItems:J,graphicalItems:q,offset:K,stackGroups:H},W),V)};return r=function(v){F9(O,v);var S=B9(O);function O(_){var w,A,x;return $9(this,O),x=S.call(this,_),be(Ae(x),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),be(Ae(x),"accessibilityManager",new O9),be(Ae(x),"handleLegendBBoxUpdate",function(E){if(E){var k=x.state,N=k.dataStartIndex,I=k.dataEndIndex,D=k.updateId;x.setState(Z({legendBBox:E},b({props:x.props,dataStartIndex:N,dataEndIndex:I,updateId:D},Z(Z({},x.state),{},{legendBBox:E}))))}}),be(Ae(x),"handleReceiveSyncEvent",function(E,k,N){if(x.props.syncId===E){if(N===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(k)}}),be(Ae(x),"handleBrushChange",function(E){var k=E.startIndex,N=E.endIndex;if(k!==x.state.dataStartIndex||N!==x.state.dataEndIndex){var I=x.state.updateId;x.setState(function(){return Z({dataStartIndex:k,dataEndIndex:N},b({props:x.props,dataStartIndex:k,dataEndIndex:N,updateId:I},x.state))}),x.triggerSyncEvent({dataStartIndex:k,dataEndIndex:N})}}),be(Ae(x),"handleMouseEnter",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseEnter;Ne(I)&&I(N,E)}}),be(Ae(x),"triggeredAfterMouseMove",function(E){var k=x.getMouseInfo(E),N=k?Z(Z({},k),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseMove;Ne(I)&&I(N,E)}),be(Ae(x),"handleItemMouseEnter",function(E){x.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),be(Ae(x),"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),be(Ae(x),"handleMouseMove",function(E){E.persist(),x.throttleTriggeredAfterMouseMove(E)}),be(Ae(x),"handleMouseLeave",function(E){var k={isTooltipActive:!1};x.setState(k),x.triggerSyncEvent(k);var N=x.props.onMouseLeave;Ne(N)&&N(k,E)}),be(Ae(x),"handleOuterEvent",function(E){var k=nB(E),N=yr(x.props,"".concat(k));if(k&&Ne(N)){var I,D;/.*touch.*/i.test(k)?D=x.getMouseInfo(E.changedTouches[0]):D=x.getMouseInfo(E),N((I=D)!==null&&I!==void 0?I:{},E)}}),be(Ae(x),"handleClick",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onClick;Ne(I)&&I(N,E)}}),be(Ae(x),"handleMouseDown",function(E){var k=x.props.onMouseDown;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleMouseUp",function(E){var k=x.props.onMouseUp;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),be(Ae(x),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseDown(E.changedTouches[0])}),be(Ae(x),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseUp(E.changedTouches[0])}),be(Ae(x),"triggerSyncEvent",function(E){x.props.syncId!==void 0&&Mc.emit(Pc,x.props.syncId,E,x.eventEmitterSymbol)}),be(Ae(x),"applySyncEvent",function(E){var k=x.props,N=k.layout,I=k.syncMethod,D=x.state.updateId,L=E.dataStartIndex,j=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)x.setState(Z({dataStartIndex:L,dataEndIndex:j},b({props:x.props,dataStartIndex:L,dataEndIndex:j,updateId:D},x.state)));else if(E.activeTooltipIndex!==void 0){var z=E.chartX,q=E.chartY,H=E.activeTooltipIndex,V=x.state,K=V.offset,G=V.tooltipTicks;if(!K)return;if(typeof I=="function")H=I(G,E);else if(I==="value"){H=-1;for(var W=0;W=0){var ie,X;if(z.dataKey&&!z.allowDuplicatedCategory){var Ee=typeof z.dataKey=="function"?oe:"payload.".concat(z.dataKey.toString());ie=Ws(W,Ee,H),X=J&&ae&&Ws(ae,Ee,H)}else ie=W==null?void 0:W[q],X=J&&ae&&ae[q];if(Ie||Q){var fe=E.props.activeIndex!==void 0?E.props.activeIndex:q;return[P.cloneElement(E,Z(Z(Z({},I.props),xe),{},{activeIndex:fe})),null,null]}if(!Ce(ie))return[ee].concat(Za(x.renderActivePoints({item:I,activePoint:ie,basePoint:X,childIndex:q,isRange:J})))}else{var he,je=(he=x.getItemByXY(x.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:ee},nt=je.graphicalItem,et=nt.item,tr=et===void 0?E:et,Pe=nt.childIndex,$e=Z(Z(Z({},I.props),xe),{},{activeIndex:Pe});return[P.cloneElement(tr,$e),null,null]}return J?[ee,null,null]:[ee,null]}),be(Ae(x),"renderCustomized",function(E,k,N){return P.cloneElement(E,Z(Z({key:"recharts-customized-".concat(N)},x.props),x.state))}),be(Ae(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((w=_.id)!==null&&w!==void 0?w:Uo("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=xk(x.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),x.state={},x}return j9(O,[{key:"componentDidMount",value:function(){var w,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w: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(w,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var x,E;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ln(this.props.children,Zn);if(w&&typeof w.props.shared=="boolean"){var A=w.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var A=this.container,x=A.getBoundingClientRect(),E=GH(x),k={chartX:Math.round(w.pageX-E.left),chartY:Math.round(w.pageY-E.top)},N=x.width/A.offsetWidth||1,I=this.inRange(k.chartX,k.chartY,N);if(!I)return null;var D=this.state,L=D.xAxisMap,j=D.yAxisMap,z=this.getTooltipEventType();if(z!=="axis"&&L&&j){var q=kn(L).scale,H=kn(j).scale,V=q&&q.invert?q.invert(k.chartX):null,K=H&&H.invert?H.invert(k.chartY):null;return Z(Z({},k),{},{xValue:V,yValue:K})}var G=lx(this.state,this.props.data,this.props.layout,I);return G?Z(Z({},k),G):null}},{key:"inRange",value:function(w,A){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,k=w/x,N=A/x;if(E==="horizontal"||E==="vertical"){var I=this.state.offset,D=k>=I.left&&k<=I.left+I.width&&N>=I.top&&N<=I.top+I.height;return D?{x:k,y:N}:null}var L=this.state,j=L.angleAxisMap,z=L.radiusAxisMap;if(j&&z){var q=kn(j);return l0({x:k,y:N},q)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,A=this.getTooltipEventType(),x=ln(w,Zn),E={};x&&A==="axis"&&(x.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var k=Vs(this.props,this.handleOuterEvent);return Z(Z({},k),E)}},{key:"addListener",value:function(){Mc.on(Pc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Mc.removeListener(Pc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,A,x){for(var E=this.state.formattedGraphicalItems,k=0,N=E.length;kh.jsx(gy,{cx:e,cy:t,fill:M.blueTextAccent,r:2}),oX=()=>{const e=Pt(),t=[...(e==null?void 0:e.data)||[]].sort((a,i)=>(a.year||0)-(i.year||0)),r=t.map(a=>a.year).filter(a=>a),n=t.map(a=>a.rate).filter(a=>a);return h.jsx(sX,{direction:"column",px:24,py:16,children:h.jsx(MH,{height:"100%",width:"100%",children:h.jsxs(aX,{margin:{bottom:20,left:20,right:20,top:20},children:[h.jsx(vy,{stroke:"#f5f5f5"}),h.jsx(Ou,{dataKey:"year",domain:[Math.min(...r),Math.max(...r)],label:{fill:M.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:M.white,fontSize:"8px"},type:"number"}),h.jsx(ku,{color:"#000",dataKey:"rate",domain:[Math.min(...n),Math.max(...n)],label:{angle:-90,fill:M.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:M.white,fontSize:"8px"},type:"number"}),h.jsx(Zn,{cursor:{strokeDasharray:"3 3"}}),h.jsx(Ko,{data:t,fill:M.blueTextAccent,line:!0,name:"A scatter",shape:h.jsx(iX,{})})]})})})},sX=B(F)` width: 100%; height: 100%; -`;var YR={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.cssValue=Qa.parseLengthAndUnit=void 0;var lX={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 KR(e){if(typeof e=="number")return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();r.includes(".")?t=parseFloat(r):t=parseInt(r,10);var n=(e.match(/[^0-9]*$/)||"").toString();return lX[n]?{value:t,unit:n}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}Qa.parseLengthAndUnit=KR;function uX(e){var t=KR(e);return"".concat(t.value).concat(t.unit)}Qa.cssValue=uX;var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.createAnimation=void 0;var cX=function(e,t,r){var n="react-spinners-".concat(e,"-").concat(r);if(typeof window>"u"||!window.document)return n;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o=` +`;var YR={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.cssValue=Ja.parseLengthAndUnit=void 0;var lX={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 KR(e){if(typeof e=="number")return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();r.includes(".")?t=parseFloat(r):t=parseInt(r,10);var n=(e.match(/[^0-9]*$/)||"").toString();return lX[n]?{value:t,unit:n}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}Ja.parseLengthAndUnit=KR;function uX(e){var t=KR(e);return"".concat(t.value).concat(t.unit)}Ja.cssValue=uX;var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.createAnimation=void 0;var cX=function(e,t,r){var n="react-spinners-".concat(e,"-").concat(r);if(typeof window>"u"||!window.document)return n;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o=` @keyframes `.concat(n,` { `).concat(t,` } - `);return i&&i.insertRule(o,0),n};Iu.createAnimation=cX;var $l=Tt&&Tt.__assign||function(){return $l=Object.assign||function(e){for(var t,r=1,n=arguments.length;re&&VO` width: 1px; height: 4px; } -`,QX=()=>{const e=Pt(),t=y1(),[r,n]=P.useState(null),[a,i]=P.useState(null),[o,s,l,c,d]=Po(b=>[b.playingNode,b.setPlayingNodeLink,b.setPlayingTime,b.setIsSeeking,b.playingTime]),p=P.useMemo(()=>v1((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),g=P.useMemo(()=>t==null?void 0:t.nodes.find(b=>b.node_type==="show"&&b.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),m=P.useCallback(b=>{var S;const v=na(((S=b==null?void 0:b.timestamp)==null?void 0:S.split("-")[0])||"00:00:01");(o&&b.link&&(o==null?void 0:o.link)!==b.link||(!o||(o==null?void 0:o.link)!==b.link)&&b.link!==void 0)&&(s(b.link),l(0),c(!0)),l(v),c(!0),i(b)},[o,s,c,i,l]);return P.useEffect(()=>{p!=null&&p.length&&!p.some(b=>b.ref_id===(a==null?void 0:a.ref_id))&&m(p[0])},[p,a,m]),P.useEffect(()=>{if(p!=null&&p.length){const b=p.find(v=>{if(!v.timestamp)return!1;const S=na(v.timestamp.split("-")[0]);return Math.abs(S-d)<1});b&&b.ref_id!==(a==null?void 0:a.ref_id)&&i(b)}},[d,p,a]),e?h.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:h.jsxs(e7,{children:[r&&h.jsx(t7,{className:"slide-me",direction:"up",in:!!r,children:h.jsxs(JX,{children:[h.jsx(F,{className:"close-info",onClick:()=>n(null),children:h.jsx(ql,{})}),r&&h.jsx(XR,{node:r})]})}),h.jsx(LX,{selectedNodeShow:g}),!!(p!=null&&p.length)&&h.jsx(ZX,{children:h.jsx(F,{pb:20,children:p==null?void 0:p.map((b,v)=>h.jsx(KX,{isSelected:(a==null?void 0:a.ref_id)===b.ref_id,onClick:()=>m(b),setOpenClip:n,timestamp:b},`${b.episode_title}_${v}`))})})]})}):null},JX=B(F)` +`,JX=()=>{const e=Pt(),t=y1(),[r,n]=P.useState(null),[a,i]=P.useState(null),[o,s,l,c,d]=Po(b=>[b.playingNode,b.setPlayingNodeLink,b.setPlayingTime,b.setIsSeeking,b.playingTime]),p=P.useMemo(()=>v1((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),g=P.useMemo(()=>t==null?void 0:t.nodes.find(b=>b.node_type==="show"&&b.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),m=P.useCallback(b=>{var S;const v=na(((S=b==null?void 0:b.timestamp)==null?void 0:S.split("-")[0])||"00:00:01");(o&&b.link&&(o==null?void 0:o.link)!==b.link||(!o||(o==null?void 0:o.link)!==b.link)&&b.link!==void 0)&&(s(b.link),l(0),c(!0)),l(v),c(!0),i(b)},[o,s,c,i,l]);return P.useEffect(()=>{p!=null&&p.length&&!p.some(b=>b.ref_id===(a==null?void 0:a.ref_id))&&m(p[0])},[p,a,m]),P.useEffect(()=>{if(p!=null&&p.length){const b=p.find(v=>{if(!v.timestamp)return!1;const S=na(v.timestamp.split("-")[0]);return Math.abs(S-d)<1});b&&b.ref_id!==(a==null?void 0:a.ref_id)&&i(b)}},[d,p,a]),e?h.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:h.jsxs(e7,{children:[r&&h.jsx(t7,{className:"slide-me",direction:"up",in:!!r,children:h.jsxs(QX,{children:[h.jsx(F,{className:"close-info",onClick:()=>n(null),children:h.jsx(ql,{})}),r&&h.jsx(XR,{node:r})]})}),h.jsx(LX,{selectedNodeShow:g}),!!(p!=null&&p.length)&&h.jsx(ZX,{children:h.jsx(F,{pb:20,children:p==null?void 0:p.map((b,v)=>h.jsx(KX,{isSelected:(a==null?void 0:a.ref_id)===b.ref_id,onClick:()=>m(b),setOpenClip:n,timestamp:b},`${b.episode_title}_${v}`))})})]})}):null},QX=B(F)` border-radius: 20px; overflow: hidden; height: 100%; @@ -1753,21 +1753,21 @@ ${({disabled:e})=>e&&VO` `,w7=B(Mt)` width: 100%; `;function _7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function T7(e,t){if(e==null)return{};var r,n,a=_7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;ne.length)&&(t=e.length);for(var r=0,n=Array(t);r=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 Fc={};function L7(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Fc[t]||(Fc[t]=D7(e)),Fc[t]}function M7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(i){return i!=="token"}),a=L7(n);return a.reduce(function(i,o){return ka(ka({},i),r[o])},t)}function hx(e){return e.join(" ")}function P7(e,t){var r=0;return function(n){return r+=1,n.map(function(a,i){return QR({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})})}}function QR(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,d=t.value;if(l==="text")return d;if(c){var p=P7(r,i),g;if(!i)g=ka(ka({},s),{},{className:hx(s.className)});else{var m=Object.keys(r).reduce(function(O,_){return _.split(".").forEach(function(w){O.includes(w)||O.push(w)}),O},[]),b=s.className&&s.className.includes("token")?["token"]:[],v=s.className&&b.concat(s.className.filter(function(O){return!m.includes(O)}));g=ka(ka({},s),{},{className:hx(v)||void 0,style:M7(s.className,Object.assign({},s.style,a),r)})}var S=p(t.children);return U.createElement(c,ib({key:o},g),S)}}const $7=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var j7=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gr(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 Fc={};function L7(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Fc[t]||(Fc[t]=D7(e)),Fc[t]}function M7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(i){return i!=="token"}),a=L7(n);return a.reduce(function(i,o){return ka(ka({},i),r[o])},t)}function hx(e){return e.join(" ")}function P7(e,t){var r=0;return function(n){return r+=1,n.map(function(a,i){return JR({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})})}}function JR(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,d=t.value;if(l==="text")return d;if(c){var p=P7(r,i),g;if(!i)g=ka(ka({},s),{},{className:hx(s.className)});else{var m=Object.keys(r).reduce(function(O,_){return _.split(".").forEach(function(w){O.includes(w)||O.push(w)}),O},[]),b=s.className&&s.className.includes("token")?["token"]:[],v=s.className&&b.concat(s.className.filter(function(O){return!m.includes(O)}));g=ka(ka({},s),{},{className:hx(v)||void 0,style:M7(s.className,Object.assign({},s.style,a),r)})}var S=p(t.children);return U.createElement(c,ib({key:o},g),S)}}const $7=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var j7=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return Us({children:x,lineNumber:E,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:r,className:k,showLineNumbers:n,wrapLongLines:l})}function v(x,E){if(n&&E&&a){var k=eI(s,E,o);x.unshift(JR(E,k))}return x}function S(x,E){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||k.length>0?b(x,E,k):v(x,E)}for(var O=function(){var E=d[m],k=E.children[0].value,N=B7(k);if(N){var I=k.split(` +`),style:o,startingLineNumber:s}))}function z7(e){return"".concat(e.toString().length,".25em")}function QR(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 eI(e,t,r){var n={display:"inline-block",minWidth:z7(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,i=Gr(Gr({},n),a);return i}function Us(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,l=e.className,c=l===void 0?[]:l,d=e.showLineNumbers,p=e.wrapLongLines,g=typeof s=="function"?s(r):s;if(g.className=c,r&&i){var m=eI(n,r,a);t.unshift(QR(r,m))}return p&d&&(g.style=Gr(Gr({},g.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:g,children:t}}function tI(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return Us({children:x,lineNumber:E,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:r,className:k,showLineNumbers:n,wrapLongLines:l})}function v(x,E){if(n&&E&&a){var k=eI(s,E,o);x.unshift(QR(E,k))}return x}function S(x,E){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||k.length>0?b(x,E,k):v(x,E)}for(var O=function(){var E=d[m],k=E.children[0].value,N=B7(k);if(N){var I=k.split(` `);I.forEach(function(D,L){var j=n&&p.length+i,z={type:"text",value:"".concat(D,` -`)};if(L===0){var q=d.slice(g+1,m).concat(Us({children:[z],className:E.properties.className})),H=S(q,j);p.push(H)}else if(L===I.length-1){var V=d[m+1]&&d[m+1].children&&d[m+1].children[0],K={type:"text",value:"".concat(D)};if(V){var G=Us({children:[K],className:E.properties.className});d.splice(m+1,0,G)}else{var W=[K],Q=S(W,j,E.properties.className);p.push(Q)}}else{var ae=[z],re=S(ae,j,E.properties.className);p.push(re)}}),g=m}m++};m4&&r.slice(0,4)===Ay&&jZ.test(t)&&(t.charAt(4)==="-"?n=UZ(t):t=GZ(t),a=MZ),new a(n,t))}function UZ(e){var t=e.slice(5).replace(dI,qZ);return Ay+t.charAt(0).toUpperCase()+t.slice(1)}function GZ(e){var t=e.slice(4);return dI.test(t)?e:(t=t.replace(FZ,zZ),t.charAt(0)!=="-"&&(t="-"+t),Ay+t)}function zZ(e){return"-"+e.toLowerCase()}function qZ(e){return e.charAt(1).toUpperCase()}var HZ=WZ,Ex=/[#.]/g;function WZ(e,t){for(var r=e||"",n=t||"div",a={},i=0,o,s,l;i=48&&t<=57}var gee=hee;function hee(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var mee=bee;function bee(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var yee=mee,vee=gI,See=Eee;function Eee(e){return yee(e)||vee(e)}var Ms,xee=59,wee=_ee;function _ee(e){var t="&"+e+";",r;return Ms=Ms||document.createElement("i"),Ms.innerHTML=t,r=Ms.textContent,r.charCodeAt(r.length-1)===xee&&e!=="semi"||r===t?!1:r}var kx=dee,Rx=pee,Tee=gI,Aee=gee,hI=See,Oee=wee,kee=Uee,Ree={}.hasOwnProperty,va=String.fromCharCode,Iee=Function.prototype,Ix={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Nee=9,Nx=10,Cee=12,Dee=32,Cx=38,Lee=59,Mee=60,Pee=61,$ee=35,jee=88,Fee=120,Bee=65533,wa="named",Ry="hexadecimal",Iy="decimal",Ny={};Ny[Ry]=16;Ny[Iy]=10;var Nu={};Nu[wa]=hI;Nu[Iy]=Tee;Nu[Ry]=Aee;var mI=1,bI=2,yI=3,vI=4,SI=5,sb=6,EI=7,Fn={};Fn[mI]="Named character references must be terminated by a semicolon";Fn[bI]="Numeric character references must be terminated by a semicolon";Fn[yI]="Named character references cannot be empty";Fn[vI]="Numeric character references cannot be empty";Fn[SI]="Named character references must be known";Fn[sb]="Numeric character references cannot be disallowed";Fn[EI]="Numeric character references cannot be outside the permissible Unicode range";function Uee(e,t){var r={},n,a;t||(t={});for(a in Ix)n=t[a],r[a]=n??Ix[a];return(r.position.indent||r.position.start)&&(r.indent=r.position.indent||[],r.position=r.position.start),Gee(e,r)}function Gee(e,t){var r=t.additional,n=t.nonTerminated,a=t.text,i=t.reference,o=t.warning,s=t.textContext,l=t.referenceContext,c=t.warningContext,d=t.position,p=t.indent||[],g=e.length,m=0,b=-1,v=d.column||1,S=d.line||1,O="",_=[],w,A,x,E,k,N,I,D,L,j,z,q,H,V,K,G,W,Q,ae;for(typeof r=="string"&&(r=r.charCodeAt(0)),G=re(),D=o?ue:Iee,m--,g++;++m65535&&(N-=65536,j+=va(N>>>10|55296),N=56320|N&1023),N=j+va(N))):V!==wa&&D(vI,Q)),N?(Se(),G=re(),m=ae-1,v+=ae-H+1,_.push(N),W=re(),W.offset++,i&&i.call(l,N,{start:G,end:W},e.slice(H-1,ae)),G=W):(E=e.slice(H-1,ae),O+=E,v+=E.length,m=ae-1)}else k===10&&(S++,b++,v=0),k===k?(O+=va(k),v++):Se();return _.join("");function re(){return{line:S,column:v,offset:m+(d.offset||0)}}function ue(J,Ie){var Ue=re();Ue.column+=Ie,Ue.offset+=Ie,o.call(c,Fn[J],Ue,J)}function Se(){O&&(_.push(O),a&&a.call(s,O,{start:G,end:re()}),O="")}}function zee(e){return e>=55296&&e<=57343||e>1114111}function qee(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 xI={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`)};if(L===0){var q=d.slice(g+1,m).concat(Us({children:[z],className:E.properties.className})),H=S(q,j);p.push(H)}else if(L===I.length-1){var V=d[m+1]&&d[m+1].children&&d[m+1].children[0],K={type:"text",value:"".concat(D)};if(V){var G=Us({children:[K],className:E.properties.className});d.splice(m+1,0,G)}else{var W=[K],J=S(W,j,E.properties.className);p.push(J)}}else{var ae=[z],re=S(ae,j,E.properties.className);p.push(re)}}),g=m}m++};m4&&r.slice(0,4)===Ay&&jZ.test(t)&&(t.charAt(4)==="-"?n=UZ(t):t=GZ(t),a=MZ),new a(n,t))}function UZ(e){var t=e.slice(5).replace(dI,qZ);return Ay+t.charAt(0).toUpperCase()+t.slice(1)}function GZ(e){var t=e.slice(4);return dI.test(t)?e:(t=t.replace(FZ,zZ),t.charAt(0)!=="-"&&(t="-"+t),Ay+t)}function zZ(e){return"-"+e.toLowerCase()}function qZ(e){return e.charAt(1).toUpperCase()}var HZ=WZ,Ex=/[#.]/g;function WZ(e,t){for(var r=e||"",n=t||"div",a={},i=0,o,s,l;i=48&&t<=57}var gee=hee;function hee(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var mee=bee;function bee(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var yee=mee,vee=gI,See=Eee;function Eee(e){return yee(e)||vee(e)}var Ms,xee=59,wee=_ee;function _ee(e){var t="&"+e+";",r;return Ms=Ms||document.createElement("i"),Ms.innerHTML=t,r=Ms.textContent,r.charCodeAt(r.length-1)===xee&&e!=="semi"||r===t?!1:r}var kx=dee,Rx=pee,Tee=gI,Aee=gee,hI=See,Oee=wee,kee=Uee,Ree={}.hasOwnProperty,va=String.fromCharCode,Iee=Function.prototype,Ix={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Nee=9,Nx=10,Cee=12,Dee=32,Cx=38,Lee=59,Mee=60,Pee=61,$ee=35,jee=88,Fee=120,Bee=65533,wa="named",Ry="hexadecimal",Iy="decimal",Ny={};Ny[Ry]=16;Ny[Iy]=10;var Nu={};Nu[wa]=hI;Nu[Iy]=Tee;Nu[Ry]=Aee;var mI=1,bI=2,yI=3,vI=4,SI=5,sb=6,EI=7,Fn={};Fn[mI]="Named character references must be terminated by a semicolon";Fn[bI]="Numeric character references must be terminated by a semicolon";Fn[yI]="Named character references cannot be empty";Fn[vI]="Numeric character references cannot be empty";Fn[SI]="Named character references must be known";Fn[sb]="Numeric character references cannot be disallowed";Fn[EI]="Numeric character references cannot be outside the permissible Unicode range";function Uee(e,t){var r={},n,a;t||(t={});for(a in Ix)n=t[a],r[a]=n??Ix[a];return(r.position.indent||r.position.start)&&(r.indent=r.position.indent||[],r.position=r.position.start),Gee(e,r)}function Gee(e,t){var r=t.additional,n=t.nonTerminated,a=t.text,i=t.reference,o=t.warning,s=t.textContext,l=t.referenceContext,c=t.warningContext,d=t.position,p=t.indent||[],g=e.length,m=0,b=-1,v=d.column||1,S=d.line||1,O="",_=[],w,A,x,E,k,N,I,D,L,j,z,q,H,V,K,G,W,J,ae;for(typeof r=="string"&&(r=r.charCodeAt(0)),G=re(),D=o?ue:Iee,m--,g++;++m65535&&(N-=65536,j+=va(N>>>10|55296),N=56320|N&1023),N=j+va(N))):V!==wa&&D(vI,J)),N?(Se(),G=re(),m=ae-1,v+=ae-H+1,_.push(N),W=re(),W.offset++,i&&i.call(l,N,{start:G,end:W},e.slice(H-1,ae)),G=W):(E=e.slice(H-1,ae),O+=E,v+=E.length,m=ae-1)}else k===10&&(S++,b++,v=0),k===k?(O+=va(k),v++):Se();return _.join("");function re(){return{line:S,column:v,offset:m+(d.offset||0)}}function ue(Q,Ie){var Ue=re();Ue.column+=Ie,Ue.offset+=Ie,o.call(c,Fn[Q],Ue,Q)}function Se(){O&&(_.push(O),a&&a.call(s,O,{start:G,end:re()}),O="")}}function zee(e){return e>=55296&&e<=57343||e>1114111}function qee(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 xI={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 r=function(n){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(w){return w instanceof l?new l(w.type,_(w.content),w.alias):Array.isArray(w)?w.map(_):w.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(x){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(_){var w=document.getElementsByTagName("script");for(var A in w)if(w[A].src==_)return w[A]}return null}},isActive:function(_,w,A){for(var x="no-"+w;_;){var E=_.classList;if(E.contains(w))return!0;if(E.contains(x))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,w){var A=s.util.clone(s.languages[_]);for(var x in w)A[x]=w[x];return A},insertBefore:function(_,w,A,x){x=x||s.languages;var E=x[_],k={};for(var N in E)if(E.hasOwnProperty(N)){if(N==w)for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I]);A.hasOwnProperty(N)||(k[N]=E[N])}var D=x[_];return x[_]=k,s.languages.DFS(s.languages,function(L,j){j===D&&L!=_&&(this[L]=k)}),k},DFS:function _(w,A,x,E){E=E||{};var k=s.util.objId;for(var N in w)if(w.hasOwnProperty(N)){A.call(w,N,w[N],x||N);var I=w[N],D=s.util.type(I);D==="Object"&&!E[k(I)]?(E[k(I)]=!0,_(I,A,null,E)):D==="Array"&&!E[k(I)]&&(E[k(I)]=!0,_(I,A,N,E))}}},plugins:{},highlightAll:function(_,w){s.highlightAllUnder(document,_,w)},highlightAllUnder:function(_,w,A){var x={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),s.hooks.run("before-all-elements-highlight",x);for(var E=0,k;k=x.elements[E++];)s.highlightElement(k,w===!0,x.callback)},highlightElement:function(_,w,A){var x=s.util.getLanguage(_),E=s.languages[x];s.util.setLanguage(_,x);var k=_.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(k,x);var N=_.textContent,I={element:_,language:x,grammar:E,code:N};function D(j){I.highlightedCode=j,s.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,s.hooks.run("after-highlight",I),s.hooks.run("complete",I),A&&A.call(I.element)}if(s.hooks.run("before-sanity-check",I),k=I.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!I.code){s.hooks.run("complete",I),A&&A.call(I.element);return}if(s.hooks.run("before-highlight",I),!I.grammar){D(s.util.encode(I.code));return}if(w&&n.Worker){var L=new Worker(s.filename);L.onmessage=function(j){D(j.data)},L.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else D(s.highlight(I.code,I.grammar,I.language))},highlight:function(_,w,A){var x={code:_,grammar:w,language:A};if(s.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=s.tokenize(x.code,x.grammar),s.hooks.run("after-tokenize",x),l.stringify(s.util.encode(x.tokens),x.language)},tokenize:function(_,w){var A=w.rest;if(A){for(var x in A)w[x]=A[x];delete w.rest}var E=new p;return g(E,E.head,_),d(_,E,w,E.head,0),b(E)},hooks:{all:{},add:function(_,w){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(w)},run:function(_,w){var A=s.hooks.all[_];if(!(!A||!A.length))for(var x=0,E;E=A[x++];)E(w)}},Token:l};n.Prism=s;function l(_,w,A,x){this.type=_,this.content=w,this.alias=A,this.length=(x||"").length|0}l.stringify=function _(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var x="";return w.forEach(function(D){x+=_(D,A)}),x}var E={type:w.type,content:_(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},k=w.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(E.classes,k):E.classes.push(k)),s.hooks.run("wrap",E);var N="";for(var I in E.attributes)N+=" "+I+'="'+(E.attributes[I]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+N+">"+E.content+""};function c(_,w,A,x){_.lastIndex=w;var E=_.exec(A);if(E&&x&&E[1]){var k=E[1].length;E.index+=k,E[0]=E[0].slice(k)}return E}function d(_,w,A,x,E,k){for(var N in A)if(!(!A.hasOwnProperty(N)||!A[N])){var I=A[N];I=Array.isArray(I)?I:[I];for(var D=0;D=k.reach);W+=G.value.length,G=G.next){var Q=G.value;if(w.length>_.length)return;if(!(Q instanceof l)){var ae=1,re;if(q){if(re=c(K,W,_,z),!re||re.index>=_.length)break;var Ie=re.index,ue=re.index+re[0].length,Se=W;for(Se+=G.value.length;Ie>=Se;)G=G.next,Se+=G.value.length;if(Se-=G.value.length,W=Se,G.value instanceof l)continue;for(var J=G;J!==w.tail&&(Sek.reach&&(k.reach=oe);var ie=G.prev;xe&&(ie=g(w,ie,xe),W+=xe.length),m(w,ie,ae);var X=new l(N,j?s.tokenize(Ue,j):Ue,H,Ue);if(G=g(w,ie,X),ee&&g(w,G,ee),ae>1){var Ee={cause:N+","+D,reach:oe};d(_,w,A,G.prev,W,Ee),k&&Ee.reach>k.reach&&(k.reach=Ee.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},w={value:null,prev:_,next:null};_.next=w,this.head=_,this.tail=w,this.length=0}function g(_,w,A){var x=w.next,E={value:A,prev:w,next:x};return w.next=E,x.prev=E,_.length++,E}function m(_,w,A){for(var x=w.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var Vee=Dy;Dy.displayName="css";Dy.aliases=[];function Dy(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(e)}var Yee=Ly;Ly.displayName="clike";Ly.aliases=[];function Ly(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 Kee=My;My.displayName="javascript";My.aliases=["js"];function My(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 Pi=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Tt=="object"?Tt:{},Xee=pte();Pi.Prism={manual:!0,disableWorkerMessageHandler:!0};var Zee=pQ,Qee=kee,wI=Hee,Jee=Wee,ete=Vee,tte=Yee,rte=Kee;Xee();var Py={}.hasOwnProperty;function _I(){}_I.prototype=wI;var yt=new _I,nte=yt;yt.highlight=ite;yt.register=Zo;yt.alias=ate;yt.registered=ote;yt.listLanguages=ste;Zo(Jee);Zo(ete);Zo(tte);Zo(rte);yt.util.encode=cte;yt.Token.stringify=lte;function Zo(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");yt.languages[e.displayName]===void 0&&e(yt)}function ate(e,t){var r=yt.languages,n=e,a,i,o,s;t&&(n={},n[e]=t);for(a in n)for(i=n[a],i=typeof i=="string"?[i]:i,o=i.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var Bc,Dx;function gte(){if(Dx)return Bc;Dx=1,Bc=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 Bc}var Uc,Lx;function hte(){if(Lx)return Uc;Lx=1,Uc=e,e.displayName="abnf",e.aliases=[];function e(t){(function(r){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";r.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return Uc}var Gc,Mx;function mte(){if(Mx)return Gc;Mx=1,Gc=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 Gc}var zc,Px;function bte(){if(Px)return zc;Px=1,zc=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 zc}var qc,$x;function yte(){if($x)return qc;$x=1,qc=e,e.displayName="agda",e.aliases=[];function e(t){(function(r){r.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return qc}var Hc,jx;function vte(){if(jx)return Hc;jx=1,Hc=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 Hc}var Wc,Fx;function Ste(){if(Fx)return Wc;Fx=1,Wc=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 Wc}var Vc,Bx;function Ete(){if(Bx)return Vc;Bx=1,Vc=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 Vc}var Yc,Ux;function $y(){if(Ux)return Yc;Ux=1,Yc=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 Yc}var Kc,Gx;function xte(){if(Gx)return Kc;Gx=1;var e=$y();Kc=t,t.displayName="apex",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(l){return RegExp(l.replace(//g,function(){return i}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};n.languages.apex={comment:n.languages.clike.comment,string:n.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:n.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(r)}return Kc}var Xc,zx;function wte(){if(zx)return Xc;zx=1,Xc=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 Xc}var Zc,qx;function _te(){if(qx)return Zc;qx=1,Zc=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 Zc}var Qc,Hx;function Tte(){if(Hx)return Qc;Hx=1,Qc=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 Qc}var Jc,Wx;function ca(){if(Wx)return Jc;Wx=1,Jc=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 Jc}var ed,Vx;function jy(){if(Vx)return ed;Vx=1;var e=ca();ed=t,t.displayName="cpp",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])}(r)}return ed}var td,Yx;function Ate(){if(Yx)return td;Yx=1;var e=jy();td=t,t.displayName="arduino",t.aliases=["ino"];function t(r){r.register(e),r.languages.arduino=r.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),r.languages.ino=r.languages.arduino}return td}var rd,Kx;function Ote(){if(Kx)return rd;Kx=1,rd=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 rd}var nd,Xx;function kte(){if(Xx)return nd;Xx=1,nd=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(r){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=r.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,c=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return id}var od,Jx;function Cu(){if(Jx)return od;Jx=1,od=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(r){function n(ae,re){return ae.replace(/<<(\d+)>>/g,function(ue,Se){return"(?:"+re[+Se]+")"})}function a(ae,re,ue){return RegExp(n(ae,re),ue||"")}function i(ae,re){for(var ue=0;ue>/g,function(){return"(?:"+ae+")"});return ae.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(ae){return"\\b(?:"+ae.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),c=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),d=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),g=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,v=n(/<<0>>(?:\s*<<1>>)?/.source,[b,g]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),O=/\[\s*(?:,\s*)*\]/.source,_=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,O]),w=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,m,O]),A=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,S,O]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,I=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;r.languages.csharp=r.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,b]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),r.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),r.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),r.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,S]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,g]),inside:{function:a(/^<<0>>/.source,[b]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,b,x,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,m]),lookbehind:!0,greedy:!0,inside:r.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var D=N+"|"+k,L=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[D]),j=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,q=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,j]);r.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[j]),inside:r.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var H=/:[^}\r\n]+/.source,V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),K=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[V,H]),G=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[D]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,H]);function Q(ae,re){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ae]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[re,H]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:r.languages.csharp}}},string:/[\s\S]+/}}r.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:Q(K,V)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:Q(W,G)}],char:{pattern:RegExp(k),greedy:!0}}),r.languages.dotnet=r.languages.cs=r.languages.csharp})(t)}return od}var sd,ew;function Nte(){if(ew)return sd;ew=1;var e=Cu();sd=t,t.displayName="aspnet",t.aliases=[];function t(r){r.register(e),r.languages.aspnet=r.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:r.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:r.languages.csharp}}}),r.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.insertBefore("inside","punctuation",{directive:r.languages.aspnet.directive},r.languages.aspnet.tag.inside["attr-value"]),r.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),r.languages.insertBefore("aspnet",r.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:r.languages.csharp||{}}})}return sd}var ld,tw;function Cte(){if(tw)return ld;tw=1,ld=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 ld}var ud,rw;function Dte(){if(rw)return ud;rw=1,ud=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 ud}var cd,nw;function Lte(){if(nw)return cd;nw=1,cd=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(r){function n(d,p){return d.replace(/<<(\d+)>>/g,function(g,m){return p[+m]})}function a(d,p,g){return RegExp(n(d,p),g||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[o,s,l].join("|");r.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},r.languages.avs=r.languages.avisynth})(t)}return cd}var dd,aw;function Mte(){if(aw)return dd;aw=1,dd=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 dd}var pd,iw;function TI(){if(iw)return pd;iw=1,pd=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=r.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return fd}var gd,sw;function Pte(){if(sw)return gd;sw=1,gd=e,e.displayName="batch",e.aliases=[];function e(t){(function(r){var n=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;r.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:n,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:n,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return gd}var hd,lw;function $te(){if(lw)return hd;lw=1,hd=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 hd}var md,uw;function jte(){if(uw)return md;uw=1,md=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 md}var bd,cw;function Fte(){if(cw)return bd;cw=1,bd=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 bd}var yd,dw;function Bte(){if(dw)return yd;dw=1;var e=ca();yd=t,t.displayName="bison",t.aliases=[];function t(r){r.register(e),r.languages.bison=r.languages.extend("c",{}),r.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:r.languages.c}},comment:r.languages.c.comment,string:r.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return yd}var vd,pw;function Ute(){if(pw)return vd;pw=1,vd=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 vd}var Sd,fw;function Gte(){if(fw)return Sd;fw=1,Sd=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 Sd}var Ed,gw;function zte(){if(gw)return Ed;gw=1,Ed=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 Ed}var xd,hw;function qte(){if(hw)return xd;hw=1,xd=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 xd}var wd,mw;function Hte(){if(mw)return wd;mw=1,wd=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 wd}var _d,bw;function Wte(){if(bw)return _d;bw=1,_d=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 _d}var Td,yw;function Vte(){if(yw)return Td;yw=1;var e=jy();Td=t,t.displayName="chaiscript",t.aliases=[];function t(r){r.register(e),r.languages.chaiscript=r.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[r.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),r.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),r.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Td}var Ad,vw;function Yte(){if(vw)return Ad;vw=1,Ad=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 Ad}var Od,Sw;function Kte(){if(Sw)return Od;Sw=1,Od=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 Od}var kd,Ew;function Xte(){if(Ew)return kd;Ew=1,kd=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 kd}var Rd,xw;function Zte(){if(xw)return Rd;xw=1,Rd=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 Rd}var Id,ww;function Qte(){if(ww)return Id;ww=1,Id=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(r){var n=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:a}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript})(t)}return Id}var Nd,_w;function Jte(){if(_w)return Nd;_w=1,Nd=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 Nd}var Cd,Tw;function ere(){if(Tw)return Cd;Tw=1,Cd=e,e.displayName="coq",e.aliases=[];function e(t){(function(r){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),r.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Cd}var Dd,Aw;function Du(){if(Aw)return Dd;Aw=1,Dd=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(r){r.languages.ruby=r.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),r.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete r.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;r.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),r.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete r.languages.ruby.string,r.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),r.languages.rb=r.languages.ruby})(t)}return Dd}var Ld,Ow;function tre(){if(Ow)return Ld;Ow=1;var e=Du();Ld=t,t.displayName="crystal",t.aliases=[];function t(r){r.register(e),function(n){n.languages.crystal=n.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,n.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),n.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:n.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:n.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(r)}return Ld}var Md,kw;function rre(){if(kw)return Md;kw=1;var e=Cu();Md=t,t.displayName="cshtml",t.aliases=["razor"];function t(r){r.register(e),function(n){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(S,O){for(var _=0;_/g,function(){return"(?:"+S+")"});return S.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var s=o(/\((?:[^()'"@/]|||)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),c=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=a,r.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return $d}var jd,Nw;function ire(){if(Nw)return jd;Nw=1,jd=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return jd}var Fd,Cw;function ore(){if(Cw)return Fd;Cw=1,Fd=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 Fd}var Bd,Dw;function sre(){if(Dw)return Bd;Dw=1,Bd=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 Bd}var Ud,Lw;function lre(){if(Lw)return Ud;Lw=1,Ud=e,e.displayName="dart",e.aliases=[];function e(t){(function(r){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};r.languages.dart=r.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),r.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.dart}}},string:/[\s\S]+/}},string:void 0}),r.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),r.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return Ud}var Gd,Mw;function ure(){if(Mw)return Gd;Mw=1,Gd=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(r){r.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return Gd}var zd,Pw;function cre(){if(Pw)return zd;Pw=1,zd=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 zd}var qd,$w;function dre(){if($w)return qd;$w=1,qd=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 qd}var Hd,jw;function pre(){if(jw)return Hd;jw=1,Hd=e,e.displayName="diff",e.aliases=[];function e(t){(function(r){r.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(a){var i=n[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),r.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r + */var r=function(n){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(w){return w instanceof l?new l(w.type,_(w.content),w.alias):Array.isArray(w)?w.map(_):w.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(x){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(_){var w=document.getElementsByTagName("script");for(var A in w)if(w[A].src==_)return w[A]}return null}},isActive:function(_,w,A){for(var x="no-"+w;_;){var E=_.classList;if(E.contains(w))return!0;if(E.contains(x))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,w){var A=s.util.clone(s.languages[_]);for(var x in w)A[x]=w[x];return A},insertBefore:function(_,w,A,x){x=x||s.languages;var E=x[_],k={};for(var N in E)if(E.hasOwnProperty(N)){if(N==w)for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I]);A.hasOwnProperty(N)||(k[N]=E[N])}var D=x[_];return x[_]=k,s.languages.DFS(s.languages,function(L,j){j===D&&L!=_&&(this[L]=k)}),k},DFS:function _(w,A,x,E){E=E||{};var k=s.util.objId;for(var N in w)if(w.hasOwnProperty(N)){A.call(w,N,w[N],x||N);var I=w[N],D=s.util.type(I);D==="Object"&&!E[k(I)]?(E[k(I)]=!0,_(I,A,null,E)):D==="Array"&&!E[k(I)]&&(E[k(I)]=!0,_(I,A,N,E))}}},plugins:{},highlightAll:function(_,w){s.highlightAllUnder(document,_,w)},highlightAllUnder:function(_,w,A){var x={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),s.hooks.run("before-all-elements-highlight",x);for(var E=0,k;k=x.elements[E++];)s.highlightElement(k,w===!0,x.callback)},highlightElement:function(_,w,A){var x=s.util.getLanguage(_),E=s.languages[x];s.util.setLanguage(_,x);var k=_.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(k,x);var N=_.textContent,I={element:_,language:x,grammar:E,code:N};function D(j){I.highlightedCode=j,s.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,s.hooks.run("after-highlight",I),s.hooks.run("complete",I),A&&A.call(I.element)}if(s.hooks.run("before-sanity-check",I),k=I.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!I.code){s.hooks.run("complete",I),A&&A.call(I.element);return}if(s.hooks.run("before-highlight",I),!I.grammar){D(s.util.encode(I.code));return}if(w&&n.Worker){var L=new Worker(s.filename);L.onmessage=function(j){D(j.data)},L.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else D(s.highlight(I.code,I.grammar,I.language))},highlight:function(_,w,A){var x={code:_,grammar:w,language:A};if(s.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=s.tokenize(x.code,x.grammar),s.hooks.run("after-tokenize",x),l.stringify(s.util.encode(x.tokens),x.language)},tokenize:function(_,w){var A=w.rest;if(A){for(var x in A)w[x]=A[x];delete w.rest}var E=new p;return g(E,E.head,_),d(_,E,w,E.head,0),b(E)},hooks:{all:{},add:function(_,w){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(w)},run:function(_,w){var A=s.hooks.all[_];if(!(!A||!A.length))for(var x=0,E;E=A[x++];)E(w)}},Token:l};n.Prism=s;function l(_,w,A,x){this.type=_,this.content=w,this.alias=A,this.length=(x||"").length|0}l.stringify=function _(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var x="";return w.forEach(function(D){x+=_(D,A)}),x}var E={type:w.type,content:_(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},k=w.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(E.classes,k):E.classes.push(k)),s.hooks.run("wrap",E);var N="";for(var I in E.attributes)N+=" "+I+'="'+(E.attributes[I]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+N+">"+E.content+""};function c(_,w,A,x){_.lastIndex=w;var E=_.exec(A);if(E&&x&&E[1]){var k=E[1].length;E.index+=k,E[0]=E[0].slice(k)}return E}function d(_,w,A,x,E,k){for(var N in A)if(!(!A.hasOwnProperty(N)||!A[N])){var I=A[N];I=Array.isArray(I)?I:[I];for(var D=0;D=k.reach);W+=G.value.length,G=G.next){var J=G.value;if(w.length>_.length)return;if(!(J instanceof l)){var ae=1,re;if(q){if(re=c(K,W,_,z),!re||re.index>=_.length)break;var Ie=re.index,ue=re.index+re[0].length,Se=W;for(Se+=G.value.length;Ie>=Se;)G=G.next,Se+=G.value.length;if(Se-=G.value.length,W=Se,G.value instanceof l)continue;for(var Q=G;Q!==w.tail&&(Sek.reach&&(k.reach=oe);var ie=G.prev;xe&&(ie=g(w,ie,xe),W+=xe.length),m(w,ie,ae);var X=new l(N,j?s.tokenize(Ue,j):Ue,H,Ue);if(G=g(w,ie,X),ee&&g(w,G,ee),ae>1){var Ee={cause:N+","+D,reach:oe};d(_,w,A,G.prev,W,Ee),k&&Ee.reach>k.reach&&(k.reach=Ee.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},w={value:null,prev:_,next:null};_.next=w,this.head=_,this.tail=w,this.length=0}function g(_,w,A){var x=w.next,E={value:A,prev:w,next:x};return w.next=E,x.prev=E,_.length++,E}function m(_,w,A){for(var x=w.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var Vee=Dy;Dy.displayName="css";Dy.aliases=[];function Dy(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(e)}var Yee=Ly;Ly.displayName="clike";Ly.aliases=[];function Ly(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 Kee=My;My.displayName="javascript";My.aliases=["js"];function My(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 Pi=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Tt=="object"?Tt:{},Xee=pte();Pi.Prism={manual:!0,disableWorkerMessageHandler:!0};var Zee=pJ,Jee=kee,wI=Hee,Qee=Wee,ete=Vee,tte=Yee,rte=Kee;Xee();var Py={}.hasOwnProperty;function _I(){}_I.prototype=wI;var yt=new _I,nte=yt;yt.highlight=ite;yt.register=Zo;yt.alias=ate;yt.registered=ote;yt.listLanguages=ste;Zo(Qee);Zo(ete);Zo(tte);Zo(rte);yt.util.encode=cte;yt.Token.stringify=lte;function Zo(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");yt.languages[e.displayName]===void 0&&e(yt)}function ate(e,t){var r=yt.languages,n=e,a,i,o,s;t&&(n={},n[e]=t);for(a in n)for(i=n[a],i=typeof i=="string"?[i]:i,o=i.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var Bc,Dx;function gte(){if(Dx)return Bc;Dx=1,Bc=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 Bc}var Uc,Lx;function hte(){if(Lx)return Uc;Lx=1,Uc=e,e.displayName="abnf",e.aliases=[];function e(t){(function(r){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";r.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return Uc}var Gc,Mx;function mte(){if(Mx)return Gc;Mx=1,Gc=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 Gc}var zc,Px;function bte(){if(Px)return zc;Px=1,zc=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 zc}var qc,$x;function yte(){if($x)return qc;$x=1,qc=e,e.displayName="agda",e.aliases=[];function e(t){(function(r){r.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return qc}var Hc,jx;function vte(){if(jx)return Hc;jx=1,Hc=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 Hc}var Wc,Fx;function Ste(){if(Fx)return Wc;Fx=1,Wc=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 Wc}var Vc,Bx;function Ete(){if(Bx)return Vc;Bx=1,Vc=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 Vc}var Yc,Ux;function $y(){if(Ux)return Yc;Ux=1,Yc=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 Yc}var Kc,Gx;function xte(){if(Gx)return Kc;Gx=1;var e=$y();Kc=t,t.displayName="apex",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(l){return RegExp(l.replace(//g,function(){return i}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};n.languages.apex={comment:n.languages.clike.comment,string:n.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:n.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(r)}return Kc}var Xc,zx;function wte(){if(zx)return Xc;zx=1,Xc=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 Xc}var Zc,qx;function _te(){if(qx)return Zc;qx=1,Zc=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 Zc}var Jc,Hx;function Tte(){if(Hx)return Jc;Hx=1,Jc=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 Jc}var Qc,Wx;function ca(){if(Wx)return Qc;Wx=1,Qc=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 Qc}var ed,Vx;function jy(){if(Vx)return ed;Vx=1;var e=ca();ed=t,t.displayName="cpp",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])}(r)}return ed}var td,Yx;function Ate(){if(Yx)return td;Yx=1;var e=jy();td=t,t.displayName="arduino",t.aliases=["ino"];function t(r){r.register(e),r.languages.arduino=r.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),r.languages.ino=r.languages.arduino}return td}var rd,Kx;function Ote(){if(Kx)return rd;Kx=1,rd=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 rd}var nd,Xx;function kte(){if(Xx)return nd;Xx=1,nd=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(r){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=r.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,c=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return id}var od,Qx;function Cu(){if(Qx)return od;Qx=1,od=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(r){function n(ae,re){return ae.replace(/<<(\d+)>>/g,function(ue,Se){return"(?:"+re[+Se]+")"})}function a(ae,re,ue){return RegExp(n(ae,re),ue||"")}function i(ae,re){for(var ue=0;ue>/g,function(){return"(?:"+ae+")"});return ae.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(ae){return"\\b(?:"+ae.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),c=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),d=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),g=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,v=n(/<<0>>(?:\s*<<1>>)?/.source,[b,g]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),O=/\[\s*(?:,\s*)*\]/.source,_=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,O]),w=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,m,O]),A=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,S,O]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,I=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;r.languages.csharp=r.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,b]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),r.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),r.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),r.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,S]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,g]),inside:{function:a(/^<<0>>/.source,[b]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,b,x,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,m]),lookbehind:!0,greedy:!0,inside:r.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var D=N+"|"+k,L=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[D]),j=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,q=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,j]);r.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[j]),inside:r.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var H=/:[^}\r\n]+/.source,V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),K=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[V,H]),G=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[D]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,H]);function J(ae,re){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ae]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[re,H]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:r.languages.csharp}}},string:/[\s\S]+/}}r.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:J(K,V)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:J(W,G)}],char:{pattern:RegExp(k),greedy:!0}}),r.languages.dotnet=r.languages.cs=r.languages.csharp})(t)}return od}var sd,ew;function Nte(){if(ew)return sd;ew=1;var e=Cu();sd=t,t.displayName="aspnet",t.aliases=[];function t(r){r.register(e),r.languages.aspnet=r.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:r.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:r.languages.csharp}}}),r.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.insertBefore("inside","punctuation",{directive:r.languages.aspnet.directive},r.languages.aspnet.tag.inside["attr-value"]),r.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),r.languages.insertBefore("aspnet",r.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:r.languages.csharp||{}}})}return sd}var ld,tw;function Cte(){if(tw)return ld;tw=1,ld=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 ld}var ud,rw;function Dte(){if(rw)return ud;rw=1,ud=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 ud}var cd,nw;function Lte(){if(nw)return cd;nw=1,cd=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(r){function n(d,p){return d.replace(/<<(\d+)>>/g,function(g,m){return p[+m]})}function a(d,p,g){return RegExp(n(d,p),g||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[o,s,l].join("|");r.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},r.languages.avs=r.languages.avisynth})(t)}return cd}var dd,aw;function Mte(){if(aw)return dd;aw=1,dd=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 dd}var pd,iw;function TI(){if(iw)return pd;iw=1,pd=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=r.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return fd}var gd,sw;function Pte(){if(sw)return gd;sw=1,gd=e,e.displayName="batch",e.aliases=[];function e(t){(function(r){var n=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;r.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:n,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:n,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return gd}var hd,lw;function $te(){if(lw)return hd;lw=1,hd=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 hd}var md,uw;function jte(){if(uw)return md;uw=1,md=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 md}var bd,cw;function Fte(){if(cw)return bd;cw=1,bd=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 bd}var yd,dw;function Bte(){if(dw)return yd;dw=1;var e=ca();yd=t,t.displayName="bison",t.aliases=[];function t(r){r.register(e),r.languages.bison=r.languages.extend("c",{}),r.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:r.languages.c}},comment:r.languages.c.comment,string:r.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return yd}var vd,pw;function Ute(){if(pw)return vd;pw=1,vd=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 vd}var Sd,fw;function Gte(){if(fw)return Sd;fw=1,Sd=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 Sd}var Ed,gw;function zte(){if(gw)return Ed;gw=1,Ed=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 Ed}var xd,hw;function qte(){if(hw)return xd;hw=1,xd=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 xd}var wd,mw;function Hte(){if(mw)return wd;mw=1,wd=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 wd}var _d,bw;function Wte(){if(bw)return _d;bw=1,_d=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 _d}var Td,yw;function Vte(){if(yw)return Td;yw=1;var e=jy();Td=t,t.displayName="chaiscript",t.aliases=[];function t(r){r.register(e),r.languages.chaiscript=r.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[r.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),r.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),r.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Td}var Ad,vw;function Yte(){if(vw)return Ad;vw=1,Ad=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 Ad}var Od,Sw;function Kte(){if(Sw)return Od;Sw=1,Od=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 Od}var kd,Ew;function Xte(){if(Ew)return kd;Ew=1,kd=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 kd}var Rd,xw;function Zte(){if(xw)return Rd;xw=1,Rd=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 Rd}var Id,ww;function Jte(){if(ww)return Id;ww=1,Id=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(r){var n=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:a}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript})(t)}return Id}var Nd,_w;function Qte(){if(_w)return Nd;_w=1,Nd=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 Nd}var Cd,Tw;function ere(){if(Tw)return Cd;Tw=1,Cd=e,e.displayName="coq",e.aliases=[];function e(t){(function(r){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),r.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Cd}var Dd,Aw;function Du(){if(Aw)return Dd;Aw=1,Dd=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(r){r.languages.ruby=r.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),r.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete r.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;r.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),r.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete r.languages.ruby.string,r.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),r.languages.rb=r.languages.ruby})(t)}return Dd}var Ld,Ow;function tre(){if(Ow)return Ld;Ow=1;var e=Du();Ld=t,t.displayName="crystal",t.aliases=[];function t(r){r.register(e),function(n){n.languages.crystal=n.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,n.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),n.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:n.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:n.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(r)}return Ld}var Md,kw;function rre(){if(kw)return Md;kw=1;var e=Cu();Md=t,t.displayName="cshtml",t.aliases=["razor"];function t(r){r.register(e),function(n){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(S,O){for(var _=0;_/g,function(){return"(?:"+S+")"});return S.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var s=o(/\((?:[^()'"@/]|||)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),c=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=a,r.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return $d}var jd,Nw;function ire(){if(Nw)return jd;Nw=1,jd=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return jd}var Fd,Cw;function ore(){if(Cw)return Fd;Cw=1,Fd=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 Fd}var Bd,Dw;function sre(){if(Dw)return Bd;Dw=1,Bd=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 Bd}var Ud,Lw;function lre(){if(Lw)return Ud;Lw=1,Ud=e,e.displayName="dart",e.aliases=[];function e(t){(function(r){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};r.languages.dart=r.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),r.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.dart}}},string:/[\s\S]+/}},string:void 0}),r.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),r.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return Ud}var Gd,Mw;function ure(){if(Mw)return Gd;Mw=1,Gd=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(r){r.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return Gd}var zd,Pw;function cre(){if(Pw)return zd;Pw=1,zd=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 zd}var qd,$w;function dre(){if($w)return qd;$w=1,qd=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 qd}var Hd,jw;function pre(){if(jw)return Hd;jw=1,Hd=e,e.displayName="diff",e.aliases=[];function e(t){(function(r){r.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(a){var i=n[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),r.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(r.languages.diff,"PREFIXES",{value:n})})(t)}return Hd}var Wd,Fw;function er(){if(Fw)return Wd;Fw=1,Wd=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(r){function n(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(r.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,s){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(o,function(c){if(typeof s=="function"&&!s(c))return c;for(var d=l.length,p;a.code.indexOf(p=n(i,d))!==-1;)++d;return l[d]=c,p}),a.grammar=r.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=r.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(c){for(var d=0;d=s.length);d++){var p=c[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var g=s[o],m=a.tokenStack[g],b=typeof p=="string"?p:p.content,v=n(i,g),S=b.indexOf(v);if(S>-1){++o;var O=b.substring(0,S),_=new r.Token(i,r.tokenize(m,a.grammar),"language-"+i,m),w=b.substring(S+v.length),A=[];O&&A.push.apply(A,l([O])),A.push(_),w&&A.push.apply(A,l([w])),typeof p=="string"?c.splice.apply(c,[d,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return c}l(a.tokens)}}})})(t)}return Wd}var Vd,Bw;function fre(){if(Bw)return Vd;Bw=1;var e=er();Vd=t,t.displayName="django",t.aliases=["jinja2"];function t(r){r.register(e),function(n){n.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=n.languages["markup-templating"];n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),n.languages.jinja2=n.languages.django,n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(r)}return Vd}var Yd,Uw;function gre(){if(Uw)return Yd;Uw=1,Yd=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 Yd}var Kd,Gw;function hre(){if(Gw)return Kd;Gw=1,Kd=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(r){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(d,p){return d=d.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(d,p)}r.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},r.languages.dockerfile=r.languages.docker})(t)}return Kd}var Xd,zw;function mre(){if(zw)return Xd;zw=1,Xd=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(r){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:r.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return n}),s)}r.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},r.languages.gv=r.languages.dot})(t)}return Xd}var Zd,qw;function bre(){if(qw)return Zd;qw=1,Zd=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 Zd}var Qd,Hw;function yre(){if(Hw)return Qd;Hw=1,Qd=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 Qd}var Jd,Ww;function vre(){if(Ww)return Jd;Ww=1,Jd=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 Jd}var ep,Vw;function Sre(){if(Vw)return ep;Vw=1;var e=er();ep=t,t.displayName="ejs",t.aliases=["eta"];function t(r){r.register(e),function(n){n.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:n.languages.javascript}},n.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;n.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),n.languages.eta=n.languages.ejs}(r)}return ep}var tp,Yw;function Ere(){if(Yw)return tp;Yw=1,tp=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(r){r.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return tp}var rp,Kw;function xre(){if(Kw)return rp;Kw=1,rp=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 rp}var np,Xw;function wre(){if(Xw)return np;Xw=1;var e=Du(),t=er();np=r,r.displayName="erb",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})}(n)}return np}var ap,Zw;function _re(){if(Zw)return ap;Zw=1,ap=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 ap}var ip,Qw;function OI(){if(Qw)return ip;Qw=1,ip=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 ip}var op,Jw;function Tre(){if(Jw)return op;Jw=1;var e=OI(),t=er();op=r,r.displayName="etlua",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})}(n)}return op}var sp,e_;function Are(){if(e_)return sp;e_=1,sp=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 sp}var lp,t_;function Ore(){if(t_)return lp;t_=1,lp=e,e.displayName="factor",e.aliases=[];function e(t){(function(r){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(d){i[d].pattern=s(l[d])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(c),r.languages.factor=i})(t)}return lp}var up,r_;function kre(){if(r_)return up;r_=1,up=e,e.displayName="$false",e.aliases=[];function e(t){(function(r){r.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return cp}var dp,a_;function Ire(){if(a_)return dp;a_=1,dp=e,e.displayName="flow",e.aliases=[];function e(t){(function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),r.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return dp}var pp,i_;function Nre(){if(i_)return pp;i_=1,pp=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 pp}var fp,o_;function Cre(){if(o_)return fp;o_=1,fp=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 fp}var gp,s_;function Dre(){if(s_)return gp;s_=1;var e=er();gp=t,t.displayName="ftl",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,n.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},n.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");n.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),n.hooks.add("after-tokenize",function(s){n.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(r)}return gp}var hp,l_;function Lre(){if(l_)return hp;l_=1,hp=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 hp}var mp,u_;function Mre(){if(u_)return mp;u_=1,mp=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 mp}var bp,c_;function Pre(){if(c_)return bp;c_=1,bp=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 bp}var yp,d_;function $re(){if(d_)return yp;d_=1,yp=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 yp}var vp,p_;function jre(){if(p_)return vp;p_=1,vp=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(r){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;r.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return vp}var Sp,f_;function Fre(){if(f_)return Sp;f_=1,Sp=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 Sp}var Ep,g_;function Bre(){if(g_)return Ep;g_=1;var e=ca();Ep=t,t.displayName="glsl",t.aliases=[];function t(r){r.register(e),r.languages.glsl=r.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Ep}var xp,h_;function Ure(){if(h_)return xp;h_=1,xp=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 xp}var wp,m_;function Gre(){if(m_)return wp;m_=1,wp=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 wp}var _p,b_;function zre(){if(b_)return _p;b_=1,_p=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 _p}var Tp,y_;function qre(){if(y_)return Tp;y_=1,Tp=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 Tp}var Ap,v_;function Hre(){if(v_)return Ap;v_=1,Ap=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var a=n.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return a[i+O]}function s(O,_){_=_||0;for(var w=0;w0)){var b=l(/^\{$/,/^\}$/);if(b===-1)continue;for(var v=i;v=0&&c(S,"variable-input")}}}}})}return Ap}var Op,S_;function Wre(){if(S_)return Op;S_=1,Op=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(r){if(r.language==="groovy"&&r.type==="string"){var n=r.content.value[0];if(n!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;n==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),r.content.value=r.content.value.replace(/</g,"<").replace(/&/g,"&"),r.content=t.highlight(r.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),r.classes.push(n==="/"?"regex":"gstring")}}})}return Op}var kp,E_;function Vre(){if(E_)return kp;E_=1;var e=Du();kp=t,t.displayName="haml",t.aliases=[];function t(r){r.register(e),function(n){n.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:n.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:n.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:n.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:n.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:n.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:n.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},n.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;n.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),n.languages.hbs=n.languages.handlebars}(r)}return Rp}var Ip,w_;function Fy(){if(w_)return Ip;w_=1,Ip=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 Ip}var Np,__;function Kre(){if(__)return Np;__=1,Np=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 Np}var Cp,T_;function Xre(){if(T_)return Cp;T_=1,Cp=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 Cp}var Dp,A_;function Zre(){if(A_)return Dp;A_=1;var e=ca();Dp=t,t.displayName="hlsl",t.aliases=[];function t(r){r.register(e),r.languages.hlsl=r.languages.extend("c",{"class-name":[r.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Dp}var Lp,O_;function Qre(){if(O_)return Lp;O_=1,Lp=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 Lp}var Mp,k_;function Jre(){if(k_)return Mp;k_=1,Mp=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 Mp}var Pp,R_;function ene(){if(R_)return Pp;R_=1,Pp=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 Pp}var $p,I_;function tne(){if(I_)return $p;I_=1,$p=e,e.displayName="http",e.aliases=[];function e(t){(function(r){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}r.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:r.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:r.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:r.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:r.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=r.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function s(p){var g=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var l;for(var c in i)if(i[c]){l=l||{};var d=o[c]?s(c):c;l[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[c]}}l&&r.languages.insertBefore("http","header",l)})(t)}return $p}var jp,N_;function rne(){if(N_)return jp;N_=1,jp=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 jp}var Fp,C_;function nne(){if(C_)return Fp;C_=1,Fp=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 Fp}var Bp,D_;function ane(){if(D_)return Bp;D_=1,Bp=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(r){function n(c,d){return d<=0?/[]/.source:c.replace(//g,function(){return n(c,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};r.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=r.languages["icu-message-format"],r.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=r.languages["icu-message-format"]})(t)}return Bp}var Up,L_;function ine(){if(L_)return Up;L_=1;var e=Fy();Up=t,t.displayName="idris",t.aliases=["idr"];function t(r){r.register(e),r.languages.idris=r.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),r.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.idr=r.languages.idris}return Up}var Gp,M_;function one(){if(M_)return Gp;M_=1,Gp=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 Gp}var zp,P_;function sne(){if(P_)return zp;P_=1,zp=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(r){r.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},r.languages.gitignore=r.languages.ignore,r.languages.hgignore=r.languages.ignore,r.languages.npmignore=r.languages.ignore})(t)}return zp}var qp,$_;function lne(){if($_)return qp;$_=1,qp=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 qp}var Hp,j_;function une(){if(j_)return Hp;j_=1,Hp=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 Hp}var Wp,F_;function cne(){if(F_)return Wp;F_=1,Wp=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 Vp}var Yp,U_;function By(){if(U_)return Yp;U_=1,Yp=e,e.displayName="java",e.aliases=[];function e(t){(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Yp}var Kp,G_;function Lu(){if(G_)return Kp;G_=1,Kp=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(r){var n=r.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,s){var l="doc-comment",c=r.languages[o];if(c){var d=c[l];if(!d){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=r.languages.insertBefore(o,"comment",p),d=c[l]}if(d instanceof RegExp&&(d=c[l]={pattern:d}),Array.isArray(d))for(var g=0,m=d.length;g)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(n)}return Xp}var Zp,q_;function fne(){if(q_)return Zp;q_=1,Zp=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 Zp}var Qp,H_;function gne(){if(H_)return Qp;H_=1,Qp=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 Qp}var Jp,W_;function hne(){if(W_)return Jp;W_=1,Jp=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 Jp}var ef,V_;function mne(){if(V_)return ef;V_=1,ef=e,e.displayName="jq",e.aliases=[];function e(t){(function(r){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=r.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return ef}var tf,Y_;function bne(){if(Y_)return tf;Y_=1,tf=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(r){r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(c,d){return RegExp(c.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}r.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=k.length)return;var L=I[D];if(typeof L=="string"||typeof L.content=="string"){var j=k[w],z=typeof L=="string"?L:L.content,q=z.indexOf(j);if(q!==-1){++w;var H=z.substring(0,q),V=p(A[j]),K=z.substring(q+j.length),G=[];if(H&&G.push(H),G.push(V),K){var W=[K];N(W),G.push.apply(G,W)}typeof L=="string"?(I.splice.apply(I,[D,1].concat(G)),D+=G.length-1):L.content=G}}else{var Q=L.content;Array.isArray(Q)?N(Q):N([Q])}}}return N(E),new r.Token(O,E,"language-"+O,v)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};r.hooks.add("after-tokenize",function(v){if(!(v.language in m))return;function S(O){for(var _=0,w=O.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var n=r.languages.extend("typescript",{});delete n["class-name"],r.languages.typescript["class-name"].inside=n,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),r.languages.ts=r.languages.typescript})(t)}return nf}var af,Z_;function vne(){if(Z_)return af;Z_=1;var e=Lu(),t=Uy();af=r,r.displayName="jsdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(n)}return af}var of,Q_;function Gy(){if(Q_)return of;Q_=1,of=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 of}var sf,J_;function Sne(){if(J_)return sf;J_=1;var e=Gy();sf=t,t.displayName="json5",t.aliases=[];function t(r){r.register(e),function(n){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;n.languages.json5=n.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(r)}return sf}var lf,eT;function Ene(){if(eT)return lf;eT=1;var e=Gy();lf=t,t.displayName="jsonp",t.aliases=[];function t(r){r.register(e),r.languages.jsonp=r.languages.extend("json",{punctuation:/[{}[\]();,.]/}),r.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return lf}var uf,tT;function xne(){if(tT)return uf;tT=1,uf=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 uf}var cf,rT;function kI(){if(rT)return cf;rT=1,cf=e,e.displayName="jsx",e.aliases=[];function e(t){(function(r){var n=r.util.clone(r.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,p){return d=d.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(d,p)}o=s(o).source,r.languages.jsx=r.languages.extend("markup",n),r.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=n.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var l=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(l).join(""):""},c=function(d){for(var p=[],g=0;g0&&p[p.length-1].tagName===l(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:l(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:b=!0),(b||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var v=l(m);g0&&(typeof d[g-1]=="string"||d[g-1].type==="plain-text")&&(v=l(d[g-1])+v,d.splice(g-1,1),g--),d[g]=new r.Token("plain-text",v,null,v)}m.content&&typeof m.content!="string"&&c(m.content)}};r.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||c(d.tokens)})})(t)}return cf}var df,nT;function wne(){if(nT)return df;nT=1,df=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 df}var pf,aT;function _ne(){if(aT)return pf;aT=1,pf=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 pf}var ff,iT;function Tne(){if(iT)return ff;iT=1,ff=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 ff}var gf,oT;function Ane(){if(oT)return gf;oT=1,gf=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin})(t)}return gf}var hf,sT;function One(){if(sT)return hf;sT=1,hf=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(r){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,n),o)}r.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},r.languages.kum=r.languages.kumir})(t)}return hf}var mf,lT;function kne(){if(lT)return mf;lT=1,mf=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 mf}var bf,uT;function Rne(){if(uT)return bf;uT=1,bf=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(r){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:n,alias:"regex"}};r.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},r.languages.tex=r.languages.latex,r.languages.context=r.languages.latex})(t)}return bf}var yf,cT;function Mu(){if(cT)return yf;cT=1;var e=er();yf=t,t.displayName="php",t.aliases=[];function t(r){r.register(e),function(n){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;n.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:n.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:c}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:c}}];n.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),n.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;n.languages["markup-templating"].buildPlaceholders(p,"php",g)}}),n.hooks.add("after-tokenize",function(p){n.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(r)}return yf}var vf,dT;function Ine(){if(dT)return vf;dT=1;var e=er(),t=Mu();vf=r,r.displayName="latte",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(n)}return vf}var Sf,pT;function Nne(){if(pT)return Sf;pT=1,Sf=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 Sf}var Ef,fT;function zy(){if(fT)return Ef;fT=1,Ef=e,e.displayName="scheme",e.aliases=[];function e(t){(function(r){r.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return Ef}var xf,gT;function Cne(){if(gT)return xf;gT=1;var e=zy();xf=t,t.displayName="lilypond",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=n.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:n.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,n.languages.ly=s}(r)}return xf}var wf,hT;function Dne(){if(hT)return wf;hT=1;var e=er();wf=t,t.displayName="liquid",t.aliases=[];function t(r){r.register(e),r.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},r.hooks.add("before-tokenize",function(n){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;r.languages["markup-templating"].buildPlaceholders(n,"liquid",a,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"liquid")})}return wf}var _f,mT;function Lne(){if(mT)return _f;mT=1,_f=e,e.displayName="lisp",e.aliases=[];function e(t){(function(r){function n(v){return RegExp(/(\()/.source+"(?:"+v+")"+/(?=[\s\)])/.source)}function a(v){return RegExp(/([\s([])/.source+"(?:"+v+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",c="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+d+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:g},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=b,p.defun.inside.arguments=r.util.clone(b),p.defun.inside.arguments.inside.sublist=b,r.languages.lisp=p,r.languages.elisp=p,r.languages.emacs=p,r.languages["emacs-lisp"]=p})(t)}return _f}var Tf,bT;function Mne(){if(bT)return Tf;bT=1,Tf=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 Tf}var Af,yT;function Pne(){if(yT)return Af;yT=1,Af=e,e.displayName="llvm",e.aliases=[];function e(t){(function(r){r.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return Af}var Of,vT;function $ne(){if(vT)return Of;vT=1,Of=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 Of}var kf,ST;function jne(){if(ST)return kf;ST=1,kf=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 kf}var Rf,ET;function Fne(){if(ET)return Rf;ET=1,Rf=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 Rf}var If,xT;function Bne(){if(xT)return If;xT=1,If=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 If}var Nf,wT;function Une(){if(wT)return Nf;wT=1,Nf=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(r){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(g){return g=g.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(r.languages.markdown[g].inside.content.inside[m]=r.languages.markdown[m])})}),r.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function m(b){if(!(!b||typeof b=="string"))for(var v=0,S=b.length;v",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(g){var m=g.replace(l,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,v){if(v=v.toLowerCase(),v[0]==="#"){var S;return v[1]==="x"?S=parseInt(v.slice(2),16):S=Number(v.slice(1)),d(S)}else{var O=c[v];return O||b}}),m}r.languages.md=r.languages.markdown})(t)}return Nf}var Cf,_T;function Gne(){if(_T)return Cf;_T=1,Cf=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 Cf}var Df,TT;function zne(){if(TT)return Df;TT=1,Df=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(r){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;r.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return Df}var Lf,AT;function qne(){if(AT)return Lf;AT=1,Lf=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 Lf}var Mf,OT;function Hne(){if(OT)return Mf;OT=1,Mf=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 Mf}var Pf,kT;function Wne(){if(kT)return Pf;kT=1,Pf=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 Pf}var $f,RT;function Vne(){if(RT)return $f;RT=1,$f=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(r){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(o){return o.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";r.languages.mongodb=r.languages.extend("javascript",{}),r.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),r.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},r.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return $f}var jf,IT;function Yne(){if(IT)return jf;IT=1,jf=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 jf}var Ff,NT;function Kne(){if(NT)return Ff;NT=1,Ff=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 Ff}var Bf,CT;function Xne(){if(CT)return Bf;CT=1,Bf=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 Bf}var Uf,DT;function Zne(){if(DT)return Uf;DT=1,Uf=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 Uf}var Gf,LT;function Qne(){if(LT)return Gf;LT=1,Gf=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 Gf}var zf,MT;function Jne(){if(MT)return zf;MT=1,zf=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(r){var n=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};r.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},r.languages.nani=r.languages.naniscript,r.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var d=o(c);i(d)||(c.type="bad-line",c.content=d)}})});function i(s){for(var l="[]{}",c=[],d=0;d=&|$!]/}}return qf}var Hf,$T;function tae(){if($T)return Hf;$T=1,Hf=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 Hf}var Wf,jT;function rae(){if(jT)return Wf;jT=1,Wf=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 Wf}var Vf,FT;function nae(){if(FT)return Vf;FT=1,Vf=e,e.displayName="nginx",e.aliases=[];function e(t){(function(r){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;r.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(t)}return Vf}var Yf,BT;function aae(){if(BT)return Yf;BT=1,Yf=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 Yf}var Kf,UT;function iae(){if(UT)return Kf;UT=1,Kf=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 Kf}var Xf,GT;function oae(){if(GT)return Xf;GT=1,Xf=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 Xf}var Zf,zT;function sae(){if(zT)return Zf;zT=1;var e=ca();Zf=t,t.displayName="objectivec",t.aliases=["objc"];function t(r){r.register(e),r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec}return Zf}var Qf,qT;function lae(){if(qT)return Qf;qT=1,Qf=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 Qf}var Jf,HT;function uae(){if(HT)return Jf;HT=1;var e=ca();Jf=t,t.displayName="opencl",t.aliases=[];function t(r){r.register(e),function(n){n.languages.opencl=n.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),n.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};n.languages.insertBefore("c","keyword",a),n.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},n.languages.insertBefore("cpp","keyword",a))}(r)}return Jf}var eg,WT;function cae(){if(WT)return eg;WT=1,eg=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 eg}var tg,VT;function dae(){if(VT)return tg;VT=1,tg=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 tg}var rg,YT;function pae(){if(YT)return rg;YT=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 r=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return r=r.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+r+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return rg}var ng,KT;function fae(){if(KT)return ng;KT=1,ng=e,e.displayName="parser",e.aliases=[];function e(t){(function(r){var n=r.languages.parser=r.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=r.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),r.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(t)}return ng}var ag,XT;function gae(){if(XT)return ag;XT=1,ag=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 ag}var ig,ZT;function hae(){if(ZT)return ig;ZT=1,ig=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(r){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=r.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return ig}var og,QT;function mae(){if(QT)return og;QT=1,og=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 og}var sg,JT;function bae(){if(JT)return sg;JT=1,sg=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 sg}var lg,eA;function yae(){if(eA)return lg;eA=1,lg=e,e.displayName="perl",e.aliases=[];function e(t){(function(r){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;r.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return lg}var ug,tA;function vae(){if(tA)return ug;tA=1;var e=Mu();ug=t,t.displayName="phpExtras",t.aliases=[];function t(r){r.register(e),r.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return ug}var cg,rA;function Sae(){if(rA)return cg;rA=1;var e=Mu(),t=Lu();cg=r,r.displayName="phpdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(n)}return cg}var dg,nA;function Eae(){if(nA)return dg;nA=1;var e=$y();dg=t,t.displayName="plsql",t.aliases=[];function t(r){r.register(e),r.languages.plsql=r.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),r.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return dg}var pg,aA;function xae(){if(aA)return pg;aA=1,pg=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 pg}var fg,iA;function wae(){if(iA)return fg;iA=1,fg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(r){var n=r.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(t)}return fg}var gg,oA;function _ae(){if(oA)return gg;oA=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 hg,sA;function Tae(){if(sA)return hg;sA=1,hg=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 hg}var mg,lA;function Aae(){if(lA)return mg;lA=1,mg=e,e.displayName="promql",e.aliases=[];function e(t){(function(r){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=n.concat(a,i);r.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return mg}var bg,uA;function Oae(){if(uA)return bg;uA=1,bg=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 bg}var yg,cA;function kae(){if(cA)return yg;cA=1,yg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(r){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;r.languages.protobuf=r.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),r.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return yg}var vg,dA;function Rae(){if(dA)return vg;dA=1,vg=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 vg}var Sg,pA;function Iae(){if(pA)return Sg;pA=1,Sg=e,e.displayName="pug",e.aliases=[];function e(t){(function(r){r.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:r.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:r.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:r.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:r.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:r.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:r.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:r.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=a.length;o",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:r.languages[l.language]}}})}r.languages.insertBefore("pug","filter",i)})(t)}return Sg}var Eg,fA;function Nae(){if(fA)return Eg;fA=1,Eg=e,e.displayName="puppet",e.aliases=[];function e(t){(function(r){r.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:r.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];r.languages.puppet.heredoc[0].inside.interpolation=n,r.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(t)}return Eg}var xg,gA;function Cae(){if(gA)return xg;gA=1,xg=e,e.displayName="pure",e.aliases=[];function e(t){(function(r){r.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),r.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:r.util.clone(r.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=r.util.clone(r.languages[o]),r.languages.insertBefore("pure","inline-lang",s)}}),r.languages.c&&(r.languages.pure["inline-lang"].inside.rest=r.util.clone(r.languages.c))})(t)}return xg}var wg,hA;function Dae(){if(hA)return wg;hA=1,wg=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 wg}var _g,mA;function Lae(){if(mA)return _g;mA=1;var e=Fy();_g=t,t.displayName="purescript",t.aliases=["purs"];function t(r){r.register(e),r.languages.purescript=r.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[r.languages.haskell.operator[0],r.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),r.languages.purs=r.languages.purescript}return _g}var Tg,bA;function Mae(){if(bA)return Tg;bA=1,Tg=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 Tg}var Ag,yA;function Pae(){if(yA)return Ag;yA=1,Ag=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 Ag}var Og,vA;function $ae(){if(vA)return Og;vA=1,Og=e,e.displayName="qml",e.aliases=[];function e(t){(function(r){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),r.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Og}var kg,SA;function jae(){if(SA)return kg;SA=1,kg=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 kg}var Rg,EA;function Fae(){if(EA)return Rg;EA=1,Rg=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(r){function n(b,v){return b.replace(/<<(\d+)>>/g,function(S,O){return"(?:"+v[+O]+")"})}function a(b,v,S){return RegExp(n(b,v),S||"")}function i(b,v){for(var S=0;S>/g,function(){return"(?:"+b+")"});return b.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),c=/\b[A-Za-z_]\w*\b/.source,d=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;r.languages.qsharp=r.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),r.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[g]),2);r.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:r.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Rg}var Ig,xA;function Bae(){if(xA)return Ig;xA=1,Ig=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 Ig}var Ng,wA;function Uae(){if(wA)return Ng;wA=1;var e=zy();Ng=t,t.displayName="racket",t.aliases=["rkt"];function t(r){r.register(e),r.languages.racket=r.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),r.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),r.languages.rkt=r.languages.racket}return Ng}var Cg,_A;function Gae(){if(_A)return Cg;_A=1,Cg=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 Cg}var Dg,TA;function zae(){if(TA)return Dg;TA=1,Dg=e,e.displayName="regex",e.aliases=[];function e(t){(function(r){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",l=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,escape:a}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Lg}var Mg,OA;function Hae(){if(OA)return Mg;OA=1,Mg=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 Mg}var Pg,kA;function Wae(){if(kA)return Pg;kA=1,Pg=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 Pg}var $g,RA;function Vae(){if(RA)return $g;RA=1,$g=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 $g}var jg,IA;function Yae(){if(IA)return jg;IA=1,jg=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 jg}var Fg,NA;function Kae(){if(NA)return Fg;NA=1,Fg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(r){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(c,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in d)p[g]=d[g];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return c}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};r.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:n},r.languages.robot=r.languages.robotframework})(t)}return Fg}var Bg,CA;function Xae(){if(CA)return Bg;CA=1,Bg=e,e.displayName="rust",e.aliases=[];function e(t){(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(t)}return Bg}var Ug,DA;function Zae(){if(DA)return Ug;DA=1,Ug=e,e.displayName="sas",e.aliases=[];function e(t){(function(r){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},v={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,w={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:g,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:a,"numeric-constant":i,punctuation:p,string:d}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};r.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:r.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:r.languages.groovy},keyword:A,"submit-statement":O,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:r.languages.lua},keyword:A,"submit-statement":O,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":w,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:l,keyword:A,function:g,format:b,altformat:v,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":w,comment:c,function:g,format:b,altformat:v,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:d,step:l,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return Ug}var Gg,LA;function Qae(){if(LA)return Gg;LA=1,Gg=e,e.displayName="sass",e.aliases=[];function e(t){(function(r){r.languages.sass=r.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),r.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete r.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];r.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:a,important:r.languages.sass.important}}}),delete r.languages.sass.property,delete r.languages.sass.important,r.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return Gg}var zg,MA;function Jae(){if(MA)return zg;MA=1;var e=By();zg=t,t.displayName="scala",t.aliases=[];function t(r){r.register(e),r.languages.scala=r.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),r.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.scala}}},string:/[\s\S]+/}}}),delete r.languages.scala["class-name"],delete r.languages.scala.function}return zg}var qg,PA;function eie(){if(PA)return qg;PA=1,qg=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 qg}var Hg,$A;function tie(){if($A)return Hg;$A=1;var e=TI();Hg=t,t.displayName="shellSession",t.aliases=[];function t(r){r.register(e),function(n){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");n.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:n.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},n.languages["sh-session"]=n.languages.shellsession=n.languages["shell-session"]}(r)}return Hg}var Wg,jA;function rie(){if(jA)return Wg;jA=1,Wg=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 Wg}var Vg,FA;function nie(){if(FA)return Vg;FA=1,Vg=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 Vg}var Yg,BA;function aie(){if(BA)return Yg;BA=1;var e=er();Yg=t,t.displayName="smarty",t.aliases=[];function t(r){r.register(e),function(n){n.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:n.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},n.languages.smarty["embedded-php"].inside.smarty.inside=n.languages.smarty,n.languages.smarty.string[0].inside.interpolation.inside.expression.inside=n.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");n.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",c=!1;n.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(d){return d===l&&(c=!1),c?!1:(d===s&&(c=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(r)}return Yg}var Kg,UA;function iie(){if(UA)return Kg;UA=1,Kg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(r){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;r.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},r.languages.sml["class-name"][0].inside=r.languages.sml,r.languages.smlnj=r.languages.sml})(t)}return Kg}var Xg,GA;function oie(){if(GA)return Xg;GA=1,Xg=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 Xg}var Zg,zA;function sie(){if(zA)return Zg;zA=1,Zg=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(r){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};r.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},r.languages.sln=r.languages["solution-file"]})(t)}return Zg}var Qg,qA;function lie(){if(qA)return Qg;qA=1;var e=er();Qg=t,t.displayName="soy",t.aliases=[];function t(r){r.register(e),function(n){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;n.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},n.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",c="{/literal}",d=!1;n.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===c&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(r)}return Qg}var Jg,HA;function RI(){if(HA)return Jg;HA=1,Jg=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 Jg}var eh,WA;function uie(){if(WA)return eh;WA=1;var e=RI();eh=t,t.displayName="sparql",t.aliases=["rq"];function t(r){r.register(e),r.languages.sparql=r.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),r.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),r.languages.rq=r.languages.sparql}return eh}var th,VA;function cie(){if(VA)return th;VA=1,th=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 th}var rh,YA;function die(){if(YA)return rh;YA=1,rh=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 rh}var nh,KA;function pie(){if(KA)return nh;KA=1,nh=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 nh}var ah,XA;function fie(){if(XA)return ah;XA=1,ah=e,e.displayName="stan",e.aliases=[];function e(t){(function(r){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;r.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},r.languages.stan.constraint.inside.expression.inside=r.languages.stan})(t)}return ah}var ih,ZA;function gie(){if(ZA)return ih;ZA=1,ih=e,e.displayName="stylus",e.aliases=[];function e(t){(function(r){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},r.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return ih}var oh,QA;function hie(){if(QA)return oh;QA=1,oh=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=t.languages.swift})}return oh}var sh,JA;function mie(){if(JA)return sh;JA=1,sh=e,e.displayName="systemd",e.aliases=[];function e(t){(function(r){var n={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;r.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return sh}var lh,eO;function qy(){if(eO)return lh;eO=1,lh=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(r){function n(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=r.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,s),"class-feature":n("\\+",o,s),standard:n("",o,s)}}}}r.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return lh}var uh,tO;function bie(){if(tO)return uh;tO=1;var e=qy(),t=Cu();uh=r,r.displayName="t4Cs",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}return uh}var ch,rO;function II(){if(rO)return ch;rO=1;var e=AI();ch=t,t.displayName="vbnet",t.aliases=[];function t(r){r.register(e),r.languages.vbnet=r.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return ch}var dh,nO;function yie(){if(nO)return dh;nO=1;var e=qy(),t=II();dh=r,r.displayName="t4Vb",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}return dh}var ph,aO;function NI(){if(aO)return ph;aO=1,ph=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(r){var n=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return c});return RegExp(p,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(t)}return ph}var fh,iO;function vie(){if(iO)return fh;iO=1;var e=NI();fh=t,t.displayName="tap",t.aliases=[];function t(r){r.register(e),r.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:r.languages.yaml,alias:"language-yaml"}}}return fh}var gh,oO;function Sie(){if(oO)return gh;oO=1,gh=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 gh}var hh,sO;function Eie(){if(sO)return hh;sO=1,hh=e,e.displayName="textile",e.aliases=[];function e(t){(function(r){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(g,m){return RegExp(g.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+a+")"}),m||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:r.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=r.languages.textile=r.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=c,d.italic.inside=c,d.inserted.inside=c,d.deleted.inside=c,d.span.inside=c;var p=l.table.inside;p.inline=c.inline,p.link=c.link,p.image=c.image,p.footnote=c.footnote,p.acronym=c.acronym,p.mark=c.mark})(t)}return hh}var mh,lO;function xie(){if(lO)return mh;lO=1,mh=e,e.displayName="toml",e.aliases=[];function e(t){(function(r){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return n})}r.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return mh}var bh,uO;function wie(){if(uO)return bh;uO=1,bh=e,e.displayName="tremor",e.aliases=[];function e(t){(function(r){r.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;r.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.tremor}}},string:/[\s\S]+/}},r.languages.troy=r.languages.tremor,r.languages.trickle=r.languages.tremor})(t)}return bh}var yh,cO;function _ie(){if(cO)return yh;cO=1;var e=kI(),t=Uy();yh=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(n)}return yh}var vh,dO;function Tie(){if(dO)return vh;dO=1;var e=er();vh=t,t.displayName="tt2",t.aliases=[];function t(r){r.register(e),function(n){n.languages.tt2=n.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),n.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),n.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),n.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete n.languages.tt2.string,n.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;n.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(r)}return vh}var Sh,pO;function Aie(){if(pO)return Sh;pO=1;var e=er();Sh=t,t.displayName="twig",t.aliases=[];function t(r){r.register(e),r.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},r.hooks.add("before-tokenize",function(n){if(n.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;r.languages["markup-templating"].buildPlaceholders(n,"twig",a)}}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"twig")})}return Sh}var Eh,fO;function Oie(){if(fO)return Eh;fO=1,Eh=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(r){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;r.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},r.languages.tsconfig=r.languages.typoscript})(t)}return Eh}var xh,gO;function kie(){if(gO)return xh;gO=1,xh=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 xh}var wh,hO;function Rie(){if(hO)return wh;hO=1,wh=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 wh}var _h,mO;function Iie(){if(mO)return _h;mO=1,_h=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 _h}var Th,bO;function Nie(){if(bO)return Th;bO=1,Th=e,e.displayName="v",e.aliases=[];function e(t){(function(r){var n={pattern:/[\s\S]+/,inside:null};r.languages.v=r.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=r.languages.v,r.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),r.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),r.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:r.languages.v.generic.inside}}}})})(t)}return Th}var Ah,yO;function Cie(){if(yO)return Ah;yO=1,Ah=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 Ah}var Oh,vO;function Die(){if(vO)return Oh;vO=1,Oh=e,e.displayName="velocity",e.aliases=[];function e(t){(function(r){r.languages.velocity=r.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},r.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),r.languages.velocity.tag.inside["attr-value"].inside.rest=r.languages.velocity})(t)}return Oh}var kh,SO;function Lie(){if(SO)return kh;SO=1,kh=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 kh}var Rh,EO;function Mie(){if(EO)return Rh;EO=1,Rh=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 Rh}var Ih,xO;function Pie(){if(xO)return Ih;xO=1,Ih=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 Ih}var Nh,wO;function $ie(){if(wO)return Nh;wO=1,Nh=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 Nh}var Ch,_O;function jie(){if(_O)return Ch;_O=1,Ch=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 Ch}var Dh,TO;function Fie(){if(TO)return Dh;TO=1,Dh=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 Dh}var Lh,AO;function Bie(){if(AO)return Lh;AO=1,Lh=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(r){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};r.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in r.languages["web-idl"])o!=="class-name"&&(i[o]=r.languages["web-idl"][o]);r.languages.webidl=r.languages["web-idl"]})(t)}return Lh}var Mh,OO;function Uie(){if(OO)return Mh;OO=1,Mh=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 Mh}var Ph,kO;function Gie(){if(kO)return Ph;kO=1,Ph=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 Ph}var $h,RO;function zie(){if(RO)return $h;RO=1,$h=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 $h}var jh,IO;function qie(){if(IO)return jh;IO=1,jh=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(r){r.languages.xeora=r.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),r.languages.insertBefore("inside","punctuation",{variable:r.languages.xeora["function-inline"].inside.variable},r.languages.xeora["function-block"]),r.languages.xeoracube=r.languages.xeora})(t)}return jh}var Fh,NO;function Hie(){if(NO)return Fh;NO=1,Fh=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(r){function n(s,l){r.languages[s]&&r.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=r.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};n("csharp",i),n("fsharp",i),n("vbnet",o)})(t)}return Fh}var Bh,CO;function Wie(){if(CO)return Bh;CO=1,Bh=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 Bh}var Uh,DO;function Vie(){if(DO)return Uh;DO=1,Uh=e,e.displayName="xquery",e.aliases=[];function e(t){(function(r){r.languages.xquery=r.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),r.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,r.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,r.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:r.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===n(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:n(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=n(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=n(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new r.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&a(l.content)}};r.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return Uh}var Gh,LO;function Yie(){if(LO)return Gh;LO=1,Gh=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 Gh}var zh,MO;function Kie(){if(MO)return zh;MO=1,zh=e,e.displayName="zig",e.aliases=[];function e(t){(function(r){function n(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";r.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},r.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=r.languages.zig)})})(t)}return zh}var C=nte,Xie=C;C.register(gte());C.register(hte());C.register(mte());C.register(bte());C.register(yte());C.register(vte());C.register(Ste());C.register(Ete());C.register(xte());C.register(wte());C.register(_te());C.register(Tte());C.register(Ate());C.register(Ote());C.register(kte());C.register(Rte());C.register(Ite());C.register(Nte());C.register(Cte());C.register(Dte());C.register(Lte());C.register(Mte());C.register(TI());C.register(AI());C.register(Pte());C.register($te());C.register(jte());C.register(Fte());C.register(Bte());C.register(Ute());C.register(Gte());C.register(zte());C.register(qte());C.register(Hte());C.register(ca());C.register(Wte());C.register(Vte());C.register(Yte());C.register(Kte());C.register(Xte());C.register(Zte());C.register(Qte());C.register(Jte());C.register(ere());C.register(jy());C.register(tre());C.register(Cu());C.register(rre());C.register(nre());C.register(are());C.register(ire());C.register(ore());C.register(sre());C.register(lre());C.register(ure());C.register(cre());C.register(dre());C.register(pre());C.register(fre());C.register(gre());C.register(hre());C.register(mre());C.register(bre());C.register(yre());C.register(vre());C.register(Sre());C.register(Ere());C.register(xre());C.register(wre());C.register(_re());C.register(Tre());C.register(Are());C.register(Ore());C.register(kre());C.register(Rre());C.register(Ire());C.register(Nre());C.register(Cre());C.register(Dre());C.register(Lre());C.register(Mre());C.register(Pre());C.register($re());C.register(jre());C.register(Fre());C.register(Bre());C.register(Ure());C.register(Gre());C.register(zre());C.register(qre());C.register(Hre());C.register(Wre());C.register(Vre());C.register(Yre());C.register(Fy());C.register(Kre());C.register(Xre());C.register(Zre());C.register(Qre());C.register(Jre());C.register(ene());C.register(tne());C.register(rne());C.register(nne());C.register(ane());C.register(ine());C.register(one());C.register(sne());C.register(lne());C.register(une());C.register(cne());C.register(dne());C.register(By());C.register(pne());C.register(Lu());C.register(fne());C.register(gne());C.register(hne());C.register(mne());C.register(bne());C.register(yne());C.register(vne());C.register(Gy());C.register(Sne());C.register(Ene());C.register(xne());C.register(kI());C.register(wne());C.register(_ne());C.register(Tne());C.register(Ane());C.register(One());C.register(kne());C.register(Rne());C.register(Ine());C.register(Nne());C.register(Cne());C.register(Dne());C.register(Lne());C.register(Mne());C.register(Pne());C.register($ne());C.register(jne());C.register(OI());C.register(Fne());C.register(Bne());C.register(Une());C.register(er());C.register(Gne());C.register(zne());C.register(qne());C.register(Hne());C.register(Wne());C.register(Vne());C.register(Yne());C.register(Kne());C.register(Xne());C.register(Zne());C.register(Qne());C.register(Jne());C.register(eae());C.register(tae());C.register(rae());C.register(nae());C.register(aae());C.register(iae());C.register(oae());C.register(sae());C.register(lae());C.register(uae());C.register(cae());C.register(dae());C.register(pae());C.register(fae());C.register(gae());C.register(hae());C.register(mae());C.register(bae());C.register(yae());C.register(vae());C.register(Mu());C.register(Sae());C.register(Eae());C.register(xae());C.register(wae());C.register(_ae());C.register(Tae());C.register(Aae());C.register(Oae());C.register(kae());C.register(Rae());C.register(Iae());C.register(Nae());C.register(Cae());C.register(Dae());C.register(Lae());C.register(Mae());C.register(Pae());C.register($ae());C.register(jae());C.register(Fae());C.register(Bae());C.register(Uae());C.register(Gae());C.register(zae());C.register(qae());C.register(Hae());C.register(Wae());C.register(Vae());C.register(Yae());C.register(Kae());C.register(Du());C.register(Xae());C.register(Zae());C.register(Qae());C.register(Jae());C.register(zy());C.register(eie());C.register(tie());C.register(rie());C.register(nie());C.register(aie());C.register(iie());C.register(oie());C.register(sie());C.register(lie());C.register(uie());C.register(cie());C.register(die());C.register($y());C.register(pie());C.register(fie());C.register(gie());C.register(hie());C.register(mie());C.register(bie());C.register(qy());C.register(yie());C.register(vie());C.register(Sie());C.register(Eie());C.register(xie());C.register(wie());C.register(_ie());C.register(Tie());C.register(RI());C.register(Aie());C.register(Uy());C.register(Oie());C.register(kie());C.register(Rie());C.register(Iie());C.register(Nie());C.register(Cie());C.register(II());C.register(Die());C.register(Lie());C.register(Mie());C.register(Pie());C.register($ie());C.register(jie());C.register(Fie());C.register(Bie());C.register(Uie());C.register(Gie());C.register(zie());C.register(qie());C.register(Hie());C.register(Wie());C.register(Vie());C.register(NI());C.register(Yie());C.register(Kie());const Zie=pt(Xie);var CI=V7(Zie,fte);CI.supportedLanguages=Y7;const Qie=CI,Jie={'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"}},eoe=()=>{var v,S,O,_,w,A,x;const e=Pt(),t=P.useRef(null),{currentPlayingAudio:r,setCurrentPlayingAudio:n}=Ct(E=>E),[a,i]=P.useState(!1),[o,s]=P.useState(((v=e==null?void 0:e.properties)==null?void 0:v.boost)||0),{playingNode:l}=Po(E=>E);P.useEffect(()=>{var E;s(((E=e==null?void 0:e.properties)==null?void 0:E.boost)||0)},[e]),P.useEffect(()=>{const E=t.current,k=()=>{n(null),i(!1)};return E&&E.addEventListener("ended",k),()=>{E&&E.removeEventListener("ended",k)}},[n,a]),P.useEffect(()=>{i(!1)},[e]);const c=()=>{r!=null&&r.current&&r.current!==t.current&&(r.current.pause(),n(null)),t.current&&(t.current.paused?(t.current.play(),n(t),i(!0)):(t.current.pause(),n(null),i(!1)))};if(!e)return null;const d=!(l!=null&&l.ref_id)&&!!((S=e.properties)!=null&&S.image_url),p=!!((O=e.properties)!=null&&O.audio_EN),g=e.properties||{},m=(_=e.properties)==null?void 0:_.source_link,b=(w=e.properties)==null?void 0:w.pubkey;return h.jsxs(loe,{children:[d?h.jsx(ioe,{children:h.jsx("img",{alt:"img_a11y",onError:E=>{E.currentTarget.src="generic_placeholder_img.png",E.currentTarget.className="default-img"},src:(A=e.properties)==null?void 0:A.image_url})}):null,h.jsxs(noe,{grow:1,justify:"flex-start",pt:d?0:8,shrink:1,children:[h.jsxs(F,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[h.jsx(ri,{type:e.node_type||""}),m&&h.jsx(doe,{href:`${m}${m.includes("?")?"&":"?"}open=system`,target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(aoe,{children:Object.entries(g).filter(([E])=>E!=="media_url"&&E!=="link"&&E!=="pubkey").map(([E,k])=>h.jsx(roe,{hasAudio:p,isPlaying:a,label:toe(E),togglePlay:c,value:E==="date"&&k?ei(k*1e3).format("MMMM Do YYYY"):k},E))}),b&&h.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[h.jsx(Vl,{amt:o}),h.jsx(Sy,{content:e,count:o,refId:e.ref_id,updateCount:s})]})]}),p&&((x=e.properties)==null?void 0:x.audio_EN)&&h.jsx(coe,{ref:t,src:e.properties.audio_EN,children:h.jsx("track",{kind:"captions"})})]})},toe=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),roe=({label:e,value:t,hasAudio:r,isPlaying:n,togglePlay:a})=>{const i=t.length>140,o=Ct(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"||e==="Image Url"?null:h.jsxs(h.Fragment,{children:[h.jsxs(ooe,{className:dn("node-detail",{"node-detail__long":i}),children:[h.jsxs(mt,{className:"node-detail__label",children:[e,e==="Text"&&r&&h.jsx(uoe,{onClick:a,children:n?h.jsx(l1,{}):h.jsx(u1,{})})]}),e!=="Frame"&&e!=="Code"?h.jsx(mt,{className:"node-detail__value",children:qr(String(t),o)}):h.jsx(Qie,{language:"javascript",style:Jie,children:String(t)})]}),h.jsx(soe,{})]})},noe=B(F)` +|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(r.languages.diff,"PREFIXES",{value:n})})(t)}return Hd}var Wd,Fw;function er(){if(Fw)return Wd;Fw=1,Wd=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(r){function n(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(r.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,s){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(o,function(c){if(typeof s=="function"&&!s(c))return c;for(var d=l.length,p;a.code.indexOf(p=n(i,d))!==-1;)++d;return l[d]=c,p}),a.grammar=r.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=r.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(c){for(var d=0;d=s.length);d++){var p=c[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var g=s[o],m=a.tokenStack[g],b=typeof p=="string"?p:p.content,v=n(i,g),S=b.indexOf(v);if(S>-1){++o;var O=b.substring(0,S),_=new r.Token(i,r.tokenize(m,a.grammar),"language-"+i,m),w=b.substring(S+v.length),A=[];O&&A.push.apply(A,l([O])),A.push(_),w&&A.push.apply(A,l([w])),typeof p=="string"?c.splice.apply(c,[d,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return c}l(a.tokens)}}})})(t)}return Wd}var Vd,Bw;function fre(){if(Bw)return Vd;Bw=1;var e=er();Vd=t,t.displayName="django",t.aliases=["jinja2"];function t(r){r.register(e),function(n){n.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=n.languages["markup-templating"];n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),n.languages.jinja2=n.languages.django,n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(r)}return Vd}var Yd,Uw;function gre(){if(Uw)return Yd;Uw=1,Yd=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 Yd}var Kd,Gw;function hre(){if(Gw)return Kd;Gw=1,Kd=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(r){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(d,p){return d=d.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(d,p)}r.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},r.languages.dockerfile=r.languages.docker})(t)}return Kd}var Xd,zw;function mre(){if(zw)return Xd;zw=1,Xd=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(r){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:r.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return n}),s)}r.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},r.languages.gv=r.languages.dot})(t)}return Xd}var Zd,qw;function bre(){if(qw)return Zd;qw=1,Zd=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 Zd}var Jd,Hw;function yre(){if(Hw)return Jd;Hw=1,Jd=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 Jd}var Qd,Ww;function vre(){if(Ww)return Qd;Ww=1,Qd=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 Qd}var ep,Vw;function Sre(){if(Vw)return ep;Vw=1;var e=er();ep=t,t.displayName="ejs",t.aliases=["eta"];function t(r){r.register(e),function(n){n.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:n.languages.javascript}},n.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;n.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),n.languages.eta=n.languages.ejs}(r)}return ep}var tp,Yw;function Ere(){if(Yw)return tp;Yw=1,tp=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(r){r.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return tp}var rp,Kw;function xre(){if(Kw)return rp;Kw=1,rp=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 rp}var np,Xw;function wre(){if(Xw)return np;Xw=1;var e=Du(),t=er();np=r,r.displayName="erb",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})}(n)}return np}var ap,Zw;function _re(){if(Zw)return ap;Zw=1,ap=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 ap}var ip,Jw;function OI(){if(Jw)return ip;Jw=1,ip=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 ip}var op,Qw;function Tre(){if(Qw)return op;Qw=1;var e=OI(),t=er();op=r,r.displayName="etlua",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})}(n)}return op}var sp,e_;function Are(){if(e_)return sp;e_=1,sp=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 sp}var lp,t_;function Ore(){if(t_)return lp;t_=1,lp=e,e.displayName="factor",e.aliases=[];function e(t){(function(r){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(d){i[d].pattern=s(l[d])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(c),r.languages.factor=i})(t)}return lp}var up,r_;function kre(){if(r_)return up;r_=1,up=e,e.displayName="$false",e.aliases=[];function e(t){(function(r){r.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return cp}var dp,a_;function Ire(){if(a_)return dp;a_=1,dp=e,e.displayName="flow",e.aliases=[];function e(t){(function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),r.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return dp}var pp,i_;function Nre(){if(i_)return pp;i_=1,pp=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 pp}var fp,o_;function Cre(){if(o_)return fp;o_=1,fp=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 fp}var gp,s_;function Dre(){if(s_)return gp;s_=1;var e=er();gp=t,t.displayName="ftl",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,n.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},n.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");n.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),n.hooks.add("after-tokenize",function(s){n.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(r)}return gp}var hp,l_;function Lre(){if(l_)return hp;l_=1,hp=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 hp}var mp,u_;function Mre(){if(u_)return mp;u_=1,mp=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 mp}var bp,c_;function Pre(){if(c_)return bp;c_=1,bp=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 bp}var yp,d_;function $re(){if(d_)return yp;d_=1,yp=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 yp}var vp,p_;function jre(){if(p_)return vp;p_=1,vp=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(r){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;r.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return vp}var Sp,f_;function Fre(){if(f_)return Sp;f_=1,Sp=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 Sp}var Ep,g_;function Bre(){if(g_)return Ep;g_=1;var e=ca();Ep=t,t.displayName="glsl",t.aliases=[];function t(r){r.register(e),r.languages.glsl=r.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Ep}var xp,h_;function Ure(){if(h_)return xp;h_=1,xp=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 xp}var wp,m_;function Gre(){if(m_)return wp;m_=1,wp=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 wp}var _p,b_;function zre(){if(b_)return _p;b_=1,_p=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 _p}var Tp,y_;function qre(){if(y_)return Tp;y_=1,Tp=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 Tp}var Ap,v_;function Hre(){if(v_)return Ap;v_=1,Ap=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var a=n.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return a[i+O]}function s(O,_){_=_||0;for(var w=0;w0)){var b=l(/^\{$/,/^\}$/);if(b===-1)continue;for(var v=i;v=0&&c(S,"variable-input")}}}}})}return Ap}var Op,S_;function Wre(){if(S_)return Op;S_=1,Op=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(r){if(r.language==="groovy"&&r.type==="string"){var n=r.content.value[0];if(n!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;n==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),r.content.value=r.content.value.replace(/</g,"<").replace(/&/g,"&"),r.content=t.highlight(r.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),r.classes.push(n==="/"?"regex":"gstring")}}})}return Op}var kp,E_;function Vre(){if(E_)return kp;E_=1;var e=Du();kp=t,t.displayName="haml",t.aliases=[];function t(r){r.register(e),function(n){n.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:n.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:n.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:n.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:n.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:n.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:n.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},n.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;n.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),n.languages.hbs=n.languages.handlebars}(r)}return Rp}var Ip,w_;function Fy(){if(w_)return Ip;w_=1,Ip=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 Ip}var Np,__;function Kre(){if(__)return Np;__=1,Np=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 Np}var Cp,T_;function Xre(){if(T_)return Cp;T_=1,Cp=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 Cp}var Dp,A_;function Zre(){if(A_)return Dp;A_=1;var e=ca();Dp=t,t.displayName="hlsl",t.aliases=[];function t(r){r.register(e),r.languages.hlsl=r.languages.extend("c",{"class-name":[r.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Dp}var Lp,O_;function Jre(){if(O_)return Lp;O_=1,Lp=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 Lp}var Mp,k_;function Qre(){if(k_)return Mp;k_=1,Mp=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 Mp}var Pp,R_;function ene(){if(R_)return Pp;R_=1,Pp=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 Pp}var $p,I_;function tne(){if(I_)return $p;I_=1,$p=e,e.displayName="http",e.aliases=[];function e(t){(function(r){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}r.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:r.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:r.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:r.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:r.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=r.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function s(p){var g=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var l;for(var c in i)if(i[c]){l=l||{};var d=o[c]?s(c):c;l[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[c]}}l&&r.languages.insertBefore("http","header",l)})(t)}return $p}var jp,N_;function rne(){if(N_)return jp;N_=1,jp=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 jp}var Fp,C_;function nne(){if(C_)return Fp;C_=1,Fp=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 Fp}var Bp,D_;function ane(){if(D_)return Bp;D_=1,Bp=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(r){function n(c,d){return d<=0?/[]/.source:c.replace(//g,function(){return n(c,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};r.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=r.languages["icu-message-format"],r.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=r.languages["icu-message-format"]})(t)}return Bp}var Up,L_;function ine(){if(L_)return Up;L_=1;var e=Fy();Up=t,t.displayName="idris",t.aliases=["idr"];function t(r){r.register(e),r.languages.idris=r.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),r.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.idr=r.languages.idris}return Up}var Gp,M_;function one(){if(M_)return Gp;M_=1,Gp=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 Gp}var zp,P_;function sne(){if(P_)return zp;P_=1,zp=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(r){r.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},r.languages.gitignore=r.languages.ignore,r.languages.hgignore=r.languages.ignore,r.languages.npmignore=r.languages.ignore})(t)}return zp}var qp,$_;function lne(){if($_)return qp;$_=1,qp=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 qp}var Hp,j_;function une(){if(j_)return Hp;j_=1,Hp=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 Hp}var Wp,F_;function cne(){if(F_)return Wp;F_=1,Wp=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 Vp}var Yp,U_;function By(){if(U_)return Yp;U_=1,Yp=e,e.displayName="java",e.aliases=[];function e(t){(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Yp}var Kp,G_;function Lu(){if(G_)return Kp;G_=1,Kp=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(r){var n=r.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,s){var l="doc-comment",c=r.languages[o];if(c){var d=c[l];if(!d){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=r.languages.insertBefore(o,"comment",p),d=c[l]}if(d instanceof RegExp&&(d=c[l]={pattern:d}),Array.isArray(d))for(var g=0,m=d.length;g)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(n)}return Xp}var Zp,q_;function fne(){if(q_)return Zp;q_=1,Zp=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 Zp}var Jp,H_;function gne(){if(H_)return Jp;H_=1,Jp=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 Jp}var Qp,W_;function hne(){if(W_)return Qp;W_=1,Qp=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 Qp}var ef,V_;function mne(){if(V_)return ef;V_=1,ef=e,e.displayName="jq",e.aliases=[];function e(t){(function(r){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=r.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return ef}var tf,Y_;function bne(){if(Y_)return tf;Y_=1,tf=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(r){r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(c,d){return RegExp(c.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}r.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=k.length)return;var L=I[D];if(typeof L=="string"||typeof L.content=="string"){var j=k[w],z=typeof L=="string"?L:L.content,q=z.indexOf(j);if(q!==-1){++w;var H=z.substring(0,q),V=p(A[j]),K=z.substring(q+j.length),G=[];if(H&&G.push(H),G.push(V),K){var W=[K];N(W),G.push.apply(G,W)}typeof L=="string"?(I.splice.apply(I,[D,1].concat(G)),D+=G.length-1):L.content=G}}else{var J=L.content;Array.isArray(J)?N(J):N([J])}}}return N(E),new r.Token(O,E,"language-"+O,v)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};r.hooks.add("after-tokenize",function(v){if(!(v.language in m))return;function S(O){for(var _=0,w=O.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var n=r.languages.extend("typescript",{});delete n["class-name"],r.languages.typescript["class-name"].inside=n,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),r.languages.ts=r.languages.typescript})(t)}return nf}var af,Z_;function vne(){if(Z_)return af;Z_=1;var e=Lu(),t=Uy();af=r,r.displayName="jsdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(n)}return af}var of,J_;function Gy(){if(J_)return of;J_=1,of=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 of}var sf,Q_;function Sne(){if(Q_)return sf;Q_=1;var e=Gy();sf=t,t.displayName="json5",t.aliases=[];function t(r){r.register(e),function(n){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;n.languages.json5=n.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(r)}return sf}var lf,eT;function Ene(){if(eT)return lf;eT=1;var e=Gy();lf=t,t.displayName="jsonp",t.aliases=[];function t(r){r.register(e),r.languages.jsonp=r.languages.extend("json",{punctuation:/[{}[\]();,.]/}),r.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return lf}var uf,tT;function xne(){if(tT)return uf;tT=1,uf=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 uf}var cf,rT;function kI(){if(rT)return cf;rT=1,cf=e,e.displayName="jsx",e.aliases=[];function e(t){(function(r){var n=r.util.clone(r.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,p){return d=d.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(d,p)}o=s(o).source,r.languages.jsx=r.languages.extend("markup",n),r.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=n.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var l=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(l).join(""):""},c=function(d){for(var p=[],g=0;g0&&p[p.length-1].tagName===l(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:l(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:b=!0),(b||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var v=l(m);g0&&(typeof d[g-1]=="string"||d[g-1].type==="plain-text")&&(v=l(d[g-1])+v,d.splice(g-1,1),g--),d[g]=new r.Token("plain-text",v,null,v)}m.content&&typeof m.content!="string"&&c(m.content)}};r.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||c(d.tokens)})})(t)}return cf}var df,nT;function wne(){if(nT)return df;nT=1,df=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 df}var pf,aT;function _ne(){if(aT)return pf;aT=1,pf=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 pf}var ff,iT;function Tne(){if(iT)return ff;iT=1,ff=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 ff}var gf,oT;function Ane(){if(oT)return gf;oT=1,gf=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin})(t)}return gf}var hf,sT;function One(){if(sT)return hf;sT=1,hf=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(r){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,n),o)}r.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},r.languages.kum=r.languages.kumir})(t)}return hf}var mf,lT;function kne(){if(lT)return mf;lT=1,mf=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 mf}var bf,uT;function Rne(){if(uT)return bf;uT=1,bf=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(r){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:n,alias:"regex"}};r.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},r.languages.tex=r.languages.latex,r.languages.context=r.languages.latex})(t)}return bf}var yf,cT;function Mu(){if(cT)return yf;cT=1;var e=er();yf=t,t.displayName="php",t.aliases=[];function t(r){r.register(e),function(n){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;n.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:n.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:c}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:c}}];n.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),n.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;n.languages["markup-templating"].buildPlaceholders(p,"php",g)}}),n.hooks.add("after-tokenize",function(p){n.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(r)}return yf}var vf,dT;function Ine(){if(dT)return vf;dT=1;var e=er(),t=Mu();vf=r,r.displayName="latte",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(n)}return vf}var Sf,pT;function Nne(){if(pT)return Sf;pT=1,Sf=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 Sf}var Ef,fT;function zy(){if(fT)return Ef;fT=1,Ef=e,e.displayName="scheme",e.aliases=[];function e(t){(function(r){r.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return Ef}var xf,gT;function Cne(){if(gT)return xf;gT=1;var e=zy();xf=t,t.displayName="lilypond",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=n.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:n.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,n.languages.ly=s}(r)}return xf}var wf,hT;function Dne(){if(hT)return wf;hT=1;var e=er();wf=t,t.displayName="liquid",t.aliases=[];function t(r){r.register(e),r.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},r.hooks.add("before-tokenize",function(n){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;r.languages["markup-templating"].buildPlaceholders(n,"liquid",a,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"liquid")})}return wf}var _f,mT;function Lne(){if(mT)return _f;mT=1,_f=e,e.displayName="lisp",e.aliases=[];function e(t){(function(r){function n(v){return RegExp(/(\()/.source+"(?:"+v+")"+/(?=[\s\)])/.source)}function a(v){return RegExp(/([\s([])/.source+"(?:"+v+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",c="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+d+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:g},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=b,p.defun.inside.arguments=r.util.clone(b),p.defun.inside.arguments.inside.sublist=b,r.languages.lisp=p,r.languages.elisp=p,r.languages.emacs=p,r.languages["emacs-lisp"]=p})(t)}return _f}var Tf,bT;function Mne(){if(bT)return Tf;bT=1,Tf=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 Tf}var Af,yT;function Pne(){if(yT)return Af;yT=1,Af=e,e.displayName="llvm",e.aliases=[];function e(t){(function(r){r.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return Af}var Of,vT;function $ne(){if(vT)return Of;vT=1,Of=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 Of}var kf,ST;function jne(){if(ST)return kf;ST=1,kf=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 kf}var Rf,ET;function Fne(){if(ET)return Rf;ET=1,Rf=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 Rf}var If,xT;function Bne(){if(xT)return If;xT=1,If=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 If}var Nf,wT;function Une(){if(wT)return Nf;wT=1,Nf=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(r){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(g){return g=g.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(r.languages.markdown[g].inside.content.inside[m]=r.languages.markdown[m])})}),r.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function m(b){if(!(!b||typeof b=="string"))for(var v=0,S=b.length;v",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(g){var m=g.replace(l,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,v){if(v=v.toLowerCase(),v[0]==="#"){var S;return v[1]==="x"?S=parseInt(v.slice(2),16):S=Number(v.slice(1)),d(S)}else{var O=c[v];return O||b}}),m}r.languages.md=r.languages.markdown})(t)}return Nf}var Cf,_T;function Gne(){if(_T)return Cf;_T=1,Cf=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 Cf}var Df,TT;function zne(){if(TT)return Df;TT=1,Df=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(r){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;r.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return Df}var Lf,AT;function qne(){if(AT)return Lf;AT=1,Lf=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 Lf}var Mf,OT;function Hne(){if(OT)return Mf;OT=1,Mf=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 Mf}var Pf,kT;function Wne(){if(kT)return Pf;kT=1,Pf=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 Pf}var $f,RT;function Vne(){if(RT)return $f;RT=1,$f=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(r){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(o){return o.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";r.languages.mongodb=r.languages.extend("javascript",{}),r.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),r.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},r.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return $f}var jf,IT;function Yne(){if(IT)return jf;IT=1,jf=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 jf}var Ff,NT;function Kne(){if(NT)return Ff;NT=1,Ff=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 Ff}var Bf,CT;function Xne(){if(CT)return Bf;CT=1,Bf=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 Bf}var Uf,DT;function Zne(){if(DT)return Uf;DT=1,Uf=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 Uf}var Gf,LT;function Jne(){if(LT)return Gf;LT=1,Gf=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 Gf}var zf,MT;function Qne(){if(MT)return zf;MT=1,zf=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(r){var n=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};r.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},r.languages.nani=r.languages.naniscript,r.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var d=o(c);i(d)||(c.type="bad-line",c.content=d)}})});function i(s){for(var l="[]{}",c=[],d=0;d=&|$!]/}}return qf}var Hf,$T;function tae(){if($T)return Hf;$T=1,Hf=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 Hf}var Wf,jT;function rae(){if(jT)return Wf;jT=1,Wf=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 Wf}var Vf,FT;function nae(){if(FT)return Vf;FT=1,Vf=e,e.displayName="nginx",e.aliases=[];function e(t){(function(r){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;r.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(t)}return Vf}var Yf,BT;function aae(){if(BT)return Yf;BT=1,Yf=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 Yf}var Kf,UT;function iae(){if(UT)return Kf;UT=1,Kf=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 Kf}var Xf,GT;function oae(){if(GT)return Xf;GT=1,Xf=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 Xf}var Zf,zT;function sae(){if(zT)return Zf;zT=1;var e=ca();Zf=t,t.displayName="objectivec",t.aliases=["objc"];function t(r){r.register(e),r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec}return Zf}var Jf,qT;function lae(){if(qT)return Jf;qT=1,Jf=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 Jf}var Qf,HT;function uae(){if(HT)return Qf;HT=1;var e=ca();Qf=t,t.displayName="opencl",t.aliases=[];function t(r){r.register(e),function(n){n.languages.opencl=n.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),n.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};n.languages.insertBefore("c","keyword",a),n.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},n.languages.insertBefore("cpp","keyword",a))}(r)}return Qf}var eg,WT;function cae(){if(WT)return eg;WT=1,eg=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 eg}var tg,VT;function dae(){if(VT)return tg;VT=1,tg=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 tg}var rg,YT;function pae(){if(YT)return rg;YT=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 r=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return r=r.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+r+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return rg}var ng,KT;function fae(){if(KT)return ng;KT=1,ng=e,e.displayName="parser",e.aliases=[];function e(t){(function(r){var n=r.languages.parser=r.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=r.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),r.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(t)}return ng}var ag,XT;function gae(){if(XT)return ag;XT=1,ag=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 ag}var ig,ZT;function hae(){if(ZT)return ig;ZT=1,ig=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(r){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=r.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return ig}var og,JT;function mae(){if(JT)return og;JT=1,og=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 og}var sg,QT;function bae(){if(QT)return sg;QT=1,sg=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 sg}var lg,eA;function yae(){if(eA)return lg;eA=1,lg=e,e.displayName="perl",e.aliases=[];function e(t){(function(r){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;r.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return lg}var ug,tA;function vae(){if(tA)return ug;tA=1;var e=Mu();ug=t,t.displayName="phpExtras",t.aliases=[];function t(r){r.register(e),r.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return ug}var cg,rA;function Sae(){if(rA)return cg;rA=1;var e=Mu(),t=Lu();cg=r,r.displayName="phpdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(n)}return cg}var dg,nA;function Eae(){if(nA)return dg;nA=1;var e=$y();dg=t,t.displayName="plsql",t.aliases=[];function t(r){r.register(e),r.languages.plsql=r.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),r.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return dg}var pg,aA;function xae(){if(aA)return pg;aA=1,pg=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 pg}var fg,iA;function wae(){if(iA)return fg;iA=1,fg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(r){var n=r.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(t)}return fg}var gg,oA;function _ae(){if(oA)return gg;oA=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 hg,sA;function Tae(){if(sA)return hg;sA=1,hg=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 hg}var mg,lA;function Aae(){if(lA)return mg;lA=1,mg=e,e.displayName="promql",e.aliases=[];function e(t){(function(r){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=n.concat(a,i);r.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return mg}var bg,uA;function Oae(){if(uA)return bg;uA=1,bg=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 bg}var yg,cA;function kae(){if(cA)return yg;cA=1,yg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(r){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;r.languages.protobuf=r.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),r.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return yg}var vg,dA;function Rae(){if(dA)return vg;dA=1,vg=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 vg}var Sg,pA;function Iae(){if(pA)return Sg;pA=1,Sg=e,e.displayName="pug",e.aliases=[];function e(t){(function(r){r.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:r.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:r.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:r.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:r.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:r.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:r.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:r.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=a.length;o",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:r.languages[l.language]}}})}r.languages.insertBefore("pug","filter",i)})(t)}return Sg}var Eg,fA;function Nae(){if(fA)return Eg;fA=1,Eg=e,e.displayName="puppet",e.aliases=[];function e(t){(function(r){r.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:r.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];r.languages.puppet.heredoc[0].inside.interpolation=n,r.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(t)}return Eg}var xg,gA;function Cae(){if(gA)return xg;gA=1,xg=e,e.displayName="pure",e.aliases=[];function e(t){(function(r){r.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),r.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:r.util.clone(r.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=r.util.clone(r.languages[o]),r.languages.insertBefore("pure","inline-lang",s)}}),r.languages.c&&(r.languages.pure["inline-lang"].inside.rest=r.util.clone(r.languages.c))})(t)}return xg}var wg,hA;function Dae(){if(hA)return wg;hA=1,wg=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 wg}var _g,mA;function Lae(){if(mA)return _g;mA=1;var e=Fy();_g=t,t.displayName="purescript",t.aliases=["purs"];function t(r){r.register(e),r.languages.purescript=r.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[r.languages.haskell.operator[0],r.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),r.languages.purs=r.languages.purescript}return _g}var Tg,bA;function Mae(){if(bA)return Tg;bA=1,Tg=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 Tg}var Ag,yA;function Pae(){if(yA)return Ag;yA=1,Ag=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 Ag}var Og,vA;function $ae(){if(vA)return Og;vA=1,Og=e,e.displayName="qml",e.aliases=[];function e(t){(function(r){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),r.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Og}var kg,SA;function jae(){if(SA)return kg;SA=1,kg=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 kg}var Rg,EA;function Fae(){if(EA)return Rg;EA=1,Rg=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(r){function n(b,v){return b.replace(/<<(\d+)>>/g,function(S,O){return"(?:"+v[+O]+")"})}function a(b,v,S){return RegExp(n(b,v),S||"")}function i(b,v){for(var S=0;S>/g,function(){return"(?:"+b+")"});return b.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),c=/\b[A-Za-z_]\w*\b/.source,d=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;r.languages.qsharp=r.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),r.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[g]),2);r.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:r.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Rg}var Ig,xA;function Bae(){if(xA)return Ig;xA=1,Ig=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 Ig}var Ng,wA;function Uae(){if(wA)return Ng;wA=1;var e=zy();Ng=t,t.displayName="racket",t.aliases=["rkt"];function t(r){r.register(e),r.languages.racket=r.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),r.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),r.languages.rkt=r.languages.racket}return Ng}var Cg,_A;function Gae(){if(_A)return Cg;_A=1,Cg=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 Cg}var Dg,TA;function zae(){if(TA)return Dg;TA=1,Dg=e,e.displayName="regex",e.aliases=[];function e(t){(function(r){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",l=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,escape:a}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Lg}var Mg,OA;function Hae(){if(OA)return Mg;OA=1,Mg=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 Mg}var Pg,kA;function Wae(){if(kA)return Pg;kA=1,Pg=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 Pg}var $g,RA;function Vae(){if(RA)return $g;RA=1,$g=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 $g}var jg,IA;function Yae(){if(IA)return jg;IA=1,jg=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 jg}var Fg,NA;function Kae(){if(NA)return Fg;NA=1,Fg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(r){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(c,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in d)p[g]=d[g];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return c}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};r.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:n},r.languages.robot=r.languages.robotframework})(t)}return Fg}var Bg,CA;function Xae(){if(CA)return Bg;CA=1,Bg=e,e.displayName="rust",e.aliases=[];function e(t){(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(t)}return Bg}var Ug,DA;function Zae(){if(DA)return Ug;DA=1,Ug=e,e.displayName="sas",e.aliases=[];function e(t){(function(r){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},v={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,w={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:g,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:a,"numeric-constant":i,punctuation:p,string:d}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};r.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:r.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:r.languages.groovy},keyword:A,"submit-statement":O,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:r.languages.lua},keyword:A,"submit-statement":O,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":w,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:l,keyword:A,function:g,format:b,altformat:v,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":w,comment:c,function:g,format:b,altformat:v,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:d,step:l,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return Ug}var Gg,LA;function Jae(){if(LA)return Gg;LA=1,Gg=e,e.displayName="sass",e.aliases=[];function e(t){(function(r){r.languages.sass=r.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),r.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete r.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];r.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:a,important:r.languages.sass.important}}}),delete r.languages.sass.property,delete r.languages.sass.important,r.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return Gg}var zg,MA;function Qae(){if(MA)return zg;MA=1;var e=By();zg=t,t.displayName="scala",t.aliases=[];function t(r){r.register(e),r.languages.scala=r.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),r.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.scala}}},string:/[\s\S]+/}}}),delete r.languages.scala["class-name"],delete r.languages.scala.function}return zg}var qg,PA;function eie(){if(PA)return qg;PA=1,qg=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 qg}var Hg,$A;function tie(){if($A)return Hg;$A=1;var e=TI();Hg=t,t.displayName="shellSession",t.aliases=[];function t(r){r.register(e),function(n){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");n.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:n.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},n.languages["sh-session"]=n.languages.shellsession=n.languages["shell-session"]}(r)}return Hg}var Wg,jA;function rie(){if(jA)return Wg;jA=1,Wg=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 Wg}var Vg,FA;function nie(){if(FA)return Vg;FA=1,Vg=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 Vg}var Yg,BA;function aie(){if(BA)return Yg;BA=1;var e=er();Yg=t,t.displayName="smarty",t.aliases=[];function t(r){r.register(e),function(n){n.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:n.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},n.languages.smarty["embedded-php"].inside.smarty.inside=n.languages.smarty,n.languages.smarty.string[0].inside.interpolation.inside.expression.inside=n.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");n.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",c=!1;n.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(d){return d===l&&(c=!1),c?!1:(d===s&&(c=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(r)}return Yg}var Kg,UA;function iie(){if(UA)return Kg;UA=1,Kg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(r){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;r.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},r.languages.sml["class-name"][0].inside=r.languages.sml,r.languages.smlnj=r.languages.sml})(t)}return Kg}var Xg,GA;function oie(){if(GA)return Xg;GA=1,Xg=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 Xg}var Zg,zA;function sie(){if(zA)return Zg;zA=1,Zg=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(r){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};r.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},r.languages.sln=r.languages["solution-file"]})(t)}return Zg}var Jg,qA;function lie(){if(qA)return Jg;qA=1;var e=er();Jg=t,t.displayName="soy",t.aliases=[];function t(r){r.register(e),function(n){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;n.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},n.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",c="{/literal}",d=!1;n.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===c&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(r)}return Jg}var Qg,HA;function RI(){if(HA)return Qg;HA=1,Qg=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 Qg}var eh,WA;function uie(){if(WA)return eh;WA=1;var e=RI();eh=t,t.displayName="sparql",t.aliases=["rq"];function t(r){r.register(e),r.languages.sparql=r.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),r.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),r.languages.rq=r.languages.sparql}return eh}var th,VA;function cie(){if(VA)return th;VA=1,th=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 th}var rh,YA;function die(){if(YA)return rh;YA=1,rh=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 rh}var nh,KA;function pie(){if(KA)return nh;KA=1,nh=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 nh}var ah,XA;function fie(){if(XA)return ah;XA=1,ah=e,e.displayName="stan",e.aliases=[];function e(t){(function(r){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;r.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},r.languages.stan.constraint.inside.expression.inside=r.languages.stan})(t)}return ah}var ih,ZA;function gie(){if(ZA)return ih;ZA=1,ih=e,e.displayName="stylus",e.aliases=[];function e(t){(function(r){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},r.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return ih}var oh,JA;function hie(){if(JA)return oh;JA=1,oh=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=t.languages.swift})}return oh}var sh,QA;function mie(){if(QA)return sh;QA=1,sh=e,e.displayName="systemd",e.aliases=[];function e(t){(function(r){var n={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;r.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return sh}var lh,eO;function qy(){if(eO)return lh;eO=1,lh=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(r){function n(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=r.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,s),"class-feature":n("\\+",o,s),standard:n("",o,s)}}}}r.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return lh}var uh,tO;function bie(){if(tO)return uh;tO=1;var e=qy(),t=Cu();uh=r,r.displayName="t4Cs",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}return uh}var ch,rO;function II(){if(rO)return ch;rO=1;var e=AI();ch=t,t.displayName="vbnet",t.aliases=[];function t(r){r.register(e),r.languages.vbnet=r.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return ch}var dh,nO;function yie(){if(nO)return dh;nO=1;var e=qy(),t=II();dh=r,r.displayName="t4Vb",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}return dh}var ph,aO;function NI(){if(aO)return ph;aO=1,ph=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(r){var n=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return c});return RegExp(p,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(t)}return ph}var fh,iO;function vie(){if(iO)return fh;iO=1;var e=NI();fh=t,t.displayName="tap",t.aliases=[];function t(r){r.register(e),r.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:r.languages.yaml,alias:"language-yaml"}}}return fh}var gh,oO;function Sie(){if(oO)return gh;oO=1,gh=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 gh}var hh,sO;function Eie(){if(sO)return hh;sO=1,hh=e,e.displayName="textile",e.aliases=[];function e(t){(function(r){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(g,m){return RegExp(g.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+a+")"}),m||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:r.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=r.languages.textile=r.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=c,d.italic.inside=c,d.inserted.inside=c,d.deleted.inside=c,d.span.inside=c;var p=l.table.inside;p.inline=c.inline,p.link=c.link,p.image=c.image,p.footnote=c.footnote,p.acronym=c.acronym,p.mark=c.mark})(t)}return hh}var mh,lO;function xie(){if(lO)return mh;lO=1,mh=e,e.displayName="toml",e.aliases=[];function e(t){(function(r){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return n})}r.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return mh}var bh,uO;function wie(){if(uO)return bh;uO=1,bh=e,e.displayName="tremor",e.aliases=[];function e(t){(function(r){r.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;r.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.tremor}}},string:/[\s\S]+/}},r.languages.troy=r.languages.tremor,r.languages.trickle=r.languages.tremor})(t)}return bh}var yh,cO;function _ie(){if(cO)return yh;cO=1;var e=kI(),t=Uy();yh=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(n)}return yh}var vh,dO;function Tie(){if(dO)return vh;dO=1;var e=er();vh=t,t.displayName="tt2",t.aliases=[];function t(r){r.register(e),function(n){n.languages.tt2=n.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),n.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),n.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),n.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete n.languages.tt2.string,n.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;n.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(r)}return vh}var Sh,pO;function Aie(){if(pO)return Sh;pO=1;var e=er();Sh=t,t.displayName="twig",t.aliases=[];function t(r){r.register(e),r.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},r.hooks.add("before-tokenize",function(n){if(n.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;r.languages["markup-templating"].buildPlaceholders(n,"twig",a)}}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"twig")})}return Sh}var Eh,fO;function Oie(){if(fO)return Eh;fO=1,Eh=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(r){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;r.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},r.languages.tsconfig=r.languages.typoscript})(t)}return Eh}var xh,gO;function kie(){if(gO)return xh;gO=1,xh=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 xh}var wh,hO;function Rie(){if(hO)return wh;hO=1,wh=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 wh}var _h,mO;function Iie(){if(mO)return _h;mO=1,_h=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 _h}var Th,bO;function Nie(){if(bO)return Th;bO=1,Th=e,e.displayName="v",e.aliases=[];function e(t){(function(r){var n={pattern:/[\s\S]+/,inside:null};r.languages.v=r.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=r.languages.v,r.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),r.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),r.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:r.languages.v.generic.inside}}}})})(t)}return Th}var Ah,yO;function Cie(){if(yO)return Ah;yO=1,Ah=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 Ah}var Oh,vO;function Die(){if(vO)return Oh;vO=1,Oh=e,e.displayName="velocity",e.aliases=[];function e(t){(function(r){r.languages.velocity=r.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},r.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),r.languages.velocity.tag.inside["attr-value"].inside.rest=r.languages.velocity})(t)}return Oh}var kh,SO;function Lie(){if(SO)return kh;SO=1,kh=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 kh}var Rh,EO;function Mie(){if(EO)return Rh;EO=1,Rh=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 Rh}var Ih,xO;function Pie(){if(xO)return Ih;xO=1,Ih=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 Ih}var Nh,wO;function $ie(){if(wO)return Nh;wO=1,Nh=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 Nh}var Ch,_O;function jie(){if(_O)return Ch;_O=1,Ch=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 Ch}var Dh,TO;function Fie(){if(TO)return Dh;TO=1,Dh=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 Dh}var Lh,AO;function Bie(){if(AO)return Lh;AO=1,Lh=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(r){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};r.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in r.languages["web-idl"])o!=="class-name"&&(i[o]=r.languages["web-idl"][o]);r.languages.webidl=r.languages["web-idl"]})(t)}return Lh}var Mh,OO;function Uie(){if(OO)return Mh;OO=1,Mh=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 Mh}var Ph,kO;function Gie(){if(kO)return Ph;kO=1,Ph=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 Ph}var $h,RO;function zie(){if(RO)return $h;RO=1,$h=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 $h}var jh,IO;function qie(){if(IO)return jh;IO=1,jh=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(r){r.languages.xeora=r.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),r.languages.insertBefore("inside","punctuation",{variable:r.languages.xeora["function-inline"].inside.variable},r.languages.xeora["function-block"]),r.languages.xeoracube=r.languages.xeora})(t)}return jh}var Fh,NO;function Hie(){if(NO)return Fh;NO=1,Fh=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(r){function n(s,l){r.languages[s]&&r.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=r.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};n("csharp",i),n("fsharp",i),n("vbnet",o)})(t)}return Fh}var Bh,CO;function Wie(){if(CO)return Bh;CO=1,Bh=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 Bh}var Uh,DO;function Vie(){if(DO)return Uh;DO=1,Uh=e,e.displayName="xquery",e.aliases=[];function e(t){(function(r){r.languages.xquery=r.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),r.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,r.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,r.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:r.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===n(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:n(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=n(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=n(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new r.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&a(l.content)}};r.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return Uh}var Gh,LO;function Yie(){if(LO)return Gh;LO=1,Gh=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 Gh}var zh,MO;function Kie(){if(MO)return zh;MO=1,zh=e,e.displayName="zig",e.aliases=[];function e(t){(function(r){function n(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";r.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},r.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=r.languages.zig)})})(t)}return zh}var C=nte,Xie=C;C.register(gte());C.register(hte());C.register(mte());C.register(bte());C.register(yte());C.register(vte());C.register(Ste());C.register(Ete());C.register(xte());C.register(wte());C.register(_te());C.register(Tte());C.register(Ate());C.register(Ote());C.register(kte());C.register(Rte());C.register(Ite());C.register(Nte());C.register(Cte());C.register(Dte());C.register(Lte());C.register(Mte());C.register(TI());C.register(AI());C.register(Pte());C.register($te());C.register(jte());C.register(Fte());C.register(Bte());C.register(Ute());C.register(Gte());C.register(zte());C.register(qte());C.register(Hte());C.register(ca());C.register(Wte());C.register(Vte());C.register(Yte());C.register(Kte());C.register(Xte());C.register(Zte());C.register(Jte());C.register(Qte());C.register(ere());C.register(jy());C.register(tre());C.register(Cu());C.register(rre());C.register(nre());C.register(are());C.register(ire());C.register(ore());C.register(sre());C.register(lre());C.register(ure());C.register(cre());C.register(dre());C.register(pre());C.register(fre());C.register(gre());C.register(hre());C.register(mre());C.register(bre());C.register(yre());C.register(vre());C.register(Sre());C.register(Ere());C.register(xre());C.register(wre());C.register(_re());C.register(Tre());C.register(Are());C.register(Ore());C.register(kre());C.register(Rre());C.register(Ire());C.register(Nre());C.register(Cre());C.register(Dre());C.register(Lre());C.register(Mre());C.register(Pre());C.register($re());C.register(jre());C.register(Fre());C.register(Bre());C.register(Ure());C.register(Gre());C.register(zre());C.register(qre());C.register(Hre());C.register(Wre());C.register(Vre());C.register(Yre());C.register(Fy());C.register(Kre());C.register(Xre());C.register(Zre());C.register(Jre());C.register(Qre());C.register(ene());C.register(tne());C.register(rne());C.register(nne());C.register(ane());C.register(ine());C.register(one());C.register(sne());C.register(lne());C.register(une());C.register(cne());C.register(dne());C.register(By());C.register(pne());C.register(Lu());C.register(fne());C.register(gne());C.register(hne());C.register(mne());C.register(bne());C.register(yne());C.register(vne());C.register(Gy());C.register(Sne());C.register(Ene());C.register(xne());C.register(kI());C.register(wne());C.register(_ne());C.register(Tne());C.register(Ane());C.register(One());C.register(kne());C.register(Rne());C.register(Ine());C.register(Nne());C.register(Cne());C.register(Dne());C.register(Lne());C.register(Mne());C.register(Pne());C.register($ne());C.register(jne());C.register(OI());C.register(Fne());C.register(Bne());C.register(Une());C.register(er());C.register(Gne());C.register(zne());C.register(qne());C.register(Hne());C.register(Wne());C.register(Vne());C.register(Yne());C.register(Kne());C.register(Xne());C.register(Zne());C.register(Jne());C.register(Qne());C.register(eae());C.register(tae());C.register(rae());C.register(nae());C.register(aae());C.register(iae());C.register(oae());C.register(sae());C.register(lae());C.register(uae());C.register(cae());C.register(dae());C.register(pae());C.register(fae());C.register(gae());C.register(hae());C.register(mae());C.register(bae());C.register(yae());C.register(vae());C.register(Mu());C.register(Sae());C.register(Eae());C.register(xae());C.register(wae());C.register(_ae());C.register(Tae());C.register(Aae());C.register(Oae());C.register(kae());C.register(Rae());C.register(Iae());C.register(Nae());C.register(Cae());C.register(Dae());C.register(Lae());C.register(Mae());C.register(Pae());C.register($ae());C.register(jae());C.register(Fae());C.register(Bae());C.register(Uae());C.register(Gae());C.register(zae());C.register(qae());C.register(Hae());C.register(Wae());C.register(Vae());C.register(Yae());C.register(Kae());C.register(Du());C.register(Xae());C.register(Zae());C.register(Jae());C.register(Qae());C.register(zy());C.register(eie());C.register(tie());C.register(rie());C.register(nie());C.register(aie());C.register(iie());C.register(oie());C.register(sie());C.register(lie());C.register(uie());C.register(cie());C.register(die());C.register($y());C.register(pie());C.register(fie());C.register(gie());C.register(hie());C.register(mie());C.register(bie());C.register(qy());C.register(yie());C.register(vie());C.register(Sie());C.register(Eie());C.register(xie());C.register(wie());C.register(_ie());C.register(Tie());C.register(RI());C.register(Aie());C.register(Uy());C.register(Oie());C.register(kie());C.register(Rie());C.register(Iie());C.register(Nie());C.register(Cie());C.register(II());C.register(Die());C.register(Lie());C.register(Mie());C.register(Pie());C.register($ie());C.register(jie());C.register(Fie());C.register(Bie());C.register(Uie());C.register(Gie());C.register(zie());C.register(qie());C.register(Hie());C.register(Wie());C.register(Vie());C.register(NI());C.register(Yie());C.register(Kie());const Zie=pt(Xie);var CI=V7(Zie,fte);CI.supportedLanguages=Y7;const Jie=CI,Qie={'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"}},eoe=()=>{var v,S,O,_,w,A,x;const e=Pt(),t=P.useRef(null),{currentPlayingAudio:r,setCurrentPlayingAudio:n}=Ct(E=>E),[a,i]=P.useState(!1),[o,s]=P.useState(((v=e==null?void 0:e.properties)==null?void 0:v.boost)||0),{playingNode:l}=Po(E=>E);P.useEffect(()=>{var E;s(((E=e==null?void 0:e.properties)==null?void 0:E.boost)||0)},[e]),P.useEffect(()=>{const E=t.current,k=()=>{n(null),i(!1)};return E&&E.addEventListener("ended",k),()=>{E&&E.removeEventListener("ended",k)}},[n,a]),P.useEffect(()=>{i(!1)},[e]);const c=()=>{r!=null&&r.current&&r.current!==t.current&&(r.current.pause(),n(null)),t.current&&(t.current.paused?(t.current.play(),n(t),i(!0)):(t.current.pause(),n(null),i(!1)))};if(!e)return null;const d=!(l!=null&&l.ref_id)&&!!((S=e.properties)!=null&&S.image_url),p=!!((O=e.properties)!=null&&O.audio_EN),g=e.properties||{},m=(_=e.properties)==null?void 0:_.source_link,b=(w=e.properties)==null?void 0:w.pubkey;return h.jsxs(loe,{children:[d?h.jsx(ioe,{children:h.jsx("img",{alt:"img_a11y",onError:E=>{E.currentTarget.src="generic_placeholder_img.png",E.currentTarget.className="default-img"},src:(A=e.properties)==null?void 0:A.image_url})}):null,h.jsxs(noe,{grow:1,justify:"flex-start",pt:d?0:8,shrink:1,children:[h.jsxs(F,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[h.jsx(ri,{type:e.node_type||""}),m&&h.jsx(doe,{href:`${m}${m.includes("?")?"&":"?"}open=system`,target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(aoe,{children:Object.entries(g).filter(([E])=>E!=="media_url"&&E!=="link"&&E!=="pubkey").map(([E,k])=>h.jsx(roe,{hasAudio:p,isPlaying:a,label:toe(E),togglePlay:c,value:E==="date"&&k?ei(k*1e3).format("MMMM Do YYYY"):k},E))}),b&&h.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[h.jsx(Vl,{amt:o}),h.jsx(Sy,{content:e,count:o,refId:e.ref_id,updateCount:s})]})]}),p&&((x=e.properties)==null?void 0:x.audio_EN)&&h.jsx(coe,{ref:t,src:e.properties.audio_EN,children:h.jsx("track",{kind:"captions"})})]})},toe=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),roe=({label:e,value:t,hasAudio:r,isPlaying:n,togglePlay:a})=>{const i=t.length>140,o=Ct(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"||e==="Image Url"?null:h.jsxs(h.Fragment,{children:[h.jsxs(ooe,{className:dn("node-detail",{"node-detail__long":i}),children:[h.jsxs(mt,{className:"node-detail__label",children:[e,e==="Text"&&r&&h.jsx(uoe,{onClick:a,children:n?h.jsx(l1,{}):h.jsx(u1,{})})]}),e!=="Frame"&&e!=="Code"?h.jsx(mt,{className:"node-detail__value",children:qr(String(t),o)}):h.jsx(Jie,{language:"javascript",style:Qie,children:String(t)})]}),h.jsx(soe,{})]})},noe=B(F)` overflow: auto; width: 100%; flex-grow: 1; @@ -1900,7 +1900,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,boe=B.audio` height: 0; width: 0; -`,yoe=()=>{const e=Pt(),{setPlayingNode:t}=Po(r=>r);switch(P.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return h.jsx(s7,{});case"data_series":return h.jsx(oX,{});case"tribe_message":return h.jsx(n7,{});case"Tweet":return h.jsx(b7,{});case"topic":return h.jsx(m7,{});case"show":return h.jsx(h7,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(XR,{});case"document":return h.jsx(poe,{});case"episode":return h.jsx(QX,{},e.ref_id);case"image":return h.jsx(r7,{});default:return h.jsx(eoe,{})}},voe=P.memo(yoe);var Soe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&Eoe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?PO:xoe;o(i,n),i.onload||PO(i,n),a.appendChild(i)};function Eoe(e,t){for(var r in t)e.setAttribute(r,t[r])}function PO(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 xoe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var woe=function(t){return _oe(t)&&!Toe(t)};function _oe(e){return!!e&&typeof e=="object"}function Toe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||koe(e)}var Aoe=typeof Symbol=="function"&&Symbol.for,Ooe=Aoe?Symbol.for("react.element"):60103;function koe(e){return e.$$typeof===Ooe}function Roe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ja(Roe(e),e,t):e}function Ioe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Noe(e,t){if(!t.customMerge)return Ja;var r=t.customMerge(e);return typeof r=="function"?r:Ja}function Coe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $O(e){return Object.keys(e).concat(Coe(e))}function DI(e,t){try{return t in e}catch{return!1}}function Doe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Loe(e,t,r){var n={};return r.isMergeableObject(e)&&$O(e).forEach(function(a){n[a]=Lo(e[a],r)}),$O(t).forEach(function(a){Doe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Noe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Ja(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ioe,r.isMergeableObject=r.isMergeableObject||woe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Loe(e,t,r):Lo(t,r)}Ja.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Ja(n,a,r)},{})};var Moe=Ja,LI=Moe,Poe=Object.create,Pu=Object.defineProperty,$oe=Object.getOwnPropertyDescriptor,joe=Object.getOwnPropertyNames,Foe=Object.getPrototypeOf,Boe=Object.prototype.hasOwnProperty,Uoe=(e,t)=>{for(var r in t)Pu(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of joe(t))!Boe.call(e,a)&&a!==r&&Pu(e,a,{get:()=>t[a],enumerable:!(n=$oe(t,a))||n.enumerable});return e},Hy=(e,t,r)=>(r=e!=null?Poe(Foe(e)):{},MI(t||!e||!e.__esModule?Pu(r,"default",{value:e,enumerable:!0}):r,e)),Goe=e=>MI(Pu({},"__esModule",{value:!0}),e),PI={};Uoe(PI,{callPlayer:()=>ase,getConfig:()=>rse,getSDK:()=>tse,isBlobUrl:()=>ose,isMediaStream:()=>ise,lazy:()=>Woe,omit:()=>nse,parseEndTime:()=>Qoe,parseStartTime:()=>Zoe,queryString:()=>ese,randomString:()=>Joe,supportsWebKitPresentationMode:()=>sse});var $u=Goe(PI),zoe=Hy(P),qoe=Hy(Soe),Hoe=Hy(LI);const Woe=e=>zoe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Voe=/[?&#](?:start|t)=([0-9hms]+)/,Yoe=/[?&#]end=([0-9hms]+)/,lb=/(\d+)(h|m|s)/g,Koe=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(lb))return Xoe(n);if(Koe.test(n))return parseInt(n)}}function Xoe(e){let t=0,r=lb.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=lb.exec(e)}return t}function Zoe(e){return $I(e,Voe)}function Qoe(e){return $I(e,Yoe)}function Joe(){return Math.random().toString(36).substr(2,5)}function ese(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function qh(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const Sa={},tse=function(t,r,n=null,a=()=>!0,i=qoe.default){const o=qh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(qh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(qh(r))})})};function rse(e,t){return(0,Hoe.default)(t.config,e.config)}function nse(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function ase(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function ise(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function ose(e){return/^blob:/.test(e)}function sse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Wy=Object.defineProperty,lse=Object.getOwnPropertyDescriptor,use=Object.getOwnPropertyNames,cse=Object.prototype.hasOwnProperty,dse=(e,t)=>{for(var r in t)Wy(e,r,{get:t[r],enumerable:!0})},pse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of use(t))!cse.call(e,a)&&a!==r&&Wy(e,a,{get:()=>t[a],enumerable:!(n=lse(t,a))||n.enumerable});return e},fse=e=>pse(Wy({},"__esModule",{value:!0}),e),jI={};dse(jI,{AUDIO_EXTENSIONS:()=>Vy,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>QI,HLS_EXTENSIONS:()=>Ky,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>ub,VIDEO_EXTENSIONS:()=>Yy,canPlay:()=>hse});var gse=fse(jI),jO=$u;const ub=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Vy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Yy=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Ky=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,QI=/\.(flv)($|\?)/i,cb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&cb(t)||cb(t.src))return!0;return!1}return(0,jO.isMediaStream)(e)||(0,jO.isBlobUrl)(e)?!0:Vy.test(e)||Yy.test(e)||Ky.test(e)||ZI.test(e)||QI.test(e)},hse={youtube:e=>e instanceof Array?e.every(t=>ub.test(t)):ub.test(e),soundcloud:e=>FI.test(e)&&!Vy.test(e),vimeo:e=>BI.test(e)&&!Yy.test(e)&&!Ky.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:cb};var Xy=Object.defineProperty,mse=Object.getOwnPropertyDescriptor,bse=Object.getOwnPropertyNames,yse=Object.prototype.hasOwnProperty,vse=(e,t)=>{for(var r in t)Xy(e,r,{get:t[r],enumerable:!0})},Sse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bse(t))!yse.call(e,a)&&a!==r&&Xy(e,a,{get:()=>t[a],enumerable:!(n=mse(t,a))||n.enumerable});return e},Ese=e=>Sse(Xy({},"__esModule",{value:!0}),e),JI={};vse(JI,{default:()=>wse});var xse=Ese(JI),ar=$u,Zt=gse,wse=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-b94c573b.js").then(e=>e.Y),["assets/YouTube-b94c573b.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-06d7421f.js").then(e=>e.S),["assets/SoundCloud-06d7421f.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-da2c67a7.js").then(e=>e.V),["assets/Vimeo-da2c67a7.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-97fa6564.js").then(e=>e.F),["assets/Facebook-97fa6564.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-b6838d3b.js").then(e=>e.S),["assets/Streamable-b6838d3b.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-1f90bb86.js").then(e=>e.W),["assets/Wistia-1f90bb86.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-e6373144.js").then(e=>e.T),["assets/Twitch-e6373144.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-39ab8e74.js").then(e=>e.D),["assets/DailyMotion-39ab8e74.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-86b677dd.js").then(e=>e.M),["assets/Mixcloud-86b677dd.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-710037e4.js").then(e=>e.V),["assets/Vidyard-710037e4.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-35ded625.js").then(e=>e.K),["assets/Kaltura-35ded625.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-e7ca0acd.js").then(e=>e.F),["assets/FilePlayer-e7ca0acd.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]))}],FO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _se(e,t){return!!(e===t||FO(e)&&FO(t))}function Tse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)ju(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Mse(t))!$se.call(e,a)&&a!==r&&ju(e,a,{get:()=>t[a],enumerable:!(n=Lse(t,a))||n.enumerable});return e},Fse=(e,t,r)=>(r=e!=null?Dse(Pse(e)):{},tN(t||!e||!e.__esModule?ju(r,"default",{value:e,enumerable:!0}):r,e)),Bse=e=>tN(ju({},"__esModule",{value:!0}),e),rN={};jse(rN,{defaultProps:()=>zse,propTypes:()=>Gse});var nN=Bse(rN),Use=Fse(PM);const{string:qt,bool:Ht,number:Ea,array:Hh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:BO}=Use.default,Gse={url:Ii([qt,Hh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:BO,previewTabIndex:Ea,fallback:BO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Hh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Hh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},zse={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Rt},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt};var qse=Object.create,Qo=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.getPrototypeOf,Yse=Object.prototype.hasOwnProperty,Kse=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xse=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Wse(t))!Yse.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=Hse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?qse(Vse(e)):{},aN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),Zse=e=>aN(Qo({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(Kse(e,typeof t!="symbol"?t+"":t,r),r),oN={};Xse(oN,{default:()=>Fu});var Qse=Zse(oN),UO=iN(P),Jse=iN(eN),sN=nN,ele=$u;const tle=5e3;class Fu extends UO.Component{constructor(){super(...arguments),ht(this,"mounted",!1),ht(this,"isReady",!1),ht(this,"isPlaying",!1),ht(this,"isLoading",!0),ht(this,"loadOnReady",null),ht(this,"startOnPlay",!0),ht(this,"seekOnPlay",null),ht(this,"onDurationCalled",!1),ht(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),ht(this,"getInternalPlayer",t=>this.player?this.player[t]:null),ht(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),ht(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),ht(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),ht(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),ht(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),ht(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),ht(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)}),ht(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,Jse.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ele.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},tle));return}if(r?r==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?UO.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}}ht(Fu,"displayName","Player");ht(Fu,"propTypes",sN.propTypes);ht(Fu,"defaultProps",sN.defaultProps);var rle=Object.create,Jo=Object.defineProperty,nle=Object.getOwnPropertyDescriptor,ale=Object.getOwnPropertyNames,ile=Object.getPrototypeOf,ole=Object.prototype.hasOwnProperty,sle=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lle=(e,t)=>{for(var r in t)Jo(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ale(t))!ole.call(e,a)&&a!==r&&Jo(e,a,{get:()=>t[a],enumerable:!(n=nle(t,a))||n.enumerable});return e},es=(e,t,r)=>(r=e!=null?rle(ile(e)):{},lN(t||!e||!e.__esModule?Jo(r,"default",{value:e,enumerable:!0}):r,e)),ule=e=>lN(Jo({},"__esModule",{value:!0}),e),gt=(e,t,r)=>(sle(e,typeof t!="symbol"?t+"":t,r),r),uN={};lle(uN,{createReactPlayer:()=>yle});var cle=ule(uN),_a=es(P),dle=es(LI),Wh=es(kse),GO=es(eN),$i=nN,cN=$u,ple=es(Qse);const fle=(0,cN.lazy)(()=>ir(()=>import("./Preview-88a9950d.js").then(e=>e.P),["assets/Preview-88a9950d.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css"])),gle=typeof window<"u"&&window.document,hle=typeof Tt<"u"&&Tt.window&&Tt.window.document,mle=Object.keys($i.propTypes),ble=gle||hle?_a.Suspense:()=>null,Ni=[],yle=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),gt(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),gt(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,Wh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),gt(this,"getConfig",(0,Wh.default)((n,a)=>{const{config:i}=this.props;return dle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),gt(this,"getAttributes",(0,Wh.default)(n=>(0,cN.omit)(this.props,mle))),gt(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(ple.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,GO.default)(this.props,n)||!(0,GO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(fle,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(ble,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},gt(r,"displayName","ReactPlayer"),gt(r,"propTypes",$i.propTypes),gt(r,"defaultProps",$i.defaultProps),gt(r,"addCustomPlayer",n=>{Ni.push(n)}),gt(r,"removeCustomPlayers",()=>{Ni.length=0}),gt(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),gt(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var vle=Object.create,Bu=Object.defineProperty,Sle=Object.getOwnPropertyDescriptor,Ele=Object.getOwnPropertyNames,xle=Object.getPrototypeOf,wle=Object.prototype.hasOwnProperty,_le=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ele(t))!wle.call(e,a)&&a!==r&&Bu(e,a,{get:()=>t[a],enumerable:!(n=Sle(t,a))||n.enumerable});return e},Tle=(e,t,r)=>(r=e!=null?vle(xle(e)):{},dN(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e)),Ale=e=>dN(Bu({},"__esModule",{value:!0}),e),pN={};_le(pN,{default:()=>Ile});var Ole=Ale(pN),db=Tle(xse),kle=cle;const Rle=db.default[db.default.length-1];var Ile=(0,kle.createReactPlayer)(db.default,Rle);const Nle=pt(Ole),zO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},Cle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=P.useState(.5),[p,g]=P.useState(!1),[m,b]=P.useState(.5),v=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},S=()=>{p?(d(m),o(new Event("input"),m)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return h.jsxs(F,{children:[(!l||t)&&h.jsx(Fle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Dle,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Ple,{onClick:r,size:"small",children:e?h.jsx(Sb,{}):h.jsx(Eb,{})}),h.jsxs(Ble,{direction:"row",children:[h.jsx("span",{children:zO(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:zO(a)})]}),h.jsxs($le,{direction:"row",px:9,children:[h.jsx(Wl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:c}),h.jsx(Lle,{onClick:S,children:p?h.jsx(Mle,{children:h.jsx($M,{})}):h.jsx(jM,{})})]}),h.jsx(jle,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(BM,{}):h.jsx(FM,{})})]})]})},Dle=B(F)` +`,yoe=()=>{const e=Pt(),{setPlayingNode:t}=Po(r=>r);switch(P.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return h.jsx(s7,{});case"data_series":return h.jsx(oX,{});case"tribe_message":return h.jsx(n7,{});case"Tweet":return h.jsx(b7,{});case"topic":return h.jsx(m7,{});case"show":return h.jsx(h7,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(XR,{});case"document":return h.jsx(poe,{});case"episode":return h.jsx(JX,{},e.ref_id);case"image":return h.jsx(r7,{});default:return h.jsx(eoe,{})}},voe=P.memo(yoe);var Soe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&Eoe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?PO:xoe;o(i,n),i.onload||PO(i,n),a.appendChild(i)};function Eoe(e,t){for(var r in t)e.setAttribute(r,t[r])}function PO(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 xoe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var woe=function(t){return _oe(t)&&!Toe(t)};function _oe(e){return!!e&&typeof e=="object"}function Toe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||koe(e)}var Aoe=typeof Symbol=="function"&&Symbol.for,Ooe=Aoe?Symbol.for("react.element"):60103;function koe(e){return e.$$typeof===Ooe}function Roe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qa(Roe(e),e,t):e}function Ioe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Noe(e,t){if(!t.customMerge)return Qa;var r=t.customMerge(e);return typeof r=="function"?r:Qa}function Coe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $O(e){return Object.keys(e).concat(Coe(e))}function DI(e,t){try{return t in e}catch{return!1}}function Doe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Loe(e,t,r){var n={};return r.isMergeableObject(e)&&$O(e).forEach(function(a){n[a]=Lo(e[a],r)}),$O(t).forEach(function(a){Doe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Noe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Qa(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ioe,r.isMergeableObject=r.isMergeableObject||woe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Loe(e,t,r):Lo(t,r)}Qa.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Qa(n,a,r)},{})};var Moe=Qa,LI=Moe,Poe=Object.create,Pu=Object.defineProperty,$oe=Object.getOwnPropertyDescriptor,joe=Object.getOwnPropertyNames,Foe=Object.getPrototypeOf,Boe=Object.prototype.hasOwnProperty,Uoe=(e,t)=>{for(var r in t)Pu(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of joe(t))!Boe.call(e,a)&&a!==r&&Pu(e,a,{get:()=>t[a],enumerable:!(n=$oe(t,a))||n.enumerable});return e},Hy=(e,t,r)=>(r=e!=null?Poe(Foe(e)):{},MI(t||!e||!e.__esModule?Pu(r,"default",{value:e,enumerable:!0}):r,e)),Goe=e=>MI(Pu({},"__esModule",{value:!0}),e),PI={};Uoe(PI,{callPlayer:()=>ase,getConfig:()=>rse,getSDK:()=>tse,isBlobUrl:()=>ose,isMediaStream:()=>ise,lazy:()=>Woe,omit:()=>nse,parseEndTime:()=>Joe,parseStartTime:()=>Zoe,queryString:()=>ese,randomString:()=>Qoe,supportsWebKitPresentationMode:()=>sse});var $u=Goe(PI),zoe=Hy(P),qoe=Hy(Soe),Hoe=Hy(LI);const Woe=e=>zoe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Voe=/[?&#](?:start|t)=([0-9hms]+)/,Yoe=/[?&#]end=([0-9hms]+)/,lb=/(\d+)(h|m|s)/g,Koe=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(lb))return Xoe(n);if(Koe.test(n))return parseInt(n)}}function Xoe(e){let t=0,r=lb.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=lb.exec(e)}return t}function Zoe(e){return $I(e,Voe)}function Joe(e){return $I(e,Yoe)}function Qoe(){return Math.random().toString(36).substr(2,5)}function ese(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function qh(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const Sa={},tse=function(t,r,n=null,a=()=>!0,i=qoe.default){const o=qh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(qh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(qh(r))})})};function rse(e,t){return(0,Hoe.default)(t.config,e.config)}function nse(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function ase(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function ise(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function ose(e){return/^blob:/.test(e)}function sse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Wy=Object.defineProperty,lse=Object.getOwnPropertyDescriptor,use=Object.getOwnPropertyNames,cse=Object.prototype.hasOwnProperty,dse=(e,t)=>{for(var r in t)Wy(e,r,{get:t[r],enumerable:!0})},pse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of use(t))!cse.call(e,a)&&a!==r&&Wy(e,a,{get:()=>t[a],enumerable:!(n=lse(t,a))||n.enumerable});return e},fse=e=>pse(Wy({},"__esModule",{value:!0}),e),jI={};dse(jI,{AUDIO_EXTENSIONS:()=>Vy,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>JI,HLS_EXTENSIONS:()=>Ky,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>ub,VIDEO_EXTENSIONS:()=>Yy,canPlay:()=>hse});var gse=fse(jI),jO=$u;const ub=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Vy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Yy=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Ky=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,JI=/\.(flv)($|\?)/i,cb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&cb(t)||cb(t.src))return!0;return!1}return(0,jO.isMediaStream)(e)||(0,jO.isBlobUrl)(e)?!0:Vy.test(e)||Yy.test(e)||Ky.test(e)||ZI.test(e)||JI.test(e)},hse={youtube:e=>e instanceof Array?e.every(t=>ub.test(t)):ub.test(e),soundcloud:e=>FI.test(e)&&!Vy.test(e),vimeo:e=>BI.test(e)&&!Yy.test(e)&&!Ky.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:cb};var Xy=Object.defineProperty,mse=Object.getOwnPropertyDescriptor,bse=Object.getOwnPropertyNames,yse=Object.prototype.hasOwnProperty,vse=(e,t)=>{for(var r in t)Xy(e,r,{get:t[r],enumerable:!0})},Sse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bse(t))!yse.call(e,a)&&a!==r&&Xy(e,a,{get:()=>t[a],enumerable:!(n=mse(t,a))||n.enumerable});return e},Ese=e=>Sse(Xy({},"__esModule",{value:!0}),e),QI={};vse(QI,{default:()=>wse});var xse=Ese(QI),ar=$u,Zt=gse,wse=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-40d53f54.js").then(e=>e.Y),["assets/YouTube-40d53f54.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-a3a6191d.js").then(e=>e.S),["assets/SoundCloud-a3a6191d.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-0f9aa2d7.js").then(e=>e.V),["assets/Vimeo-0f9aa2d7.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-37d0efe5.js").then(e=>e.F),["assets/Facebook-37d0efe5.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-6ef4ab2c.js").then(e=>e.S),["assets/Streamable-6ef4ab2c.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-d22d59b9.js").then(e=>e.W),["assets/Wistia-d22d59b9.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-2250c7ec.js").then(e=>e.T),["assets/Twitch-2250c7ec.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-d27e9ff8.js").then(e=>e.D),["assets/DailyMotion-d27e9ff8.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-bf087957.js").then(e=>e.M),["assets/Mixcloud-bf087957.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-47c014fa.js").then(e=>e.V),["assets/Vidyard-47c014fa.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-03e52ee6.js").then(e=>e.K),["assets/Kaltura-03e52ee6.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-05cf107f.js").then(e=>e.F),["assets/FilePlayer-05cf107f.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"]))}],FO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _se(e,t){return!!(e===t||FO(e)&&FO(t))}function Tse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)ju(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Mse(t))!$se.call(e,a)&&a!==r&&ju(e,a,{get:()=>t[a],enumerable:!(n=Lse(t,a))||n.enumerable});return e},Fse=(e,t,r)=>(r=e!=null?Dse(Pse(e)):{},tN(t||!e||!e.__esModule?ju(r,"default",{value:e,enumerable:!0}):r,e)),Bse=e=>tN(ju({},"__esModule",{value:!0}),e),rN={};jse(rN,{defaultProps:()=>zse,propTypes:()=>Gse});var nN=Bse(rN),Use=Fse(aP);const{string:qt,bool:Ht,number:Ea,array:Hh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:BO}=Use.default,Gse={url:Ii([qt,Hh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:BO,previewTabIndex:Ea,fallback:BO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Hh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Hh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},zse={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Rt},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt};var qse=Object.create,Jo=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.getPrototypeOf,Yse=Object.prototype.hasOwnProperty,Kse=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xse=(e,t)=>{for(var r in t)Jo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Wse(t))!Yse.call(e,a)&&a!==r&&Jo(e,a,{get:()=>t[a],enumerable:!(n=Hse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?qse(Vse(e)):{},aN(t||!e||!e.__esModule?Jo(r,"default",{value:e,enumerable:!0}):r,e)),Zse=e=>aN(Jo({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(Kse(e,typeof t!="symbol"?t+"":t,r),r),oN={};Xse(oN,{default:()=>Fu});var Jse=Zse(oN),UO=iN(P),Qse=iN(eN),sN=nN,ele=$u;const tle=5e3;class Fu extends UO.Component{constructor(){super(...arguments),ht(this,"mounted",!1),ht(this,"isReady",!1),ht(this,"isPlaying",!1),ht(this,"isLoading",!0),ht(this,"loadOnReady",null),ht(this,"startOnPlay",!0),ht(this,"seekOnPlay",null),ht(this,"onDurationCalled",!1),ht(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),ht(this,"getInternalPlayer",t=>this.player?this.player[t]:null),ht(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),ht(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),ht(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),ht(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),ht(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),ht(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),ht(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)}),ht(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,Qse.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ele.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},tle));return}if(r?r==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?UO.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}}ht(Fu,"displayName","Player");ht(Fu,"propTypes",sN.propTypes);ht(Fu,"defaultProps",sN.defaultProps);var rle=Object.create,Qo=Object.defineProperty,nle=Object.getOwnPropertyDescriptor,ale=Object.getOwnPropertyNames,ile=Object.getPrototypeOf,ole=Object.prototype.hasOwnProperty,sle=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lle=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ale(t))!ole.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=nle(t,a))||n.enumerable});return e},es=(e,t,r)=>(r=e!=null?rle(ile(e)):{},lN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),ule=e=>lN(Qo({},"__esModule",{value:!0}),e),gt=(e,t,r)=>(sle(e,typeof t!="symbol"?t+"":t,r),r),uN={};lle(uN,{createReactPlayer:()=>yle});var cle=ule(uN),_a=es(P),dle=es(LI),Wh=es(kse),GO=es(eN),$i=nN,cN=$u,ple=es(Jse);const fle=(0,cN.lazy)(()=>ir(()=>import("./Preview-1cfc0cb6.js").then(e=>e.P),["assets/Preview-1cfc0cb6.js","assets/index-794e801a.js","assets/index-b4d03b7b.css"])),gle=typeof window<"u"&&window.document,hle=typeof Tt<"u"&&Tt.window&&Tt.window.document,mle=Object.keys($i.propTypes),ble=gle||hle?_a.Suspense:()=>null,Ni=[],yle=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),gt(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),gt(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,Wh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),gt(this,"getConfig",(0,Wh.default)((n,a)=>{const{config:i}=this.props;return dle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),gt(this,"getAttributes",(0,Wh.default)(n=>(0,cN.omit)(this.props,mle))),gt(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(ple.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,GO.default)(this.props,n)||!(0,GO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(fle,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(ble,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},gt(r,"displayName","ReactPlayer"),gt(r,"propTypes",$i.propTypes),gt(r,"defaultProps",$i.defaultProps),gt(r,"addCustomPlayer",n=>{Ni.push(n)}),gt(r,"removeCustomPlayers",()=>{Ni.length=0}),gt(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),gt(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var vle=Object.create,Bu=Object.defineProperty,Sle=Object.getOwnPropertyDescriptor,Ele=Object.getOwnPropertyNames,xle=Object.getPrototypeOf,wle=Object.prototype.hasOwnProperty,_le=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ele(t))!wle.call(e,a)&&a!==r&&Bu(e,a,{get:()=>t[a],enumerable:!(n=Sle(t,a))||n.enumerable});return e},Tle=(e,t,r)=>(r=e!=null?vle(xle(e)):{},dN(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e)),Ale=e=>dN(Bu({},"__esModule",{value:!0}),e),pN={};_le(pN,{default:()=>Ile});var Ole=Ale(pN),db=Tle(xse),kle=cle;const Rle=db.default[db.default.length-1];var Ile=(0,kle.createReactPlayer)(db.default,Rle);const Nle=pt(Ole),zO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},Cle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=P.useState(.5),[p,g]=P.useState(!1),[m,b]=P.useState(.5),v=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},S=()=>{p?(d(m),o(new Event("input"),m)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return h.jsxs(F,{children:[(!l||t)&&h.jsx(Fle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Dle,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Ple,{onClick:r,size:"small",children:e?h.jsx(Sb,{}):h.jsx(Eb,{})}),h.jsxs(Ble,{direction:"row",children:[h.jsx("span",{children:zO(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:zO(a)})]}),h.jsxs($le,{direction:"row",px:9,children:[h.jsx(Wl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:c}),h.jsx(Lle,{onClick:S,children:p?h.jsx(Mle,{children:h.jsx(PM,{})}):h.jsx($M,{})})]}),h.jsx(jle,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(FM,{}):h.jsx(jM,{})})]})]})},Dle=B(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -2015,7 +2015,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .duration { color: ${M.GRAY6}; } -`,Ule=({hidden:e})=>{var xe,ee;const t=P.useRef(null),r=P.useRef(null),[n,a]=P.useState(!1),[i,o]=P.useState(!1),[s,l]=P.useState(!1),[c,d]=P.useState("ready"),[p,g]=P.useState(!1),[m,b]=P.useState(""),[v,S]=P.useState(!1),O=Pt();P.useEffect(()=>{const oe=(O==null?void 0:O.properties)||{},ie=Object.entries(oe).find(([fe])=>fe==="timestamp"),X=ie?ie[1]:"",Ee=X==null?void 0:X.split("-")[0];b(Ee)},[O]);const{isPlaying:_,playingTime:w,duration:A,setIsPlaying:x,setPlayingTime:E,setDuration:k,playingNode:N,volume:I,setVolume:D,setHasError:L,resetPlayer:j,isSeeking:z,setIsSeeking:q}=Po(oe=>oe),H=(N==null?void 0:N.media_url)||(N==null?void 0:N.link)||((xe=N==null?void 0:N.properties)==null?void 0:xe.link)||((ee=N==null?void 0:N.properties)==null?void 0:ee.media_url),V=(H==null?void 0:H.includes("youtube"))||(H==null?void 0:H.includes("youtu.be"));P.useEffect(()=>()=>j(),[j]),P.useEffect(()=>{N&&!p&&(E(0),k(0),g(!1),S(!1))},[N,E,k,g,p]),P.useEffect(()=>{z&&t.current&&(t.current.seekTo(w,"seconds"),q(!1))},[w,z,q]),P.useEffect(()=>{if(p&&m&&t.current&&!v){const oe=na(m);t.current.seekTo(oe,"seconds"),E(oe),S(!0)}},[p,m,E,v]);const K=()=>{x(!_)},G=()=>{x(!0)},W=()=>{x(!1)},Q=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;E(X),t.current&&!z&&t.current.seekTo(X,"seconds")},ae=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;D(X)},re=()=>{L(!0),d("error")},ue=oe=>{if(!z){const ie=oe.playedSeconds;E(ie)}},Se=()=>{if(t.current){d("ready");const oe=t.current.getDuration();if(k(oe),m&&!v){const ie=na(m);t.current.seekTo(ie,"seconds"),E(ie),S(!0)}}},J=()=>{r.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):r.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",Ie)}))},Ie=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",Ie)};P.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",Ie)}),P.useEffect(()=>{const oe=ie=>{if(i){const X=window.screen.height,Ee=ie.clientY,fe=X-Ee;l(fe<=50)}};return document.addEventListener("mousemove",oe),()=>{document.removeEventListener("mousemove",oe)}},[i,s]),P.useEffect(()=>{const oe=ie=>{i&&ie.key==="Escape"?(ie.preventDefault(),ie.stopPropagation()):n&&ie.key===" "&&(ie.preventDefault(),K())};return document.addEventListener("fullscreenchange",Ie),document.addEventListener("keydown",oe),()=>{document.removeEventListener("fullscreenchange",Ie),document.removeEventListener("keydown",oe)}});const Ue=()=>{K()};return H?h.jsxs(Gle,{ref:r,hidden:e,onBlur:()=>a(!1),onFocus:()=>a(!0),tabIndex:0,children:[h.jsx(zle,{isFullScreen:i,children:h.jsx($r,{size:120,src:(N==null?void 0:N.image_url)||"",type:"clip"})}),h.jsx(Wle,{isFullScreen:i,onClick:Ue,children:h.jsx(Nle,{ref:t,controls:!1,height:i?window.screen.height:"200px",onBuffer:()=>d("buffering"),onBufferEnd:()=>d("ready"),onError:re,onPause:W,onPlay:G,onProgress:ue,onReady:Se,playing:_,url:H||"",volume:I,width:"100%"})}),c==="error"?h.jsx(Hle,{className:"error-wrapper",children:"Error happened, please try later"}):null,c==="ready"?h.jsx(Cle,{duration:A,handleProgressChange:Q,handleVolumeChange:ae,isFullScreen:i,isPlaying:_,onFullScreenClick:J,playingTime:w,setIsPlaying:K,showToolbar:s&&i}):null,c==="buffering"&&!V?h.jsx(qle,{isFullScreen:i,children:h.jsx(Hl,{color:M.lightGray})}):null]}):null},Gle=B(F)` +`,Ule=({hidden:e})=>{var xe,ee;const t=P.useRef(null),r=P.useRef(null),[n,a]=P.useState(!1),[i,o]=P.useState(!1),[s,l]=P.useState(!1),[c,d]=P.useState("ready"),[p,g]=P.useState(!1),[m,b]=P.useState(""),[v,S]=P.useState(!1),O=Pt();P.useEffect(()=>{const oe=(O==null?void 0:O.properties)||{},ie=Object.entries(oe).find(([fe])=>fe==="timestamp"),X=ie?ie[1]:"",Ee=X==null?void 0:X.split("-")[0];b(Ee)},[O]);const{isPlaying:_,playingTime:w,duration:A,setIsPlaying:x,setPlayingTime:E,setDuration:k,playingNode:N,volume:I,setVolume:D,setHasError:L,resetPlayer:j,isSeeking:z,setIsSeeking:q}=Po(oe=>oe),H=(N==null?void 0:N.media_url)||(N==null?void 0:N.link)||((xe=N==null?void 0:N.properties)==null?void 0:xe.link)||((ee=N==null?void 0:N.properties)==null?void 0:ee.media_url),V=(H==null?void 0:H.includes("youtube"))||(H==null?void 0:H.includes("youtu.be"));P.useEffect(()=>()=>j(),[j]),P.useEffect(()=>{N&&!p&&(E(0),k(0),g(!1),S(!1))},[N,E,k,g,p]),P.useEffect(()=>{z&&t.current&&(t.current.seekTo(w,"seconds"),q(!1))},[w,z,q]),P.useEffect(()=>{if(p&&m&&t.current&&!v){const oe=na(m);t.current.seekTo(oe,"seconds"),E(oe),S(!0)}},[p,m,E,v]);const K=()=>{x(!_)},G=()=>{x(!0)},W=()=>{x(!1)},J=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;E(X),t.current&&!z&&t.current.seekTo(X,"seconds")},ae=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;D(X)},re=()=>{L(!0),d("error")},ue=oe=>{if(!z){const ie=oe.playedSeconds;E(ie)}},Se=()=>{if(t.current){d("ready");const oe=t.current.getDuration();if(k(oe),m&&!v){const ie=na(m);t.current.seekTo(ie,"seconds"),E(ie),S(!0)}}},Q=()=>{r.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):r.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",Ie)}))},Ie=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",Ie)};P.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",Ie)}),P.useEffect(()=>{const oe=ie=>{if(i){const X=window.screen.height,Ee=ie.clientY,fe=X-Ee;l(fe<=50)}};return document.addEventListener("mousemove",oe),()=>{document.removeEventListener("mousemove",oe)}},[i,s]),P.useEffect(()=>{const oe=ie=>{i&&ie.key==="Escape"?(ie.preventDefault(),ie.stopPropagation()):n&&ie.key===" "&&(ie.preventDefault(),K())};return document.addEventListener("fullscreenchange",Ie),document.addEventListener("keydown",oe),()=>{document.removeEventListener("fullscreenchange",Ie),document.removeEventListener("keydown",oe)}});const Ue=()=>{K()};return H?h.jsxs(Gle,{ref:r,hidden:e,onBlur:()=>a(!1),onFocus:()=>a(!0),tabIndex:0,children:[h.jsx(zle,{isFullScreen:i,children:h.jsx($r,{size:120,src:(N==null?void 0:N.image_url)||"",type:"clip"})}),h.jsx(Wle,{isFullScreen:i,onClick:Ue,children:h.jsx(Nle,{ref:t,controls:!1,height:i?window.screen.height:"200px",onBuffer:()=>d("buffering"),onBufferEnd:()=>d("ready"),onError:re,onPause:W,onPlay:G,onProgress:ue,onReady:Se,playing:_,url:H||"",volume:I,width:"100%"})}),c==="error"?h.jsx(Hle,{className:"error-wrapper",children:"Error happened, please try later"}):null,c==="ready"?h.jsx(Cle,{duration:A,handleProgressChange:J,handleVolumeChange:ae,isFullScreen:i,isPlaying:_,onFullScreenClick:Q,playingTime:w,setIsPlaying:K,showToolbar:s&&i}):null,c==="buffering"&&!V?h.jsx(qle,{isFullScreen:i,children:h.jsx(Hl,{color:M.lightGray})}):null]}):null},Gle=B(F)` border-bottom: 1px solid rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.2); position: relative; @@ -2046,7 +2046,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; -`,Vle=P.memo(Ule),Yle=({open:e})=>{const{setSelectedNode:t}=s1(i=>i),r=Pt(),{setSidebarOpen:n}=Ct(i=>i),{playingNode:a}=Po(i=>i);return h.jsx(Ca,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:h.jsxs(Kle,{children:[h.jsx(Vle,{hidden:(r==null?void 0:r.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),h.jsx(Zle,{children:h.jsx(voe,{})}),h.jsx(Xle,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:h.jsx(UM,{})}),h.jsx(Qle,{onClick:()=>{n(!1)},children:h.jsx(f1,{})})]})})},Kle=B(F)(({theme:e})=>({position:"relative",background:M.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),Xle=B(F)` +`,Vle=P.memo(Ule),Yle=({open:e})=>{const{setSelectedNode:t}=s1(i=>i),r=Pt(),{setSidebarOpen:n}=Ct(i=>i),{playingNode:a}=Po(i=>i);return h.jsx(Ca,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:h.jsxs(Kle,{children:[h.jsx(Vle,{hidden:(r==null?void 0:r.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),h.jsx(Zle,{children:h.jsx(voe,{})}),h.jsx(Xle,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:h.jsx(BM,{})}),h.jsx(Jle,{onClick:()=>{n(!1)},children:h.jsx(f1,{})})]})})},Kle=B(F)(({theme:e})=>({position:"relative",background:M.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),Xle=B(F)` font-size: 32px; color: ${M.white}; cursor: pointer; @@ -2064,7 +2064,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex: 1 1 100%; border-radius: 16px; overflow: hidden; -`,Qle=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.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:M.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),Jle=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Ct(r=>({sidebarIsOpen:r.setSidebarOpen,showCollapseButton:r.showCollapseButton}));return h.jsx(h.Fragment,{children:t&&h.jsx(eue,{onClick:()=>{e(!0)},children:h.jsx(GM,{})})})},eue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.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:M.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),fN=390,tue=P.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:r}=Ct(a=>a),n=bM();return h.jsxs(aue,{ref:t,id:"sidebar-wrapper",children:[h.jsx(oue,{}),n?h.jsx(_j,{}):h.jsx(xF,{}),!e&&h.jsx(iue,{onClick:()=>{r(!1)},children:h.jsx(f1,{})})]})}),rue=["topic","person","guest","event","organization","place","project","software"],nue=e=>{if(e==null)return!1;const r=Object.keys(e).filter(n=>n!=="pubkey");return r.length===1&&r[0]==="name"},gN=()=>{const{sidebarIsOpen:e}=Ct(n=>n),t=Pt(),r=!!t&&e&&!rue.includes(t.node_type)&&!nue(t.properties);return h.jsxs(h.Fragment,{children:[h.jsx(Ca,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:h.jsx(tue,{subViewOpen:r})}),h.jsx(Yle,{open:r}),!e&&h.jsx(Jle,{})]})},aue=B(F)(({theme:e})=>({position:"relative",background:M.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:fN}})),iue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.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:M.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),oue=B(F)` +`,Jle=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.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:M.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),Qle=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Ct(r=>({sidebarIsOpen:r.setSidebarOpen,showCollapseButton:r.showCollapseButton}));return h.jsx(h.Fragment,{children:t&&h.jsx(eue,{onClick:()=>{e(!0)},children:h.jsx(UM,{})})})},eue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.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:M.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),fN=390,tue=P.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:r}=Ct(a=>a),n=bM();return h.jsxs(aue,{ref:t,id:"sidebar-wrapper",children:[h.jsx(oue,{}),n?h.jsx(_j,{}):h.jsx(xF,{}),!e&&h.jsx(iue,{onClick:()=>{r(!1)},children:h.jsx(f1,{})})]})}),rue=["topic","person","guest","event","organization","place","project","software"],nue=e=>{if(e==null)return!1;const r=Object.keys(e).filter(n=>n!=="pubkey");return r.length===1&&r[0]==="name"},gN=()=>{const{sidebarIsOpen:e}=Ct(n=>n),t=Pt(),r=!!t&&e&&!rue.includes(t.node_type)&&!nue(t.properties);return h.jsxs(h.Fragment,{children:[h.jsx(Ca,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:h.jsx(tue,{subViewOpen:r})}),h.jsx(Yle,{open:r}),!e&&h.jsx(Qle,{})]})},aue=B(F)(({theme:e})=>({position:"relative",background:M.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:fN}})),iue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.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:M.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),oue=B(F)` flex: 0 0 64px; background: ${M.BG2}; -`;gN.displayName="Sidebar";const mue=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:fN,SideBar:gN},Symbol.toStringTag,{value:"Module"}));export{fN as M,Nle as R,Wl as S,mue as i,gse as p,zO as s,$u as u}; +`;gN.displayName="Sidebar";const bue=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:fN,SideBar:gN},Symbol.toStringTag,{value:"Module"}));export{fN as M,Nle as R,Wl as S,bue as i,gse as p,zO as s,$u as u}; diff --git a/build/assets/index-72b8184c.js b/build/assets/index-444ad080.js similarity index 58% rename from build/assets/index-72b8184c.js rename to build/assets/index-444ad080.js index 9df9324b2..43bcdcf50 100644 --- a/build/assets/index-72b8184c.js +++ b/build/assets/index-444ad080.js @@ -1,18 +1,18 @@ -import{A as F,bW as C,bX as m,bY as V,s as w,T as k,F as d,ao as M,r as x,b as $,j as n,aV as z,aW as A,B as S,e as E,t as U,w as R,aU as W,aY as G}from"./index-f2cb870a.js";import{p as I}from"./index-d6936fc6.js";import{A as K}from"./index-d8ea0c8b.js";import"./Stack-a2ecd800.js";import"./createSvgIcon-968d1259.js";import"./TextareaAutosize-449c264d.js";const _="https://community.sphinx.chat",N=async e=>await F.post("/bounty",JSON.stringify(e)),O=async e=>await C(`${_}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${_}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await V.signMessage(r),a=L(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return Y(l)}catch(e){return console.log("error from signing more message: ",e),""}}function L(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 Y(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},H=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=M(),[a,l]=x.useState([]),{pubKey:c}=$();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(J,{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(z,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...A,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(X,{children:e})]})},T=w(k)` +import{z as V,bV as C,bW as m,bX as F,s as B,T as k,F as d,ao as z,r as x,b as M,j as n,aV as $,aW as R,B as S,e as E,t as U,v as W,aU as A,aY as G}from"./index-794e801a.js";import{n as I}from"./index-d39d2c64.js";import{A as K}from"./index-f6ae5354.js";import"./Stack-0bfda087.js";import"./createSvgIcon-72fbec8f.js";import"./TextareaAutosize-cee09ef8.js";const _="https://community.sphinx.chat",N=async e=>await V.post("/bounty",JSON.stringify(e)),O=async e=>await C(`${_}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${_}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await F.signMessage(r),a=v(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function v(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function L(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=z(),[a,l]=x.useState([]),{pubKey:c}=M();x.useEffect(()=>{async function o(){try{const i=await O(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(X,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(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(Y,{children:e})]})},T=B(k)` font-size: 14px; font-weight: 600; font-family: 'Barlow'; margin-bottom: 6px; -`,J=w(k)` +`,X=B(k)` font-size: 18px; font-weight: 600; font-family: 'Barlow'; margin-bottom: 6px; -`,X=w(d)` +`,Y=B(d)` font-size: 13px; font-family: Barlow; color: #ff8f80; line-height: 0.2px; margin-top: 12px; padding-top: 20px; -`,Q=()=>{const[e,t]=x.useState(""),{close:r}=E("createBounty"),s=I(),a=U({mode:"onChange"}),{handleSubmit:l,setValue:c}=a,u=()=>{c("budget",""),c("nodeType",""),c("workspaceUuid",""),r()},g=async f=>{const{budget:y,workspaceUuid:h}=f;try{const o=await q(),i={type:"code_generation",amount:Number(y),workspace_uuid:h||"ck9drb84nncjnaefo090",ref_id:s==null?void 0:s.ref_id,node_data:(s==null?void 0:s.properties)||{},jwt_token:o};await N(i),W("Bounty Created")}catch(o){t(o)}finally{c("budget",""),c("nodeType",""),c("workspaceUuid",""),u()}};return n.jsx(R,{...a,children:n.jsx("form",{id:"create-bounty-form",onSubmit:l(g),children:n.jsx(H,{errMessage:e,handleClose:u})})})},re=()=>{const{close:e}=E("createBounty"),t=U({mode:"onChange"}),{setValue:r}=t,s=()=>{r("budget",""),r("nodeType",""),e()},a="small";return n.jsx(G,{id:"createBounty",kind:a,onClose:s,preventOutsideClose:!0,children:n.jsx(Q,{})})};export{re as CreateBountyModal}; +`,Q=()=>{const[e,t]=x.useState(""),{close:r}=E("createBounty"),s=I(),a=U({mode:"onChange"}),{handleSubmit:l,setValue:c}=a,u=()=>{c("budget",""),c("nodeType",""),c("workspaceUuid",""),r()},g=async f=>{const{budget:y,workspaceUuid:h}=f;try{const o=await q(),i={type:"code_generation",amount:Number(y),workspace_uuid:h||"ck9drb84nncjnaefo090",ref_id:s==null?void 0:s.ref_id,node_data:(s==null?void 0:s.properties)||{},jwt_token:o};await N(i),A("Bounty Created")}catch(o){t(o)}finally{c("budget",""),c("nodeType",""),c("workspaceUuid",""),u()}};return n.jsx(W,{...a,children:n.jsx("form",{id:"create-bounty-form",onSubmit:l(g),children:n.jsx(J,{errMessage:e,handleClose:u})})})},re=()=>{const{close:e}=E("createBounty"),t=U({mode:"onChange"}),{setValue:r}=t,s=()=>{r("budget",""),r("nodeType",""),e()},a="small";return n.jsx(G,{id:"createBounty",kind:a,onClose:s,preventOutsideClose:!0,children:n.jsx(Q,{})})};export{re as CreateBountyModal}; diff --git a/build/assets/index-657a329d.js b/build/assets/index-4a17ebed.js similarity index 89% rename from build/assets/index-657a329d.js rename to build/assets/index-4a17ebed.js index ee45efccf..4c1cf87be 100644 --- a/build/assets/index-657a329d.js +++ b/build/assets/index-4a17ebed.js @@ -1,5 +1,5 @@ -import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ as D,ak as gt,U as ne,al as ft,s as c,a as x,T as N,B as W,F as g,e as E,bf as mt,an as se,L as re,u as le,bg as bt,bh as jt,ag as yt,bi as wt,bj as Ve,D as ae,bk as qe,i as we,aZ as _e,a_ as Ne,a$ as ze,bl as Ct,bm as vt,ae as Tt,bn as $t,b as Ke,C as te,bo as St,bd as Xe,bp as Qe,t as Ce,aY as ce,w as ve,bq as kt,aV as _t,aW as Nt,br as de,bs as zt,k as Lt,q as It,aa as Bt}from"./index-f2cb870a.js";import{aB as Rt,h as Et,P as Te,aC as je,f as q,aD as Mt,D as At,J as Ft,a4 as Je,aE as Ze,aF as et,aG as tt,ai as st,aH as Ot,aI as Wt,aJ as Ht,aK as Le,aL as Ie,x as Be,aM as ge,aN as Pt,y as Dt}from"./index-d6936fc6.js";import{T as Re,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-fc83fb70.js";import{C as z}from"./ClipLoader-83efcb6b.js";import{I as Vt,A as Se,T as lt}from"./index-d8ea0c8b.js";import{u as B}from"./index-a583ad56.js";import{T as Ee}from"./Typography-fe8f2873.js";import{T as qt,a as Kt}from"./Tabs-e3b4b317.js";import"./Stack-a2ecd800.js";import"./createSvgIcon-968d1259.js";import"./TextareaAutosize-449c264d.js";const Xt=h.createContext(),ct=Xt;function Qt(t){return K("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Jt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Qt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Me="table",ts=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=J(r,Jt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Zt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Me?null:"table",ref:n,className:Z(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return K("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=Q({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=J(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:Z(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return K("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=Q({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=J(r,hs),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=I({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),O=us(A);let L=null;return m&&(L=m==="asc"?"ascending":"descending"),e.jsx(gs,I({as:w,ref:n,className:Z(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return K("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=Q({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=J(r,js),o=I({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,I({as:i,className:Z(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return K("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=Q({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=J(r,Ss),u=h.useContext(xe),m=I({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,I({as:i,ref:n,className:Z(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=Ns;function ye(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(ms)` +import{r as h,L as Q,M as X,O as F,x as I,S as K,H as Z,j as e,U as J,V as ee,Y as D,ak as gt,P as ne,al as ft,s as c,a as x,T as N,B as W,F as g,e as E,bf as mt,an as se,J as re,u as le,bg as bt,bh as jt,ag as yt,bi as wt,bj as Ve,A as ae,bk as qe,i as we,aZ as _e,a_ as Ne,a$ as ze,bl as Ct,bm as vt,ad as Tt,bn as $t,b as Qe,C as te,bo as St,bd as Xe,bp as Ke,t as Ce,aY as ce,v as ve,bq as kt,aV as _t,aW as Nt,br as de,bs as zt,k as Lt,q as It,a7 as Bt}from"./index-794e801a.js";import{av as Rt,h as Et,P as Te,aw as je,f as q,ax as Mt,D as At,z as Ft,$ as Ze,ay as Je,az as et,aA as tt,ad as st,aB as Ot,aC as Wt,aD as Ht,aE as Le,aF as Ie,v as Be,aG as ge,aH as Pt,w as Dt}from"./index-d39d2c64.js";import{T as Re,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-f6ae9f1c.js";import{C as z}from"./ClipLoader-548a512b.js";import{I as Vt,A as Se,T as lt}from"./index-f6ae5354.js";import{u as B}from"./index-a03166b8.js";import{T as Ee}from"./Typography-4a916cc9.js";import{T as qt,a as Qt}from"./Tabs-59164736.js";import"./Stack-0bfda087.js";import"./createSvgIcon-72fbec8f.js";import"./TextareaAutosize-cee09ef8.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}; border: none; @@ -228,7 +228,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ gap: 12px; align-items: center; margin-top: 16px; -`,qs=({data:t})=>{const s=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const o=await yt.enable();await wt(a,o.pubkey),s(t.filter(d=>d.ref_id!==a))}catch(o){console.warn(o)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),s(t==null?void 0:t.filter(o=>o.ref_id!==a))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${ot}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Ks,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(bt,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(jt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` +`,qs=({data:t})=>{const s=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const o=await yt.enable();await wt(a,o.pubkey),s(t.filter(d=>d.ref_id!==a))}catch(o){console.warn(o)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),s(t==null?void 0:t.filter(o=>o.ref_id!==a))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${ot}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Qs,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(bt,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(jt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` width: 20px; height: 20px; border-radius: 50%; @@ -251,9 +251,9 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ &:hover { cursor: pointer; } -`,Ks=c.div` +`,Qs=c.div` margin-right: 40px; -`,Xs=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Qs,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Js,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qs,{data:o})})]})},Qs=c(g)` +`,Xs=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Ks,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Zs,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qs,{data:o})})]})},Ks=c(g)` flex: 1; .title { @@ -279,12 +279,12 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ & .filters { overflow-x: auto; } -`,Js=c(g)` +`,Zs=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,xt=({onSearch:t,placeholder:s,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[o,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:o?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(Zs,{children:[e.jsx(eo,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:s,value:o,...a}),j()]})},Ge=c(g)` +`,xt=({onSearch:t,placeholder:s,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[o,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:o?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(Js,{children:[e.jsx(eo,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:s,value:o,...a}),j()]})},Ge=c(g)` top: -50%; right: -3%; z-index: 3; @@ -292,7 +292,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ transform: translate(-50%, 50%); `,fe=c(q)` font-size: 24px; -`,Zs=c(Mt)` +`,Js=c(Mt)` && { width: 100%; height: 40px; @@ -440,7 +440,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ display: flex; justify-content: center; align-items: center; -`,lo=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=Ke(p=>[p.isAdmin]),[o,d]=h.useState("");h.useEffect(()=>{(async()=>{s(!0);try{const b=await qe();i(b.data)}catch(b){console.warn(b)}finally{s(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(o.toLowerCase())||p.source.toLowerCase().includes(o.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(o.toLowerCase())||`@${p.source.toLowerCase()}`.includes(o.toLowerCase()))),[o,n,l]);return e.jsxs(co,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xo,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Je,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(po,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(so,{canEdit:a,data:m})})]})},co=c(g)` +`,lo=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=Qe(p=>[p.isAdmin]),[o,d]=h.useState("");h.useEffect(()=>{(async()=>{s(!0);try{const b=await qe();i(b.data)}catch(b){console.warn(b)}finally{s(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(o.toLowerCase())||p.source.toLowerCase().includes(o.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(o.toLowerCase())||`@${p.source.toLowerCase()}`.includes(o.toLowerCase()))),[o,n,l]);return e.jsxs(co,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xo,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(po,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(so,{canEdit:a,data:m})})]})},co=c(g)` flex: 1; .title { font-size: 20px; @@ -462,7 +462,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ width: 100%; `,xo=c(g)` margin: 0 0 16px 36px; -`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await St();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Qe(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(nt,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||Xe,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(Ze,{})}),e.jsx(To,{onClick:i,children:e.jsx(et,{})}),e.jsx($o,{children:e.jsx(tt,{})})]})]})]}),fo=c(N)` +`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await St();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Ke(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(nt,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||Xe,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(Je,{})}),e.jsx(To,{onClick:i,children:e.jsx(et,{})}),e.jsx($o,{children:e.jsx(tt,{})})]})]})]}),fo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -560,7 +560,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ font-family: 'Barlow'; `,Lo=({topic:t,onClose:s})=>{const{close:n}=E("editTopic"),[r]=B(w=>[w.data]),l=Ce({mode:"onChange"}),{watch:i,setValue:a,reset:o,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{o()}),[t,a,o]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{s(),n()},y=async()=>{m(!0);try{if(await de((t==null?void 0:t.ref_id)||"",{node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,B.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(ce,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(No,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Io,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Io=c.span` margin-top: 2px; -`,Bo=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};o(!0);try{const $=(await Qe(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(nt,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||Xe,selectedValue:n?p(n):null})},Ro=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Eo,{children:"Merge topic"})})}),e.jsxs(Fo,{swap:r,children:[e.jsx(Mo,{children:e.jsx(Oo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Bo,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(Ze,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(et,{})}),e.jsx(Go,{children:e.jsx(tt,{})})]})]})]})},Eo=c(N)` +`,Bo=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};o(!0);try{const $=(await Ke(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(nt,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||Xe,selectedValue:n?p(n):null})},Ro=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Eo,{children:"Merge topic"})})}),e.jsxs(Fo,{swap:r,children:[e.jsx(Mo,{children:e.jsx(Oo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Bo,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(Je,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(et,{})}),e.jsx(Go,{children:e.jsx(tt,{})})]})]})]})},Eo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -654,14 +654,14 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ margin: 0 0 10px auto !important; `,qo=c.span` margin-top: 2px; -`,Ko=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=B(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await de(k,{node_data:{is_muted:v}}),B.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),O=k=>{A(k.currentTarget),p(!0)},L=()=>{p(!1)},H=!!S&&m,R=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Jo,{className:`checkbox-section ${R}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Zo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(st,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Qo,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Te,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:L,onMouseEnter:()=>p(!0),onMouseLeave:L,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Ee,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Ee,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:O,onMouseLeave:L,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Xo,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Ot,{})}):e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(Wt,{})}),e.jsx(q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Ht,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Xo=c.span` +`,Qo=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=B(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await de(k,{node_data:{is_muted:v}}),B.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),O=k=>{A(k.currentTarget),p(!0)},L=()=>{p(!1)},H=!!S&&m,R=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zo,{className:`checkbox-section ${R}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Jo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(st,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Ko,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Te,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:L,onMouseEnter:()=>p(!0),onMouseLeave:L,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Ee,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Ee,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:O,onMouseLeave:L,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Xo,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Ot,{})}):e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(Wt,{})}),e.jsx(q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Ht,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Xo=c.span` margin-left: 12px; -`,Qo=c.span` +`,Ko=c.span` cursor: pointer; :hover { text-decoration: underline; } -`,Jo=c.td` +`,Zo=c.td` visibility: hidden; cursor: pointer; display: flex; @@ -670,7 +670,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ &.visible { visibility: visible; } -`,Zo=c.div` +`,Jo=c.div` width: 14px; height: 14px; border-radius: 4px; @@ -690,7 +690,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ display: flex; align-items: center; justify-content: center; -`,sn=h.memo(Ko),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=E("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=Lt(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=B(T=>[T.data,T.ids,T.total]),O=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),L=()=>{p(null)},H=T=>{C(T),w(T),o()},R=T=>{r(b,T),L()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,M=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await de(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);B.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:M,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>R("mergeTopic"),children:[e.jsx(Be,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ut),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Gt),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(st,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:O,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:L,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>R("unMute"),children:[" ",e.jsx(Le,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>R("mute"),children:[" ",e.jsx(Ie,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>R("editTopic"),children:[e.jsx(Pt,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>R("mergeTopic"),children:[e.jsx(Be,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>R("addEdge"),children:[e.jsx(Dt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` +`,sn=h.memo(Qo),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=E("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=Lt(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=B(T=>[T.data,T.ids,T.total]),O=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),L=()=>{p(null)},H=T=>{C(T),w(T),o()},R=T=>{r(b,T),L()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,M=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await de(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);B.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:M,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>R("mergeTopic"),children:[e.jsx(Be,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ut),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Gt),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(st,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:O,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:L,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>R("unMute"),children:[" ",e.jsx(Le,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>R("mute"),children:[" ",e.jsx(Ie,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>R("editTopic"),children:[e.jsx(Pt,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>R("mergeTopic"),children:[e.jsx(Be,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>R("addEdge"),children:[e.jsx(Dt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` cursor: pointer; display: flex; align-items: center; @@ -784,7 +784,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ display: flex; align-items: center; justify-content: center; -`,un=()=>{const[t,s,n,r,l,i,a,o]=B(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=E("editTopic"),{open:u}=E("mergeTopic"),{open:m}=E("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{s.length&&(S.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const O=v=>{i({sortBy:v})},L=()=>{b(null),y([])},H=async(v,_)=>{try{await de(v,{node_data:{is_muted:_==="mute"}}),B.setState({ids:s.filter(M=>M!==v),total:n-1})}catch(M){console.warn(M)}},R=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(M=>M).length>0){const M=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(M),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Je,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:O,onTopicEdit:R,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:L}),p&&e.jsx(Lo,{onClose:L,topic:p}),p&&e.jsx(So,{onClose:L,topic:p})]})},gn=c(g)` +`,un=()=>{const[t,s,n,r,l,i,a,o]=B(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=E("editTopic"),{open:u}=E("mergeTopic"),{open:m}=E("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{s.length&&(S.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const O=v=>{i({sortBy:v})},L=()=>{b(null),y([])},H=async(v,_)=>{try{await de(v,{node_data:{is_muted:_==="mute"}}),B.setState({ids:s.filter(M=>M!==v),total:n-1})}catch(M){console.warn(M)}},R=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(M=>M).length>0){const M=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(M),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:O,onTopicEdit:R,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:L}),p&&e.jsx(Lo,{onClose:L,topic:p}),p&&e.jsx(So,{onClose:L,topic:p})]})},gn=c(g)` flex: 1; .title { @@ -821,7 +821,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ width: 100%; `,mn=c(g)` margin: 0 0 16px 36px; -`,bn=[{label:it,component:Fs},{label:Yt,component:lo},{label:at,component:Xs},{label:rt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=Ke(o=>[o.isAdmin]),[r]=It(o=>[o.queuedSourcesFeatureFlag]),l=Bt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===rt?n:o===at?n&&r:o===it?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(qt)` +`,bn=[{label:it,component:Fs},{label:Yt,component:lo},{label:at,component:Xs},{label:rt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=Qe(o=>[o.isAdmin]),[r]=It(o=>[o.queuedSourcesFeatureFlag]),l=Bt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===rt?n:o===at?n&&r:o===it?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(qt)` && { background: rgba(0, 0, 0, 0.2); border-radius: 9px 9px 0 0; @@ -829,7 +829,7 @@ import{r as h,O as K,P as X,S as F,y as I,V as Q,K as J,j as e,X as Z,Y as ee,$ background: ${x.primaryBlue}; } } -`,vn=c(Kt)` +`,vn=c(Qt)` && { padding: 30px 0 24px; color: ${x.GRAY6}; diff --git a/build/assets/index-4bee6c36.js b/build/assets/index-4ae82293.js similarity index 90% rename from build/assets/index-4bee6c36.js rename to build/assets/index-4ae82293.js index ea7140618..8bf9f9b8c 100644 --- a/build/assets/index-4bee6c36.js +++ b/build/assets/index-4ae82293.js @@ -1,4 +1,4 @@ -import{A as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aX as ee,b5 as te,ao as se,aV as L,aW as F,ba as B,bb as ne,q as oe,bc as re,bd as ie,be as ae,e as O,t as ce,u as le,aU as de,N as I,aY as pe,w as xe,ah as me,ag as ue,b8 as he}from"./index-f2cb870a.js";import{ai as fe,i as ye}from"./index-d6936fc6.js";import{f as ge}from"./index-4313502a.js";import{C as U}from"./ClipLoader-83efcb6b.js";import{p as q}from"./index-83069401.js";import{A as je}from"./index-d8ea0c8b.js";import{c as we}from"./index-64f1c910.js";import"./three.module-9c942ca6.js";import"./Stack-a2ecd800.js";import"./createSvgIcon-968d1259.js";import"./TextareaAutosize-449c264d.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{z as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aX as ee,b5 as te,ao as se,aV as L,aW as F,ba as B,bb as ne,q as oe,bc as re,bd as ie,be as ae,e as O,t as ce,u as le,aU as de,N as I,aY as pe,v as xe,ah as me,ag as ue,b8 as he}from"./index-794e801a.js";import{ad as fe,i as ye}from"./index-d39d2c64.js";import{f as ge}from"./index-d02d35b0.js";import{C as U}from"./ClipLoader-548a512b.js";import{p as q}from"./index-086ee5d7.js";import{A as je}from"./index-f6ae5354.js";import{c as we}from"./index-64f1c910.js";import"./three.module-df70f22b.js";import"./Stack-0bfda087.js";import"./createSvgIcon-72fbec8f.js";import"./TextareaAutosize-cee09ef8.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${b.GRAY7}; @@ -85,11 +85,11 @@ import{A as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aX as ee,b5 as font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[m,d]=y.useState(!1),[r,x]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=se();y.useEffect(()=>{(async()=>{d(!0);const u=await ne(c),A=(u.attributes&&typeof u.attributes=="object"?q(u.attributes):q(u)).filter(_=>_.key!=="node_key");x(A),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,u)=>s.required&&!u.required?-1:!s.required&&u.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:u})=>{if(u){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!m&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Ae,{children:"Set Attributes"})})}),e.jsx(_e,{children:m?e.jsx(t,{style:{margin:"auto"},children:e.jsx(U,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:u})=>e.jsxs(Ee,{children:[e.jsx(T,{children:f(s)}),e.jsx(L,{id:"item-name",maxLength:50,name:s,placeholder:u?"Required":"Optional",rules:{...u?{...F,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||m||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},Ae=g(T)` +`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[m,d]=y.useState(!1),[r,x]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=se();y.useEffect(()=>{(async()=>{d(!0);const u=await ne(c),_=(u.attributes&&typeof u.attributes=="object"?q(u.attributes):q(u)).filter(A=>A.key!=="node_key");x(_),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,u)=>s.required&&!u.required?-1:!s.required&&u.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:u})=>{if(u){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!m&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(_e,{children:"Set Attributes"})})}),e.jsx(Ae,{children:m?e.jsx(t,{style:{margin:"auto"},children:e.jsx(U,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:u})=>e.jsxs(Ee,{children:[e.jsx(T,{children:f(s)}),e.jsx(L,{id:"item-name",maxLength:50,name:s,placeholder:u?"Required":"Optional",rules:{...u?{...F,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||m||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},_e=g(T)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,_e=g(t)` +`,Ae=g(t)` width: 100%; display: flex; justify-content: center; @@ -120,4 +120,4 @@ import{A as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aX as ee,b5 as font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,$e=async(o,a,c)=>{var f;const m=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:x,...l}=m;let h="",w="";d!=="Create custom type"&&await me(async()=>{const n=await ue.enable();w=n==null?void 0:n.pubkey,h=await he()});try{const n=await Se(d,l,x,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},Ke=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:m}=O("addItem"),{open:d}=O("addType"),{setBudget:r}=V(i=>i),x=ce({mode:"onChange"}),{watch:l,setValue:h,reset:w}=x,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=le(i=>i),[u]=ye(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[m,w]);const S=l("nodeType"),A=l("typeName"),_=l("sourceLink"),W=l("type");l("title");const M=()=>{c()},E=i=>{p(""),a(i)},Y=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),X=Object.entries(i).reduce((D,[Q,z])=>(z!=null&&z!==""&&(D[Q]=z),D),{}),$={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...X}};s({nodes:[$],edges:[]}),u($)},J=x.handleSubmit(async i=>{p(""),n(!0);try{await $e(i,r,Y),de("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),P=i=>{i==="Create custom type"?d():h("nodeType",i)},H={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:P,selectedType:S,skipToStep:E}),source:e.jsx(Le,{name:A,skipToStep:E,sourceLink:_||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:W}),setAttribues:e.jsx(Ie,{handleSelectType:P,nodeType:S,skipToStep:E})},K="small";return e.jsx(pe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(xe,{...x,children:e.jsx("form",{id:"add-node-form",onSubmit:J,children:H[o]})})})};export{Ke as AddItemModal}; +`,$e=async(o,a,c)=>{var f;const m=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:x,...l}=m;let h="",w="";d!=="Create custom type"&&await me(async()=>{const n=await ue.enable();w=n==null?void 0:n.pubkey,h=await he()});try{const n=await Se(d,l,x,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},Ke=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:m}=O("addItem"),{open:d}=O("addType"),{setBudget:r}=V(i=>i),x=ce({mode:"onChange"}),{watch:l,setValue:h,reset:w}=x,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=le(i=>i),[u]=ye(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[m,w]);const S=l("nodeType"),_=l("typeName"),A=l("sourceLink"),W=l("type");l("title");const M=()=>{c()},E=i=>{p(""),a(i)},Y=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),X=Object.entries(i).reduce((D,[Q,z])=>(z!=null&&z!==""&&(D[Q]=z),D),{}),$={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...X}};s({nodes:[$],edges:[]}),u($)},J=x.handleSubmit(async i=>{p(""),n(!0);try{await $e(i,r,Y),de("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),P=i=>{i==="Create custom type"?d():h("nodeType",i)},H={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:P,selectedType:S,skipToStep:E}),source:e.jsx(Le,{name:_,skipToStep:E,sourceLink:A||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:W}),setAttribues:e.jsx(Ie,{handleSelectType:P,nodeType:S,skipToStep:E})},K="small";return e.jsx(pe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(xe,{...x,children:e.jsx("form",{id:"add-node-form",onSubmit:J,children:H[o]})})})};export{Ke as AddItemModal}; diff --git a/build/assets/index-a1c8bc76.js b/build/assets/index-521bb72b.js similarity index 73% rename from build/assets/index-a1c8bc76.js rename to build/assets/index-521bb72b.js index a3eb218c0..ba7376a03 100644 --- a/build/assets/index-a1c8bc76.js +++ b/build/assets/index-521bb72b.js @@ -1,4 +1,4 @@ -import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a as u,b as Z,r as f,j as e,F as r,B as C,aX as J,T as z,b5 as K,aV as X,aW as Q,e as ee,u as te,t as se,aU as ne,N as m,aY as oe,w as re,b6 as ae,ag as ie,b7 as ce,b8 as le,A as de,x as ue,b9 as xe}from"./index-f2cb870a.js";import{ai as pe}from"./index-d6936fc6.js";import{f as he}from"./index-4313502a.js";import{C as fe}from"./ClipLoader-83efcb6b.js";const T=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,_e=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?B:_e.test(t)?E:T.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:ve.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?T:/@(\w+)/).exec(t);return o?o[1]:null},v=t=>!!t&&[j,E,b,R].includes(t),Ae=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,p]=f.useState(10),d=v(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(Be,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[he(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(pe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Be=x(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as T,b2 as U,b3 as D,b4 as O,s as p,a as u,b as Z,r as f,j as e,F as r,B as C,aX as J,T as z,b5 as K,aV as X,aW as Q,e as ee,u as te,t as se,aU as ne,N as m,aY as oe,v as re,b6 as ae,ag as ie,b7 as ce,b8 as le,z as de,w as ue,b9 as pe}from"./index-794e801a.js";import{ad as xe}from"./index-d39d2c64.js";import{f as he}from"./index-d02d35b0.js";import{C as fe}from"./ClipLoader-548a512b.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?T:ve.test(t)?E:A.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Be=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[he(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(xe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Te=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${u.GRAY7}; @@ -19,7 +19,7 @@ import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a font-style: normal; font-weight: 500; } -`,Te=x(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +`,Ae=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` color: ${u.secondaryText4}; .title { font-family: Barlow; @@ -34,11 +34,11 @@ import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a font-style: normal; font-weight: 400; } -`,ke=x(z)` +`,ke=p(z)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Ne=x(r)` +`,Ne=p(r)` display: flex; flex-direction: row; align-items: center; @@ -65,13 +65,13 @@ import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a font-family: Barlow; line-height: 18px; } -`,Pe=x(r)` +`,Pe=p(r)` display: flex; align-items: center; color: ${u.primaryRed}; position: relative; margin-top: 20px; -`,L=x.span` +`,L=p.span` display: inline-flex; align-items: center; justify-content: center; @@ -81,11 +81,11 @@ import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a width: 16px; height: 16px; } -`,Ie=/^(https?:\/\/)/g,Le=/(www\.)?/g,Ue=/[\w-]+(\.[\w-]+)*/g,De=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/g,Oe=/(\/[^\s?]*)?/g,Ze=/(\?[^\s]*)?/g,G=new RegExp(`${Ie.source}${Le.source}${Ue.source}${De.source}?${Oe.source}${Ze.source}$`,"i"),M=t=>{if(t==null?void 0:t.match(G)){const o=new URL(t).hostname;return o!=null&&o.startsWith("www.")?((o==null?void 0:o.match(/\./g))||[]).length>=2:((o==null?void 0:o.match(/\./g))||[]).length>=1}return!1},Ge=({type:t,onNextStep:s,allowNextStep:n})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(Me,{children:"Add Content"})})}),e.jsx(r,{mb:12,children:e.jsx(X,{id:"cy-youtube-channel-id",maxLength:250,name:"source",placeholder:"Paste your url here...",rules:{...Q,...t!==B?{pattern:{message:"Please enter a valid URL",value:G},validate:{source:M}}:{}}})}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"add-content-btn",disabled:!n,onClick:s,size:"large",variant:"contained",children:"Next"})})]}),Me=x(z)` +`,Ie=/^(https?:\/\/)/g,Le=/(www\.)?/g,Ue=/[\w-]+(\.[\w-]+)*/g,De=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/g,Oe=/(\/[^\s?]*)?/g,Ze=/(\?[^\s]*)?/g,G=new RegExp(`${Ie.source}${Le.source}${Ue.source}${De.source}?${Oe.source}${Ze.source}$`,"i"),M=t=>{if(t==null?void 0:t.match(G)){const o=new URL(t).hostname;return o!=null&&o.startsWith("www.")?((o==null?void 0:o.match(/\./g))||[]).length>=2:((o==null?void 0:o.match(/\./g))||[]).length>=1}return!1},Ge=({type:t,onNextStep:s,allowNextStep:n})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(Me,{children:"Add Content"})})}),e.jsx(r,{mb:12,children:e.jsx(X,{id:"cy-youtube-channel-id",maxLength:250,name:"source",placeholder:"Paste your url here...",rules:{...Q,...t!==T?{pattern:{message:"Please enter a valid URL",value:G},validate:{source:M}}:{}}})}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"add-content-btn",disabled:!n,onClick:s,size:"large",variant:"contained",children:"Next"})})]}),Me=p(z)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,A={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[b]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},Fe=({onNextStep:t,onPrevStep:s,type:n,value:o})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(We,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(Ve,{children:[e.jsx("img",{alt:A[n].label,className:"badge__img",src:A[n].img}),e.jsx(Ye,{children:A[n].label})]}),e.jsx(He,{children:$e(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(qe,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(C,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),He=x(r)` +`,B={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[b]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},Fe=({onNextStep:t,onPrevStep:s,type:n,value:o})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(We,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(Ve,{children:[e.jsx("img",{alt:B[n].label,className:"badge__img",src:B[n].img}),e.jsx(Ye,{children:B[n].label})]}),e.jsx(He,{children:$e(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(qe,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(C,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),He=p(r)` font-family: Barlow; font-size: 14px; font-weight: 400; @@ -98,14 +98,14 @@ import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; -`,We=x(z)` +`,We=p(z)` font-family: Barlow; font-size: 14px; font-weight: 500; line-height: 17px; letter-spacing: 0px; text-align: left; -`,Ye=x(z)` +`,Ye=p(z)` font-family: Barlow; font-size: 20px; font-weight: 600; @@ -113,12 +113,12 @@ import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a letter-spacing: 0em; text-align: left; color: ${u.white}; -`,Ve=x(r)` +`,Ve=p(r)` display: flex; flex-direction: row; align-items: center; gap: 12px; -`,qe=x(C)` +`,qe=p(C)` && { background: ${u.white}; color: ${u.BG2}; @@ -130,4 +130,4 @@ import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as B,b2 as U,b3 as D,b4 as O,s as x,a color: ${u.BG2}; } } -`,F=async(t,s,n,o)=>{const y=v(s)?"radar":"add_node",a={};if(s===B)a.media_url=t.source,a.content_type="audio_video";else if(s===U){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;a.tweet_id=S}}else a.tweet_id=t.source;a.content_type="tweet"}else if(s===D)a.content_type="webpage",a.web_page=t.source;else if(s===O)a.content_type="document",a.text=t.source;else if(s===j){const[,i]=(t.source||"").match(T)||[];if(i)a.source=i,a.source_type=s;else return}else(s===E||s===b||s===R)&&(a.source=t.source,a.source_type=s);t.latitude&&t.longitude&&(a.latitude=t.latitude,a.longitude=t.longitude);let p="",d;ae?d=await ce.enable():d=await ie.enable(),a.pubkey=d==null?void 0:d.pubkey,p=await le();try{const i=await de.post(`/${y}`,JSON.stringify(a),{Authorization:p});if(await ue(n),i.data.project_id&&o(i.data.project_id),i.error){const{message:c}=i.error;throw new Error(c)}}catch(i){if(i.status===402)await xe(n),await F(t,s,n,o);else{let c=m;if(i.status===400)try{const l=await i.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else i instanceof Error&&(c=i.message||m);throw new Error(c)}}},et=()=>{const[t,s]=f.useState(0),{close:n,visible:o}=ee("addContent"),{setBudget:y}=Z(g=>g),{setRunningProjectId:a}=te(g=>g),p=se({mode:"onChange"}),{watch:d,setValue:i,reset:c}=p,[l,S]=f.useState(!1),[H,k]=f.useState("");f.useEffect(()=>()=>{k(""),s(0),c()},[o,c]);const w=d("inputType"),N=d("source"),P=d("source"),W=M(N);f.useEffect(()=>{(async()=>{const h=await ze(P);i("inputType",h)})()},[P,i]);const Y=()=>{n()},I=()=>{s(t===0?v(w)?1:2:t+1)},V=()=>{s(t-1)},q=p.handleSubmit(async g=>{S(!0);try{await F(g,w,y,a),ne("Content Added"),Y()}catch(h){let $=m;if((h==null?void 0:h.status)===400){const _=await h.json();$=_.errorCode||(_==null?void 0:_.status)||m}else h instanceof Error&&($=h.message);k(String($))}finally{S(!1)}});return e.jsx(oe,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(re,{...p,children:e.jsxs("form",{id:"add-node-form",onSubmit:q,children:[t===0&&e.jsx(Ge,{allowNextStep:W,onNextStep:I,type:w}),t===1&&v(w)&&e.jsx(Fe,{onNextStep:I,onPrevStep:V,type:w,value:N}),t===2&&e.jsx(Ae,{error:H,loading:l,onClick:()=>null,type:w})]})})})};export{et as AddContentModal}; +`,F=async(t,s,n,o)=>{const y=_(s)?"radar":"add_node",a={};if(s===T)a.media_url=t.source,a.content_type="audio_video";else if(s===U){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;a.tweet_id=S}}else a.tweet_id=t.source;a.content_type="tweet"}else if(s===D)a.content_type="webpage",a.web_page=t.source;else if(s===O)a.content_type="document",a.text=t.source;else if(s===j){const[,i]=(t.source||"").match(A)||[];if(i)a.source=i,a.source_type=s;else return}else(s===E||s===b||s===R)&&(a.source=t.source,a.source_type=s);t.latitude&&t.longitude&&(a.latitude=t.latitude,a.longitude=t.longitude);let x="",d;ae?d=await ce.enable():d=await ie.enable(),a.pubkey=d==null?void 0:d.pubkey,x=await le();try{const i=await de.post(`/${y}`,JSON.stringify(a),{Authorization:x});if(await ue(n),i.data.project_id&&o(i.data.project_id),i.error){const{message:c}=i.error;throw new Error(c)}}catch(i){if(i.status===402)await pe(n),await F(t,s,n,o);else{let c=m;if(i.status===400)try{const l=await i.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else i instanceof Error&&(c=i.message||m);throw new Error(c)}}},et=()=>{const[t,s]=f.useState(0),{close:n,visible:o}=ee("addContent"),{setBudget:y}=Z(g=>g),{setRunningProjectId:a}=te(g=>g),x=se({mode:"onChange"}),{watch:d,setValue:i,reset:c}=x,[l,S]=f.useState(!1),[H,k]=f.useState("");f.useEffect(()=>()=>{k(""),s(0),c()},[o,c]);const w=d("inputType"),N=d("source"),P=d("source"),W=M(N);f.useEffect(()=>{(async()=>{const h=await ze(P);i("inputType",h)})()},[P,i]);const Y=()=>{n()},I=()=>{s(t===0?_(w)?1:2:t+1)},V=()=>{s(t-1)},q=x.handleSubmit(async g=>{S(!0);try{await F(g,w,y,a),ne("Content Added"),Y()}catch(h){let $=m;if((h==null?void 0:h.status)===400){const v=await h.json();$=v.errorCode||(v==null?void 0:v.status)||m}else h instanceof Error&&($=h.message);k(String($))}finally{S(!1)}});return e.jsx(oe,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(re,{...x,children:e.jsxs("form",{id:"add-node-form",onSubmit:q,children:[t===0&&e.jsx(Ge,{allowNextStep:W,onNextStep:I,type:w}),t===1&&_(w)&&e.jsx(Fe,{onNextStep:I,onPrevStep:V,type:w,value:N}),t===2&&e.jsx(Be,{error:H,loading:l,onClick:()=>null,type:w})]})})})};export{et as AddContentModal}; diff --git a/build/assets/index-5f0d156b.js b/build/assets/index-555cc0b7.js similarity index 83% rename from build/assets/index-5f0d156b.js rename to build/assets/index-555cc0b7.js index c12ca5d9a..9b8b00e34 100644 --- a/build/assets/index-5f0d156b.js +++ b/build/assets/index-555cc0b7.js @@ -1,4 +1,4 @@ -import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X as To,by as En,bz as gr,Y as $o,$ as bt,U as Zr,ak as Ci,al as Si,s as O,a as j,t as br,bd as _i,bc as xr,T as _e,F as $,aV as hn,aW as gn,ba as ji,B as Cn,bA as Oi,bB as Hn,w as Ao,bC as Pi,C as mr,bD as Ti,L as c,k as vr,an as Qr,bE as $i,ao as Ai,bF as Jr,bG as Mo,bb as ko,e as Ro,bH as Mi,N as gt,A as ar,d as yr,v as ki,z as ea,aY as Ri}from"./index-f2cb870a.js";import{A as Dt}from"./index-d8ea0c8b.js";import{C as Ie}from"./ClipLoader-83efcb6b.js";import{m as E,I as or,f as Bi,D as Fi,h as Bo,aQ as Ni,t as ta,aR as na,aS as ra,v as aa,s as Ii,aT as Di,aU as Hi}from"./index-d6936fc6.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./isPlainObject-25422081.js";import{T as Xi,a as Ki}from"./Tabs-e3b4b317.js";import{p as ir,c as qi,g as Zi}from"./index-83069401.js";import{e as Qi}from"./Stack-a2ecd800.js";import{g as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,f as No,l as ts,H as ns,i as oa,C as rs,j as as,k as os}from"./index-5b1d6c13.js";import{R as is,y as ss,z as ls,V as G,A as qe,I as Ze,Q as ia,J as ln,O as cn,K as sa,e as de,N as cs,r as us,C as ps}from"./three.module-9c942ca6.js";import"./createSvgIcon-968d1259.js";import"./TextareaAutosize-449c264d.js";import"./Typography-fe8f2873.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function ys({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ws({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Ss=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Cs(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>oe({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),ys,ws,Es,vs);function _s(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,fs,e)},Os=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=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))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${bt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>oe({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${J.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${J.checked} + .${J.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),Rs=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Bs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Fs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Qt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Jt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Jt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Jt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):Q(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function Q(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Qt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:es([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await xr()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` +import{r as y,L as _o,M as jo,O as Wt,x as oe,S as Oo,a3 as Ei,H as Po,j as p,U as To,by as En,bz as gr,V as $o,Y as bt,P as Zr,ak as Ci,al as Si,s as O,a as j,t as br,bd as _i,bc as xr,T as _e,F as $,aV as hn,aW as gn,ba as ji,B as Cn,bA as Oi,bB as Hn,v as Ao,bC as Pi,C as mr,bD as Ti,J as c,k as vr,an as Jr,bE as $i,ao as Ai,bF as Qr,bG as Mo,bb as ko,e as Ro,bH as Mi,N as gt,z as ar,d as yr,af as ki,y as ea,aY as Ri}from"./index-794e801a.js";import{A as Dt}from"./index-f6ae5354.js";import{C as Ie}from"./ClipLoader-548a512b.js";import{I as or,f as Bi,D as Fi,h as Bo,r as ta,aK as na,aL as ra,s as aa,q as Ni,aM as Ii,aN as Di}from"./index-d39d2c64.js";import{S as Hi,j as zi,p as Li,q as Gi,r as Wi,m as Ui,F as Vi}from"./isPlainObject-11606a25.js";import{P as E}from"./index-195d9df5.js";import{T as Yi,a as Xi}from"./Tabs-59164736.js";import{p as ir,c as Ki,g as qi}from"./index-086ee5d7.js";import{e as Zi}from"./Stack-0bfda087.js";import{h as Ji,m as Qi,u as me,a as Sn,t as sr,T as Fo,f as No,g as es,n as ts,H as ns,j as oa,C as rs,k as as,l as os}from"./index-3ee44dc3.js";import{R as is,z as ss,A as ls,V as G,I as qe,J as Ze,Q as ia,K as ln,O as cn,N as sa,e as de,U as cs,r as us,C as ps}from"./three.module-df70f22b.js";import"./createSvgIcon-72fbec8f.js";import"./TextareaAutosize-cee09ef8.js";import"./Typography-4a916cc9.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function ys({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ws({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Ss=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Cs(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>oe({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),ys,ws,Es,vs);function _s(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,fs,e)},Os=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Zi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,ms),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=oe({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=oe({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=js(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Ss,oe({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Q=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${Q.thumb}`]:{width:16,height:16},[`& .${Q.switchBase}`]:{padding:4,[`&.${Q.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(Hi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Q.input}`]:e.input},n.color!=="default"&&e[`color${bt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Q.checked}`]:{transform:"translateX(20px)"},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Q.checked} + .${Q.track}`]:{opacity:.5},[`&.${Q.disabled} + .${Q.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Q.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>oe({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Q.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${Q.checked} + .${Q.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),Rs=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Bs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Fs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Jt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Qt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Qt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Qt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):J(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function J(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Jt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:Qi([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await xr()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; @@ -50,7 +50,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X background-color: rgba(237, 116, 116, 0.2); } } -`,Ks=({setIsAddEdgeNode:t,edgeData:e,setGraphLoading:n})=>{const r=()=>{t(!1)};return p.jsxs($,{children:[p.jsxs(Zs,{align:"center",direction:"row",justify:"space-between",children:[p.jsx(Js,{"data-testid":"edge-modal-title",children:e!=null&&e.refId?"Edit Edge":"Add Edge"}),p.jsx(qs,{"data-testid":"close-sidebar-sub-view",onClick:r,children:p.jsx(mr,{})})]}),p.jsx(Qs,{}),p.jsx(Vs,{edgeLinkData:e,onCancel:r,setGraphLoading:n})]})},qs=O($)` +`,Ks=({setIsAddEdgeNode:t,edgeData:e,setGraphLoading:n})=>{const r=()=>{t(!1)};return p.jsxs($,{children:[p.jsxs(Zs,{align:"center",direction:"row",justify:"space-between",children:[p.jsx(Qs,{"data-testid":"edge-modal-title",children:e!=null&&e.refId?"Edit Edge":"Add Edge"}),p.jsx(qs,{"data-testid":"close-sidebar-sub-view",onClick:r,children:p.jsx(mr,{})})]}),p.jsx(Js,{}),p.jsx(Vs,{edgeLinkData:e,onCancel:r,setGraphLoading:n})]})},qs=O($)` font-size: 32px; color: ${j.white}; cursor: pointer; @@ -66,12 +66,12 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X } `,Zs=O($)` margin-bottom: 16px; -`,Qs=O.div` +`,Js=O.div` border-bottom: 1px solid ${j.black}; width: calc(100% + 32px); margin: 0 -16px 16px; opacity: 0.3; -`,Js=O(_e)` +`,Qs=O(_e)` font-family: Barlow; font-size: 22px; font-weight: 600; @@ -80,7 +80,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X text-align: left; margin-left: 2px; color: ${j.white}; -`;var ce={},Ut={},el=Li;function tl(t){return typeof t=="function"?t:el}var nl=tl,rl=Gi,al=nl;function ol(t,e){return t&&rl(t,al(e))}var wr=ol;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.flattenNames=void 0;var il=Wi,sl=_n(il),ll=wr,cl=_n(ll),ul=Ui,pl=_n(ul),dl=Vi,fl=_n(dl);function _n(t){return t&&t.__esModule?t:{default:t}}var hl=Ut.flattenNames=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,fl.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,pl.default)(r)?(0,cl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,sl.default)(r)&&n.push(r)}),n};Ut.default=hl;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var gl=wr,bl=Ho(gl),xl=Ti,ml=Ho(xl),vl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,ml.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,bl.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=vl({},r[i],o[i])}),a}),r};Vt.default=yl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var wl=wr,ha=Cl(wl),El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){$l(a,r);function a(){var o,s,i,l;Tl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Fl(a,r);function a(){var o,s,i,l;Bl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[s]=i};return e===0&&a("first-child"),e===n-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),r};Er.default=Il;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var Dl=Ut,Hl=mt(Dl),zl=Vt,Ll=mt(zl),Gl=Yt,Wl=mt(Gl),Ul=Xt,zo=mt(Ul),Vl=Kt,Yl=mt(Vl),Xl=Er,Kl=mt(Xl);function mt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=Yl.default;ce.loop=Kl.default;var ql=ce.ReactCSS=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;ai?h=1:h=Math.round(f*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var g=void 0;if(d<0?g=0:d>s?g=1:g=Math.round(d*100/s)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},Wn={},Ql=function(e,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var s=o.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,o.width,o.height),s.fillStyle=n,s.fillRect(0,0,r,r),s.translate(r,r),s.fillRect(0,0,r,r),o.toDataURL()):null},Jl=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Ql(e,n,r,a);return Wn[o]=s,s},xa=Object.assign||function(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,fl.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,pl.default)(r)?(0,cl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,sl.default)(r)&&n.push(r)}),n};Ut.default=hl;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var gl=wr,bl=Ho(gl),xl=Ti,ml=Ho(xl),vl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,ml.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,bl.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=vl({},r[i],o[i])}),a}),r};Vt.default=yl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var wl=wr,ha=Cl(wl),El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){$l(a,r);function a(){var o,s,i,l;Tl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Fl(a,r);function a(){var o,s,i,l;Bl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[s]=i};return e===0&&a("first-child"),e===n-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),r};Er.default=Il;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var Dl=Ut,Hl=mt(Dl),zl=Vt,Ll=mt(zl),Gl=Yt,Wl=mt(Gl),Ul=Xt,zo=mt(Ul),Vl=Kt,Yl=mt(Vl),Xl=Er,Kl=mt(Xl);function mt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=Yl.default;ce.loop=Kl.default;var ql=ce.ReactCSS=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;ai?h=1:h=Math.round(f*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var g=void 0;if(d<0?g=0:d>s?g=1:g=Math.round(d*100/s)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},Wn={},Jl=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},Ql=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Jl(e,n,r,a);return Wn[o]=s,s},xa=Object.assign||function(t){for(var e=1;e-1},fc=function(e){return Number(String(e).replace(/%/g,""))},hc=1,W=function(t){lc(e,t);function e(n){ic(this,e);var r=sc(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(a){r.setUpdatedValue(a.target.value,a)},r.handleKeyDown=function(a){var o=fc(a.target.value);if(!isNaN(o)&&dc(a.keyCode)){var s=r.getArrowOffset(),i=a.keyCode===Lo?o+s:o-s;r.setUpdatedValue(i,a)}},r.handleDrag=function(a){if(r.props.dragLabel){var o=Math.round(r.props.value+a.movementX);o>=0&&o<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(o),a)}},r.handleMouseDown=function(a){r.props.dragLabel&&(a.preventDefault(),r.handleDrag(a),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},r.inputId="rc-editable-input-"+hc++,r}return ac(e,[{key:"componentDidUpdate",value:function(r,a){this.props.value!==this.state.value&&(r.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return oc({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||cc}},{key:"setUpdatedValue",value:function(r,a){var o=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(o,a),this.setState({value:r})}},{key:"render",value:function(){var r=this,a=N({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return c.createElement("div",{style:a.wrap},c.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return r.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?c.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(y.PureComponent||y.Component),gc=function(e,n,r,a){var o=a.clientWidth,s=a.clientHeight,i=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=i-(a.getBoundingClientRect().left+window.pageXOffset),d=l-(a.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(d<0)f=359;else if(d>s)f=0;else{var h=-(d*100/s)+100;f=360*h/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var g=void 0;if(u<0)g=0;else if(u>o)g=359;else{var x=u*100/o;g=360*x/100}if(r.h!==g)return{h:g,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},bc=function(){function t(e,n){for(var r=0;r-1}function _c(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 Oe(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Uu}function wt(t){return t!=null&&Pr(t.length)&&!_r(t)}function Vu(t){return Re(t)&&wt(t)}function Yu(){return!1}var qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oa=qo&&typeof module=="object"&&module&&!module.nodeType&&module,Xu=Oa&&Oa.exports===qo,Pa=Xu?be.Buffer:void 0,Ku=Pa?Pa.isBuffer:void 0,qu=Ku||Yu;const vn=qu;var Zu="[object Object]",Qu=Function.prototype,Ju=Object.prototype,Zo=Qu.toString,ep=Ju.hasOwnProperty,tp=Zo.call(Object);function np(t){if(!Re(t)||He(t)!=Zu)return!1;var e=Xo(t);if(e===null)return!0;var n=ep.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Zo.call(n)==tp}var rp="[object Arguments]",ap="[object Array]",op="[object Boolean]",ip="[object Date]",sp="[object Error]",lp="[object Function]",cp="[object Map]",up="[object Number]",pp="[object Object]",dp="[object RegExp]",fp="[object Set]",hp="[object String]",gp="[object WeakMap]",bp="[object ArrayBuffer]",xp="[object DataView]",mp="[object Float32Array]",vp="[object Float64Array]",yp="[object Int8Array]",wp="[object Int16Array]",Ep="[object Int32Array]",Cp="[object Uint8Array]",Sp="[object Uint8ClampedArray]",_p="[object Uint16Array]",jp="[object Uint32Array]",Y={};Y[mp]=Y[vp]=Y[yp]=Y[wp]=Y[Ep]=Y[Cp]=Y[Sp]=Y[_p]=Y[jp]=!0;Y[rp]=Y[ap]=Y[bp]=Y[op]=Y[xp]=Y[ip]=Y[sp]=Y[lp]=Y[cp]=Y[up]=Y[pp]=Y[dp]=Y[fp]=Y[hp]=Y[gp]=!1;function Op(t){return Re(t)&&Pr(t.length)&&!!Y[He(t)]}function Pp(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,Tp=Ht&&Ht.exports===Qo,Vn=Tp&&Go.process,$p=function(){try{var t=Ht&&Ht.require&&Ht.require("util").types;return t||Vn&&Vn.binding&&Vn.binding("util")}catch{}}();const Ta=$p;var $a=Ta&&Ta.isTypedArray,Ap=$a?Pp($a):Op;const Tr=Ap;function cr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Mp=Object.prototype,kp=Mp.hasOwnProperty;function Rp(t,e,n){var r=t[e];(!(kp.call(t,e)&&qt(r,n))||n===void 0&&!(e in t))&&jr(t,e,n)}function Bp(t,e,n,r){var a=!n;n||(n={});for(var o=-1,s=e.length;++o-1&&t%1==0&&t0){if(++e>=Qp)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var nd=td(Zp);const rd=nd;function ad(t,e){return rd(Xp(t,e,Pn),t+"")}function od(t,e,n){if(!ue(n))return!1;var r=typeof e;return(r=="number"?wt(n)&&$r(e,n.length):r=="string"&&e in n)?qt(n[e],t):!1}function id(t){return ad(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&&od(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 wd="Expected a function";function Ed(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(wd);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 Cd=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"}},Sd=function(){function t(e,n){for(var r=0;r-1}function _c(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 Oe(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Uu}function wt(t){return t!=null&&Pr(t.length)&&!_r(t)}function Vu(t){return Re(t)&&wt(t)}function Yu(){return!1}var qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oa=qo&&typeof module=="object"&&module&&!module.nodeType&&module,Xu=Oa&&Oa.exports===qo,Pa=Xu?be.Buffer:void 0,Ku=Pa?Pa.isBuffer:void 0,qu=Ku||Yu;const vn=qu;var Zu="[object Object]",Ju=Function.prototype,Qu=Object.prototype,Zo=Ju.toString,ep=Qu.hasOwnProperty,tp=Zo.call(Object);function np(t){if(!Re(t)||He(t)!=Zu)return!1;var e=Xo(t);if(e===null)return!0;var n=ep.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Zo.call(n)==tp}var rp="[object Arguments]",ap="[object Array]",op="[object Boolean]",ip="[object Date]",sp="[object Error]",lp="[object Function]",cp="[object Map]",up="[object Number]",pp="[object Object]",dp="[object RegExp]",fp="[object Set]",hp="[object String]",gp="[object WeakMap]",bp="[object ArrayBuffer]",xp="[object DataView]",mp="[object Float32Array]",vp="[object Float64Array]",yp="[object Int8Array]",wp="[object Int16Array]",Ep="[object Int32Array]",Cp="[object Uint8Array]",Sp="[object Uint8ClampedArray]",_p="[object Uint16Array]",jp="[object Uint32Array]",Y={};Y[mp]=Y[vp]=Y[yp]=Y[wp]=Y[Ep]=Y[Cp]=Y[Sp]=Y[_p]=Y[jp]=!0;Y[rp]=Y[ap]=Y[bp]=Y[op]=Y[xp]=Y[ip]=Y[sp]=Y[lp]=Y[cp]=Y[up]=Y[pp]=Y[dp]=Y[fp]=Y[hp]=Y[gp]=!1;function Op(t){return Re(t)&&Pr(t.length)&&!!Y[He(t)]}function Pp(t){return function(e){return t(e)}}var Jo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ht=Jo&&typeof module=="object"&&module&&!module.nodeType&&module,Tp=Ht&&Ht.exports===Jo,Vn=Tp&&Go.process,$p=function(){try{var t=Ht&&Ht.require&&Ht.require("util").types;return t||Vn&&Vn.binding&&Vn.binding("util")}catch{}}();const Ta=$p;var $a=Ta&&Ta.isTypedArray,Ap=$a?Pp($a):Op;const Tr=Ap;function cr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Mp=Object.prototype,kp=Mp.hasOwnProperty;function Rp(t,e,n){var r=t[e];(!(kp.call(t,e)&&qt(r,n))||n===void 0&&!(e in t))&&jr(t,e,n)}function Bp(t,e,n,r){var a=!n;n||(n={});for(var o=-1,s=e.length;++o-1&&t%1==0&&t0){if(++e>=Jp)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var nd=td(Zp);const rd=nd;function ad(t,e){return rd(Xp(t,e,Pn),t+"")}function od(t,e,n){if(!ue(n))return!1;var r=typeof e;return(r=="number"?wt(n)&&$r(e,n.length):r=="string"&&e in n)?qt(n[e],t):!1}function id(t){return ad(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&&od(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 wd="Expected a function";function Ed(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(wd);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 Cd=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"}},Sd=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(Kd,arguments)},brighten:function(){return this._applyModification(qd,arguments)},darken:function(){return this._applyModification(Zd,arguments)},desaturate:function(){return this._applyModification(Vd,arguments)},saturate:function(){return this._applyModification(Yd,arguments)},greyscale:function(){return this._applyModification(Xd,arguments)},spin:function(){return this._applyModification(Qd,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(tf,arguments)},complement:function(){return this._applyCombination(Jd,arguments)},monochromatic:function(){return this._applyCombination(nf,arguments)},splitcomplement:function(){return this._applyCombination(ef,arguments)},triad:function(){return this._applyCombination(Ia,[3])},tetrad:function(){return this._applyCombination(Ia,[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 zd(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=lf(t)),yn(t)=="object"&&(Se(t.r)&&Se(t.g)&&Se(t.b)?(e=Ld(t.r,t.g,t.b),s=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Se(t.h)&&Se(t.s)&&Se(t.v)?(r=Ft(t.s),a=Ft(t.v),e=Wd(t.h,r,a),s=!0,i="hsv"):Se(t.h)&&Se(t.s)&&Se(t.l)&&(r=Ft(t.s),o=Ft(t.l),e=Gd(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 Ld(t,e,n){return{r:q(t,255)*255,g:q(e,255)*255,b:q(n,255)*255}}function Ra(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 Ba(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 nf(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=cf(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"},rf=A.hexNames=af(ur);function af(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){of(t)&&(t="100%");var n=sf(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 of(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function sf(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 Da(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 Se(t){return!!fe.CSS_UNIT.exec(t)}function lf(t){t=t.replace(Dd,"").replace(Hd,"").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:Da(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:Da(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 cf(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 Ha=function(e){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return Id(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}},Be=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){xf(a,r);function a(){var o,s,i,l;bf(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&Tf?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 dn=24,Zh=gi.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=qh(t,["fill","width","height","style"]);return oo.default.createElement("svg",ao({viewBox:"0 0 "+dn+" "+dn,style:ao({fill:n,width:a,height:s},l)},u),oo.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"}))},Qh=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(ro(a.s)?r.props.hsl.s:a.s),l:Number(ro(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 Qh(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(Zh,{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 io=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})},n0=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:n0,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(vt,{renderers:u}))),c.createElement("div",{style:m.toggles},c.createElement("div",{style:m.hue},c.createElement(yt,{style:m.Hue,hsl:s,pointer:io,onChange:r})),c.createElement("div",{style:m.alpha},c.createElement(Sr,{style:m.Alpha,rgb:o,hsl:s,pointer:io,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 r0=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}))},a0=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?Be(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(r0,{key:g,color:g,active:g.toLowerCase()===o,onClick:h,onSwatchHover:r})}),c.createElement("div",{style:f.clear})),c.createElement(a0,{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 o0=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 i0=Cr(o0);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(i0,{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 s0=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})},l0=Object.assign||function(t){for(var e=1;e.5});return c.createElement("div",{style:r.picker})},f0=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})))},so=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)},h0=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"))},g0=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"})))},y0=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var fn=24,O0=mi.default=function(t){var e=t.fill,n=e===void 0?"currentColor":e,r=t.width,a=r===void 0?fn:r,o=t.height,s=o===void 0?fn:o,i=t.style,l=i===void 0?{}:i,u=j0(t,["fill","width","height","style"]);return co.default.createElement("svg",lo({viewBox:"0 0 "+fn+" "+fn,style:lo({fill:n,width:a,height:s},l)},u),co.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},P0=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(O0,null)))},T0=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(P0,{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(T0,{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:[[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]],[it[900],it[700],it[500],it[300],it[100]],["#194D33",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]],[ht[900],ht[700],ht[500],ht[300],ht[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){Be(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 $0=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)Be(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(yt,{style:g.Hue,hsl:o,radius:"4px",pointer:Xr,onChange:r}))),c.createElement($0,{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()}`},A0=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 Pd(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(Kd,arguments)},brighten:function(){return this._applyModification(qd,arguments)},darken:function(){return this._applyModification(Zd,arguments)},desaturate:function(){return this._applyModification(Vd,arguments)},saturate:function(){return this._applyModification(Yd,arguments)},greyscale:function(){return this._applyModification(Xd,arguments)},spin:function(){return this._applyModification(Jd,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(tf,arguments)},complement:function(){return this._applyCombination(Qd,arguments)},monochromatic:function(){return this._applyCombination(nf,arguments)},splitcomplement:function(){return this._applyCombination(ef,arguments)},triad:function(){return this._applyCombination(Ia,[3])},tetrad:function(){return this._applyCombination(Ia,[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 zd(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=lf(t)),yn(t)=="object"&&(Se(t.r)&&Se(t.g)&&Se(t.b)?(e=Ld(t.r,t.g,t.b),s=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Se(t.h)&&Se(t.s)&&Se(t.v)?(r=Ft(t.s),a=Ft(t.v),e=Wd(t.h,r,a),s=!0,i="hsv"):Se(t.h)&&Se(t.s)&&Se(t.l)&&(r=Ft(t.s),o=Ft(t.l),e=Gd(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 Ld(t,e,n){return{r:q(t,255)*255,g:q(e,255)*255,b:q(n,255)*255}}function Ra(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 Ba(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 nf(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=cf(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"},rf=A.hexNames=af(ur);function af(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){of(t)&&(t="100%");var n=sf(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 of(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function sf(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 Da(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 Se(t){return!!fe.CSS_UNIT.exec(t)}function lf(t){t=t.replace(Dd,"").replace(Hd,"").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:Da(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:Da(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 cf(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 Ha=function(e){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return Id(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}},Be=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){xf(a,r);function a(){var o,s,i,l;bf(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&Tf?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 dn=24,Zh=gi.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=qh(t,["fill","width","height","style"]);return oo.default.createElement("svg",ao({viewBox:"0 0 "+dn+" "+dn,style:ao({fill:n,width:a,height:s},l)},u),oo.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"}))},Jh=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(ro(a.s)?r.props.hsl.s:a.s),l:Number(ro(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 Jh(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(Zh,{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 io=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})},n0=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:n0,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(vt,{renderers:u}))),c.createElement("div",{style:m.toggles},c.createElement("div",{style:m.hue},c.createElement(yt,{style:m.Hue,hsl:s,pointer:io,onChange:r})),c.createElement("div",{style:m.alpha},c.createElement(Sr,{style:m.Alpha,rgb:o,hsl:s,pointer:io,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 r0=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}))},a0=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?Be(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(r0,{key:g,color:g,active:g.toLowerCase()===o,onClick:h,onSwatchHover:r})}),c.createElement("div",{style:f.clear})),c.createElement(a0,{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 o0=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 i0=Cr(o0);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(i0,{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 s0=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})},l0=Object.assign||function(t){for(var e=1;e.5});return c.createElement("div",{style:r.picker})},f0=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})))},so=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)},h0=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"))},g0=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"})))},y0=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var fn=24,O0=mi.default=function(t){var e=t.fill,n=e===void 0?"currentColor":e,r=t.width,a=r===void 0?fn:r,o=t.height,s=o===void 0?fn:o,i=t.style,l=i===void 0?{}:i,u=j0(t,["fill","width","height","style"]);return co.default.createElement("svg",lo({viewBox:"0 0 "+fn+" "+fn,style:lo({fill:n,width:a,height:s},l)},u),co.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},P0=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(O0,null)))},T0=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(P0,{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(T0,{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:[[Je[900],Je[700],Je[500],Je[300],Je[100]],[Qe[900],Qe[700],Qe[500],Qe[300],Qe[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]],[it[900],it[700],it[500],it[300],it[100]],["#194D33",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]],[ht[900],ht[700],ht[500],ht[300],ht[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){Be(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 $0=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)Be(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(yt,{style:g.Hue,hsl:o,radius:"4px",pointer:Xr,onChange:r}))),c.createElement($0,{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()}`},A0=O.div` position: relative; `,M0=O.div` position: absolute; @@ -215,7 +215,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X display: flex; align-items: center; gap: 8px; -`,Y0=()=>{const{selectedIcon:t,setSelectedIcon:e}=vr(r=>r),n=r=>{e(r)};return p.jsx(X0,{direction:"column",justify:"flex-end",children:p.jsx(K0,{align:"center",children:p.jsx(q0,{children:p.jsx(Z0,{children:p.jsx(Q0,{children:Object.keys(or).map(r=>{const a=or[r];return p.jsx(J0,{isSelected:t===r,onClick:()=>n(r),children:a&&p.jsx(a,{})},r)})})})})})})},X0=O($)` +`,Y0=()=>{const{selectedIcon:t,setSelectedIcon:e}=vr(r=>r),n=r=>{e(r)};return p.jsx(X0,{direction:"column",justify:"flex-end",children:p.jsx(K0,{align:"center",children:p.jsx(q0,{children:p.jsx(Z0,{children:p.jsx(J0,{children:Object.keys(or).map(r=>{const a=or[r];return p.jsx(Q0,{isSelected:t===r,onClick:()=>n(r),children:a&&p.jsx(a,{})},r)})})})})})})},X0=O($)` flex: 1; .title { @@ -258,12 +258,12 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X `,Z0=O.div` margin-left: 18px; margin-bottom: 6px; -`,Q0=O.div` +`,J0=O.div` display: flex; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 16px; -`,J0=O.div` +`,Q0=O.div` width: 50px; height: 50px; margin: 4px; @@ -275,10 +275,10 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X border: none; border-radius: 8px; - ${({isSelected:t})=>t?Qr` + ${({isSelected:t})=>t?Jr` background: ${j.black}; border: 1px solid ${j.primaryBlue}; - `:Qr` + `:Jr` &:hover { background: ${j.black}; border: 1px solid ${j.primaryBlue}; @@ -291,7 +291,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X object-fit: contain; color: white; } -`,eg=t=>{const{children:e,value:n,index:r,...a}=t;return n===r?p.jsx(og,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:e}):null};function tg(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const ng=()=>{const[t,e]=y.useState(0),n=(a,o)=>{e(o)},r=[{label:"Color",component:B0},{label:"Icon",component:Y0}];return p.jsxs(ig,{direction:"column",children:[p.jsx(rg,{"aria-label":"color picker",onChange:n,value:t,children:r.map((a,o)=>p.jsx(ag,{color:j.white,disableRipple:!0,label:a.label,...tg(o)},a.label))}),r.map((a,o)=>p.jsx(eg,{index:o,value:t,children:p.jsx(a.component,{})},a.label))]})},rg=O(Xi)` +`,eg=t=>{const{children:e,value:n,index:r,...a}=t;return n===r?p.jsx(og,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:e}):null};function tg(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const ng=()=>{const[t,e]=y.useState(0),n=(a,o)=>{e(o)},r=[{label:"Color",component:B0},{label:"Icon",component:Y0}];return p.jsxs(ig,{direction:"column",children:[p.jsx(rg,{"aria-label":"color picker",onChange:n,value:t,children:r.map((a,o)=>p.jsx(ag,{color:j.white,disableRipple:!0,label:a.label,...tg(o)},a.label))}),r.map((a,o)=>p.jsx(eg,{index:o,value:t,children:p.jsx(a.component,{})},a.label))]})},rg=O(Yi)` && { background: ${j.modalBg}; border-radius: 9px 9px 0 0; @@ -300,7 +300,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X background: ${j.primaryBlue}; } } -`,ag=O(Ki)` +`,ag=O(Xi)` && { padding: 20px 0 20px; color: ${j.GRAY6}; @@ -383,7 +383,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X top: 37%; left: 76%; } -`,ug=/^[a-z0-9_]+$/,pg=({parentParam:t,onDelete:e})=>{const[n,r]=y.useState(!1),[a,o]=y.useState([]),{fields:s,append:i,replace:l,remove:u}=$i({name:"attributes"}),{setValue:d,watch:f}=Ai();return y.useEffect(()=>{const h=async()=>{try{let g=[{required:!1,type:"string",key:""}];if(t!==Mo.value.toLowerCase()){r(!0);const x=await ko(t);x.attributes&&typeof x.attributes=="object"?g=ir(x.attributes):g=ir(x)}g=g.filter(x=>x.key!=="node_key"),l(g),o(g)}catch(g){console.warn(g)}finally{r(!1)}};a.length===0&&h()},[t,d,l,a.length]),p.jsxs(p.Fragment,{children:[n?p.jsx($,{align:"center",children:p.jsx(Ie,{color:j.SECONDARY_BLUE,size:"30"})}):p.jsx(dg,{py:8,children:p.jsx(je,{container:!0,spacing:2,children:s.map((h,g)=>{const x=f(`attributes[${g}].type`),m=f(`attributes[${g}].required`),v=h.isNew||!1,w=["name"].includes(f(`attributes[${g}].key`));return p.jsxs(y.Fragment,{children:[p.jsx(je,{item:!0,xs:5,children:p.jsx(hn,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${g}`,disabled:!v,id:`cy-item-name-${g}`,maxLength:50,name:`attributes.${g}.key`,placeholder:"Enter value",rules:{...gn,pattern:{message:"Please avoid special characters, spaces and uppercase",value:ug}}})}),p.jsx(je,{item:!0,xs:4,children:p.jsx(xg,{dataTestId:`cy-item-select-${g}`,disabled:w,onSelect:_=>d(`attributes[${g}].type`,_==null?void 0:_.value),options:Jr,selectedValue:Jr.find(_=>_.value===x)})}),p.jsx(je,{item:!0,xs:3,children:p.jsxs(hg,{children:[p.jsx(fg,{checked:m,"data-testid":`cy-item-${g}`,disabled:w,name:`attributes.${g}.required`,onChange:_=>d(`attributes[${g}].required`,_.target.checked)}),!w&&p.jsx(Bi,{onClick:()=>{u(g),h.key!==void 0&&e&&e(h.key)},children:p.jsx(Fi,{})})]})})]},h.id)})})}),p.jsx($,{align:"flex-start",py:12,children:p.jsx(gg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(bg,{children:[p.jsx(Bo,{})," Add Attribute"]})})})]})},dg=O($)` +`,ug=/^[a-z0-9_]+$/,pg=({parentParam:t,onDelete:e})=>{const[n,r]=y.useState(!1),[a,o]=y.useState([]),{fields:s,append:i,replace:l,remove:u}=$i({name:"attributes"}),{setValue:d,watch:f}=Ai();return y.useEffect(()=>{const h=async()=>{try{let g=[{required:!1,type:"string",key:""}];if(t!==Mo.value.toLowerCase()){r(!0);const x=await ko(t);x.attributes&&typeof x.attributes=="object"?g=ir(x.attributes):g=ir(x)}g=g.filter(x=>x.key!=="node_key"),l(g),o(g)}catch(g){console.warn(g)}finally{r(!1)}};a.length===0&&h()},[t,d,l,a.length]),p.jsxs(p.Fragment,{children:[n?p.jsx($,{align:"center",children:p.jsx(Ie,{color:j.SECONDARY_BLUE,size:"30"})}):p.jsx(dg,{py:8,children:p.jsx(je,{container:!0,spacing:2,children:s.map((h,g)=>{const x=f(`attributes[${g}].type`),m=f(`attributes[${g}].required`),v=h.isNew||!1,w=["name"].includes(f(`attributes[${g}].key`));return p.jsxs(y.Fragment,{children:[p.jsx(je,{item:!0,xs:5,children:p.jsx(hn,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${g}`,disabled:!v,id:`cy-item-name-${g}`,maxLength:50,name:`attributes.${g}.key`,placeholder:"Enter value",rules:{...gn,pattern:{message:"Please avoid special characters, spaces and uppercase",value:ug}}})}),p.jsx(je,{item:!0,xs:4,children:p.jsx(xg,{dataTestId:`cy-item-select-${g}`,disabled:w,onSelect:_=>d(`attributes[${g}].type`,_==null?void 0:_.value),options:Qr,selectedValue:Qr.find(_=>_.value===x)})}),p.jsx(je,{item:!0,xs:3,children:p.jsxs(hg,{children:[p.jsx(fg,{checked:m,"data-testid":`cy-item-${g}`,disabled:w,name:`attributes.${g}.required`,onChange:_=>d(`attributes[${g}].required`,_.target.checked)}),!w&&p.jsx(Bi,{onClick:()=>{u(g),h.key!==void 0&&e&&e(h.key)},children:p.jsx(Fi,{})})]})})]},h.id)})})}),p.jsx($,{align:"flex-start",py:12,children:p.jsx(gg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(bg,{children:[p.jsx(Bo,{})," Add Attribute"]})})})]})},dg=O($)` overflow-y: auto; width: calc(100% + 20px); max-height: calc(80vh - 300px); @@ -455,14 +455,14 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X `,mg=({parent:t,onDelete:e})=>{const n=t;return p.jsxs($,{children:[p.jsx($,{direction:"row",mb:10,children:p.jsxs(je,{container:!0,spacing:2,children:[p.jsx(je,{item:!0,xs:5,children:p.jsx(Zn,{style:{marginRight:180},children:"Attributes"})}),p.jsx(je,{item:!0,xs:4,children:p.jsx(Zn,{style:{marginRight:130},children:"Type"})}),p.jsx(je,{item:!0,xs:3,children:p.jsx(Zn,{children:"Required"})})]})}),n&&p.jsx(pg,{onDelete:e,parentParam:n},n)]})},Zn=O(_e)` font-size: 15px; color: gray; -`,vg=({setMediaOptions:t,initialOptions:e,setSubmitDisabled:n})=>{const[r,a]=y.useState(e);y.useEffect(()=>{a(e)},[e]);const o=s=>{a(i=>{const l={...i,[s]:!i[s]};return t(l),n(!1),l})};return p.jsxs(yg,{direction:"column",children:[p.jsx(tr,{}),p.jsx(Qn,{control:p.jsx(er,{checked:r.videoAudio,onChange:()=>o("videoAudio")}),label:p.jsx(Jn,{active:r.videoAudio,children:"Video / Audio"}),labelPlacement:"start"}),p.jsx(tr,{}),p.jsx(Qn,{control:p.jsx(er,{checked:r.image,onChange:()=>o("image")}),label:p.jsx(Jn,{active:r.image,children:"Image"}),labelPlacement:"start"}),p.jsx(tr,{}),p.jsx(Qn,{control:p.jsx(er,{checked:r.sourceLink,onChange:()=>o("sourceLink")}),label:p.jsx(Jn,{active:r.sourceLink,children:"Source Link"}),labelPlacement:"start"})]})},yg=O($)` +`,vg=({setMediaOptions:t,initialOptions:e,setSubmitDisabled:n})=>{const[r,a]=y.useState(e);y.useEffect(()=>{a(e)},[e]);const o=s=>{a(i=>{const l={...i,[s]:!i[s]};return t(l),n(!1),l})};return p.jsxs(yg,{direction:"column",children:[p.jsx(tr,{}),p.jsx(Jn,{control:p.jsx(er,{checked:r.videoAudio,onChange:()=>o("videoAudio")}),label:p.jsx(Qn,{active:r.videoAudio,children:"Video / Audio"}),labelPlacement:"start"}),p.jsx(tr,{}),p.jsx(Jn,{control:p.jsx(er,{checked:r.image,onChange:()=>o("image")}),label:p.jsx(Qn,{active:r.image,children:"Image"}),labelPlacement:"start"}),p.jsx(tr,{}),p.jsx(Jn,{control:p.jsx(er,{checked:r.sourceLink,onChange:()=>o("sourceLink")}),label:p.jsx(Qn,{active:r.sourceLink,children:"Source Link"}),labelPlacement:"start"})]})},yg=O($)` direction: column; -`,Qn=O(Yi)` +`,Jn=O(Vi)` justify-content: space-between; margin-left: 2px !important; margin-top: 8px; margin-bottom: 8px; -`,Jn=O.span` +`,Qn=O.span` color: ${({active:t})=>t?j.white:j.GRAY7}; font-family: Barlow; font-size: 14px; @@ -498,7 +498,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X border: 1px solid ${j.BG2}; width: 100%; opacity: 0.5; -`,uo={type:"",parent:""},wg=(t,e)=>t.length!==e.length?!0:t.some((n,r)=>{const a=e[r];return n.required!==a.required||n.type!==a.type||n.key!==a.key}),Eg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...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=gt;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||gt}else i instanceof Error&&(l=i.message);throw new Error(l)}},Cg=t=>t.charAt(0).toUpperCase()+t.slice(1),po=async(t,e)=>{try{const o=((await xr()).schemas||[]).filter(s=>!s.is_deleted&&s.type&&(!e||e(s))).map(s=>s.type==="thing"?{label:"No Parent",value:s.type}:{label:Cg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},Sg=({graphLoading:t,onSchemaCreate:e,selectedSchema:n,onDelete:r,setSelectedSchemaId:a,setGraphLoading:o,setIsCreateNew:s,onSchemaUpdate:i})=>{const{close:l,visible:u}=Ro("addType"),d=br({mode:"onChange",defaultValues:n?{type:n.type,parent:n.parent}:uo}),{watch:f,setValue:h,reset:g,getValues:x}=d,[m,v]=y.useState(!1),[w,_]=y.useState(!1),[B,P]=y.useState(!1),[T,M]=y.useState(null),[L,H]=y.useState(!1),[V,S]=y.useState(null),[D,X]=y.useState(""),[I,K]=y.useState(null),[re,xe]=y.useState([]),[Te,pe]=y.useState([]),[Et,Ue]=y.useState(!0),[$e,Fe]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:ye,selectedIcon:Ct}=vr(k=>k),[St,kn]=y.useState(!1),Qt=()=>kn(!St);y.useEffect(()=>()=>{g()},[u,g]);const Rn=()=>{s(!1),a("")};y.useEffect(()=>{n||(P(!0),po(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(uo),pe([{required:!1,type:"string",key:""}]),xe([]),Fe({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Fe({videoAudio:!!n.media_url,image:!!n.image_url,sourceLink:!!n.source_link}),n.type!==Mo.value.toLowerCase()&&ko(n.type).then(z=>{const se=(z?ir(z):[{required:!1,type:"string",key:""}]).filter(le=>le.key!=="node_key");pe(se)}),po(S,z=>z.type!==n.type))},[n,h,g]);const ee=f("parent");f("type");const Bn=k=>Array.isArray(k)&&k.every(z=>typeof z=="object"&&"key"in z),Ve=f("attributes"),Ae=y.useMemo(()=>Bn(Ve)?Ve:[],[Ve]),Jt=()=>{l()},Fn=k=>{xe(z=>[...z,k])},Nn=async()=>{if(n!=null&&n.type){_(!0),o(!0);try{await ar.delete(`/schema/${n.ref_id}`),r(n.type),l()}catch(k){let z=gt;if((k==null?void 0:k.status)===400){const Q=await k.json();z=Q.errorCode||(Q==null?void 0:Q.status)||gt}else k instanceof Error&&(z=k.message);K(z)}finally{_(!1),o(!1),s(!1)}}},_t=d.handleSubmit(async k=>{if(!ee){H(!0);return}v(!0);try{if(n&&k.type!==(n==null?void 0:n.type)||n&&x().parent!==(n==null?void 0:n.parent)){const Q=x().parent??(n==null?void 0:n.parent),{selectedIndex:se}=x();o(!0);const le={};$e.image&&(le.image_url="?string"),$e.sourceLink&&(le.source_link="?string"),$e.videoAudio&&(le.media_url="?string"),await Mi(n==null?void 0:n.ref_id,{type:k.type,parent:Q,primary_color:ye,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await Eg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,re,ye,Ct,$e,{videoAudio:!!(n!=null&&n.media_url),image:!!(n!=null&&n.image_url),sourceLink:!!(n!=null&&n.source_link)});e({type:k.type,parent:ee||"",ref_id:(n==null?void 0:n.ref_id)||z||"new"}),Jt()}catch(z){let Q=gt;if((z==null?void 0:z.status)===400){const se=await z.json();Q=se.errorCode||(se==null?void 0:se.status)||gt}else z instanceof Error&&(Q=z.message);X(Q)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{ye!==(n==null?void 0:n.primary_color)&&Ue(!1);const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const Q=wg(Ae,Te),se=((nn=z.type)==null?void 0:nn.trim())!==((rn=n==null?void 0:n.type)==null?void 0:rn.trim())||((Ot=z.parent)==null?void 0:Ot.trim())!==((an=n==null?void 0:n.parent)==null?void 0:an.trim())||Q,le=!!((Pt=z.type)!=null&&Pt.trim()),jt=!!((Tt=z.parent)!=null&&Tt.trim());Ue(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,Ae,Te,n,m,L,ye]);const en=()=>T==null?void 0:T.find(k=>k.value===ee),tn=y.useMemo(()=>{if(ee){const k=V==null?void 0:V.find(z=>z.value===ee);return k||{label:ee,value:ee}}if(n!=null&&n.parent){const k=V==null?void 0:V.find(z=>z.value===n.parent);return k||{label:n.parent,value:n.parent}}},[ee,n,V]),Ye=f("selectedIndex"),In=y.useMemo(()=>{if(Ye)return{label:Ye,value:Ye};if(n){const k=Ae.find(z=>z.key===n.index);if(k)return{label:k.key,value:k.key};if(n.index)return{label:n.index,value:n.index}}},[n,Ae,Ye]),Xe=or[Ct],Ke=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Tg,{children:[p.jsx($g,{children:n?"Edit Type":"Create Type"}),p.jsx(Pg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(mr,{})})]}),p.jsx(jg,{}),p.jsxs($,{children:[p.jsx(Ao,{...d,children:p.jsxs("form",{id:"add-type-form",onSubmit:_t,children:[p.jsx($,{children:n?p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B||t,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:V||[],selectedValue:tn}),D&&p.jsx(nr,{children:D})]}),p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{dataTestId:"cy-item-name",defaultValue:n==null?void 0:n.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Qt,selectedColor:ye,children:p.jsx(Xe,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:T,selectedValue:en()}),L&&p.jsx(nr,{children:"A parent type must be selected"})]}),p.jsxs($,{children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Qt,selectedColor:ye,children:Xe&&p.jsx(Xe,{})})]})})]})]})}),Ke&&p.jsx(mg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(vg,{initialOptions:$e,setMediaOptions:Fe,setSubmitDisabled:Ue}),Ke&&p.jsxs($,{children:[p.jsx(ho,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(_e,{children:"Indexes"})}),p.jsx(je,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:Ae.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(ho,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(Og,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(_g,{color:"secondary",disabled:Et,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(sg,{isOpen:St})]})]})},_g=O(Cn)` +`,uo={type:"",parent:""},wg=(t,e)=>t.length!==e.length?!0:t.some((n,r)=>{const a=e[r];return n.required!==a.required||n.type!==a.type||n.key!==a.key}),Eg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...Ki(i),...n.reduce((x,m)=>({...x,[m]:"delete"}),{})},h={...d,attributes:f,index:l};r&&(h.primary_color=r),a&&(h.icon=a),o.videoAudio&&(h.attributes.media_url="?string"),o.image&&(h.attributes.image_url="?string"),o.sourceLink&&(h.attributes.source_link="?string");let g;if(e?g=await ar.put(`/schema/${t.ref_id}`,JSON.stringify(h),{}):g=await ar.post("/schema",JSON.stringify({...h,node_key:"name"}),{}),g.status!=="success")throw new Error("error");return g==null?void 0:g.ref_id}catch(i){let l=gt;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||gt}else i instanceof Error&&(l=i.message);throw new Error(l)}},Cg=t=>t.charAt(0).toUpperCase()+t.slice(1),po=async(t,e)=>{try{const o=((await xr()).schemas||[]).filter(s=>!s.is_deleted&&s.type&&(!e||e(s))).map(s=>s.type==="thing"?{label:"No Parent",value:s.type}:{label:Cg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},Sg=({graphLoading:t,onSchemaCreate:e,selectedSchema:n,onDelete:r,setSelectedSchemaId:a,setGraphLoading:o,setIsCreateNew:s,onSchemaUpdate:i})=>{const{close:l,visible:u}=Ro("addType"),d=br({mode:"onChange",defaultValues:n?{type:n.type,parent:n.parent}:uo}),{watch:f,setValue:h,reset:g,getValues:x}=d,[m,v]=y.useState(!1),[w,_]=y.useState(!1),[B,P]=y.useState(!1),[T,M]=y.useState(null),[L,H]=y.useState(!1),[V,S]=y.useState(null),[D,X]=y.useState(""),[I,K]=y.useState(null),[re,xe]=y.useState([]),[Te,pe]=y.useState([]),[Et,Ue]=y.useState(!0),[$e,Fe]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:ye,selectedIcon:Ct}=vr(k=>k),[St,kn]=y.useState(!1),Jt=()=>kn(!St);y.useEffect(()=>()=>{g()},[u,g]);const Rn=()=>{s(!1),a("")};y.useEffect(()=>{n||(P(!0),po(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(uo),pe([{required:!1,type:"string",key:""}]),xe([]),Fe({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Fe({videoAudio:!!n.media_url,image:!!n.image_url,sourceLink:!!n.source_link}),n.type!==Mo.value.toLowerCase()&&ko(n.type).then(z=>{const se=(z?ir(z):[{required:!1,type:"string",key:""}]).filter(le=>le.key!=="node_key");pe(se)}),po(S,z=>z.type!==n.type))},[n,h,g]);const ee=f("parent");f("type");const Bn=k=>Array.isArray(k)&&k.every(z=>typeof z=="object"&&"key"in z),Ve=f("attributes"),Ae=y.useMemo(()=>Bn(Ve)?Ve:[],[Ve]),Qt=()=>{l()},Fn=k=>{xe(z=>[...z,k])},Nn=async()=>{if(n!=null&&n.type){_(!0),o(!0);try{await ar.delete(`/schema/${n.ref_id}`),r(n.type),l()}catch(k){let z=gt;if((k==null?void 0:k.status)===400){const J=await k.json();z=J.errorCode||(J==null?void 0:J.status)||gt}else k instanceof Error&&(z=k.message);K(z)}finally{_(!1),o(!1),s(!1)}}},_t=d.handleSubmit(async k=>{if(!ee){H(!0);return}v(!0);try{if(n&&k.type!==(n==null?void 0:n.type)||n&&x().parent!==(n==null?void 0:n.parent)){const J=x().parent??(n==null?void 0:n.parent),{selectedIndex:se}=x();o(!0);const le={};$e.image&&(le.image_url="?string"),$e.sourceLink&&(le.source_link="?string"),$e.videoAudio&&(le.media_url="?string"),await Mi(n==null?void 0:n.ref_id,{type:k.type,parent:J,primary_color:ye,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await Eg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,re,ye,Ct,$e,{videoAudio:!!(n!=null&&n.media_url),image:!!(n!=null&&n.image_url),sourceLink:!!(n!=null&&n.source_link)});e({type:k.type,parent:ee||"",ref_id:(n==null?void 0:n.ref_id)||z||"new"}),Qt()}catch(z){let J=gt;if((z==null?void 0:z.status)===400){const se=await z.json();J=se.errorCode||(se==null?void 0:se.status)||gt}else z instanceof Error&&(J=z.message);X(J)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{ye!==(n==null?void 0:n.primary_color)&&Ue(!1);const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const J=wg(Ae,Te),se=((nn=z.type)==null?void 0:nn.trim())!==((rn=n==null?void 0:n.type)==null?void 0:rn.trim())||((Ot=z.parent)==null?void 0:Ot.trim())!==((an=n==null?void 0:n.parent)==null?void 0:an.trim())||J,le=!!((Pt=z.type)!=null&&Pt.trim()),jt=!!((Tt=z.parent)!=null&&Tt.trim());Ue(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,Ae,Te,n,m,L,ye]);const en=()=>T==null?void 0:T.find(k=>k.value===ee),tn=y.useMemo(()=>{if(ee){const k=V==null?void 0:V.find(z=>z.value===ee);return k||{label:ee,value:ee}}if(n!=null&&n.parent){const k=V==null?void 0:V.find(z=>z.value===n.parent);return k||{label:n.parent,value:n.parent}}},[ee,n,V]),Ye=f("selectedIndex"),In=y.useMemo(()=>{if(Ye)return{label:Ye,value:Ye};if(n){const k=Ae.find(z=>z.key===n.index);if(k)return{label:k.key,value:k.key};if(n.index)return{label:n.index,value:n.index}}},[n,Ae,Ye]),Xe=or[Ct],Ke=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Tg,{children:[p.jsx($g,{children:n?"Edit Type":"Create Type"}),p.jsx(Pg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(mr,{})})]}),p.jsx(jg,{}),p.jsxs($,{children:[p.jsx(Ao,{...d,children:p.jsxs("form",{id:"add-type-form",onSubmit:_t,children:[p.jsx($,{children:n?p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B||t,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:V||[],selectedValue:tn}),D&&p.jsx(nr,{children:D})]}),p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{dataTestId:"cy-item-name",defaultValue:n==null?void 0:n.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Jt,selectedColor:ye,children:p.jsx(Xe,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:T,selectedValue:en()}),L&&p.jsx(nr,{children:"A parent type must be selected"})]}),p.jsxs($,{children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Jt,selectedColor:ye,children:Xe&&p.jsx(Xe,{})})]})})]})]})}),Ke&&p.jsx(mg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(vg,{initialOptions:$e,setMediaOptions:Fe,setSubmitDisabled:Ue}),Ke&&p.jsxs($,{children:[p.jsx(ho,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(_e,{children:"Indexes"})}),p.jsx(je,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:Ae.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(ho,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(Og,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(_g,{color:"secondary",disabled:Et,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(sg,{isOpen:St})]})]})},_g=O(Cn)` width: 400px !important; margin: 0 auto !important; `,jg=O.div` @@ -589,7 +589,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X display: flex; `,xo=O($)` width: 320px; -`,he=10,Ag=2,Mg=2,mo=10,kg=10,vo=(t,e,n)=>{const o=new G().subVectors(e,t).normalize().multiplyScalar(n);return new G().addVectors(t,o)},Rg=(t,e,n,r)=>{const a=new G().lerpVectors(t,e,.5),o=new G().subVectors(e,t).normalize(),s=new G(-o.y,o.x,o.z).normalize(),i=(n-r/2)*kg;return new G().addVectors(a,s.multiplyScalar(i))},yi=({links:t,nodes:e,onEdgeClick:n})=>{const r=y.useRef(null),{camera:a}=me(),o=new G,s=new G,i=new G,l=new G,u=new G,d=new G,f=new G,h=new G;Sn(()=>{r.current&&e&&r.current.children.forEach((x,m)=>{var V,S,D,X;const v=t[m];if(!v)return;const w=e.find(I=>I.ref_id===v.target),_=e.find(I=>I.ref_id===v.source);o.set((_==null?void 0:_.x)||0,(_==null?void 0:_.y)||0,(_==null?void 0:_.z)||0),s.set((w==null?void 0:w.x)||0,(w==null?void 0:w.y)||0,(w==null?void 0:w.z)||0);const B=x.children[0],P=x.children[1],T=x.children[2],M=x.children[3],L=t.filter(I=>I.source===v.source&&I.target===v.target||I.source===v.target&&I.target===v.source).length,H=t.filter((I,K)=>K1?i.copy(Rg(h,f,H,L)):i.lerpVectors(h,f,.5);const I=30;l.subVectors(f,h).normalize().multiplyScalar(I/2),u.subVectors(i,l),d.addVectors(i,l);const K=new G().addVectors(h,u).multiplyScalar(.5),re=new G().addVectors(d,f).multiplyScalar(.5);(D=B.setPoints)==null||D.call(B,h,u,K),(X=P.setPoints)==null||X.call(P,d,f,re),T.position.set(f.x,f.y,f.z),T.lookAt(h),T.rotateX(-Math.PI/2),M.position.set(i.x,i.y,i.z),M.lookAt(a.position);let xe=Math.atan2(f.y-h.y,f.x-h.x);(xe>Math.PI/2||xe<-Math.PI/2)&&(xe+=Math.PI),M.rotation.set(0,0,xe);const Te=h.distanceTo(f),pe=Te{if(x==="CHILD_OF"||m==="string"||v==="string")return;const _=e==null?void 0:e.find(M=>M.ref_id===m),B=e==null?void 0:e.find(M=>M.ref_id===v),P=(_==null?void 0:_.type)||"",T=(B==null?void 0:B.type)||"";n(w,x,P,T)};return p.jsx("group",{ref:r,children:t.map(x=>p.jsxs("group",{children:[p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsxs("mesh",{position:new G(0,0,0),children:[p.jsx("coneGeometry",{args:[Ag,Mg,32]}),p.jsx("meshBasicMaterial",{color:"white"})]}),p.jsx(Fo,{anchorX:"center",anchorY:"middle",color:"white",...No,lineHeight:1,maxWidth:20,onClick:()=>g(x.edge_type,x.source,x.target,x.ref_id),rotation:[0,0,0],textAlign:"center",children:sr(x.edge_type,mo)})]},x.ref_id))})};yi.displayName="Lines";const Bg=["#ff13c9","#5af0ff","#3233ff","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],Fg=O.div` +`,he=10,Ag=2,Mg=2,mo=10,kg=10,vo=(t,e,n)=>{const o=new G().subVectors(e,t).normalize().multiplyScalar(n);return new G().addVectors(t,o)},Rg=(t,e,n,r)=>{const a=new G().lerpVectors(t,e,.5),o=new G().subVectors(e,t).normalize(),s=new G(-o.y,o.x,o.z).normalize(),i=(n-r/2)*kg;return new G().addVectors(a,s.multiplyScalar(i))},yi=({links:t,nodes:e,onEdgeClick:n})=>{const r=y.useRef(null),{camera:a}=me(),o=new G,s=new G,i=new G,l=new G,u=new G,d=new G,f=new G,h=new G;Sn(()=>{r.current&&e&&r.current.children.forEach((x,m)=>{var V,S,D,X;const v=t[m];if(!v)return;const w=e.find(I=>I.ref_id===v.target),_=e.find(I=>I.ref_id===v.source);o.set((_==null?void 0:_.x)||0,(_==null?void 0:_.y)||0,(_==null?void 0:_.z)||0),s.set((w==null?void 0:w.x)||0,(w==null?void 0:w.y)||0,(w==null?void 0:w.z)||0);const B=x.children[0],P=x.children[1],T=x.children[2],M=x.children[3],L=t.filter(I=>I.source===v.source&&I.target===v.target||I.source===v.target&&I.target===v.source).length,H=t.filter((I,K)=>K1?i.copy(Rg(h,f,H,L)):i.lerpVectors(h,f,.5);const I=30;l.subVectors(f,h).normalize().multiplyScalar(I/2),u.subVectors(i,l),d.addVectors(i,l);const K=new G().addVectors(h,u).multiplyScalar(.5),re=new G().addVectors(d,f).multiplyScalar(.5);(D=B.setPoints)==null||D.call(B,h,u,K),(X=P.setPoints)==null||X.call(P,d,f,re),T.position.set(f.x,f.y,f.z),T.lookAt(h),T.rotateX(-Math.PI/2),M.position.set(i.x,i.y,i.z),M.lookAt(a.position);let xe=Math.atan2(f.y-h.y,f.x-h.x);(xe>Math.PI/2||xe<-Math.PI/2)&&(xe+=Math.PI),M.rotation.set(0,0,xe);const Te=h.distanceTo(f),pe=Te{if(x==="CHILD_OF"||m==="string"||v==="string")return;const _=e==null?void 0:e.find(M=>M.ref_id===m),B=e==null?void 0:e.find(M=>M.ref_id===v),P=(_==null?void 0:_.type)||"",T=(B==null?void 0:B.type)||"";n(w,x,P,T)};return p.jsx("group",{ref:r,children:t.map(x=>p.jsxs("group",{children:[p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsxs("mesh",{position:new G(0,0,0),children:[p.jsx("coneGeometry",{args:[Ag,Mg,32]}),p.jsx("meshBasicMaterial",{color:"white"})]}),p.jsx(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; @@ -603,7 +603,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X font-weight: 400; `,Ng=O(ns)` position: absolute; -`;new us(2,2,2);const wi=y.memo(({node:t,setSelectedNode:e,onSimulationUpdate:n,isSelected:r})=>{var w,_;const a=y.useRef(null),[o]=yr(B=>[B.normalizedSchemasByType]),[s,i]=y.useState(!1);console.log(r);const{size:l,camera:u}=me(),d=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(Ls,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:e,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Lg=({onClose:t,activeTab:e,setActiveTab:n})=>p.jsxs(Gg,{children:[p.jsxs(Wg,{children:[p.jsx(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($)` +`;new us(2,2,2);const wi=y.memo(({node:t,setSelectedNode:e,onSimulationUpdate:n,isSelected:r})=>{var w,_;const a=y.useRef(null),[o]=yr(B=>[B.normalizedSchemasByType]),[s,i]=y.useState(!1);console.log(r);const{size:l,camera:u}=me(),d=es(B=>{if(t.type==="Thing")return;const{xy:[P,T],down:M,dragging:L,first:H,elapsedTime:V}=B;if(!(!L||H||V<100)&&M&&a.current){n();const S=(P-l.left)/window.innerWidth*l.width,D=(T-l.top)/window.innerHeight*l.height,K=new G(S/l.width*2-1,-D/l.height*2+1,0).unproject(u).multiply(new G(1,1,0)).clone();t.fx=K.x,t.fy=K.y}});Sn(()=>{a.current&&a.current.position.set(t.x||0,t.y||0,0)});const h=((w=o[t.type])==null?void 0:w.primary_color)??(Bg[(_=t==null?void 0:t.children)==null?void 0:_.length]||"red"),g=B=>{B.stopPropagation(),t.type!=="Thing"&&e()},x=sr(t.type||"",he),m=()=>{i(!0)},v=()=>{i(!1)};return p.jsxs("mesh",{ref:a,onClick:g,...d(),onPointerOut:v,onPointerOver:m,position:new G(t.x,t.y,0),children:[p.jsx(ts,{args:[he,30,20],children:p.jsx("meshStandardMaterial",{attach:"material",color:h})}),p.jsx(Fo,{...No,clipRect:[-he,-he,he,he],color:"#000",fontSize:2,maxWidth:he*2,name:t.type,textAlign:"left",children:x}),s&&p.jsx(Ng,{position:[0,5,0],zIndexRange:[100,0],children:p.jsx(Fg,{children:t.type})})]})});wi.displayName="Node";const Ig=({simulation:t,setSelectedSchemaId:e,selectedId:n,setIsAddEdgeNode:r})=>{const[a]=yr(s=>[s.schemas]),o=()=>{t&&(t.alpha(.05),t.restart())};return p.jsx(p.Fragment,{children:a.map((s,i)=>{const l=t.nodes()[i];return l?p.jsx(wi,{isSelected:l.ref_id===n,node:l,onSimulationUpdate:o,setSelectedNode:()=>{r(!1),e(l.ref_id)}},l.ref_id):null})})},Dg=({schemasWithPositions:t,filteredLinks:e,setSelectedSchemaId:n,selectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>{const[s,i]=y.useState(null),l=oa(t),u=oa(e);return y.useEffect(()=>{if(!t.length||!e.length)return;const d=structuredClone(t),f=structuredClone(e);if(s){l&&l.length!==t.length&&u&&u.length!==e.length&&(s.nodes(d).force("link",ta(f).id(g=>g.ref_id).distance(100)).force("charge",na()).force("center",ra()).force("collide",aa(he+5)).alpha(.5).restart(),i({...s}));return}const h=Ni(d).force("link",ta(f).id(g=>g.ref_id).distance(120)).force("charge",na().strength(-100)).force("center",ra()).force("collide",aa(he+5));i(h)},[t,s,e,l,u]),Sn(()=>{}),s?p.jsxs(p.Fragment,{children:[p.jsx(yi,{links:e,nodes:s.nodes(),onEdgeClick:o}),p.jsx(Ig,{selectedId:r,setIsAddEdgeNode:a,setSelectedSchemaId:n,simulation:s})]}):null},rr=new ps(0),Hg=({selectedSchemaId:t,links:e,schemasWithPositions:n,setSelectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>p.jsxs(rs,{camera:{zoom:1,position:[0,0,200]},id:"schema-canvas",linear:!0,orthographic:!0,children:[p.jsx("color",{args:[rr.r,rr.g,rr.b],attach:"background"}),ki&&p.jsx(as,{position:"right-bottom"}),p.jsx(zg,{}),p.jsx(os,{}),p.jsx(Dg,{filteredLinks:e,onEdgeClick:o,schemasWithPositions:n,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:r})]}),zg=()=>{y.useEffect(()=>{const n=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="grab")},r=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="default")};return window.addEventListener("keydown",n,!1),window.addEventListener("keyup",r,!1),()=>{window.removeEventListener("keydown",n,!1),window.removeEventListener("keyup",r,!1)}},[]);const t=()=>{document.body.style.cursor="grabbing"},e=()=>{document.body.style.cursor="default"};return p.jsx(Ls,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:e,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Lg=({onClose:t,activeTab:e,setActiveTab:n})=>p.jsxs(Gg,{children:[p.jsxs(Wg,{children:[p.jsx(Ii,{}),p.jsx(Ug,{children:"Blueprint"})]}),p.jsxs(Vg,{children:[p.jsx(yo,{active:e==="all",onClick:()=>n("all"),children:"Show All"}),p.jsx(yo,{active:e==="parent",onClick:()=>n("parent"),children:"Parent Only"})]}),p.jsx(Yg,{onClick:t,children:p.jsx(mr,{})})]}),Gg=O($)` background-color: ${j.BG1}; height: 64px; width: 100%; @@ -664,7 +664,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X width: 30px; height: 32px; } -`,Xg=({onCreateNew:t,onAddEdgeNode:e})=>p.jsxs(Kg,{children:[p.jsx(wo,{"data-testid":"add-schema-type",onClick:t,children:p.jsx(Eo,{children:p.jsx(Bo,{})})}),p.jsx(wo,{"data-testid":"add-edge",onClick:e,children:p.jsx(Eo,{children:p.jsx(Hi,{})})})]}),Kg=O($).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +`,Xg=({onCreateNew:t,onAddEdgeNode:e})=>p.jsxs(Kg,{children:[p.jsx(wo,{"data-testid":"add-schema-type",onClick:t,children:p.jsx(Eo,{children:p.jsx(Bo,{})})}),p.jsx(wo,{"data-testid":"add-edge",onClick:e,children:p.jsx(Eo,{children:p.jsx(Di,{})})})]}),Kg=O($).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 1; gap: 17px; padding: 16px 0 0 16px; @@ -699,7 +699,7 @@ import{r as y,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X justify-content: center; align-items: center; font-size: 24px; -`,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(Sg,{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(Ks,{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($)` +`,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(Sg,{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(Ks,{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(Jg,{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,O as _o,P as jo,S as Wt,y as oe,V as Oo,a5 as Ei,K as Po,j as p,X @media (max-width: 924px) { max-height: calc(65vh - 20px); } -`,Qg=O($)` +`,Jg=O($)` flex: 1 1 100%; -`,Jg=()=>{const{close:t}=Ro("blueprintGraph"),e=()=>{t()};return p.jsx(Ri,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:p.jsx(qg,{Close:e})})},gb=y.memo(Jg);export{gb as BlueprintModal}; +`,Qg=()=>{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})})},bb=y.memo(Qg);export{bb as BlueprintModal}; diff --git a/build/assets/index-5a928665.js b/build/assets/index-5a928665.js new file mode 100644 index 000000000..441181875 --- /dev/null +++ b/build/assets/index-5a928665.js @@ -0,0 +1,393 @@ +import{r as c,x as ue,c as fe,j as e,s as m,a as b,F as C,T as O,u as D,d as te,y as he,N as U,z as xe,A as me,D as re,E as ge}from"./index-794e801a.js";import{Universe as we}from"./index-aaff460f.js";import{b as se,c as L,d as ye,e as je,f as be,g as Ce,h as ve,i as _e,a as Ee}from"./index-d39d2c64.js";import{S as Se,R as Te,s as J,M as Ie}from"./index-42dc7de8.js";import{u as H,a as oe,m as Re,T as ze,f as $e,H as Pe,C as Me}from"./index-3ee44dc3.js";import{W as ke,L as Q,H as Ae,D as He,F as Le,V as $,S as We}from"./three.module-df70f22b.js";import"./index-195d9df5.js";import"./TextareaAutosize-cee09ef8.js";import"./index-046f3837.js";import"./ClipLoader-548a512b.js";import"./Skeleton-8352c4ee.js";import"./Stack-0bfda087.js";import"./isPlainObject-11606a25.js";import"./Typography-4a916cc9.js";import"./createSvgIcon-72fbec8f.js";import"./index-cf1b42c2.js";function Fe(t,r,s){const{gl:n,size:i,viewport:d}=H(),w=typeof t=="number"?t:i.width*d.dpr,l=typeof r=="number"?r:i.height*d.dpr,o=(typeof t=="number"?s:t)||{},{samples:a=0,depth:x,...f}=o,p=c.useMemo(()=>{let u;return u=new ke(w,l,{minFilter:Q,magFilter:Q,encoding:n.outputEncoding,type:Ae,...f}),x&&(u.depthTexture=new He(w,l,Le)),u.samples=a,u},[]);return c.useLayoutEffect(()=>{p.setSize(w,l),a&&(p.samples=a)},[a,p,w,l]),c.useEffect(()=>()=>p.dispose(),[]),p}const Be=t=>typeof t=="function",De=c.forwardRef(({envMap:t,resolution:r=256,frames:s=1/0,children:n,makeDefault:i,...d},w)=>{const l=H(({set:g})=>g),o=H(({camera:g})=>g),a=H(({size:g})=>g),x=c.useRef(null),f=c.useRef(null),p=Fe(r);c.useLayoutEffect(()=>{d.manual||x.current.updateProjectionMatrix()},[a,d]),c.useLayoutEffect(()=>{x.current.updateProjectionMatrix()}),c.useLayoutEffect(()=>{if(i){const g=o;return l(()=>({camera:x.current})),()=>l(()=>({camera:g}))}},[x,i,l]);let u=0,h=null;const j=Be(n);return oe(g=>{j&&(s===1/0||u({...Ne,setSelectedEpisodeId:r=>t({selectedEpisodeId:r}),setSelectedEpisodeLink:r=>t({selectedEpisodeLink:r}),setSelectedEpisode:r=>t({selectedEpisode:r})})),Ge=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),e.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),Ze=()=>e.jsxs(Ve,{children:[e.jsx(Oe,{children:e.jsx(Ye,{children:e.jsx(Ge,{})})}),e.jsx(qe,{children:"Graph Mindset"})]}),Ve=m(C).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` + height: 64px; + box-sizing: border-box; + padding: 20px 23px; + gap: 0px; + z-index: 50; + position: relative; +`,Oe=m(C)` + align-items: center; + justify-content: center; + cursor: pointer; +`,Ye=m.div` + display: flex; + align-items: center; + justify-content: center; + + svg { + width: 30px; + height: 27px; + color: ${b.white}; + } +`,qe=m(O)` + width: 127px; + height: 24px; + color: ${b.white}; + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 700; + line-height: 24px; + letter-spacing: 0.22px; + margin-left: 16px; + white-space: nowrap; +`,Ue=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 7 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.77978 6.00243L0.706705 1.92933C0.568239 1.79088 0.497405 1.61684 0.494205 1.40723C0.490989 1.19763 0.561822 1.02039 0.706705 0.875528C0.851572 0.730645 1.02721 0.658203 1.23361 0.658203C1.44001 0.658203 1.61564 0.730645 1.7605 0.875528L6.25473 5.36975C6.34833 5.46334 6.41436 5.56205 6.45281 5.6659C6.49127 5.76974 6.51051 5.88191 6.51051 6.00243C6.51051 6.12294 6.49127 6.23512 6.45281 6.33895C6.41436 6.4428 6.34833 6.54152 6.25473 6.6351L1.7605 11.1293C1.62205 11.2678 1.44802 11.3386 1.2384 11.3418C1.0288 11.345 0.851572 11.2742 0.706705 11.1293C0.561822 10.9845 0.48938 10.8088 0.48938 10.6024C0.48938 10.396 0.561822 10.2204 0.706705 10.0755L4.77978 6.00243Z",fill:"currentColor"})}),Je=({imageUrl:t,title:r,subtitle:s,onClick:n})=>{const i=r.length>35?`${r.substring(0,32)}...`:r,d=s.length>50?`${s.substring(0,47)}...`:s;return e.jsxs(Qe,{onClick:n,children:[e.jsx(Xe,{children:e.jsx(se,{height:140,src:t,type:"Episode",width:170})}),e.jsxs(Ke,{children:[e.jsx(et,{children:i}),e.jsx(tt,{children:d})]})]})},Qe=m(C)` + background: ${b.BG1}; + width: 170px; + height: 200px; + color: ${b.white}; + padding: 16px; + border-radius: 8px; + cursor: pointer; + display: flex; + flex-direction: column; + align-items: center; + &:hover { + background: ${b.SEEDQUESTION_HOVER}; + } + &:active { + background: ${b.SEEDQUESTION}; + } +`,Xe=m.div` + width: 100%; + height: 140px; /* Fixed height for images */ + border-radius: 6px; + overflow: hidden; + margin-bottom: 12px; + display: flex; + justify-content: center; + align-items: center; +`,Ke=m(C)` + flex-direction: column; + justify-content: flex-start; + gap: 8px; +`,et=m.p` + font-size: 16px; + font-weight: 500; + line-height: 19px; + color: ${b.white}; + margin: 0; + white-space: wrap; + overflow: hidden; + text-overflow: ellipsis; +`,tt=m.p` + font-family: Inter; + font-size: 14px; + font-weight: 400; + line-height: 17px; + color: ${b.GRAY6}; + margin: 0; + white-space: wrap; + overflow: hidden; + text-overflow: ellipsis; +`,rt=/^(https?:\/\/)/,st=/(www\.)?/,ot=/[\w-]+(\.[\w-]+)*/,nt=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/,it=/(\/[^\s?]*)?/,at=/(\?[^\s]*)?/,ct=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,lt=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,pt=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,dt=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ut=new RegExp(`${rt.source}${st.source}${ot.source}${nt.source}?${it.source}${at.source}$`,"i"),ft=t=>{try{if(!(t==null?void 0:t.match(ut)))return!1;const n=new URL(t).hostname;return n!=null&&n.startsWith("www.")?((n==null?void 0:n.match(/\./g))||[]).length>=2:((n==null?void 0:n.match(/\./g))||[]).length>=1}catch{return!1}},X=t=>ft(t)?[ct,lt,pt,dt].some(s=>s.test(t)):!1,ne=[{date_added_to_graph:1733218679827695e-6,node_type:"Episode",properties:{date:1731888e3,episode_title:"AI Agents and AI Assistants: A Contrast in Function",image_url:"https://i.ytimg.com/vi/IivxYYkJ2DI/sddefault.jpg",media_url:"https://s3.amazonaws.com/stakwork-uploads/uploads/customers/4291/media_to_local/62110bc0-6b27-4779-9d5e-320eab6fae84/IivxYYkJ2DI.mp3",source_link:"https://www.youtube.com/watch?v=IivxYYkJ2DI",status:"completed"},ref_id:"b8784fb9-efa8-4a25-8a78-e14be96a4387"},{date_added_to_graph:1733323898765796e-6,node_type:"Episode",properties:{date:1733184e3,episode_title:"Joe Rogan Experience #2237 - Mike Benz",image_url:"https://i.ytimg.com/vi_webp/rrJhQpvlkLA/sddefault.webp",media_url:"https://s3.amazonaws.com/stakwork-uploads/uploads/customers/4291/media_to_local/b4c6220e-7048-431c-80c4-90e56b71bd06/rrJhQpvlkLA.mp3",source_link:"https://www.youtube.com/watch?v=rrJhQpvlkLA",status:"completed"},ref_id:"2e51fdb8-a1f1-4e1f-b9d5-4dbdae00b1a2"},{date_added_to_graph:17326354109931817e-7,node_type:"Episode",properties:{date:1730851200,description:"Exploring the Transformative Potential of Llama, the Open-Source AI Model",episode_title:"Llama: The Open-Source AI Model that's Changing How We Think About AI",image_url:"https://i.ytimg.com/vi/8c2LnKNoSmg/sddefault.jpg",media_url:"https://s3.amazonaws.com/stakwork-uploads/uploads/customers/4291/media_to_local/a4542523-6b12-4baa-bce7-ed63f2704955/8c2LnKNoSmg.mp3",source_link:"https://www.youtube.com/watch?v=8c2LnKNoSmg",status:"completed"},ref_id:"87f5e4c5-39c2-4773-8208-8c1c4fe4019b"}];console.log(ne);const ht=async t=>{const r="add_node",s={};s.media_url=t.source,s.content_type="audio_video";const n=await xe.post(`/${r}`,JSON.stringify(s));if(n.error){const{message:i}=n.error;throw new Error(i)}return n},xt=()=>{const[t,r]=c.useState(""),[s,n]=c.useState(!1),[i,d]=c.useState(""),{setRunningProjectId:w}=D(p=>p),{setSelectedEpisodeId:l,setSelectedEpisodeLink:o}=N(p=>p),{setSchemas:a}=te(p=>p);c.useEffect(()=>{(async()=>{try{const u=await he();a(u.schemas.filter(h=>!h.is_deleted))}catch(u){console.error("Error fetching schema:",u)}})()},[a]);const x=p=>{const{value:u}=p.target;r(u),n(u!==""&&!X(u))},f=async p=>{const u=p||t;if(X(u))try{const h=await ht({source:u});h.data.project_id&&w(h.data.project_id),h.data.ref_id&&(l(h.data.ref_id),o(u))}catch(h){let j=U;if((h==null?void 0:h.status)===400){const g=await h.json();j=g.errorCode||(g==null?void 0:g.status)||U,g.data.ref_id&&(l(g.data.ref_id),o(u))}else h instanceof Error&&(j=h.message);d(String(j))}};return e.jsxs(mt,{children:[e.jsx(gt,{children:"Ideas have shapes"}),e.jsxs(yt,{children:[e.jsx(wt,{error:s,onChange:x,onKeyDown:p=>p.key==="Enter"&&f(),placeholder:"Paste podcast or video link",value:t}),e.jsx(jt,{error:s,onClick:s?void 0:()=>f(),children:e.jsx(Ue,{})})]}),i&&e.jsx("div",{children:i}),e.jsx(bt,{children:ne.map(p=>{var u,h;return e.jsx(Je,{imageUrl:((u=p==null?void 0:p.properties)==null?void 0:u.image_url)||"",onClick:()=>{var j;return f((j=p==null?void 0:p.properties)==null?void 0:j.source_link)},subtitle:"",title:((h=p==null?void 0:p.properties)==null?void 0:h.episode_title)||""},p==null?void 0:p.ref_id)})})]})},mt=m(C)` + background: #16161de3; + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + color: #fff; + align-items: center; + justify-content: center; + font-size: 32px; + font-style: normal; + font-weight: 700; + line-height: 16px; + font-family: 'Barlow'; + z-index: 40; +`,gt=m(C)` + color: ${b.white}; + font-family: Barlow; + font-size: 32px; + font-weight: 700; + margin-bottom: 40px; + text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); +`,wt=m.input` + width: 100%; + max-width: 648px; + padding: 12px 28px 12px 16px; + border-radius: 100px; + border: 1px solid ${t=>t.error?"red":b.DIVIDER_4}; + background: ${b.INPUT_BG}; + color: ${b.white}; + font-family: Barlow; + font-size: 16px; + &::placeholder { + color: ${b.INPUT_PLACEHOLDER}; + } + &:focus { + outline: none; + border-color: ${t=>t.error?"red":b.primaryBlue}; + } +`,yt=m.div` + position: relative; + width: 648px; + display: flex; + align-items: center; +`,jt=m.div` + position: absolute; + right: 16px; + top: 50%; + transform: translateY(-50%); + color: ${b.white}; + font-size: 20px; + cursor: ${t=>t.error?"not-allowed":"pointer"}; + svg { + width: 8px; + height: 17px; + color: ${b.GRAY6}; + } +`,bt=m.div` + display: flex; + align-items: center; + justify-content: center; + gap: 16px; + margin-top: 20px; + max-width: 648px; + height: 237px; +`,ie=c.memo(()=>{const{isPlaying:t,playerRef:r}=L(d=>d),s=()=>{if(r){const d=r.getCurrentTime()-15;r.seekTo(d,"seconds")}},n=()=>{if(r){const d=r.getCurrentTime()+15;r.seekTo(d,"seconds")}},i=()=>{if(r!=null&&r.getInternalPlayer()){if(t){r.getInternalPlayer().pauseVideo();return}r.getInternalPlayer().playVideo()}};return e.jsxs(Ct,{children:[e.jsx(_t,{onClick:s,children:e.jsx("img",{alt:"",src:"RewindIcon.svg"})}),e.jsx(vt,{"data-testid":"play-pause-button",onClick:i,size:"small",children:t?e.jsx(ye,{"data-testid":"pause-icon"}):e.jsx(je,{"data-testid":"play-icon"})}),e.jsx(Et,{onClick:n,children:e.jsx("img",{alt:"",src:"ForwardIcon.svg"})})]})});ie.displayName="Controls";const Ct=m(C).attrs({direction:"row",align:"center",justify:"flex-start"})` + width: 142px; + height: 54px; + background: ${b.BG1}; + border-radius: 40px; + margin-right: 30px; + color: ${b.white}; + font-size: 20px; + padding: 12px; + justify-content: space-between; + box-sizing: border-box; +`,vt=m(be)` + && { + font-size: 36px; + padding: 2px; + overflow: hidden; + } +`,_t=m.div` + display: flex; + align-items: center; + justify-content: center; + margin: 1px 0 0 1px; + cursor: pointer; + img { + width: 20px; + height: auto; + } +`,Et=m.div` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + img { + width: 24px; + height: auto; + } +`,ae=c.memo(({type:t,left:r,img:s})=>{var o,a;const n=te(x=>x.normalizedSchemasByType),i=(o=n[t])==null?void 0:o.primary_color,d=(a=n[t])==null?void 0:a.icon,w=d?`svg-icons/${d}.svg`:"",l={iconStart:s||w,color:i??b.THING};return e.jsx(Tt,{style:{left:`${r}%`},children:e.jsx(ce,{...l,label:t})})});ae.displayName="Marker";const ce=c.memo(({iconStart:t,color:r,label:s})=>e.jsx(St,{color:r,children:t&&e.jsx("img",{alt:s,className:"badge__img",src:t})}));ce.displayName="Badge";const St=m(C).attrs({direction:"row"})` + cursor: pointer; + background: ${({color:t})=>t}; + border-radius: 3px; + overflow: hidden; + justify-content: center; + align-items: center; + + .badge__img { + width: 10px; + height: 10px; + object-fit: contain; + } +`,Tt=m.div` + position: absolute; + top: -6px; + width: 12px; + height: 12px; + border-radius: 4px; + background-color: ${b.white}; + transform: translateX(-50%); + transform: translateX(-50%) translateY(-50%); + top: 50%; + display: flex; + align-items: center; + justify-content: center; +`,le=c.memo(({markers:t,duration:r})=>e.jsx(e.Fragment,{children:t.map(s=>{var w;const n=Math.floor(((s==null?void 0:s.start)||0)/r*100),i=(s==null?void 0:s.node_type)||"",d=((w=s==null?void 0:s.properties)==null?void 0:w.image_url)||"";return e.jsx(ae,{img:d,left:n,type:i},s.ref_id)})}));le.displayName="Markers";const It=({duration:t,markers:r,handleProgressChange:s,playingTIme:n})=>{const i=10/t*100;return e.jsxs(Rt,{children:[e.jsx(zt,{max:t,onChange:s,value:n,width:i}),e.jsx(le,{duration:t,markers:r})]})},Rt=m(C)` + position: relative; + flex: 1 1 100%; +`,zt=m(Se)` + && { + z-index: 20; + color: ${b.white}; + height: 3px; + width: calc(100% - 12px); + box-sizing: border-box; + .MuiSlider-track { + border: none; + } + .MuiSlider-thumb { + width: ${({width:t})=>`${t}%`}; + height: 54px; + border-radius: 8px; + background-color: ${b.primaryBlue}; + opacity: 0.2; + &:before { + box-shadow: '0 4px 8px rgba(0,0,0,0.4)'; + } + &:hover, + &.Mui-focusVisible, + &.Mui-active { + box-shadow: none; + } + } + } +`,$t=({markers:t})=>{const{playingNode:r,playerRef:s}=L(o=>o),[n,i]=c.useState(0),d=r,w=c.useCallback((o,a)=>{const x=Array.isArray(a)?a[0]:a;s&&s.seekTo(x,"seconds")},[s]);c.useEffect(()=>{const o=setInterval(()=>{if(s&&i){const a=s.getCurrentTime();i(a)}},500);return()=>clearInterval(o)},[s,i]);const l=(s==null?void 0:s.getDuration())||0;return d?e.jsxs(Pt,{children:[e.jsx(ie,{}),e.jsx(It,{duration:l,handleProgressChange:w,markers:t,playingTIme:n})]}):null},Pt=m(C).attrs({direction:"row",align:"center",justify:"space-between"})` + padding: 20px; + background: ${b.BG2}; + height: 96px; + margin-top: 16px; + border-radius: 8px; + box-sizing: border-box; +`,Mt=({sourcePosition:t,targetPosition:r,color:s="white",arrowSize:n=1,label:i="label"})=>{const{points:d,textPosition:w}=c.useMemo(()=>{const l=new $(t.x,t.y,t.z),o=new $(r.x,r.y,r.z),a=new $().subVectors(o,l).normalize(),x=new $().addVectors(l,o).multiplyScalar(.5),f=new $().copy(a).multiplyScalar(-n).applyAxisAngle(new $(0,0,1),Math.PI/6),p=new $().copy(a).multiplyScalar(-n).applyAxisAngle(new $(0,0,1),-Math.PI/6);return{points:[l,o,o.clone(),o.clone().add(f),o.clone(),o.clone().add(p)],textPosition:x}},[t,r,n]);return e.jsxs(e.Fragment,{children:[e.jsxs("line",{children:[e.jsx("bufferGeometry",{children:e.jsx("bufferAttribute",{array:new Float32Array(d.flatMap(l=>[l.x,l.y,l.z])),attach:"attributes-position",count:d.length,itemSize:3})}),e.jsx("lineBasicMaterial",{color:s})]}),i&&e.jsx(ze,{anchorX:"center",anchorY:"middle",color:s,...$e,position:w,children:i})]})},kt=({title:t,description:r})=>e.jsx(At,{children:e.jsx(Ht,{children:e.jsxs(Lt,{children:[e.jsx(Wt,{children:t}),r&&e.jsx(Ft,{children:r})]})})}),At=m.div` + position: fixed; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 1000; +`,Ht=m(C)` + width: 390px; + min-height: 100px; + background: ${b.HOVER_CARD_BG}; + border-radius: 8px; + padding: 15px; + padding-bottom: 3px !important; + position: fixed; + flex-direction: column; + gap: 4px; + top: calc(-230px); + left: 100%; + z-index: 1000; + margin-left: 450px; + pointer-events: auto; +`,Lt=m(C)` + margin-top: 0; + flex-direction: column; + gap: 4px; +`,Wt=m(O)` + font-family: Barlow; + font-size: 20px; + font-weight: 600; + line-height: 24px; + color: ${b.white}; + margin: 0; +`,Ft=m(O)` + font-family: Barlow; + font-size: 14px; + font-weight: 400; + line-height: 20px; + color: ${b.white}; + margin: 0; + opacity: 0.8; +`,Bt=(t,r,s)=>{const n=new We;return n.moveTo(-t/2+s,-r/2),n.lineTo(t/2-s,-r/2),n.quadraticCurveTo(t/2,-r/2,t/2,-r/2+s),n.lineTo(t/2,r/2-s),n.quadraticCurveTo(t/2,r/2,t/2-s,r/2),n.lineTo(-t/2+s,r/2),n.quadraticCurveTo(-t/2,r/2,-t/2,r/2-s),n.lineTo(-t/2,-r/2+s),n.quadraticCurveTo(-t/2,-r/2,-t/2+s,-r/2),n},Dt=({width:t,height:r,radius:s,color:n})=>{const i=Bt(t,r,s);return e.jsxs("mesh",{children:[e.jsx("shapeGeometry",{args:[i]}),e.jsx("meshBasicMaterial",{color:n,opacity:.9,transparent:!0})]})},Nt=({name:t,url:r,type:s})=>e.jsxs(Gt,{children:[r&&e.jsx("img",{alt:"",className:"image",src:r}),e.jsx("div",{className:"title",children:t}),e.jsx("div",{className:"badge",children:e.jsx(Ce,{type:s})}),e.jsx("div",{className:"action-btn",children:e.jsx(ve,{})})]}),Gt=m(C)` + position: relative; + padding: 14px; + padding-right: 28px; + flex: 1; + width: 100%; + box-sizing: border-box; + + .title { + margin-top: 8px; + } + + .badge { + position: absolute; + top: 0; + left: 50%; + transform: translateX(-50%); + } + + .image { + width: 32px; + height: 32px; + border-radius: 50%; + margin-bottom: 8px; + object-fit: cover; + } + + .action-btn { + top: 14px; + right: 14px; + color: ${b.GRAY6}; + position: absolute; + } +`,V=c.memo(({width:t,height:r,position:s,url:n,onButtonClick:i,name:d,type:w,color:l,description:o})=>{const{camera:a}=H(),[x,f]=c.useState(!1);return e.jsxs("group",{position:s,children:[e.jsx(Dt,{color:l,height:r,radius:1.5,width:t}),!1,e.jsx(Pe,{position:[-t/2,r/2,0],children:e.jsxs(C,{onClick:()=>i(),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{fontSize:"12px",color:"white",fontWeight:600,width:`${t*a.zoom}px`,height:`${r*a.zoom}px`,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"8px",pointerEvents:"auto"},children:[e.jsx(Nt,{name:`${d}`,type:w||"",url:n}),x&&e.jsx(kt,{description:o,title:d})]})})]})});V.displayName="Node";const K=144/10,Z=84/10,Zt=()=>{const t=H(),{dataInitial:r}=D(i=>i),{viewport:s}=t,n=c.useMemo(()=>{if(!r)return{nodes:[],edges:[],relatedNodes:{}};const i=r.links.filter(o=>{var a;return(a=o==null?void 0:o.properties)==null?void 0:a.start}).map(o=>{var a;return{source:o.source,target:o.target,start:(a=o.properties)==null?void 0:a.start}}),d=r.nodes.filter(o=>r.links.some(a=>a.source===o.ref_id||a.target===o.ref_id)).map(o=>{const a=i.find(u=>o.ref_id===u.source||o.ref_id===u.target),x=((a==null?void 0:a.start)||0)*(s.width/10);return{...o,x,y:0,z:0,start:(a==null?void 0:a.start)||0}}).filter(o=>o.node_type!=="Clip"&&o.node_type!=="Episode"&&o.node_type!=="Show"),w=d.reduce((o,a)=>{const x=r.links.filter(h=>{var j;return!((j=h==null?void 0:h.properties)!=null&&j.start)&&[h.target,h.source].includes(a.ref_id)}),p=r.nodes.filter(h=>h.node_type!=="Episode"&&h.node_type!=="Clip"&&h.ref_id!==a.ref_id&&x.some(j=>[j.source,j.target].includes(h.ref_id))).map((h,j)=>{const{x:g}=a,P=(Math.floor(j/2)+1)*Z*2*(j%2===0?1:-1);return{...h,x:g,y:P,z:0}}),u=x.map(h=>{if(h.source===a.ref_id){const g=p.find(P=>P.ref_id===h.target);return{...h,sourcePositions:{x:a.x,y:a.y,z:a.z},targetPositions:{x:g==null?void 0:g.x,y:g==null?void 0:g.y,z:g==null?void 0:g.z}}}const j=p.find(g=>g.ref_id===h.source);return{...h,sourcePositions:{x:j==null?void 0:j.x,y:j==null?void 0:j.y,z:j==null?void 0:j.z},targetPositions:{x:a.x,y:a.y,z:a.z}}});return o[a.ref_id]={nodes:p,edges:u},o},{}),l=Object.values(w).flatMap(o=>o.edges).filter(o=>{var a;return(a=o==null?void 0:o.sourcePositions)==null?void 0:a.x});return{nodes:d,edges:l,relatedNodes:Object.fromEntries(Object.entries(w).map(([o,a])=>[o,a.nodes]))}},[r,s.width]);return e.jsxs(e.Fragment,{children:[n.nodes.map(i=>{var d,w,l;return e.jsxs(c.Fragment,{children:[e.jsx(V,{color:"#353A46",description:(d=i==null?void 0:i.properties)==null?void 0:d.description,height:Z,name:((w=i==null?void 0:i.properties)==null?void 0:w.name)||"",onButtonClick:console.log,position:[i.x,i.y,i.z],type:i.node_type,url:((l=i==null?void 0:i.properties)==null?void 0:l.image_url)||"logo.png",width:K}),(n.relatedNodes[i.ref_id]||[]).map(o=>{var a,x,f;return e.jsx(V,{color:"#353A46",description:(a=o==null?void 0:o.properties)==null?void 0:a.description,height:Z,name:((x=o==null?void 0:o.properties)==null?void 0:x.name)||"",onButtonClick:console.log,position:[o.x,o.y,o.z],type:o.node_type,url:((f=o==null?void 0:o.properties)==null?void 0:f.image_url)||"logo.png",width:K},`${o.ref_id}-${i.ref_id}`)})]},i.ref_id)}),n.edges.map((i,d)=>i!=null&&i.sourcePositions&&(i!=null&&i.targetPositions)?e.jsx(Mt,{label:i.edge_type||"",sourcePosition:new $(i.sourcePositions.x,i.sourcePositions.y,i.sourcePositions.z),targetPosition:new $(i.targetPositions.x,i.targetPositions.y,i.targetPositions.z)},`edge-${d}`):null)]})},Vt=()=>{const{camera:t,viewport:r}=H(),s=L(n=>n.playerRef);return oe(()=>{if(s){const n=s.getCurrentTime();t.position.x=n*r.width/10}}),null},Ot=()=>{const{camera:t,gl:r}=H();return c.useEffect(()=>{const s=t,n=d=>{d.preventDefault(),d.ctrlKey&&(s.zoom+=d.deltaY*-.1,s.zoom=Math.max(2,Math.min(s.zoom,20))),s.position.x+=d.deltaX*.1,s.updateProjectionMatrix()},i=r.domElement;return i.addEventListener("wheel",n,{passive:!1}),()=>{i.removeEventListener("wheel",n)}},[t,r]),null},pe=c.memo(()=>(console.log("rerender"),e.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:e.jsxs(Me,{orthographic:!0,children:[e.jsx(Vt,{}),e.jsx(De,{far:2e3,makeDefault:!0,near:1,position:[0,0,20],zoom:10}),e.jsx(Zt,{}),e.jsx(Ot,{})]})})));pe.displayName="Scene";const Yt=(t,r)=>{let s=0,n=t.length-1;for(;s<=n;){const i=Math.floor((s+n)/2),d=t[i],{start:w,end:l}=d.properties;if(r>=w&&r<=l)return d;r{const r=c.useRef(null),[s,n]=c.useState("ready"),[i,d]=c.useState(!1),{setActiveEdge:w}=_e(S=>S),{dataInitial:l}=D(S=>S),{isPlaying:o,playingTime:a,setIsPlaying:x,setPlayingTime:f,setDuration:p,playingNode:u,volume:h,setHasError:j,resetPlayer:g,isSeeking:P,setIsSeeking:v,setPlayerRef:_,playerRef:y}=L(S=>S);c.useEffect(()=>()=>g(),[g]),c.useEffect(()=>{u&&!i&&(f(0),p(0),d(!1))},[u,f,p,d,i]),c.useEffect(()=>{P&&y&&(y.seekTo(a,"seconds"),v(!1))},[a,P,v,y]);const E=()=>{x(!o)},M=c.useCallback(()=>{x(!0)},[x]),F=c.useCallback(()=>{x(!1)},[x]),B=()=>{j(!0),n("error")},R=c.useMemo(()=>((l==null?void 0:l.links.filter(I=>{var A;return(A=I==null?void 0:I.properties)==null?void 0:A.start}))||[]).slice().sort((I,A)=>{var Y,q;return((Y=I==null?void 0:I.properties)==null?void 0:Y.start)-((q=A==null?void 0:A.properties)==null?void 0:q.start)}),[l]),k=S=>{if(!P){const T=S.playedSeconds,I=Yt(R,T);w(I||null)}},z=()=>{y&&n("ready")},G=()=>{E()},W=c.useCallback(S=>{!y&&S&&_(S)},[_,y]);return t?e.jsxs(Ut,{ref:r,tabIndex:0,children:[e.jsx(Jt,{isFullScreen:!1,children:e.jsx(se,{size:120,src:(u==null?void 0:u.image_url)||"",type:"clip"})}),e.jsx(Xt,{isFullScreen:!1,onClick:G,children:e.jsx(Te,{ref:W,height:"219px",onBuffer:()=>n("buffering"),onBufferEnd:()=>n("ready"),onError:B,onPause:F,onPlay:M,onProgress:k,onReady:z,playing:o,url:t||"",volume:h,width:"100%"})}),s==="error"?e.jsx(Qt,{className:"error-wrapper",children:"Error happened, please try later"}):null]}):null},Ut=m(C)` + border-bottom: 1px solid rgba(0, 0, 0, 0.25); + background: rgba(0, 0, 0, 0.2); + position: relative; + overflow: hidden; + height: auto; + &:focus { + outline: none; + } +`,Jt=m(C)` + position: absolute; + top: ${t=>t.isFullScreen?"38%":"18%"}; + left: 50%; + transform: translateX(-50%); + z-index: -1; +`,Qt=m(C)` + height: 60px; + padding: 12px 16px; + color: ${b.primaryRed}; +`,Xt=m.div` + margin: ${t=>t.isFullScreen?"80px auto":"0"}; + width: 100%; + cursor: pointer; +`,Kt=c.memo(qt),de=c.forwardRef(({active:t,start:r,text:s},n)=>e.jsxs(er,{ref:n,className:me({active:t}),children:[e.jsx(tr,{children:r}),e.jsx(rr,{children:e.jsx("span",{children:s})})]}));de.displayName="ParagraphComponent";const ee=c.memo(de,(t,r)=>t.active===r.active),er=m(C)` + flex-direction: row; + align-items: flex-start; + font-size: 14px; + padding: 8px 24px; + &.active { + background: ${b.AI_HIGHLIGHT}; + } +`,tr=m.span` + background: ${b.lightBlue100}; + color: ${b.lightBlue500}; + padding: 2px; + margin-right: 8px; + border-radius: 4px; +`,rr=m.div` + margin: 0 2px; + word-break: break-word; + + &.active { + background: ${b.AI_HIGHLIGHT}; + } +`,sr=({transcriptString:t})=>{const[r,s]=c.useState(0),[n,i]=c.useState(!1),{playerRef:d}=L(f=>f),w=t.replace(/^["']|["']$/g,""),l=JSON.parse(w),o=c.useRef(null),a=c.useRef(null),x=c.useRef(null);return c.useEffect(()=>{const f=setInterval(()=>{if(d&&s){const p=d.getCurrentTime();s(p)}},100);return()=>clearInterval(f)},[d,s]),c.useEffect(()=>{const f=()=>{i(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{i(!1)},1e3)},p=a.current;return p&&p.addEventListener("scroll",f),()=>{p&&p.removeEventListener("scroll",f)}},[]),c.useEffect(()=>{!n&&o.current&&o.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,n]),e.jsx(or,{ref:a,children:l[0].start>r?e.jsx(ee,{active:!1,start:J(l[0].start),text:l[0].text}):e.jsx(e.Fragment,{children:l.map(f=>{const p=J(f.start),u=f.start{const{selectedEpisodeId:r}=N(l=>l),{playerRef:s}=L(l=>l),[n,i]=c.useState(0),[d,w]=c.useState([]);return c.useEffect(()=>{r&&(async()=>{try{const o=await re(r,0,50,{nodeType:["Clip"],useSubGraph:!1});o!=null&&o.nodes&&w(o.nodes)}catch(o){console.error(o)}})()},[r]),c.useEffect(()=>{const l=setInterval(()=>{if(s&&i){const o=s.getCurrentTime();i(o)}},100);return()=>clearInterval(l)},[s,i]),e.jsxs(ir,{children:[e.jsx(C,{className:"heading",children:t}),d.map(l=>{var f,p,u;const o=(f=l==null?void 0:l.properties)==null?void 0:f.timestamp,[a,x]=o?o.split("-").map(Number):[0,0];return a<=n*1e3&&n*1e3{const{selectedEpisodeLink:t,selectedEpisode:r}=N(s=>s);return e.jsxs(lr,{align:"stretch",basis:"100%",grow:1,shrink:1,children:[e.jsx(pr,{children:t&&e.jsx(Kt,{mediaUrl:t})}),e.jsx(nr,{name:(r==null?void 0:r.name)||""})]})},lr=m(C)(({theme:t})=>({position:"relative",display:"flex",padding:"0 20px 20px 20px",background:"transparent",width:"100%",[t.breakpoints.up("sm")]:{width:Ie,gap:"10px"}})),pr=m(C)(({theme:t})=>({width:"100%",marginBottom:"20px",[t.breakpoints.up("sm")]:{width:"390px",margin:"0 auto"}})),Ir=()=>{const{addNewNode:t,isFetching:r,runningProjectId:s}=D(v=>v),[n,i]=c.useState(null),[d,w]=c.useState(!1),{selectedEpisodeId:l,setSelectedEpisode:o}=N(v=>v),a=Ee(),x=c.useRef(null),f=c.useRef(null),p=c.useRef(null),u=c.useRef(null),h=c.useRef(null),{setPlayingNode:j}=L(v=>v),g=c.useCallback(v=>{r||(u.current||(u.current={nodes:[],edges:[]}),v.edges&&u.current.edges.push(...v.edges),v.nodes&&u.current.nodes.push(...v.nodes),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{if(u.current){const{nodes:_,edges:y}=u.current,E={nodes:_,edges:y};u.current={nodes:[],edges:[]},t(E)}},3e3))},[t,r]);c.useEffect(()=>{l&&(async()=>{try{const _=await re(l,0,50);i(_);const[y,E]=((_==null?void 0:_.nodes)||[]).reduce(([R,k],z)=>(["Episode","Show","Host","Guest"].includes(z.node_type)?R.push(z):k.push(z),[R,k]),[[],[]]),M=new Set(y.map(R=>R.ref_id)),[F,B]=((_==null?void 0:_.edges)||[]).reduce(([R,k],z)=>(M.has(z.source)&&M.has(z.target)?R.push(z):k.push(z),[R,k]),[[],[]]);p.current={nodes:E||[],edges:B||[]},t({nodes:y,edges:F})}catch(_){console.error(_)}})()},[l,t]),c.useEffect(()=>{l&&(async()=>{try{const _=await ge(l);_&&(j(_),o(_))}catch(_){console.error(_)}})()},[l,j,o]),c.useEffect(()=>(a&&(a.connect(),a.on("connect_error",v=>{console.error("Socket connection error:",v)}),s&&a.on("new_node_created",g)),()=>{a&&a.off()}),[a,g,s]),c.useEffect(()=>{const v=_=>{const{playerRef:y}=L.getState();if(f.current!==null){if(_-f.current>2e3){if(p.current&&y){const{nodes:M,edges:F}=p.current,B=y==null?void 0:y.getCurrentTime(),[R,k]=F.reduce(([W,S],T)=>{var I,A;return((I=T==null?void 0:T.properties)==null?void 0:I.start)!==void 0&&((A=T==null?void 0:T.properties)==null?void 0:A.start)(R.some(I=>I.target===T.ref_id||I.source===T.ref_id)?W.push(T):S.push(T),[W,S]),[[],[]]);p.current={nodes:G,edges:k},(z.length||R.length)&&t({nodes:z,edges:R})}f.current=_}}else f.current=_;x.current=requestAnimationFrame(v)};return x.current=requestAnimationFrame(v),()=>{x.current&&cancelAnimationFrame(x.current)}},[p,t]),c.useEffect(()=>{if(s)try{a==null||a.emit("update_project_id",{id:s})}catch(v){console.error(v)}},[s,a]);const P=c.useMemo(()=>{if(n){const v=n.edges.filter(y=>{var E;return(E=y==null?void 0:y.properties)==null?void 0:E.start}).map(y=>{var E;return{source:y.source,target:y.target,start:(E=y.properties)==null?void 0:E.start}});return n.nodes.filter(y=>n.edges.some(E=>E.source===y.ref_id||E.target===y.ref_id)).map(y=>{const E=v.find(M=>y.ref_id===M.source||y.ref_id===M.target);return{...y,start:(E==null?void 0:E.start)||0}}).filter(y=>y&&y.node_type!=="Clip"&&y.node_type!=="Episode"&&y.node_type!=="Show")}return[]},[n]);return e.jsx(C,{direction:"row",style:{height:"100%"},children:l?e.jsxs(e.Fragment,{children:[e.jsxs(C,{children:[e.jsx(C,{onClick:()=>w(!d),children:e.jsx(Ze,{})}),e.jsx(cr,{})]}),e.jsxs(dr,{children:[e.jsx(C,{basis:"100%",grow:1,shrink:1,children:d?e.jsx(pe,{}):e.jsx(we,{})}),e.jsx($t,{markers:P})]})]}):e.jsx(xt,{})})},dr=m(C)` + flex-basis: 100%; + flex-shrink: 1; + flex-grow: 1; + padding: 16px 16px 16px 0; +`;export{Ir as MindSet}; diff --git a/build/assets/index-5b1d6c13.js b/build/assets/index-5b1d6c13.js deleted file mode 100644 index eb2790da9..000000000 --- a/build/assets/index-5b1d6c13.js +++ /dev/null @@ -1,673 +0,0 @@ -import{r as k,H as Cc,y as Nr,bI as _c,bJ as td,j as L,L as nd,a as Ji,bK as rd,bL as id,bM as od}from"./index-f2cb870a.js";import{U as fl,X as Vl,Y as ad,Z as ld,g as Ec,n as sd,C as ro,_ as ud,O as Zl,J as Ql,$ as da,a0 as dl,a1 as cd,a2 as fd,a3 as dd,a4 as hd,a5 as pd,a6 as vd,a7 as md,V as st,e as Gr,a8 as gd,k as yd,j as Xl,w as pa,a9 as Tc,h as Ul,aa as Rl,ab as vi,ac as xd,x as Yl,ad as wd,ae as Fl,af as Fu,ag as Sd,ah as xi,m as Mc,ai as Cd,o as io,s as kc,aj as _d,ak as Ed,al as Td,am as Md,an as kd,L as Au,ao as Pd,ap as Ld,M as Ud,v as Rd,aq as Jl,ar as Du,as as Ir,at as Fd,l as hl}from"./three.module-9c942ca6.js";import{aV as _t,K as Ad,i as Dd}from"./index-d6936fc6.js";var Pc={exports:{}},Wr={};/** - * @license React - * react-reconciler-constants.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */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 - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(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 - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var jd=function(n){var c={},v=k,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 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,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: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 - (make it always face the camera) if "transfrom" - is false. - */ - #include - - void main() { - vec2 center = vec2(0., 1.); - float rotation = 0.0; - - // This is somewhat arbitrary, but it seems to work well - // Need to figure out how to derive this dynamically if it even matters - float size = 0.03; - - vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); - vec2 scale; - scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); - scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); - - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) scale *= - mvPosition.z; - - vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale * size; - vec2 rotatedPosition; - rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; - rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; - mvPosition.xy += rotatedPosition; - - gl_Position = projectionMatrix * mvPosition; - } - `,fragmentShader:` - void main() { - gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); - } - `}),[d]);return k.createElement("group",Nr({},A,{ref:ve}),m&&!H&&k.createElement("mesh",{castShadow:x,receiveShadow:C,ref:Q},S||k.createElement("planeGeometry",null),T||k.createElement("shaderMaterial",{side:Xl,vertexShader:ue.vertexShader,fragmentShader:ue.fragmentShader})))});function pp(a){return function(n){a.forEach(function(c){typeof c=="function"?c(n):c!=null&&(c.current=n)})}}function b1(a){let n=0;for(let v in a.attributes){const i=a.getAttribute(v);n+=i.count*i.itemSize*i.array.BYTES_PER_ELEMENT}const c=a.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 vi(v,3,0)),this.setAttribute("instanceEnd",new vi(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 vi(v,3,0)),this.setAttribute("instanceColorEnd",new vi(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 xd(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 - #include - #include - - uniform float linewidth; - uniform vec2 resolution; - - attribute vec3 instanceStart; - attribute vec3 instanceEnd; - - attribute vec3 instanceColorStart; - attribute vec3 instanceColorEnd; - - #ifdef WORLD_UNITS - - varying vec4 worldPos; - varying vec3 worldStart; - varying vec3 worldEnd; - - #ifdef USE_DASH - - varying vec2 vUv; - - #endif - - #else - - varying vec2 vUv; - - #endif - - #ifdef USE_DASH - - uniform float dashScale; - attribute float instanceDistanceStart; - attribute float instanceDistanceEnd; - varying float vLineDistance; - - #endif - - void trimSegment( const in vec4 start, inout vec4 end ) { - - // trim end segment so it terminates between the camera plane and the near plane - - // conservative estimate of the near plane - float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column - float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column - float nearEstimate = - 0.5 * b / a; - - float alpha = ( nearEstimate - start.z ) / ( end.z - start.z ); - - end.xyz = mix( start.xyz, end.xyz, alpha ); - - } - - void main() { - - #ifdef USE_COLOR - - vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd; - - #endif - - #ifdef USE_DASH - - vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd; - vUv = uv; - - #endif - - float aspect = resolution.x / resolution.y; - - // camera space - vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 ); - vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 ); - - #ifdef WORLD_UNITS - - worldStart = start.xyz; - worldEnd = end.xyz; - - #else - - vUv = uv; - - #endif - - // special case for perspective projection, and segments that terminate either in, or behind, the camera plane - // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space - // but we need to perform ndc-space calculations in the shader, so we must address this issue directly - // perhaps there is a more elegant solution -- WestLangley - - bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column - - if ( perspective ) { - - if ( start.z < 0.0 && end.z >= 0.0 ) { - - trimSegment( start, end ); - - } else if ( end.z < 0.0 && start.z >= 0.0 ) { - - trimSegment( end, start ); - - } - - } - - // clip space - vec4 clipStart = projectionMatrix * start; - vec4 clipEnd = projectionMatrix * end; - - // ndc space - vec3 ndcStart = clipStart.xyz / clipStart.w; - vec3 ndcEnd = clipEnd.xyz / clipEnd.w; - - // direction - vec2 dir = ndcEnd.xy - ndcStart.xy; - - // account for clip-space aspect ratio - dir.x *= aspect; - dir = normalize( dir ); - - #ifdef WORLD_UNITS - - // get the offset direction as perpendicular to the view vector - vec3 worldDir = normalize( end.xyz - start.xyz ); - vec3 offset; - if ( position.y < 0.5 ) { - - offset = normalize( cross( start.xyz, worldDir ) ); - - } else { - - offset = normalize( cross( end.xyz, worldDir ) ); - - } - - // sign flip - if ( position.x < 0.0 ) offset *= - 1.0; - - float forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) ); - - // don't extend the line if we're rendering dashes because we - // won't be rendering the endcaps - #ifndef USE_DASH - - // extend the line bounds to encompass endcaps - start.xyz += - worldDir * linewidth * 0.5; - end.xyz += worldDir * linewidth * 0.5; - - // shift the position of the quad so it hugs the forward edge of the line - offset.xy -= dir * forwardOffset; - offset.z += 0.5; - - #endif - - // endcaps - if ( position.y > 1.0 || position.y < 0.0 ) { - - offset.xy += dir * 2.0 * forwardOffset; - - } - - // adjust for linewidth - offset *= linewidth * 0.5; - - // set the world position - worldPos = ( position.y < 0.5 ) ? start : end; - worldPos.xyz += offset; - - // project the worldpos - vec4 clip = projectionMatrix * worldPos; - - // shift the depth of the projected points so the line - // segments overlap neatly - vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd; - clip.z = clipPose.z * clip.w; - - #else - - vec2 offset = vec2( dir.y, - dir.x ); - // undo aspect ratio adjustment - dir.x /= aspect; - offset.x /= aspect; - - // sign flip - if ( position.x < 0.0 ) offset *= - 1.0; - - // endcaps - if ( position.y < 0.0 ) { - - offset += - dir; - - } else if ( position.y > 1.0 ) { - - offset += dir; - - } - - // adjust for linewidth - offset *= linewidth; - - // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ... - offset /= resolution.y; - - // select end - vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd; - - // back to clip space - offset *= clip.w; - - clip.xy += offset; - - #endif - - gl_Position = clip; - - vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation - - #include - #include - #include - - } - `,fragmentShader:` - uniform vec3 diffuse; - uniform float opacity; - uniform float linewidth; - - #ifdef USE_DASH - - uniform float dashOffset; - uniform float dashSize; - uniform float gapSize; - - #endif - - varying float vLineDistance; - - #ifdef WORLD_UNITS - - varying vec4 worldPos; - varying vec3 worldStart; - varying vec3 worldEnd; - - #ifdef USE_DASH - - varying vec2 vUv; - - #endif - - #else - - varying vec2 vUv; - - #endif - - #include - #include - #include - #include - #include - - vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) { - - float mua; - float mub; - - vec3 p13 = p1 - p3; - vec3 p43 = p4 - p3; - - vec3 p21 = p2 - p1; - - float d1343 = dot( p13, p43 ); - float d4321 = dot( p43, p21 ); - float d1321 = dot( p13, p21 ); - float d4343 = dot( p43, p43 ); - float d2121 = dot( p21, p21 ); - - float denom = d2121 * d4343 - d4321 * d4321; - - float numer = d1343 * d4321 - d1321 * d4343; - - mua = numer / denom; - mua = clamp( mua, 0.0, 1.0 ); - mub = ( d1343 + d4321 * ( mua ) ) / d4343; - mub = clamp( mub, 0.0, 1.0 ); - - return vec2( mua, mub ); - - } - - void main() { - - #include - - #ifdef USE_DASH - - if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps - - if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX - - #endif - - float alpha = opacity; - - #ifdef WORLD_UNITS - - // Find the closest points on the view ray and the line segment - vec3 rayEnd = normalize( worldPos.xyz ) * 1e5; - vec3 lineDir = worldEnd - worldStart; - vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd ); - - vec3 p1 = worldStart + lineDir * params.x; - vec3 p2 = rayEnd * params.y; - vec3 delta = p1 - p2; - float len = length( delta ); - float norm = len / linewidth; - - #ifndef USE_DASH - - #ifdef USE_ALPHA_TO_COVERAGE - - float dnorm = fwidth( norm ); - alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm ); - - #else - - if ( norm > 0.5 ) { - - discard; - - } - - #endif - - #endif - - #else - - #ifdef USE_ALPHA_TO_COVERAGE - - // artifacts appear on some hardware if a derivative is taken within a conditional - float a = vUv.x; - float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; - float len2 = a * a + b * b; - float dlen = fwidth( len2 ); - - if ( abs( vUv.y ) > 1.0 ) { - - alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 ); - - } - - #else - - if ( abs( vUv.y ) > 1.0 ) { - - float a = vUv.x; - float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; - float len2 = a * a + b * b; - - if ( len2 > 1.0 ) discard; - - } - - #endif - - #endif - - vec4 diffuseColor = vec4( diffuse, alpha ); - - #include - #include - - gl_FragColor = vec4( diffuseColor.rgb, alpha ); - - #include - #include <${parseInt(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 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 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 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(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 -`),c=Bl(c)),x){let T=x({vertexShader:n,fragmentShader:c});n=T.vertexShader,c=T.fragmentShader}if(y){let T=[];c=c.replace(/^\/\/!BEGIN_POST_CHUNK[^]+?^\/\/!END_POST_CHUNK/gm,S=>(T.push(S),"")),m=`${y} -${T.join(` -`)} -${m}`}if(C){const T=` -uniform float ${C}; -`;r=T+r,h=T+h}return u&&(n=`vec3 troika_position_${i}; -vec3 troika_normal_${i}; -vec2 troika_uv_${i}; -${n} -`,r=`${r} -void troikaVertexTransform${i}(inout vec3 position, inout vec3 normal, inout vec2 uv) { - ${u} -} -`,s=` -troika_position_${i} = vec3(position); -troika_normal_${i} = vec3(normal); -troika_uv_${i} = vec2(uv); -troikaVertexTransform${i}(troika_position_${i}, troika_normal_${i}, troika_uv_${i}); -${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}`),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}() {`),a+=` -void main() { - ${v} - troikaOrigMain${n}(); - ${i} -}`),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()-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 d0(){return typeof window>"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]=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; -uniform vec4 uTroikaClipRect; -uniform mat3 uTroikaOrient; -uniform bool uTroikaUseGlyphColors; -uniform float uTroikaDistanceOffset; -uniform float uTroikaBlurRadius; -uniform vec2 uTroikaPositionOffset; -uniform float uTroikaCurveRadius; -attribute vec4 aTroikaGlyphBounds; -attribute float aTroikaGlyphIndex; -attribute vec3 aTroikaGlyphColor; -varying vec2 vTroikaGlyphUV; -varying vec4 vTroikaTextureUVBounds; -varying float vTroikaTextureChannel; -varying vec3 vTroikaGlyphColor; -varying vec2 vTroikaGlyphDimensions; -`,P0=` -vec4 bounds = aTroikaGlyphBounds; -bounds.xz += uTroikaPositionOffset.x; -bounds.yw -= uTroikaPositionOffset.y; - -vec4 outlineBounds = vec4( - bounds.xy - uTroikaDistanceOffset - uTroikaBlurRadius, - bounds.zw + uTroikaDistanceOffset + uTroikaBlurRadius -); -vec4 clippedBounds = vec4( - clamp(outlineBounds.xy, uTroikaClipRect.xy, uTroikaClipRect.zw), - clamp(outlineBounds.zw, uTroikaClipRect.xy, uTroikaClipRect.zw) -); - -vec2 clippedXY = (mix(clippedBounds.xy, clippedBounds.zw, position.xy) - bounds.xy) / (bounds.zw - bounds.xy); - -position.xy = mix(bounds.xy, bounds.zw, clippedXY); - -uv = (position.xy - uTroikaTotalBounds.xy) / (uTroikaTotalBounds.zw - uTroikaTotalBounds.xy); - -float rad = uTroikaCurveRadius; -if (rad != 0.0) { - float angle = position.x / rad; - position.xz = vec2(sin(angle) * rad, rad - cos(angle) * rad); - normal.xz = vec2(sin(angle), cos(angle)); -} - -position = uTroikaOrient * position; -normal = uTroikaOrient * normal; - -vTroikaGlyphUV = clippedXY.xy; -vTroikaGlyphDimensions = vec2(bounds[2] - bounds[0], bounds[3] - bounds[1]); - - -float txCols = uTroikaSDFTextureSize.x / uTroikaSDFGlyphSize; -vec2 txUvPerSquare = uTroikaSDFGlyphSize / uTroikaSDFTextureSize; -vec2 txStartUV = txUvPerSquare * vec2( - mod(floor(aTroikaGlyphIndex / 4.0), txCols), - floor(floor(aTroikaGlyphIndex / 4.0) / txCols) -); -vTroikaTextureUVBounds = vec4(txStartUV, vec2(txStartUV) + txUvPerSquare); -vTroikaTextureChannel = mod(aTroikaGlyphIndex, 4.0); -`,L0=` -uniform sampler2D uTroikaSDFTexture; -uniform vec2 uTroikaSDFTextureSize; -uniform float uTroikaSDFGlyphSize; -uniform float uTroikaSDFExponent; -uniform float uTroikaDistanceOffset; -uniform float uTroikaFillOpacity; -uniform float uTroikaOutlineOpacity; -uniform float uTroikaBlurRadius; -uniform vec3 uTroikaStrokeColor; -uniform float uTroikaStrokeWidth; -uniform float uTroikaStrokeOpacity; -uniform bool uTroikaSDFDebug; -varying vec2 vTroikaGlyphUV; -varying vec4 vTroikaTextureUVBounds; -varying float vTroikaTextureChannel; -varying vec2 vTroikaGlyphDimensions; - -float troikaSdfValueToSignedDistance(float alpha) { - // Inverse of exponential encoding in webgl-sdf-generator - - float maxDimension = max(vTroikaGlyphDimensions.x, vTroikaGlyphDimensions.y); - float absDist = (1.0 - pow(2.0 * (alpha > 0.5 ? 1.0 - alpha : alpha), 1.0 / uTroikaSDFExponent)) * maxDimension; - float signedDist = absDist * (alpha > 0.5 ? -1.0 : 1.0); - return signedDist; -} - -float troikaGlyphUvToSdfValue(vec2 glyphUV) { - vec2 textureUV = mix(vTroikaTextureUVBounds.xy, vTroikaTextureUVBounds.zw, glyphUV); - vec4 rgba = texture2D(uTroikaSDFTexture, textureUV); - float ch = floor(vTroikaTextureChannel + 0.5); //NOTE: can't use round() in WebGL1 - return ch == 0.0 ? rgba.r : ch == 1.0 ? rgba.g : ch == 2.0 ? rgba.b : rgba.a; -} - -float troikaGlyphUvToDistance(vec2 uv) { - return troikaSdfValueToSignedDistance(troikaGlyphUvToSdfValue(uv)); -} - -float troikaGetAADist() { - - #if defined(GL_OES_standard_derivatives) || __VERSION__ >= 300 - return length(fwidth(vTroikaGlyphUV * vTroikaGlyphDimensions)) * 0.5; - #else - return vTroikaGlyphDimensions.x / 64.0; - #endif -} - -float troikaGetFragDistValue() { - vec2 clampedGlyphUV = clamp(vTroikaGlyphUV, 0.5 / uTroikaSDFGlyphSize, 1.0 - 0.5 / uTroikaSDFGlyphSize); - float distance = troikaGlyphUvToDistance(clampedGlyphUV); - - // Extrapolate distance when outside bounds: - distance += clampedGlyphUV == vTroikaGlyphUV ? 0.0 : - length((vTroikaGlyphUV - clampedGlyphUV) * vTroikaGlyphDimensions); - - - - return distance; -} - -float troikaGetEdgeAlpha(float distance, float distanceOffset, float aaDist) { - #if defined(IS_DEPTH_MATERIAL) || defined(IS_DISTANCE_MATERIAL) - float alpha = step(-distanceOffset, -distance); - #else - - float alpha = smoothstep( - distanceOffset + aaDist, - distanceOffset - aaDist, - distance - ); - #endif - - return alpha; -} -`,U0=` -float aaDist = troikaGetAADist(); -float fragDistance = troikaGetFragDistValue(); -float edgeAlpha = uTroikaSDFDebug ? - troikaGlyphUvToSdfValue(vTroikaGlyphUV) : - troikaGetEdgeAlpha(fragDistance, uTroikaDistanceOffset, max(aaDist, uTroikaBlurRadius)); - -#if !defined(IS_DEPTH_MATERIAL) && !defined(IS_DISTANCE_MATERIAL) -vec4 fillRGBA = gl_FragColor; -fillRGBA.a *= uTroikaFillOpacity; -vec4 strokeRGBA = uTroikaStrokeWidth == 0.0 ? fillRGBA : vec4(uTroikaStrokeColor, uTroikaStrokeOpacity); -if (fillRGBA.a == 0.0) fillRGBA.rgb = strokeRGBA.rgb; -gl_FragColor = mix(fillRGBA, strokeRGBA, smoothstep( - -uTroikaStrokeWidth - aaDist, - -uTroikaStrokeWidth + aaDist, - fragDistance -)); -gl_FragColor.a *= edgeAlpha; -#endif - -if (edgeAlpha == 0.0) { - discard; -} -`;function 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 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"}),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=(a,n)=>a.length>n?`${a.substring(0,n)}...`:a,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=()=>{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]})]})};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,_p as f,vp as g,wp as h,Cp as i,xp as j,Ep as k,gp as l,pp as m,Sp as t,Si as u}; diff --git a/build/assets/index-a088126d.js b/build/assets/index-738e774f.js similarity index 78% rename from build/assets/index-a088126d.js rename to build/assets/index-738e774f.js index 2bd27391c..422fb834e 100644 --- a/build/assets/index-a088126d.js +++ b/build/assets/index-738e774f.js @@ -1,4 +1,4 @@ -import{s as c,a as b,T as E,F as s,e as x,q as W,r as l,j as e,aV as A,aW as V,t as P,w as k,B as F,bt as q,br as G,u as Y,aY as H}from"./index-f2cb870a.js";import{p as I,g as J,aO as K}from"./index-d6936fc6.js";import{S as Q}from"./Skeleton-a2b376e5.js";import{C as X}from"./ClipLoader-83efcb6b.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}=W(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(A,{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{s as c,a as b,T as E,F as s,e as x,q as A,r as l,j as e,aV as O,aW as V,t as P,v as k,B as I,bt as q,br as G,u as Y,aY as H}from"./index-794e801a.js";import{n as F,g as J,aI as K}from"./index-d39d2c64.js";import{S as Q}from"./Skeleton-8352c4ee.js";import{C as X}from"./ClipLoader-548a512b.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=F(),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'; @@ -23,9 +23,9 @@ import{s as c,a as b,T as E,F as s,e as x,q as W,r as l,j as e,aV as A,aW as V,t overflow-y: auto; padding-right: 40px; width: calc(100% + 40px); -`,ce=()=>{var w,S,v;const{close:r}=x("editNodeName"),d=P({mode:"onChange"}),{watch:f,setValue:a,reset:j,getValues:m}=d,[u,y]=l.useState(!1),[g,o]=l.useState(!1),[n,N]=l.useState(),t=I(),{open:B}=x("removeNode");l.useEffect(()=>(n?Object.keys(n).forEach(i=>{a(i,n[i])}):t&&Object.keys(t).forEach(i=>{a(i,t[i])}),()=>{j()}),[n,a,j,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){o(!0);try{const{data:p}=await q({search:t==null?void 0:t.name}),O=p.find(U=>U.name===t.name);N(O)}catch(p){console.error(p)}finally{o(!1)}}})()},[t]);const D=f("imageInputType"),C=f("image_url");l.useEffect(()=>{a("imageInputType",ee(C))},[C,a]);const L=()=>{r()},h=n||t,_=async()=>{y(!0);const i=m();try{await G((h==null?void 0:h.ref_id)||"",{node_data:i});const{updateNode:p}=Y.getState();p({...h,...i}),L()}catch(p){console.warn(p)}finally{y(!1)}},R=async()=>{B()},T=(S=(w=m())==null?void 0:w.name)==null?void 0:S.trim(),$=T&&(n==null?void 0:n.name.trim())!==T,z=m().image_url&&(t==null?void 0:t.image_url)!==((v=m())==null?void 0:v.image_url),M=u||g||!!C&&!D||!$&&!z;return e.jsx(le,{children:e.jsxs(k,{...d,children:[g?e.jsx(s,{my:24,children:e.jsx(Q,{})}):e.jsx(ae,{}),e.jsxs(s,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(s,{direction:"column",children:e.jsx(de,{color:"secondary",disabled:g||!h,onClick:R,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(me,{color:"secondary",disabled:M,onClick:_,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(pe,{children:e.jsx(X,{color:b.lightGray,size:12})})]})]})]})})},le=c(s)` +`,ce=()=>{var v,S,w;const{close:r}=x("editNodeName"),d=P({mode:"onChange"}),{watch:f,setValue:a,reset:j,getValues:m}=d,[u,y]=l.useState(!1),[g,o]=l.useState(!1),[n,N]=l.useState(),t=F(),{open:B}=x("removeNode");l.useEffect(()=>(n?Object.keys(n).forEach(i=>{a(i,n[i])}):t&&Object.keys(t).forEach(i=>{a(i,t[i])}),()=>{j()}),[n,a,j,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){o(!0);try{const{data:p}=await q({search:t==null?void 0:t.name}),U=p.find(W=>W.name===t.name);N(U)}catch(p){console.error(p)}finally{o(!1)}}})()},[t]);const D=f("imageInputType"),C=f("image_url");l.useEffect(()=>{a("imageInputType",ee(C))},[C,a]);const L=()=>{r()},h=n||t,_=async()=>{y(!0);const i=m();try{await G((h==null?void 0:h.ref_id)||"",{node_data:i});const{updateNode:p}=Y.getState();p({...h,...i}),L()}catch(p){console.warn(p)}finally{y(!1)}},R=async()=>{B()},T=(S=(v=m())==null?void 0:v.name)==null?void 0:S.trim(),$=T&&(n==null?void 0:n.name.trim())!==T,z=m().image_url&&(t==null?void 0:t.image_url)!==((w=m())==null?void 0:w.image_url),M=u||g||!!C&&!D||!$&&!z;return e.jsx(le,{children:e.jsxs(k,{...d,children:[g?e.jsx(s,{my:24,children:e.jsx(Q,{})}):e.jsx(ae,{}),e.jsxs(s,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(s,{direction:"column",children:e.jsx(de,{color:"secondary",disabled:g||!h,onClick:R,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(me,{color:"secondary",disabled:M,onClick:_,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(pe,{children:e.jsx(X,{color:b.lightGray,size:12})})]})]})]})})},le=c(s)` padding: 20px; -`,de=c(F)` +`,de=c(I)` && { color: ${b.primaryRed}; background-color: rgba(237, 116, 116, 0.1); @@ -41,7 +41,7 @@ import{s as c,a as b,T as E,F as s,e as x,q as W,r as l,j as e,aV as A,aW as V,t } `,pe=c.span` margin-top: 4px; -`,me=c(F)` +`,me=c(I)` width: 80% !important; margin: 0 auto !important; `,fe=()=>{const{close:r}=x("editNodeName");return e.jsx(H,{id:"editNodeName",kind:"regular",onClose:r,preventOutsideClose:!0,children:e.jsx(ce,{})})};export{fe as EditNodeNameModal}; diff --git a/build/assets/index-f2cb870a.js b/build/assets/index-794e801a.js similarity index 95% rename from build/assets/index-f2cb870a.js rename to build/assets/index-794e801a.js index 0237c45ec..67967ca43 100644 --- a/build/assets/index-f2cb870a.js +++ b/build/assets/index-794e801a.js @@ -3,7 +3,7 @@ var O5=Object.defineProperty;var F5=(et,tt,rt)=>tt in et?O5(et,tt,{enumerable:!0 * * @author Feross Aboukhadijeh * @license MIT - */(function(et){const tt=base64Js,rt=ieee754,nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;et.Buffer=ot,et.SlowBuffer=wt,et.INSPECT_MAX_BYTES=50;const it=2147483647;et.kMaxLength=it,ot.TYPED_ARRAY_SUPPORT=st(),!ot.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function st(){try{const Yt=new Uint8Array(1),Ut={foo:function(){return 42}};return Object.setPrototypeOf(Ut,Uint8Array.prototype),Object.setPrototypeOf(Yt,Ut),Yt.foo()===42}catch{return!1}}Object.defineProperty(ot.prototype,"parent",{enumerable:!0,get:function(){if(ot.isBuffer(this))return this.buffer}}),Object.defineProperty(ot.prototype,"offset",{enumerable:!0,get:function(){if(ot.isBuffer(this))return this.byteOffset}});function at(Yt){if(Yt>it)throw new RangeError('The value "'+Yt+'" is invalid for option "size"');const Ut=new Uint8Array(Yt);return Object.setPrototypeOf(Ut,ot.prototype),Ut}function ot(Yt,Ut,Vt){if(typeof Yt=="number"){if(typeof Ut=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return bt(Yt)}return lt(Yt,Ut,Vt)}ot.poolSize=8192;function lt(Yt,Ut,Vt){if(typeof Yt=="string")return gt(Yt,Ut);if(ArrayBuffer.isView(Yt))return pt(Yt);if(Yt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt);if(Pr(Yt,ArrayBuffer)||Yt&&Pr(Yt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pr(Yt,SharedArrayBuffer)||Yt&&Pr(Yt.buffer,SharedArrayBuffer)))return yt(Yt,Ut,Vt);if(typeof Yt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ir=Yt.valueOf&&Yt.valueOf();if(ir!=null&&ir!==Yt)return ot.from(ir,Ut,Vt);const kr=$t(Yt);if(kr)return kr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Yt[Symbol.toPrimitive]=="function")return ot.from(Yt[Symbol.toPrimitive]("string"),Ut,Vt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt)}ot.from=function(Yt,Ut,Vt){return lt(Yt,Ut,Vt)},Object.setPrototypeOf(ot.prototype,Uint8Array.prototype),Object.setPrototypeOf(ot,Uint8Array);function ut(Yt){if(typeof Yt!="number")throw new TypeError('"size" argument must be of type number');if(Yt<0)throw new RangeError('The value "'+Yt+'" is invalid for option "size"')}function dt(Yt,Ut,Vt){return ut(Yt),Yt<=0?at(Yt):Ut!==void 0?typeof Vt=="string"?at(Yt).fill(Ut,Vt):at(Yt).fill(Ut):at(Yt)}ot.alloc=function(Yt,Ut,Vt){return dt(Yt,Ut,Vt)};function bt(Yt){return ut(Yt),at(Yt<0?0:mt(Yt)|0)}ot.allocUnsafe=function(Yt){return bt(Yt)},ot.allocUnsafeSlow=function(Yt){return bt(Yt)};function gt(Yt,Ut){if((typeof Ut!="string"||Ut==="")&&(Ut="utf8"),!ot.isEncoding(Ut))throw new TypeError("Unknown encoding: "+Ut);const Vt=St(Yt,Ut)|0;let ir=at(Vt);const kr=ir.write(Yt,Ut);return kr!==Vt&&(ir=ir.slice(0,kr)),ir}function kt(Yt){const Ut=Yt.length<0?0:mt(Yt.length)|0,Vt=at(Ut);for(let ir=0;ir=it)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+it.toString(16)+" bytes");return Yt|0}function wt(Yt){return+Yt!=Yt&&(Yt=0),ot.alloc(+Yt)}ot.isBuffer=function(Ut){return Ut!=null&&Ut._isBuffer===!0&&Ut!==ot.prototype},ot.compare=function(Ut,Vt){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),Pr(Vt,Uint8Array)&&(Vt=ot.from(Vt,Vt.offset,Vt.byteLength)),!ot.isBuffer(Ut)||!ot.isBuffer(Vt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ut===Vt)return 0;let ir=Ut.length,kr=Vt.length;for(let $r=0,Br=Math.min(ir,kr);$rkr.length?(ot.isBuffer(Br)||(Br=ot.from(Br)),Br.copy(kr,$r)):Uint8Array.prototype.set.call(kr,Br,$r);else if(ot.isBuffer(Br))Br.copy(kr,$r);else throw new TypeError('"list" argument must be an Array of Buffers');$r+=Br.length}return kr};function St(Yt,Ut){if(ot.isBuffer(Yt))return Yt.length;if(ArrayBuffer.isView(Yt)||Pr(Yt,ArrayBuffer))return Yt.byteLength;if(typeof Yt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Yt);const Vt=Yt.length,ir=arguments.length>2&&arguments[2]===!0;if(!ir&&Vt===0)return 0;let kr=!1;for(;;)switch(Ut){case"ascii":case"latin1":case"binary":return Vt;case"utf8":case"utf-8":return Vr(Yt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt*2;case"hex":return Vt>>>1;case"base64":return or(Yt).length;default:if(kr)return ir?-1:Vr(Yt).length;Ut=(""+Ut).toLowerCase(),kr=!0}}ot.byteLength=St;function Bt(Yt,Ut,Vt){let ir=!1;if((Ut===void 0||Ut<0)&&(Ut=0),Ut>this.length||((Vt===void 0||Vt>this.length)&&(Vt=this.length),Vt<=0)||(Vt>>>=0,Ut>>>=0,Vt<=Ut))return"";for(Yt||(Yt="utf8");;)switch(Yt){case"hex":return Pt(this,Ut,Vt);case"utf8":case"utf-8":return ht(this,Ut,Vt);case"ascii":return Rt(this,Ut,Vt);case"latin1":case"binary":return At(this,Ut,Vt);case"base64":return Mt(this,Ut,Vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,Ut,Vt);default:if(ir)throw new TypeError("Unknown encoding: "+Yt);Yt=(Yt+"").toLowerCase(),ir=!0}}ot.prototype._isBuffer=!0;function Ft(Yt,Ut,Vt){const ir=Yt[Ut];Yt[Ut]=Yt[Vt],Yt[Vt]=ir}ot.prototype.swap16=function(){const Ut=this.length;if(Ut%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Vt=0;VtVt&&(Ut+=" ... "),""},nt&&(ot.prototype[nt]=ot.prototype.inspect),ot.prototype.compare=function(Ut,Vt,ir,kr,$r){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),!ot.isBuffer(Ut))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ut);if(Vt===void 0&&(Vt=0),ir===void 0&&(ir=Ut?Ut.length:0),kr===void 0&&(kr=0),$r===void 0&&($r=this.length),Vt<0||ir>Ut.length||kr<0||$r>this.length)throw new RangeError("out of range index");if(kr>=$r&&Vt>=ir)return 0;if(kr>=$r)return-1;if(Vt>=ir)return 1;if(Vt>>>=0,ir>>>=0,kr>>>=0,$r>>>=0,this===Ut)return 0;let Br=$r-kr,an=ir-Vt;const ln=Math.min(Br,an),rn=this.slice(kr,$r),kn=Ut.slice(Vt,ir);for(let fn=0;fn2147483647?Vt=2147483647:Vt<-2147483648&&(Vt=-2147483648),Vt=+Vt,Or(Vt)&&(Vt=kr?0:Yt.length-1),Vt<0&&(Vt=Yt.length+Vt),Vt>=Yt.length){if(kr)return-1;Vt=Yt.length-1}else if(Vt<0)if(kr)Vt=0;else return-1;if(typeof Ut=="string"&&(Ut=ot.from(Ut,ir)),ot.isBuffer(Ut))return Ut.length===0?-1:zt(Yt,Ut,Vt,ir,kr);if(typeof Ut=="number")return Ut=Ut&255,typeof Uint8Array.prototype.indexOf=="function"?kr?Uint8Array.prototype.indexOf.call(Yt,Ut,Vt):Uint8Array.prototype.lastIndexOf.call(Yt,Ut,Vt):zt(Yt,[Ut],Vt,ir,kr);throw new TypeError("val must be string, number or Buffer")}function zt(Yt,Ut,Vt,ir,kr){let $r=1,Br=Yt.length,an=Ut.length;if(ir!==void 0&&(ir=String(ir).toLowerCase(),ir==="ucs2"||ir==="ucs-2"||ir==="utf16le"||ir==="utf-16le")){if(Yt.length<2||Ut.length<2)return-1;$r=2,Br/=2,an/=2,Vt/=2}function ln(kn,fn){return $r===1?kn[fn]:kn.readUInt16BE(fn*$r)}let rn;if(kr){let kn=-1;for(rn=Vt;rnBr&&(Vt=Br-an),rn=Vt;rn>=0;rn--){let kn=!0;for(let fn=0;fnkr&&(ir=kr)):ir=kr;const $r=Ut.length;ir>$r/2&&(ir=$r/2);let Br;for(Br=0;Br>>0,isFinite(ir)?(ir=ir>>>0,kr===void 0&&(kr="utf8")):(kr=ir,ir=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $r=this.length-Vt;if((ir===void 0||ir>$r)&&(ir=$r),Ut.length>0&&(ir<0||Vt<0)||Vt>this.length)throw new RangeError("Attempt to write outside buffer bounds");kr||(kr="utf8");let Br=!1;for(;;)switch(kr){case"hex":return Ht(this,Ut,Vt,ir);case"utf8":case"utf-8":return Wt(this,Ut,Vt,ir);case"ascii":case"latin1":case"binary":return lr(this,Ut,Vt,ir);case"base64":return qt(this,Ut,Vt,ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ot(this,Ut,Vt,ir);default:if(Br)throw new TypeError("Unknown encoding: "+kr);kr=(""+kr).toLowerCase(),Br=!0}},ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(Yt,Ut,Vt){return Ut===0&&Vt===Yt.length?tt.fromByteArray(Yt):tt.fromByteArray(Yt.slice(Ut,Vt))}function ht(Yt,Ut,Vt){Vt=Math.min(Yt.length,Vt);const ir=[];let kr=Ut;for(;kr239?4:$r>223?3:$r>191?2:1;if(kr+an<=Vt){let ln,rn,kn,fn;switch(an){case 1:$r<128&&(Br=$r);break;case 2:ln=Yt[kr+1],(ln&192)===128&&(fn=($r&31)<<6|ln&63,fn>127&&(Br=fn));break;case 3:ln=Yt[kr+1],rn=Yt[kr+2],(ln&192)===128&&(rn&192)===128&&(fn=($r&15)<<12|(ln&63)<<6|rn&63,fn>2047&&(fn<55296||fn>57343)&&(Br=fn));break;case 4:ln=Yt[kr+1],rn=Yt[kr+2],kn=Yt[kr+3],(ln&192)===128&&(rn&192)===128&&(kn&192)===128&&(fn=($r&15)<<18|(ln&63)<<12|(rn&63)<<6|kn&63,fn>65535&&fn<1114112&&(Br=fn))}}Br===null?(Br=65533,an=1):Br>65535&&(Br-=65536,ir.push(Br>>>10&1023|55296),Br=56320|Br&1023),ir.push(Br),kr+=an}return Tt(ir)}const Et=4096;function Tt(Yt){const Ut=Yt.length;if(Ut<=Et)return String.fromCharCode.apply(String,Yt);let Vt="",ir=0;for(;irir)&&(Vt=ir);let kr="";for(let $r=Ut;$rir&&(Ut=ir),Vt<0?(Vt+=ir,Vt<0&&(Vt=0)):Vt>ir&&(Vt=ir),VtVt)throw new RangeError("Trying to access beyond buffer length")}ot.prototype.readUintLE=ot.prototype.readUIntLE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut+--Vt],$r=1;for(;Vt>0&&($r*=256);)kr+=this[Ut+--Vt]*$r;return kr},ot.prototype.readUint8=ot.prototype.readUInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]},ot.prototype.readUint16LE=ot.prototype.readUInt16LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]|this[Ut+1]<<8},ot.prototype.readUint16BE=ot.prototype.readUInt16BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]<<8|this[Ut+1]},ot.prototype.readUint32LE=ot.prototype.readUInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),(this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16)+this[Ut+3]*16777216},ot.prototype.readUint32BE=ot.prototype.readUInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]*16777216+(this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3])},ot.prototype.readBigUInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt+this[++Ut]*2**8+this[++Ut]*2**16+this[++Ut]*2**24,$r=this[++Ut]+this[++Ut]*2**8+this[++Ut]*2**16+ir*2**24;return BigInt(kr)+(BigInt($r)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt*2**24+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut],$r=this[++Ut]*2**24+this[++Ut]*2**16+this[++Ut]*2**8+ir;return(BigInt(kr)<>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br=$r&&(kr-=Math.pow(2,8*Vt)),kr},ot.prototype.readIntBE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=Vt,$r=1,Br=this[Ut+--kr];for(;kr>0&&($r*=256);)Br+=this[Ut+--kr]*$r;return $r*=128,Br>=$r&&(Br-=Math.pow(2,8*Vt)),Br},ot.prototype.readInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]&128?(255-this[Ut]+1)*-1:this[Ut]},ot.prototype.readInt16LE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut]|this[Ut+1]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt16BE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut+1]|this[Ut]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16|this[Ut+3]<<24},ot.prototype.readInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]<<24|this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3]},ot.prototype.readBigInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=this[Ut+4]+this[Ut+5]*2**8+this[Ut+6]*2**16+(ir<<24);return(BigInt(kr)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=(Vt<<24)+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut];return(BigInt(kr)<>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!0,23,4)},ot.prototype.readFloatBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!1,23,4)},ot.prototype.readDoubleLE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!0,52,8)},ot.prototype.readDoubleBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!1,52,8)};function xt(Yt,Ut,Vt,ir,kr,$r){if(!ot.isBuffer(Yt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ut>kr||Ut<$r)throw new RangeError('"value" argument is out of bounds');if(Vt+ir>Yt.length)throw new RangeError("Index out of range")}ot.prototype.writeUintLE=ot.prototype.writeUIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=1,Br=0;for(this[Vt]=Ut&255;++Br>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=ir-1,Br=1;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)this[Vt+$r]=Ut/Br&255;return Vt+ir},ot.prototype.writeUint8=ot.prototype.writeUInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,255,0),this[Vt]=Ut&255,Vt+1},ot.prototype.writeUint16LE=ot.prototype.writeUInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeUint16BE=ot.prototype.writeUInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeUint32LE=ot.prototype.writeUInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt+3]=Ut>>>24,this[Vt+2]=Ut>>>16,this[Vt+1]=Ut>>>8,this[Vt]=Ut&255,Vt+4},ot.prototype.writeUint32BE=ot.prototype.writeUInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4};function Lt(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Vt}function tr(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt+7]=$r,$r=$r>>8,Yt[Vt+6]=$r,$r=$r>>8,Yt[Vt+5]=$r,$r=$r>>8,Yt[Vt+4]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt+3]=Br,Br=Br>>8,Yt[Vt+2]=Br,Br=Br>>8,Yt[Vt+1]=Br,Br=Br>>8,Yt[Vt]=Br,Vt+8}ot.prototype.writeBigUInt64LE=gr(function(Ut,Vt=0){return Lt(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeBigUInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=0,Br=1,an=0;for(this[Vt]=Ut&255;++$r>0)-an&255;return Vt+ir},ot.prototype.writeIntBE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=ir-1,Br=1,an=0;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)Ut<0&&an===0&&this[Vt+$r+1]!==0&&(an=1),this[Vt+$r]=(Ut/Br>>0)-an&255;return Vt+ir},ot.prototype.writeInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,127,-128),Ut<0&&(Ut=255+Ut+1),this[Vt]=Ut&255,Vt+1},ot.prototype.writeInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,this[Vt+2]=Ut>>>16,this[Vt+3]=Ut>>>24,Vt+4},ot.prototype.writeInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),Ut<0&&(Ut=4294967295+Ut+1),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4},ot.prototype.writeBigInt64LE=gr(function(Ut,Vt=0){return Lt(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ot.prototype.writeBigInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function pr(Yt,Ut,Vt,ir,kr,$r){if(Vt+ir>Yt.length)throw new RangeError("Index out of range");if(Vt<0)throw new RangeError("Index out of range")}function Kt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,4),rt.write(Yt,Ut,Vt,ir,23,4),Vt+4}ot.prototype.writeFloatLE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!0,ir)},ot.prototype.writeFloatBE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!1,ir)};function Qt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,8),rt.write(Yt,Ut,Vt,ir,52,8),Vt+8}ot.prototype.writeDoubleLE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!0,ir)},ot.prototype.writeDoubleBE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!1,ir)},ot.prototype.copy=function(Ut,Vt,ir,kr){if(!ot.isBuffer(Ut))throw new TypeError("argument should be a Buffer");if(ir||(ir=0),!kr&&kr!==0&&(kr=this.length),Vt>=Ut.length&&(Vt=Ut.length),Vt||(Vt=0),kr>0&&kr=this.length)throw new RangeError("Index out of range");if(kr<0)throw new RangeError("sourceEnd out of bounds");kr>this.length&&(kr=this.length),Ut.length-Vt>>0,ir=ir===void 0?this.length:ir>>>0,Ut||(Ut=0);let $r;if(typeof Ut=="number")for($r=Vt;$r2**32?kr=_r(String(Vt)):typeof Vt=="bigint"&&(kr=String(Vt),(Vt>BigInt(2)**BigInt(32)||Vt<-(BigInt(2)**BigInt(32)))&&(kr=_r(kr)),kr+="n"),ir+=` It must be ${Ut}. Received ${kr}`,ir},RangeError);function _r(Yt){let Ut="",Vt=Yt.length;const ir=Yt[0]==="-"?1:0;for(;Vt>=ir+4;Vt-=3)Ut=`_${Yt.slice(Vt-3,Vt)}${Ut}`;return`${Yt.slice(0,Vt)}${Ut}`}function er(Yt,Ut,Vt){Ar(Ut,"offset"),(Yt[Ut]===void 0||Yt[Ut+Vt]===void 0)&&Er(Ut,Yt.length-(Vt+1))}function Jt(Yt,Ut,Vt,ir,kr,$r){if(Yt>Vt||Yt3?Ut===0||Ut===BigInt(0)?an=`>= 0${Br} and < 2${Br} ** ${($r+1)*8}${Br}`:an=`>= -(2${Br} ** ${($r+1)*8-1}${Br}) and < 2 ** ${($r+1)*8-1}${Br}`:an=`>= ${Ut}${Br} and <= ${Vt}${Br}`,new Zt.ERR_OUT_OF_RANGE("value",an,Yt)}er(ir,kr,$r)}function Ar(Yt,Ut){if(typeof Yt!="number")throw new Zt.ERR_INVALID_ARG_TYPE(Ut,"number",Yt)}function Er(Yt,Ut,Vt){throw Math.floor(Yt)!==Yt?(Ar(Yt,Vt),new Zt.ERR_OUT_OF_RANGE(Vt||"offset","an integer",Yt)):Ut<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE(Vt||"offset",`>= ${Vt?1:0} and <= ${Ut}`,Yt)}const Dr=/[^+/0-9A-Za-z-_]/g;function Xr(Yt){if(Yt=Yt.split("=")[0],Yt=Yt.trim().replace(Dr,""),Yt.length<2)return"";for(;Yt.length%4!==0;)Yt=Yt+"=";return Yt}function Vr(Yt,Ut){Ut=Ut||1/0;let Vt;const ir=Yt.length;let kr=null;const $r=[];for(let Br=0;Br55295&&Vt<57344){if(!kr){if(Vt>56319){(Ut-=3)>-1&&$r.push(239,191,189);continue}else if(Br+1===ir){(Ut-=3)>-1&&$r.push(239,191,189);continue}kr=Vt;continue}if(Vt<56320){(Ut-=3)>-1&&$r.push(239,191,189),kr=Vt;continue}Vt=(kr-55296<<10|Vt-56320)+65536}else kr&&(Ut-=3)>-1&&$r.push(239,191,189);if(kr=null,Vt<128){if((Ut-=1)<0)break;$r.push(Vt)}else if(Vt<2048){if((Ut-=2)<0)break;$r.push(Vt>>6|192,Vt&63|128)}else if(Vt<65536){if((Ut-=3)<0)break;$r.push(Vt>>12|224,Vt>>6&63|128,Vt&63|128)}else if(Vt<1114112){if((Ut-=4)<0)break;$r.push(Vt>>18|240,Vt>>12&63|128,Vt>>6&63|128,Vt&63|128)}else throw new Error("Invalid code point")}return $r}function wr(Yt){const Ut=[];for(let Vt=0;Vt>8,kr=Vt%256,$r.push(kr),$r.push(ir);return $r}function or(Yt){return tt.toByteArray(Xr(Yt))}function xr(Yt,Ut,Vt,ir){let kr;for(kr=0;kr=Ut.length||kr>=Yt.length);++kr)Ut[kr+Vt]=Yt[kr];return kr}function Pr(Yt,Ut){return Yt instanceof Ut||Yt!=null&&Yt.constructor!=null&&Yt.constructor.name!=null&&Yt.constructor.name===Ut.name}function Or(Yt){return Yt!==Yt}const rr=function(){const Yt="0123456789abcdef",Ut=new Array(256);for(let Vt=0;Vt<16;++Vt){const ir=Vt*16;for(let kr=0;kr<16;++kr)Ut[ir+kr]=Yt[Vt]+Yt[kr]}return Ut}();function gr(Yt){return typeof BigInt>"u"?Ir:Yt}function Ir(){throw new Error("BigInt not supported")}})(buffer$2);var browser$d={exports:{}},process$1=browser$d.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(et){if(cachedSetTimeout===setTimeout)return setTimeout(et,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(et,0);try{return cachedSetTimeout(et,0)}catch{try{return cachedSetTimeout.call(null,et,0)}catch{return cachedSetTimeout.call(this,et,0)}}}function runClearTimeout(et){if(cachedClearTimeout===clearTimeout)return clearTimeout(et);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(et);try{return cachedClearTimeout(et)}catch{try{return cachedClearTimeout.call(null,et)}catch{return cachedClearTimeout.call(this,et)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var et=runTimeout(cleanUpNextTick);draining=!0;for(var tt=queue.length;tt;){for(currentQueue=queue,queue=[];++queueIndex1)for(var rt=1;rtit)throw new RangeError('The value "'+Yt+'" is invalid for option "size"');const Ut=new Uint8Array(Yt);return Object.setPrototypeOf(Ut,ot.prototype),Ut}function ot(Yt,Ut,Vt){if(typeof Yt=="number"){if(typeof Ut=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return bt(Yt)}return lt(Yt,Ut,Vt)}ot.poolSize=8192;function lt(Yt,Ut,Vt){if(typeof Yt=="string")return gt(Yt,Ut);if(ArrayBuffer.isView(Yt))return pt(Yt);if(Yt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt);if(Pr(Yt,ArrayBuffer)||Yt&&Pr(Yt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pr(Yt,SharedArrayBuffer)||Yt&&Pr(Yt.buffer,SharedArrayBuffer)))return yt(Yt,Ut,Vt);if(typeof Yt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ir=Yt.valueOf&&Yt.valueOf();if(ir!=null&&ir!==Yt)return ot.from(ir,Ut,Vt);const kr=$t(Yt);if(kr)return kr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Yt[Symbol.toPrimitive]=="function")return ot.from(Yt[Symbol.toPrimitive]("string"),Ut,Vt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt)}ot.from=function(Yt,Ut,Vt){return lt(Yt,Ut,Vt)},Object.setPrototypeOf(ot.prototype,Uint8Array.prototype),Object.setPrototypeOf(ot,Uint8Array);function ut(Yt){if(typeof Yt!="number")throw new TypeError('"size" argument must be of type number');if(Yt<0)throw new RangeError('The value "'+Yt+'" is invalid for option "size"')}function dt(Yt,Ut,Vt){return ut(Yt),Yt<=0?at(Yt):Ut!==void 0?typeof Vt=="string"?at(Yt).fill(Ut,Vt):at(Yt).fill(Ut):at(Yt)}ot.alloc=function(Yt,Ut,Vt){return dt(Yt,Ut,Vt)};function bt(Yt){return ut(Yt),at(Yt<0?0:mt(Yt)|0)}ot.allocUnsafe=function(Yt){return bt(Yt)},ot.allocUnsafeSlow=function(Yt){return bt(Yt)};function gt(Yt,Ut){if((typeof Ut!="string"||Ut==="")&&(Ut="utf8"),!ot.isEncoding(Ut))throw new TypeError("Unknown encoding: "+Ut);const Vt=St(Yt,Ut)|0;let ir=at(Vt);const kr=ir.write(Yt,Ut);return kr!==Vt&&(ir=ir.slice(0,kr)),ir}function kt(Yt){const Ut=Yt.length<0?0:mt(Yt.length)|0,Vt=at(Ut);for(let ir=0;ir=it)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+it.toString(16)+" bytes");return Yt|0}function wt(Yt){return+Yt!=Yt&&(Yt=0),ot.alloc(+Yt)}ot.isBuffer=function(Ut){return Ut!=null&&Ut._isBuffer===!0&&Ut!==ot.prototype},ot.compare=function(Ut,Vt){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),Pr(Vt,Uint8Array)&&(Vt=ot.from(Vt,Vt.offset,Vt.byteLength)),!ot.isBuffer(Ut)||!ot.isBuffer(Vt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ut===Vt)return 0;let ir=Ut.length,kr=Vt.length;for(let $r=0,Br=Math.min(ir,kr);$rkr.length?(ot.isBuffer(Br)||(Br=ot.from(Br)),Br.copy(kr,$r)):Uint8Array.prototype.set.call(kr,Br,$r);else if(ot.isBuffer(Br))Br.copy(kr,$r);else throw new TypeError('"list" argument must be an Array of Buffers');$r+=Br.length}return kr};function St(Yt,Ut){if(ot.isBuffer(Yt))return Yt.length;if(ArrayBuffer.isView(Yt)||Pr(Yt,ArrayBuffer))return Yt.byteLength;if(typeof Yt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Yt);const Vt=Yt.length,ir=arguments.length>2&&arguments[2]===!0;if(!ir&&Vt===0)return 0;let kr=!1;for(;;)switch(Ut){case"ascii":case"latin1":case"binary":return Vt;case"utf8":case"utf-8":return Vr(Yt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt*2;case"hex":return Vt>>>1;case"base64":return or(Yt).length;default:if(kr)return ir?-1:Vr(Yt).length;Ut=(""+Ut).toLowerCase(),kr=!0}}ot.byteLength=St;function Bt(Yt,Ut,Vt){let ir=!1;if((Ut===void 0||Ut<0)&&(Ut=0),Ut>this.length||((Vt===void 0||Vt>this.length)&&(Vt=this.length),Vt<=0)||(Vt>>>=0,Ut>>>=0,Vt<=Ut))return"";for(Yt||(Yt="utf8");;)switch(Yt){case"hex":return Pt(this,Ut,Vt);case"utf8":case"utf-8":return ht(this,Ut,Vt);case"ascii":return Rt(this,Ut,Vt);case"latin1":case"binary":return At(this,Ut,Vt);case"base64":return Mt(this,Ut,Vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,Ut,Vt);default:if(ir)throw new TypeError("Unknown encoding: "+Yt);Yt=(Yt+"").toLowerCase(),ir=!0}}ot.prototype._isBuffer=!0;function Ft(Yt,Ut,Vt){const ir=Yt[Ut];Yt[Ut]=Yt[Vt],Yt[Vt]=ir}ot.prototype.swap16=function(){const Ut=this.length;if(Ut%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Vt=0;VtVt&&(Ut+=" ... "),""},nt&&(ot.prototype[nt]=ot.prototype.inspect),ot.prototype.compare=function(Ut,Vt,ir,kr,$r){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),!ot.isBuffer(Ut))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ut);if(Vt===void 0&&(Vt=0),ir===void 0&&(ir=Ut?Ut.length:0),kr===void 0&&(kr=0),$r===void 0&&($r=this.length),Vt<0||ir>Ut.length||kr<0||$r>this.length)throw new RangeError("out of range index");if(kr>=$r&&Vt>=ir)return 0;if(kr>=$r)return-1;if(Vt>=ir)return 1;if(Vt>>>=0,ir>>>=0,kr>>>=0,$r>>>=0,this===Ut)return 0;let Br=$r-kr,an=ir-Vt;const ln=Math.min(Br,an),rn=this.slice(kr,$r),kn=Ut.slice(Vt,ir);for(let fn=0;fn2147483647?Vt=2147483647:Vt<-2147483648&&(Vt=-2147483648),Vt=+Vt,Or(Vt)&&(Vt=kr?0:Yt.length-1),Vt<0&&(Vt=Yt.length+Vt),Vt>=Yt.length){if(kr)return-1;Vt=Yt.length-1}else if(Vt<0)if(kr)Vt=0;else return-1;if(typeof Ut=="string"&&(Ut=ot.from(Ut,ir)),ot.isBuffer(Ut))return Ut.length===0?-1:zt(Yt,Ut,Vt,ir,kr);if(typeof Ut=="number")return Ut=Ut&255,typeof Uint8Array.prototype.indexOf=="function"?kr?Uint8Array.prototype.indexOf.call(Yt,Ut,Vt):Uint8Array.prototype.lastIndexOf.call(Yt,Ut,Vt):zt(Yt,[Ut],Vt,ir,kr);throw new TypeError("val must be string, number or Buffer")}function zt(Yt,Ut,Vt,ir,kr){let $r=1,Br=Yt.length,an=Ut.length;if(ir!==void 0&&(ir=String(ir).toLowerCase(),ir==="ucs2"||ir==="ucs-2"||ir==="utf16le"||ir==="utf-16le")){if(Yt.length<2||Ut.length<2)return-1;$r=2,Br/=2,an/=2,Vt/=2}function ln(kn,fn){return $r===1?kn[fn]:kn.readUInt16BE(fn*$r)}let rn;if(kr){let kn=-1;for(rn=Vt;rnBr&&(Vt=Br-an),rn=Vt;rn>=0;rn--){let kn=!0;for(let fn=0;fnkr&&(ir=kr)):ir=kr;const $r=Ut.length;ir>$r/2&&(ir=$r/2);let Br;for(Br=0;Br>>0,isFinite(ir)?(ir=ir>>>0,kr===void 0&&(kr="utf8")):(kr=ir,ir=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $r=this.length-Vt;if((ir===void 0||ir>$r)&&(ir=$r),Ut.length>0&&(ir<0||Vt<0)||Vt>this.length)throw new RangeError("Attempt to write outside buffer bounds");kr||(kr="utf8");let Br=!1;for(;;)switch(kr){case"hex":return Ht(this,Ut,Vt,ir);case"utf8":case"utf-8":return Wt(this,Ut,Vt,ir);case"ascii":case"latin1":case"binary":return lr(this,Ut,Vt,ir);case"base64":return qt(this,Ut,Vt,ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ot(this,Ut,Vt,ir);default:if(Br)throw new TypeError("Unknown encoding: "+kr);kr=(""+kr).toLowerCase(),Br=!0}},ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(Yt,Ut,Vt){return Ut===0&&Vt===Yt.length?tt.fromByteArray(Yt):tt.fromByteArray(Yt.slice(Ut,Vt))}function ht(Yt,Ut,Vt){Vt=Math.min(Yt.length,Vt);const ir=[];let kr=Ut;for(;kr239?4:$r>223?3:$r>191?2:1;if(kr+an<=Vt){let ln,rn,kn,fn;switch(an){case 1:$r<128&&(Br=$r);break;case 2:ln=Yt[kr+1],(ln&192)===128&&(fn=($r&31)<<6|ln&63,fn>127&&(Br=fn));break;case 3:ln=Yt[kr+1],rn=Yt[kr+2],(ln&192)===128&&(rn&192)===128&&(fn=($r&15)<<12|(ln&63)<<6|rn&63,fn>2047&&(fn<55296||fn>57343)&&(Br=fn));break;case 4:ln=Yt[kr+1],rn=Yt[kr+2],kn=Yt[kr+3],(ln&192)===128&&(rn&192)===128&&(kn&192)===128&&(fn=($r&15)<<18|(ln&63)<<12|(rn&63)<<6|kn&63,fn>65535&&fn<1114112&&(Br=fn))}}Br===null?(Br=65533,an=1):Br>65535&&(Br-=65536,ir.push(Br>>>10&1023|55296),Br=56320|Br&1023),ir.push(Br),kr+=an}return Tt(ir)}const Et=4096;function Tt(Yt){const Ut=Yt.length;if(Ut<=Et)return String.fromCharCode.apply(String,Yt);let Vt="",ir=0;for(;irir)&&(Vt=ir);let kr="";for(let $r=Ut;$rir&&(Ut=ir),Vt<0?(Vt+=ir,Vt<0&&(Vt=0)):Vt>ir&&(Vt=ir),VtVt)throw new RangeError("Trying to access beyond buffer length")}ot.prototype.readUintLE=ot.prototype.readUIntLE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut+--Vt],$r=1;for(;Vt>0&&($r*=256);)kr+=this[Ut+--Vt]*$r;return kr},ot.prototype.readUint8=ot.prototype.readUInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]},ot.prototype.readUint16LE=ot.prototype.readUInt16LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]|this[Ut+1]<<8},ot.prototype.readUint16BE=ot.prototype.readUInt16BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]<<8|this[Ut+1]},ot.prototype.readUint32LE=ot.prototype.readUInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),(this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16)+this[Ut+3]*16777216},ot.prototype.readUint32BE=ot.prototype.readUInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]*16777216+(this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3])},ot.prototype.readBigUInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt+this[++Ut]*2**8+this[++Ut]*2**16+this[++Ut]*2**24,$r=this[++Ut]+this[++Ut]*2**8+this[++Ut]*2**16+ir*2**24;return BigInt(kr)+(BigInt($r)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt*2**24+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut],$r=this[++Ut]*2**24+this[++Ut]*2**16+this[++Ut]*2**8+ir;return(BigInt(kr)<>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br=$r&&(kr-=Math.pow(2,8*Vt)),kr},ot.prototype.readIntBE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=Vt,$r=1,Br=this[Ut+--kr];for(;kr>0&&($r*=256);)Br+=this[Ut+--kr]*$r;return $r*=128,Br>=$r&&(Br-=Math.pow(2,8*Vt)),Br},ot.prototype.readInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]&128?(255-this[Ut]+1)*-1:this[Ut]},ot.prototype.readInt16LE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut]|this[Ut+1]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt16BE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut+1]|this[Ut]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16|this[Ut+3]<<24},ot.prototype.readInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]<<24|this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3]},ot.prototype.readBigInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=this[Ut+4]+this[Ut+5]*2**8+this[Ut+6]*2**16+(ir<<24);return(BigInt(kr)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=(Vt<<24)+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut];return(BigInt(kr)<>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!0,23,4)},ot.prototype.readFloatBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!1,23,4)},ot.prototype.readDoubleLE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!0,52,8)},ot.prototype.readDoubleBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!1,52,8)};function xt(Yt,Ut,Vt,ir,kr,$r){if(!ot.isBuffer(Yt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ut>kr||Ut<$r)throw new RangeError('"value" argument is out of bounds');if(Vt+ir>Yt.length)throw new RangeError("Index out of range")}ot.prototype.writeUintLE=ot.prototype.writeUIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=1,Br=0;for(this[Vt]=Ut&255;++Br>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=ir-1,Br=1;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)this[Vt+$r]=Ut/Br&255;return Vt+ir},ot.prototype.writeUint8=ot.prototype.writeUInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,255,0),this[Vt]=Ut&255,Vt+1},ot.prototype.writeUint16LE=ot.prototype.writeUInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeUint16BE=ot.prototype.writeUInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeUint32LE=ot.prototype.writeUInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt+3]=Ut>>>24,this[Vt+2]=Ut>>>16,this[Vt+1]=Ut>>>8,this[Vt]=Ut&255,Vt+4},ot.prototype.writeUint32BE=ot.prototype.writeUInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4};function Dt(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Vt}function tr(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt+7]=$r,$r=$r>>8,Yt[Vt+6]=$r,$r=$r>>8,Yt[Vt+5]=$r,$r=$r>>8,Yt[Vt+4]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt+3]=Br,Br=Br>>8,Yt[Vt+2]=Br,Br=Br>>8,Yt[Vt+1]=Br,Br=Br>>8,Yt[Vt]=Br,Vt+8}ot.prototype.writeBigUInt64LE=gr(function(Ut,Vt=0){return Dt(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeBigUInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=0,Br=1,an=0;for(this[Vt]=Ut&255;++$r>0)-an&255;return Vt+ir},ot.prototype.writeIntBE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=ir-1,Br=1,an=0;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)Ut<0&&an===0&&this[Vt+$r+1]!==0&&(an=1),this[Vt+$r]=(Ut/Br>>0)-an&255;return Vt+ir},ot.prototype.writeInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,127,-128),Ut<0&&(Ut=255+Ut+1),this[Vt]=Ut&255,Vt+1},ot.prototype.writeInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,this[Vt+2]=Ut>>>16,this[Vt+3]=Ut>>>24,Vt+4},ot.prototype.writeInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),Ut<0&&(Ut=4294967295+Ut+1),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4},ot.prototype.writeBigInt64LE=gr(function(Ut,Vt=0){return Dt(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ot.prototype.writeBigInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function pr(Yt,Ut,Vt,ir,kr,$r){if(Vt+ir>Yt.length)throw new RangeError("Index out of range");if(Vt<0)throw new RangeError("Index out of range")}function Kt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,4),rt.write(Yt,Ut,Vt,ir,23,4),Vt+4}ot.prototype.writeFloatLE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!0,ir)},ot.prototype.writeFloatBE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!1,ir)};function Qt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,8),rt.write(Yt,Ut,Vt,ir,52,8),Vt+8}ot.prototype.writeDoubleLE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!0,ir)},ot.prototype.writeDoubleBE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!1,ir)},ot.prototype.copy=function(Ut,Vt,ir,kr){if(!ot.isBuffer(Ut))throw new TypeError("argument should be a Buffer");if(ir||(ir=0),!kr&&kr!==0&&(kr=this.length),Vt>=Ut.length&&(Vt=Ut.length),Vt||(Vt=0),kr>0&&kr=this.length)throw new RangeError("Index out of range");if(kr<0)throw new RangeError("sourceEnd out of bounds");kr>this.length&&(kr=this.length),Ut.length-Vt>>0,ir=ir===void 0?this.length:ir>>>0,Ut||(Ut=0);let $r;if(typeof Ut=="number")for($r=Vt;$r2**32?kr=_r(String(Vt)):typeof Vt=="bigint"&&(kr=String(Vt),(Vt>BigInt(2)**BigInt(32)||Vt<-(BigInt(2)**BigInt(32)))&&(kr=_r(kr)),kr+="n"),ir+=` It must be ${Ut}. Received ${kr}`,ir},RangeError);function _r(Yt){let Ut="",Vt=Yt.length;const ir=Yt[0]==="-"?1:0;for(;Vt>=ir+4;Vt-=3)Ut=`_${Yt.slice(Vt-3,Vt)}${Ut}`;return`${Yt.slice(0,Vt)}${Ut}`}function er(Yt,Ut,Vt){Ar(Ut,"offset"),(Yt[Ut]===void 0||Yt[Ut+Vt]===void 0)&&Er(Ut,Yt.length-(Vt+1))}function Jt(Yt,Ut,Vt,ir,kr,$r){if(Yt>Vt||Yt3?Ut===0||Ut===BigInt(0)?an=`>= 0${Br} and < 2${Br} ** ${($r+1)*8}${Br}`:an=`>= -(2${Br} ** ${($r+1)*8-1}${Br}) and < 2 ** ${($r+1)*8-1}${Br}`:an=`>= ${Ut}${Br} and <= ${Vt}${Br}`,new Zt.ERR_OUT_OF_RANGE("value",an,Yt)}er(ir,kr,$r)}function Ar(Yt,Ut){if(typeof Yt!="number")throw new Zt.ERR_INVALID_ARG_TYPE(Ut,"number",Yt)}function Er(Yt,Ut,Vt){throw Math.floor(Yt)!==Yt?(Ar(Yt,Vt),new Zt.ERR_OUT_OF_RANGE(Vt||"offset","an integer",Yt)):Ut<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE(Vt||"offset",`>= ${Vt?1:0} and <= ${Ut}`,Yt)}const Dr=/[^+/0-9A-Za-z-_]/g;function Xr(Yt){if(Yt=Yt.split("=")[0],Yt=Yt.trim().replace(Dr,""),Yt.length<2)return"";for(;Yt.length%4!==0;)Yt=Yt+"=";return Yt}function Vr(Yt,Ut){Ut=Ut||1/0;let Vt;const ir=Yt.length;let kr=null;const $r=[];for(let Br=0;Br55295&&Vt<57344){if(!kr){if(Vt>56319){(Ut-=3)>-1&&$r.push(239,191,189);continue}else if(Br+1===ir){(Ut-=3)>-1&&$r.push(239,191,189);continue}kr=Vt;continue}if(Vt<56320){(Ut-=3)>-1&&$r.push(239,191,189),kr=Vt;continue}Vt=(kr-55296<<10|Vt-56320)+65536}else kr&&(Ut-=3)>-1&&$r.push(239,191,189);if(kr=null,Vt<128){if((Ut-=1)<0)break;$r.push(Vt)}else if(Vt<2048){if((Ut-=2)<0)break;$r.push(Vt>>6|192,Vt&63|128)}else if(Vt<65536){if((Ut-=3)<0)break;$r.push(Vt>>12|224,Vt>>6&63|128,Vt&63|128)}else if(Vt<1114112){if((Ut-=4)<0)break;$r.push(Vt>>18|240,Vt>>12&63|128,Vt>>6&63|128,Vt&63|128)}else throw new Error("Invalid code point")}return $r}function wr(Yt){const Ut=[];for(let Vt=0;Vt>8,kr=Vt%256,$r.push(kr),$r.push(ir);return $r}function or(Yt){return tt.toByteArray(Xr(Yt))}function xr(Yt,Ut,Vt,ir){let kr;for(kr=0;kr=Ut.length||kr>=Yt.length);++kr)Ut[kr+Vt]=Yt[kr];return kr}function Pr(Yt,Ut){return Yt instanceof Ut||Yt!=null&&Yt.constructor!=null&&Yt.constructor.name!=null&&Yt.constructor.name===Ut.name}function Or(Yt){return Yt!==Yt}const rr=function(){const Yt="0123456789abcdef",Ut=new Array(256);for(let Vt=0;Vt<16;++Vt){const ir=Vt*16;for(let kr=0;kr<16;++kr)Ut[ir+kr]=Yt[Vt]+Yt[kr]}return Ut}();function gr(Yt){return typeof BigInt>"u"?Ir:Yt}function Ir(){throw new Error("BigInt not supported")}})(buffer$2);var browser$d={exports:{}},process$1=browser$d.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(et){if(cachedSetTimeout===setTimeout)return setTimeout(et,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(et,0);try{return cachedSetTimeout(et,0)}catch{try{return cachedSetTimeout.call(null,et,0)}catch{return cachedSetTimeout.call(this,et,0)}}}function runClearTimeout(et){if(cachedClearTimeout===clearTimeout)return clearTimeout(et);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(et);try{return cachedClearTimeout(et)}catch{try{return cachedClearTimeout.call(null,et)}catch{return cachedClearTimeout.call(this,et)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var et=runTimeout(cleanUpNextTick);draining=!0;for(var tt=queue.length;tt;){for(currentQueue=queue,queue=[];++queueIndex1)for(var rt=1;rttt in et?O5(et,tt,{enumerable:!0 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(et){function tt(At,Pt){var It=At.length;At.push(Pt);e:for(;0>>1,xt=At[Ct];if(0>>1;Ctit(pr,It))Ktit(Qt,pr)?(At[Ct]=Qt,At[Kt]=It,Ct=Kt):(At[Ct]=pr,At[tr]=It,Ct=tr);else if(Ktit(Qt,It))At[Ct]=Qt,At[Kt]=It,Ct=Kt;else break e}}return Pt}function it(At,Pt){var It=At.sortIndex-Pt.sortIndex;return It!==0?It:At.id-Pt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var st=performance;et.unstable_now=function(){return st.now()}}else{var at=Date,ot=at.now();et.unstable_now=function(){return at.now()-ot}}var lt=[],ut=[],dt=1,bt=null,gt=3,kt=!1,pt=!1,yt=!1,$t=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,wt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function St(At){for(var Pt=rt(ut);Pt!==null;){if(Pt.callback===null)nt(ut);else if(Pt.startTime<=At)nt(ut),Pt.sortIndex=Pt.expirationTime,tt(lt,Pt);else break;Pt=rt(ut)}}function Bt(At){if(yt=!1,St(At),!pt)if(rt(lt)!==null)pt=!0,Tt(Ft);else{var Pt=rt(ut);Pt!==null&&Rt(Bt,Pt.startTime-At)}}function Ft(At,Pt){pt=!1,yt&&(yt=!1,mt(Ht),Ht=-1),kt=!0;var It=gt;try{for(St(Pt),bt=rt(lt);bt!==null&&(!(bt.expirationTime>Pt)||At&&!qt());){var Ct=bt.callback;if(typeof Ct=="function"){bt.callback=null,gt=bt.priorityLevel;var xt=Ct(bt.expirationTime<=Pt);Pt=et.unstable_now(),typeof xt=="function"?bt.callback=xt:bt===rt(lt)&&nt(lt),St(Pt)}else nt(lt);bt=rt(lt)}if(bt!==null)var Lt=!0;else{var tr=rt(ut);tr!==null&&Rt(Bt,tr.startTime-Pt),Lt=!1}return Lt}finally{bt=null,gt=It,kt=!1}}var Dt=!1,zt=null,Ht=-1,Wt=5,lr=-1;function qt(){return!(et.unstable_now()-lrAt||125Ct?(At.sortIndex=It,tt(ut,At),rt(lt)===null&&At===rt(ut)&&(yt?(mt(Ht),Ht=-1):yt=!0,Rt(Bt,It-Ct))):(At.sortIndex=xt,tt(lt,At),pt||kt||(pt=!0,Tt(Ft))),At},et.unstable_shouldYield=qt,et.unstable_wrapCallback=function(At){var Pt=gt;return function(){var It=gt;gt=Pt;try{return At.apply(this,arguments)}finally{gt=It}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function(et){function tt(At,Pt){var It=At.length;At.push(Pt);e:for(;0>>1,xt=At[Ct];if(0>>1;Ctit(pr,It))Ktit(Qt,pr)?(At[Ct]=Qt,At[Kt]=It,Ct=Kt):(At[Ct]=pr,At[tr]=It,Ct=tr);else if(Ktit(Qt,It))At[Ct]=Qt,At[Kt]=It,Ct=Kt;else break e}}return Pt}function it(At,Pt){var It=At.sortIndex-Pt.sortIndex;return It!==0?It:At.id-Pt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var st=performance;et.unstable_now=function(){return st.now()}}else{var at=Date,ot=at.now();et.unstable_now=function(){return at.now()-ot}}var lt=[],ut=[],dt=1,bt=null,gt=3,kt=!1,pt=!1,yt=!1,$t=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,wt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function St(At){for(var Pt=rt(ut);Pt!==null;){if(Pt.callback===null)nt(ut);else if(Pt.startTime<=At)nt(ut),Pt.sortIndex=Pt.expirationTime,tt(lt,Pt);else break;Pt=rt(ut)}}function Bt(At){if(yt=!1,St(At),!pt)if(rt(lt)!==null)pt=!0,Tt(Ft);else{var Pt=rt(ut);Pt!==null&&Rt(Bt,Pt.startTime-At)}}function Ft(At,Pt){pt=!1,yt&&(yt=!1,mt(Ht),Ht=-1),kt=!0;var It=gt;try{for(St(Pt),bt=rt(lt);bt!==null&&(!(bt.expirationTime>Pt)||At&&!qt());){var Ct=bt.callback;if(typeof Ct=="function"){bt.callback=null,gt=bt.priorityLevel;var xt=Ct(bt.expirationTime<=Pt);Pt=et.unstable_now(),typeof xt=="function"?bt.callback=xt:bt===rt(lt)&&nt(lt),St(Pt)}else nt(lt);bt=rt(lt)}if(bt!==null)var Dt=!0;else{var tr=rt(ut);tr!==null&&Rt(Bt,tr.startTime-Pt),Dt=!1}return Dt}finally{bt=null,gt=It,kt=!1}}var Lt=!1,zt=null,Ht=-1,Wt=5,lr=-1;function qt(){return!(et.unstable_now()-lrAt||125Ct?(At.sortIndex=It,tt(ut,At),rt(lt)===null&&At===rt(ut)&&(yt?(mt(Ht),Ht=-1):yt=!0,Rt(Bt,It-Ct))):(At.sortIndex=xt,tt(lt,At),pt||kt||(pt=!0,Tt(Ft))),At},et.unstable_shouldYield=qt,et.unstable_wrapCallback=function(At){var Pt=gt;return function(){var It=gt;gt=Pt;try{return At.apply(this,arguments)}finally{gt=It}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -39,8 +39,8 @@ var O5=Object.defineProperty;var F5=(et,tt,rt)=>tt in et?O5(et,tt,{enumerable:!0 `+La+et}var Na=!1;function Oa(et,tt){if(!et||Na)return"";Na=!0;var rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(tt)if(tt=function(){throw Error()},Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(ut){var nt=ut}Reflect.construct(et,[],tt)}else{try{tt.call()}catch(ut){nt=ut}et.call(tt.prototype)}else{try{throw Error()}catch(ut){nt=ut}et()}}catch(ut){if(ut&&nt&&typeof ut.stack=="string"){for(var it=ut.stack.split(` `),st=nt.stack.split(` `),at=it.length-1,ot=st.length-1;1<=at&&0<=ot&&it[at]!==st[ot];)ot--;for(;1<=at&&0<=ot;at--,ot--)if(it[at]!==st[ot]){if(at!==1||ot!==1)do if(at--,ot--,0>ot||it[at]!==st[ot]){var lt=` -`+it[at].replace(" at new "," at ");return et.displayName&<.includes("")&&(lt=lt.replace("",et.displayName)),lt}while(1<=at&&0<=ot);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(et=et?et.displayName||et.name:"")?Ma(et):""}function Pa(et){switch(et.tag){case 5:return Ma(et.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return et=Oa(et.type,!1),et;case 11:return et=Oa(et.type.render,!1),et;case 1:return et=Oa(et.type,!0),et;default:return""}}function Qa(et){if(et==null)return null;if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et;switch(et){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof et=="object")switch(et.$$typeof){case Ca:return(et.displayName||"Context")+".Consumer";case Ba:return(et._context.displayName||"Context")+".Provider";case Da:var tt=et.render;return et=et.displayName,et||(et=tt.displayName||tt.name||"",et=et!==""?"ForwardRef("+et+")":"ForwardRef"),et;case Ga:return tt=et.displayName||null,tt!==null?tt:Qa(et.type)||"Memo";case Ha:tt=et._payload,et=et._init;try{return Qa(et(tt))}catch{}}return null}function Ra(et){var tt=et.type;switch(et.tag){case 24:return"Cache";case 9:return(tt.displayName||"Context")+".Consumer";case 10:return(tt._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return et=tt.render,et=et.displayName||et.name||"",tt.displayName||(et!==""?"ForwardRef("+et+")":"ForwardRef");case 7:return"Fragment";case 5:return tt;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(tt);case 8:return tt===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof tt=="function")return tt.displayName||tt.name||null;if(typeof tt=="string")return tt}return null}function Sa(et){switch(typeof et){case"boolean":case"number":case"string":case"undefined":return et;case"object":return et;default:return""}}function Ta(et){var tt=et.type;return(et=et.nodeName)&&et.toLowerCase()==="input"&&(tt==="checkbox"||tt==="radio")}function Ua(et){var tt=Ta(et)?"checked":"value",rt=Object.getOwnPropertyDescriptor(et.constructor.prototype,tt),nt=""+et[tt];if(!et.hasOwnProperty(tt)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var it=rt.get,st=rt.set;return Object.defineProperty(et,tt,{configurable:!0,get:function(){return it.call(this)},set:function(at){nt=""+at,st.call(this,at)}}),Object.defineProperty(et,tt,{enumerable:rt.enumerable}),{getValue:function(){return nt},setValue:function(at){nt=""+at},stopTracking:function(){et._valueTracker=null,delete et[tt]}}}}function Va(et){et._valueTracker||(et._valueTracker=Ua(et))}function Wa(et){if(!et)return!1;var tt=et._valueTracker;if(!tt)return!0;var rt=tt.getValue(),nt="";return et&&(nt=Ta(et)?et.checked?"true":"false":et.value),et=nt,et!==rt?(tt.setValue(et),!0):!1}function Xa(et){if(et=et||(typeof document<"u"?document:void 0),typeof et>"u")return null;try{return et.activeElement||et.body}catch{return et.body}}function Ya(et,tt){var rt=tt.checked;return A$3({},tt,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??et._wrapperState.initialChecked})}function Za(et,tt){var rt=tt.defaultValue==null?"":tt.defaultValue,nt=tt.checked!=null?tt.checked:tt.defaultChecked;rt=Sa(tt.value!=null?tt.value:rt),et._wrapperState={initialChecked:nt,initialValue:rt,controlled:tt.type==="checkbox"||tt.type==="radio"?tt.checked!=null:tt.value!=null}}function ab(et,tt){tt=tt.checked,tt!=null&&ta(et,"checked",tt,!1)}function bb(et,tt){ab(et,tt);var rt=Sa(tt.value),nt=tt.type;if(rt!=null)nt==="number"?(rt===0&&et.value===""||et.value!=rt)&&(et.value=""+rt):et.value!==""+rt&&(et.value=""+rt);else if(nt==="submit"||nt==="reset"){et.removeAttribute("value");return}tt.hasOwnProperty("value")?cb(et,tt.type,rt):tt.hasOwnProperty("defaultValue")&&cb(et,tt.type,Sa(tt.defaultValue)),tt.checked==null&&tt.defaultChecked!=null&&(et.defaultChecked=!!tt.defaultChecked)}function db(et,tt,rt){if(tt.hasOwnProperty("value")||tt.hasOwnProperty("defaultValue")){var nt=tt.type;if(!(nt!=="submit"&&nt!=="reset"||tt.value!==void 0&&tt.value!==null))return;tt=""+et._wrapperState.initialValue,rt||tt===et.value||(et.value=tt),et.defaultValue=tt}rt=et.name,rt!==""&&(et.name=""),et.defaultChecked=!!et._wrapperState.initialChecked,rt!==""&&(et.name=rt)}function cb(et,tt,rt){(tt!=="number"||Xa(et.ownerDocument)!==et)&&(rt==null?et.defaultValue=""+et._wrapperState.initialValue:et.defaultValue!==""+rt&&(et.defaultValue=""+rt))}var eb=Array.isArray;function fb(et,tt,rt,nt){if(et=et.options,tt){tt={};for(var it=0;it"+tt.valueOf().toString()+"",tt=mb.firstChild;et.firstChild;)et.removeChild(et.firstChild);for(;tt.firstChild;)et.appendChild(tt.firstChild)}});function ob(et,tt){if(tt){var rt=et.firstChild;if(rt&&rt===et.lastChild&&rt.nodeType===3){rt.nodeValue=tt;return}}et.textContent=tt}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(et){qb.forEach(function(tt){tt=tt+et.charAt(0).toUpperCase()+et.substring(1),pb[tt]=pb[et]})});function rb(et,tt,rt){return tt==null||typeof tt=="boolean"||tt===""?"":rt||typeof tt!="number"||tt===0||pb.hasOwnProperty(et)&&pb[et]?(""+tt).trim():tt+"px"}function sb(et,tt){et=et.style;for(var rt in tt)if(tt.hasOwnProperty(rt)){var nt=rt.indexOf("--")===0,it=rb(rt,tt[rt],nt);rt==="float"&&(rt="cssFloat"),nt?et.setProperty(rt,it):et[rt]=it}}var tb=A$3({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(et,tt){if(tt){if(tb[et]&&(tt.children!=null||tt.dangerouslySetInnerHTML!=null))throw Error(p$6(137,et));if(tt.dangerouslySetInnerHTML!=null){if(tt.children!=null)throw Error(p$6(60));if(typeof tt.dangerouslySetInnerHTML!="object"||!("__html"in tt.dangerouslySetInnerHTML))throw Error(p$6(61))}if(tt.style!=null&&typeof tt.style!="object")throw Error(p$6(62))}}function vb(et,tt){if(et.indexOf("-")===-1)return typeof tt.is=="string";switch(et){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(et){return et=et.target||et.srcElement||window,et.correspondingUseElement&&(et=et.correspondingUseElement),et.nodeType===3?et.parentNode:et}var yb=null,zb=null,Ab=null;function Bb(et){if(et=Cb(et)){if(typeof yb!="function")throw Error(p$6(280));var tt=et.stateNode;tt&&(tt=Db(tt),yb(et.stateNode,et.type,tt))}}function Eb(et){zb?Ab?Ab.push(et):Ab=[et]:zb=et}function Fb(){if(zb){var et=zb,tt=Ab;if(Ab=zb=null,Bb(et),tt)for(et=0;et>>=0,et===0?32:31-(pc(et)/qc|0)|0}var rc=64,sc=4194304;function tc(et){switch(et&-et){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 et&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return et&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return et}}function uc(et,tt){var rt=et.pendingLanes;if(rt===0)return 0;var nt=0,it=et.suspendedLanes,st=et.pingedLanes,at=rt&268435455;if(at!==0){var ot=at&~it;ot!==0?nt=tc(ot):(st&=at,st!==0&&(nt=tc(st)))}else at=rt&~it,at!==0?nt=tc(at):st!==0&&(nt=tc(st));if(nt===0)return 0;if(tt!==0&&tt!==nt&&!(tt&it)&&(it=nt&-nt,st=tt&-tt,it>=st||it===16&&(st&4194240)!==0))return tt;if(nt&4&&(nt|=rt&16),tt=et.entangledLanes,tt!==0)for(et=et.entanglements,tt&=nt;0rt;rt++)tt.push(et);return tt}function Ac(et,tt,rt){et.pendingLanes|=tt,tt!==536870912&&(et.suspendedLanes=0,et.pingedLanes=0),et=et.eventTimes,tt=31-oc(tt),et[tt]=rt}function Bc(et,tt){var rt=et.pendingLanes&~tt;et.pendingLanes=tt,et.suspendedLanes=0,et.pingedLanes=0,et.expiredLanes&=tt,et.mutableReadLanes&=tt,et.entangledLanes&=tt,tt=et.entanglements;var nt=et.eventTimes;for(et=et.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(et,tt){switch(et){case"keyup":return $d.indexOf(tt.keyCode)!==-1;case"keydown":return tt.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(et){return et=et.detail,typeof et=="object"&&"data"in et?et.data:null}var ie$1=!1;function je$1(et,tt){switch(et){case"compositionend":return he$1(tt);case"keypress":return tt.which!==32?null:(fe$1=!0,ee$1);case"textInput":return et=tt.data,et===ee$1&&fe$1?null:et;default:return null}}function ke$1(et,tt){if(ie$1)return et==="compositionend"||!ae$1&&ge$1(et,tt)?(et=nd(),md=ld=kd=null,ie$1=!1,et):null;switch(et){case"paste":return null;case"keypress":if(!(tt.ctrlKey||tt.altKey||tt.metaKey)||tt.ctrlKey&&tt.altKey){if(tt.char&&1=tt)return{node:rt,offset:tt-et};et=nt}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je(rt)}}function Le(et,tt){return et&&tt?et===tt?!0:et&&et.nodeType===3?!1:tt&&tt.nodeType===3?Le(et,tt.parentNode):"contains"in et?et.contains(tt):et.compareDocumentPosition?!!(et.compareDocumentPosition(tt)&16):!1:!1}function Me$1(){for(var et=window,tt=Xa();tt instanceof et.HTMLIFrameElement;){try{var rt=typeof tt.contentWindow.location.href=="string"}catch{rt=!1}if(rt)et=tt.contentWindow;else break;tt=Xa(et.document)}return tt}function Ne$1(et){var tt=et&&et.nodeName&&et.nodeName.toLowerCase();return tt&&(tt==="input"&&(et.type==="text"||et.type==="search"||et.type==="tel"||et.type==="url"||et.type==="password")||tt==="textarea"||et.contentEditable==="true")}function Oe(et){var tt=Me$1(),rt=et.focusedElem,nt=et.selectionRange;if(tt!==rt&&rt&&rt.ownerDocument&&Le(rt.ownerDocument.documentElement,rt)){if(nt!==null&&Ne$1(rt)){if(tt=nt.start,et=nt.end,et===void 0&&(et=tt),"selectionStart"in rt)rt.selectionStart=tt,rt.selectionEnd=Math.min(et,rt.value.length);else if(et=(tt=rt.ownerDocument||document)&&tt.defaultView||window,et.getSelection){et=et.getSelection();var it=rt.textContent.length,st=Math.min(nt.start,it);nt=nt.end===void 0?st:Math.min(nt.end,it),!et.extend&&st>nt&&(it=nt,nt=st,st=it),it=Ke(rt,st);var at=Ke(rt,nt);it&&at&&(et.rangeCount!==1||et.anchorNode!==it.node||et.anchorOffset!==it.offset||et.focusNode!==at.node||et.focusOffset!==at.offset)&&(tt=tt.createRange(),tt.setStart(it.node,it.offset),et.removeAllRanges(),st>nt?(et.addRange(tt),et.extend(at.node,at.offset)):(tt.setEnd(at.node,at.offset),et.addRange(tt)))}}for(tt=[],et=rt;et=et.parentNode;)et.nodeType===1&&tt.push({element:et,left:et.scrollLeft,top:et.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(et,tt,rt){var nt=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te$1||Qe==null||Qe!==Xa(nt)||(nt=Qe,"selectionStart"in nt&&Ne$1(nt)?nt={start:nt.selectionStart,end:nt.selectionEnd}:(nt=(nt.ownerDocument&&nt.ownerDocument.defaultView||window).getSelection(),nt={anchorNode:nt.anchorNode,anchorOffset:nt.anchorOffset,focusNode:nt.focusNode,focusOffset:nt.focusOffset}),Se$1&&Ie(Se$1,nt)||(Se$1=nt,nt=oe$1(Re$1,"onSelect"),0Tf||(et.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(et,tt){Tf++,Sf[Tf]=et.current,et.current=tt}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(et,tt){var rt=et.type.contextTypes;if(!rt)return Vf;var nt=et.stateNode;if(nt&&nt.__reactInternalMemoizedUnmaskedChildContext===tt)return nt.__reactInternalMemoizedMaskedChildContext;var it={},st;for(st in rt)it[st]=tt[st];return nt&&(et=et.stateNode,et.__reactInternalMemoizedUnmaskedChildContext=tt,et.__reactInternalMemoizedMaskedChildContext=it),it}function Zf(et){return et=et.childContextTypes,et!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(et,tt,rt){if(H$2.current!==Vf)throw Error(p$6(168));G$2(H$2,tt),G$2(Wf,rt)}function bg(et,tt,rt){var nt=et.stateNode;if(tt=tt.childContextTypes,typeof nt.getChildContext!="function")return rt;nt=nt.getChildContext();for(var it in nt)if(!(it in tt))throw Error(p$6(108,Ra(et)||"Unknown",it));return A$3({},rt,nt)}function cg(et){return et=(et=et.stateNode)&&et.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$2(H$2,et),G$2(Wf,Wf.current),!0}function dg(et,tt,rt){var nt=et.stateNode;if(!nt)throw Error(p$6(169));rt?(et=bg(et,tt,Xf),nt.__reactInternalMemoizedMergedChildContext=et,E$2(Wf),E$2(H$2),G$2(H$2,et)):E$2(Wf),G$2(Wf,rt)}var eg=null,fg=!1,gg=!1;function hg(et){eg===null?eg=[et]:eg.push(et)}function ig(et){fg=!0,hg(et)}function jg(){if(!gg&&eg!==null){gg=!0;var et=0,tt=C$1;try{var rt=eg;for(C$1=1;et>=at,it-=at,rg=1<<32-oc(tt)+it|rt<Ht?(Wt=zt,zt=null):Wt=zt.sibling;var lr=gt(mt,zt,St[Ht],Bt);if(lr===null){zt===null&&(zt=Wt);break}et&&zt&&lr.alternate===null&&tt(mt,zt),wt=st(lr,wt,Ht),Dt===null?Ft=lr:Dt.sibling=lr,Dt=lr,zt=Wt}if(Ht===St.length)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;HtHt?(Wt=zt,zt=null):Wt=zt.sibling;var qt=gt(mt,zt,lr.value,Bt);if(qt===null){zt===null&&(zt=Wt);break}et&&zt&&qt.alternate===null&&tt(mt,zt),wt=st(qt,wt,Ht),Dt===null?Ft=qt:Dt.sibling=qt,Dt=qt,zt=Wt}if(lr.done)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;!lr.done;Ht++,lr=St.next())lr=bt(mt,lr.value,Bt),lr!==null&&(wt=st(lr,wt,Ht),Dt===null?Ft=lr:Dt.sibling=lr,Dt=lr);return I$2&&tg(mt,Ht),Ft}for(zt=nt(mt,zt);!lr.done;Ht++,lr=St.next())lr=kt(zt,mt,Ht,lr.value,Bt),lr!==null&&(et&&lr.alternate!==null&&zt.delete(lr.key===null?Ht:lr.key),wt=st(lr,wt,Ht),Dt===null?Ft=lr:Dt.sibling=lr,Dt=lr);return et&&zt.forEach(function(Ot){return tt(mt,Ot)}),I$2&&tg(mt,Ht),Ft}function $t(mt,wt,St,Bt){if(typeof St=="object"&&St!==null&&St.type===ya&&St.key===null&&(St=St.props.children),typeof St=="object"&&St!==null){switch(St.$$typeof){case va:e:{for(var Ft=St.key,Dt=wt;Dt!==null;){if(Dt.key===Ft){if(Ft=St.type,Ft===ya){if(Dt.tag===7){rt(mt,Dt.sibling),wt=it(Dt,St.props.children),wt.return=mt,mt=wt;break e}}else if(Dt.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===Ha&&uh(Ft)===Dt.type){rt(mt,Dt.sibling),wt=it(Dt,St.props),wt.ref=sh$1(mt,Dt,St),wt.return=mt,mt=wt;break e}rt(mt,Dt);break}else tt(mt,Dt);Dt=Dt.sibling}St.type===ya?(wt=Ah(St.props.children,mt.mode,Bt,St.key),wt.return=mt,mt=wt):(Bt=yh(St.type,St.key,St.props,null,mt.mode,Bt),Bt.ref=sh$1(mt,wt,St),Bt.return=mt,mt=Bt)}return at(mt);case wa:e:{for(Dt=St.key;wt!==null;){if(wt.key===Dt)if(wt.tag===4&&wt.stateNode.containerInfo===St.containerInfo&&wt.stateNode.implementation===St.implementation){rt(mt,wt.sibling),wt=it(wt,St.children||[]),wt.return=mt,mt=wt;break e}else{rt(mt,wt);break}else tt(mt,wt);wt=wt.sibling}wt=zh(St,mt.mode,Bt),wt.return=mt,mt=wt}return at(mt);case Ha:return Dt=St._init,$t(mt,wt,Dt(St._payload),Bt)}if(eb(St))return pt(mt,wt,St,Bt);if(Ka(St))return yt(mt,wt,St,Bt);th(mt,St)}return typeof St=="string"&&St!==""||typeof St=="number"?(St=""+St,wt!==null&&wt.tag===6?(rt(mt,wt.sibling),wt=it(wt,St),wt.return=mt,mt=wt):(rt(mt,wt),wt=xh(St,mt.mode,Bt),wt.return=mt,mt=wt),at(mt)):rt(mt,wt)}return $t}var Bh=vh(!0),Ch$1=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(et){if(et===Dh)throw Error(p$6(174));return et}function Ih(et,tt){switch(G$2(Gh,tt),G$2(Fh,et),G$2(Eh,Dh),et=tt.nodeType,et){case 9:case 11:tt=(tt=tt.documentElement)?tt.namespaceURI:lb(null,"");break;default:et=et===8?tt.parentNode:tt,tt=et.namespaceURI||null,et=et.tagName,tt=lb(tt,et)}E$2(Eh),G$2(Eh,tt)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh$1(et){Hh(Gh.current);var tt=Hh(Eh.current),rt=lb(tt,et.type);tt!==rt&&(G$2(Fh,et),G$2(Eh,rt))}function Lh(et){Fh.current===et&&(E$2(Eh),E$2(Fh))}var M$2=Uf(0);function Mh(et){for(var tt=et;tt!==null;){if(tt.tag===13){var rt=tt.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return tt}else if(tt.tag===19&&tt.memoizedProps.revealOrder!==void 0){if(tt.flags&128)return tt}else if(tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return null;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}return null}var Nh=[];function Oh(){for(var et=0;etrt?rt:4,et(!0);var nt=Qh.transition;Qh.transition={};try{et(!1),tt()}finally{C$1=rt,Qh.transition=nt}}function Fi(){return di().memoizedState}function Gi(et,tt,rt){var nt=lh(et);if(rt={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null},Hi(et))Ii(tt,rt);else if(rt=Yg(et,tt,rt,nt),rt!==null){var it=L$2();mh(rt,et,nt,it),Ji(rt,tt,nt)}}function ri(et,tt,rt){var nt=lh(et),it={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null};if(Hi(et))Ii(tt,it);else{var st=et.alternate;if(et.lanes===0&&(st===null||st.lanes===0)&&(st=tt.lastRenderedReducer,st!==null))try{var at=tt.lastRenderedState,ot=st(at,rt);if(it.hasEagerState=!0,it.eagerState=ot,He$1(ot,at)){var lt=tt.interleaved;lt===null?(it.next=it,Xg(tt)):(it.next=lt.next,lt.next=it),tt.interleaved=it;return}}catch{}finally{}rt=Yg(et,tt,it,nt),rt!==null&&(it=L$2(),mh(rt,et,nt,it),Ji(rt,tt,nt))}}function Hi(et){var tt=et.alternate;return et===N$2||tt!==null&&tt===N$2}function Ii(et,tt){Th=Sh=!0;var rt=et.pending;rt===null?tt.next=tt:(tt.next=rt.next,rt.next=tt),et.pending=tt}function Ji(et,tt,rt){if(rt&4194240){var nt=tt.lanes;nt&=et.pendingLanes,rt|=nt,tt.lanes=rt,Cc(et,rt)}}var ai={readContext:Vg,useCallback:Q$2,useContext:Q$2,useEffect:Q$2,useImperativeHandle:Q$2,useInsertionEffect:Q$2,useLayoutEffect:Q$2,useMemo:Q$2,useReducer:Q$2,useRef:Q$2,useState:Q$2,useDebugValue:Q$2,useDeferredValue:Q$2,useTransition:Q$2,useMutableSource:Q$2,useSyncExternalStore:Q$2,useId:Q$2,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(et,tt){return ci().memoizedState=[et,tt===void 0?null:tt],et},useContext:Vg,useEffect:vi,useImperativeHandle:function(et,tt,rt){return rt=rt!=null?rt.concat([et]):null,ti(4194308,4,yi.bind(null,tt,et),rt)},useLayoutEffect:function(et,tt){return ti(4194308,4,et,tt)},useInsertionEffect:function(et,tt){return ti(4,2,et,tt)},useMemo:function(et,tt){var rt=ci();return tt=tt===void 0?null:tt,et=et(),rt.memoizedState=[et,tt],et},useReducer:function(et,tt,rt){var nt=ci();return tt=rt!==void 0?rt(tt):tt,nt.memoizedState=nt.baseState=tt,et={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:et,lastRenderedState:tt},nt.queue=et,et=et.dispatch=Gi.bind(null,N$2,et),[nt.memoizedState,et]},useRef:function(et){var tt=ci();return et={current:et},tt.memoizedState=et},useState:qi,useDebugValue:Ai,useDeferredValue:function(et){return ci().memoizedState=et},useTransition:function(){var et=qi(!1),tt=et[0];return et=Ei.bind(null,et[1]),ci().memoizedState=et,[tt,et]},useMutableSource:function(){},useSyncExternalStore:function(et,tt,rt){var nt=N$2,it=ci();if(I$2){if(rt===void 0)throw Error(p$6(407));rt=rt()}else{if(rt=tt(),R$2===null)throw Error(p$6(349));Rh&30||ni(nt,tt,rt)}it.memoizedState=rt;var st={value:rt,getSnapshot:tt};return it.queue=st,vi(ki.bind(null,nt,st,et),[et]),nt.flags|=2048,li(9,mi.bind(null,nt,st,rt,tt),void 0,null),rt},useId:function(){var et=ci(),tt=R$2.identifierPrefix;if(I$2){var rt=sg,nt=rg;rt=(nt&~(1<<32-oc(nt)-1)).toString(32)+rt,tt=":"+tt+"R"+rt,rt=Uh++,0")&&(lt=lt.replace("",et.displayName)),lt}while(1<=at&&0<=ot);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(et=et?et.displayName||et.name:"")?Ma(et):""}function Pa(et){switch(et.tag){case 5:return Ma(et.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return et=Oa(et.type,!1),et;case 11:return et=Oa(et.type.render,!1),et;case 1:return et=Oa(et.type,!0),et;default:return""}}function Qa(et){if(et==null)return null;if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et;switch(et){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof et=="object")switch(et.$$typeof){case Ca:return(et.displayName||"Context")+".Consumer";case Ba:return(et._context.displayName||"Context")+".Provider";case Da:var tt=et.render;return et=et.displayName,et||(et=tt.displayName||tt.name||"",et=et!==""?"ForwardRef("+et+")":"ForwardRef"),et;case Ga:return tt=et.displayName||null,tt!==null?tt:Qa(et.type)||"Memo";case Ha:tt=et._payload,et=et._init;try{return Qa(et(tt))}catch{}}return null}function Ra(et){var tt=et.type;switch(et.tag){case 24:return"Cache";case 9:return(tt.displayName||"Context")+".Consumer";case 10:return(tt._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return et=tt.render,et=et.displayName||et.name||"",tt.displayName||(et!==""?"ForwardRef("+et+")":"ForwardRef");case 7:return"Fragment";case 5:return tt;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(tt);case 8:return tt===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof tt=="function")return tt.displayName||tt.name||null;if(typeof tt=="string")return tt}return null}function Sa(et){switch(typeof et){case"boolean":case"number":case"string":case"undefined":return et;case"object":return et;default:return""}}function Ta(et){var tt=et.type;return(et=et.nodeName)&&et.toLowerCase()==="input"&&(tt==="checkbox"||tt==="radio")}function Ua(et){var tt=Ta(et)?"checked":"value",rt=Object.getOwnPropertyDescriptor(et.constructor.prototype,tt),nt=""+et[tt];if(!et.hasOwnProperty(tt)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var it=rt.get,st=rt.set;return Object.defineProperty(et,tt,{configurable:!0,get:function(){return it.call(this)},set:function(at){nt=""+at,st.call(this,at)}}),Object.defineProperty(et,tt,{enumerable:rt.enumerable}),{getValue:function(){return nt},setValue:function(at){nt=""+at},stopTracking:function(){et._valueTracker=null,delete et[tt]}}}}function Va(et){et._valueTracker||(et._valueTracker=Ua(et))}function Wa(et){if(!et)return!1;var tt=et._valueTracker;if(!tt)return!0;var rt=tt.getValue(),nt="";return et&&(nt=Ta(et)?et.checked?"true":"false":et.value),et=nt,et!==rt?(tt.setValue(et),!0):!1}function Xa(et){if(et=et||(typeof document<"u"?document:void 0),typeof et>"u")return null;try{return et.activeElement||et.body}catch{return et.body}}function Ya(et,tt){var rt=tt.checked;return A$3({},tt,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??et._wrapperState.initialChecked})}function Za(et,tt){var rt=tt.defaultValue==null?"":tt.defaultValue,nt=tt.checked!=null?tt.checked:tt.defaultChecked;rt=Sa(tt.value!=null?tt.value:rt),et._wrapperState={initialChecked:nt,initialValue:rt,controlled:tt.type==="checkbox"||tt.type==="radio"?tt.checked!=null:tt.value!=null}}function ab(et,tt){tt=tt.checked,tt!=null&&ta(et,"checked",tt,!1)}function bb(et,tt){ab(et,tt);var rt=Sa(tt.value),nt=tt.type;if(rt!=null)nt==="number"?(rt===0&&et.value===""||et.value!=rt)&&(et.value=""+rt):et.value!==""+rt&&(et.value=""+rt);else if(nt==="submit"||nt==="reset"){et.removeAttribute("value");return}tt.hasOwnProperty("value")?cb(et,tt.type,rt):tt.hasOwnProperty("defaultValue")&&cb(et,tt.type,Sa(tt.defaultValue)),tt.checked==null&&tt.defaultChecked!=null&&(et.defaultChecked=!!tt.defaultChecked)}function db(et,tt,rt){if(tt.hasOwnProperty("value")||tt.hasOwnProperty("defaultValue")){var nt=tt.type;if(!(nt!=="submit"&&nt!=="reset"||tt.value!==void 0&&tt.value!==null))return;tt=""+et._wrapperState.initialValue,rt||tt===et.value||(et.value=tt),et.defaultValue=tt}rt=et.name,rt!==""&&(et.name=""),et.defaultChecked=!!et._wrapperState.initialChecked,rt!==""&&(et.name=rt)}function cb(et,tt,rt){(tt!=="number"||Xa(et.ownerDocument)!==et)&&(rt==null?et.defaultValue=""+et._wrapperState.initialValue:et.defaultValue!==""+rt&&(et.defaultValue=""+rt))}var eb=Array.isArray;function fb(et,tt,rt,nt){if(et=et.options,tt){tt={};for(var it=0;it"+tt.valueOf().toString()+"",tt=mb.firstChild;et.firstChild;)et.removeChild(et.firstChild);for(;tt.firstChild;)et.appendChild(tt.firstChild)}});function ob(et,tt){if(tt){var rt=et.firstChild;if(rt&&rt===et.lastChild&&rt.nodeType===3){rt.nodeValue=tt;return}}et.textContent=tt}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(et){qb.forEach(function(tt){tt=tt+et.charAt(0).toUpperCase()+et.substring(1),pb[tt]=pb[et]})});function rb(et,tt,rt){return tt==null||typeof tt=="boolean"||tt===""?"":rt||typeof tt!="number"||tt===0||pb.hasOwnProperty(et)&&pb[et]?(""+tt).trim():tt+"px"}function sb(et,tt){et=et.style;for(var rt in tt)if(tt.hasOwnProperty(rt)){var nt=rt.indexOf("--")===0,it=rb(rt,tt[rt],nt);rt==="float"&&(rt="cssFloat"),nt?et.setProperty(rt,it):et[rt]=it}}var tb=A$3({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(et,tt){if(tt){if(tb[et]&&(tt.children!=null||tt.dangerouslySetInnerHTML!=null))throw Error(p$6(137,et));if(tt.dangerouslySetInnerHTML!=null){if(tt.children!=null)throw Error(p$6(60));if(typeof tt.dangerouslySetInnerHTML!="object"||!("__html"in tt.dangerouslySetInnerHTML))throw Error(p$6(61))}if(tt.style!=null&&typeof tt.style!="object")throw Error(p$6(62))}}function vb(et,tt){if(et.indexOf("-")===-1)return typeof tt.is=="string";switch(et){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(et){return et=et.target||et.srcElement||window,et.correspondingUseElement&&(et=et.correspondingUseElement),et.nodeType===3?et.parentNode:et}var yb=null,zb=null,Ab=null;function Bb(et){if(et=Cb(et)){if(typeof yb!="function")throw Error(p$6(280));var tt=et.stateNode;tt&&(tt=Db(tt),yb(et.stateNode,et.type,tt))}}function Eb(et){zb?Ab?Ab.push(et):Ab=[et]:zb=et}function Fb(){if(zb){var et=zb,tt=Ab;if(Ab=zb=null,Bb(et),tt)for(et=0;et>>=0,et===0?32:31-(pc(et)/qc|0)|0}var rc=64,sc=4194304;function tc(et){switch(et&-et){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 et&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return et&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return et}}function uc(et,tt){var rt=et.pendingLanes;if(rt===0)return 0;var nt=0,it=et.suspendedLanes,st=et.pingedLanes,at=rt&268435455;if(at!==0){var ot=at&~it;ot!==0?nt=tc(ot):(st&=at,st!==0&&(nt=tc(st)))}else at=rt&~it,at!==0?nt=tc(at):st!==0&&(nt=tc(st));if(nt===0)return 0;if(tt!==0&&tt!==nt&&!(tt&it)&&(it=nt&-nt,st=tt&-tt,it>=st||it===16&&(st&4194240)!==0))return tt;if(nt&4&&(nt|=rt&16),tt=et.entangledLanes,tt!==0)for(et=et.entanglements,tt&=nt;0rt;rt++)tt.push(et);return tt}function Ac(et,tt,rt){et.pendingLanes|=tt,tt!==536870912&&(et.suspendedLanes=0,et.pingedLanes=0),et=et.eventTimes,tt=31-oc(tt),et[tt]=rt}function Bc(et,tt){var rt=et.pendingLanes&~tt;et.pendingLanes=tt,et.suspendedLanes=0,et.pingedLanes=0,et.expiredLanes&=tt,et.mutableReadLanes&=tt,et.entangledLanes&=tt,tt=et.entanglements;var nt=et.eventTimes;for(et=et.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(et,tt){switch(et){case"keyup":return $d.indexOf(tt.keyCode)!==-1;case"keydown":return tt.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(et){return et=et.detail,typeof et=="object"&&"data"in et?et.data:null}var ie$1=!1;function je$1(et,tt){switch(et){case"compositionend":return he$1(tt);case"keypress":return tt.which!==32?null:(fe$1=!0,ee$1);case"textInput":return et=tt.data,et===ee$1&&fe$1?null:et;default:return null}}function ke$1(et,tt){if(ie$1)return et==="compositionend"||!ae$1&&ge$1(et,tt)?(et=nd(),md=ld=kd=null,ie$1=!1,et):null;switch(et){case"paste":return null;case"keypress":if(!(tt.ctrlKey||tt.altKey||tt.metaKey)||tt.ctrlKey&&tt.altKey){if(tt.char&&1=tt)return{node:rt,offset:tt-et};et=nt}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je(rt)}}function Le(et,tt){return et&&tt?et===tt?!0:et&&et.nodeType===3?!1:tt&&tt.nodeType===3?Le(et,tt.parentNode):"contains"in et?et.contains(tt):et.compareDocumentPosition?!!(et.compareDocumentPosition(tt)&16):!1:!1}function Me$1(){for(var et=window,tt=Xa();tt instanceof et.HTMLIFrameElement;){try{var rt=typeof tt.contentWindow.location.href=="string"}catch{rt=!1}if(rt)et=tt.contentWindow;else break;tt=Xa(et.document)}return tt}function Ne$1(et){var tt=et&&et.nodeName&&et.nodeName.toLowerCase();return tt&&(tt==="input"&&(et.type==="text"||et.type==="search"||et.type==="tel"||et.type==="url"||et.type==="password")||tt==="textarea"||et.contentEditable==="true")}function Oe(et){var tt=Me$1(),rt=et.focusedElem,nt=et.selectionRange;if(tt!==rt&&rt&&rt.ownerDocument&&Le(rt.ownerDocument.documentElement,rt)){if(nt!==null&&Ne$1(rt)){if(tt=nt.start,et=nt.end,et===void 0&&(et=tt),"selectionStart"in rt)rt.selectionStart=tt,rt.selectionEnd=Math.min(et,rt.value.length);else if(et=(tt=rt.ownerDocument||document)&&tt.defaultView||window,et.getSelection){et=et.getSelection();var it=rt.textContent.length,st=Math.min(nt.start,it);nt=nt.end===void 0?st:Math.min(nt.end,it),!et.extend&&st>nt&&(it=nt,nt=st,st=it),it=Ke(rt,st);var at=Ke(rt,nt);it&&at&&(et.rangeCount!==1||et.anchorNode!==it.node||et.anchorOffset!==it.offset||et.focusNode!==at.node||et.focusOffset!==at.offset)&&(tt=tt.createRange(),tt.setStart(it.node,it.offset),et.removeAllRanges(),st>nt?(et.addRange(tt),et.extend(at.node,at.offset)):(tt.setEnd(at.node,at.offset),et.addRange(tt)))}}for(tt=[],et=rt;et=et.parentNode;)et.nodeType===1&&tt.push({element:et,left:et.scrollLeft,top:et.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(et,tt,rt){var nt=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te$1||Qe==null||Qe!==Xa(nt)||(nt=Qe,"selectionStart"in nt&&Ne$1(nt)?nt={start:nt.selectionStart,end:nt.selectionEnd}:(nt=(nt.ownerDocument&&nt.ownerDocument.defaultView||window).getSelection(),nt={anchorNode:nt.anchorNode,anchorOffset:nt.anchorOffset,focusNode:nt.focusNode,focusOffset:nt.focusOffset}),Se$1&&Ie(Se$1,nt)||(Se$1=nt,nt=oe$1(Re$1,"onSelect"),0Tf||(et.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(et,tt){Tf++,Sf[Tf]=et.current,et.current=tt}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(et,tt){var rt=et.type.contextTypes;if(!rt)return Vf;var nt=et.stateNode;if(nt&&nt.__reactInternalMemoizedUnmaskedChildContext===tt)return nt.__reactInternalMemoizedMaskedChildContext;var it={},st;for(st in rt)it[st]=tt[st];return nt&&(et=et.stateNode,et.__reactInternalMemoizedUnmaskedChildContext=tt,et.__reactInternalMemoizedMaskedChildContext=it),it}function Zf(et){return et=et.childContextTypes,et!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(et,tt,rt){if(H$2.current!==Vf)throw Error(p$6(168));G$2(H$2,tt),G$2(Wf,rt)}function bg(et,tt,rt){var nt=et.stateNode;if(tt=tt.childContextTypes,typeof nt.getChildContext!="function")return rt;nt=nt.getChildContext();for(var it in nt)if(!(it in tt))throw Error(p$6(108,Ra(et)||"Unknown",it));return A$3({},rt,nt)}function cg(et){return et=(et=et.stateNode)&&et.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$2(H$2,et),G$2(Wf,Wf.current),!0}function dg(et,tt,rt){var nt=et.stateNode;if(!nt)throw Error(p$6(169));rt?(et=bg(et,tt,Xf),nt.__reactInternalMemoizedMergedChildContext=et,E$2(Wf),E$2(H$2),G$2(H$2,et)):E$2(Wf),G$2(Wf,rt)}var eg=null,fg=!1,gg=!1;function hg(et){eg===null?eg=[et]:eg.push(et)}function ig(et){fg=!0,hg(et)}function jg(){if(!gg&&eg!==null){gg=!0;var et=0,tt=C$1;try{var rt=eg;for(C$1=1;et>=at,it-=at,rg=1<<32-oc(tt)+it|rt<Ht?(Wt=zt,zt=null):Wt=zt.sibling;var lr=gt(mt,zt,St[Ht],Bt);if(lr===null){zt===null&&(zt=Wt);break}et&&zt&&lr.alternate===null&&tt(mt,zt),wt=st(lr,wt,Ht),Lt===null?Ft=lr:Lt.sibling=lr,Lt=lr,zt=Wt}if(Ht===St.length)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;HtHt?(Wt=zt,zt=null):Wt=zt.sibling;var qt=gt(mt,zt,lr.value,Bt);if(qt===null){zt===null&&(zt=Wt);break}et&&zt&&qt.alternate===null&&tt(mt,zt),wt=st(qt,wt,Ht),Lt===null?Ft=qt:Lt.sibling=qt,Lt=qt,zt=Wt}if(lr.done)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;!lr.done;Ht++,lr=St.next())lr=bt(mt,lr.value,Bt),lr!==null&&(wt=st(lr,wt,Ht),Lt===null?Ft=lr:Lt.sibling=lr,Lt=lr);return I$2&&tg(mt,Ht),Ft}for(zt=nt(mt,zt);!lr.done;Ht++,lr=St.next())lr=kt(zt,mt,Ht,lr.value,Bt),lr!==null&&(et&&lr.alternate!==null&&zt.delete(lr.key===null?Ht:lr.key),wt=st(lr,wt,Ht),Lt===null?Ft=lr:Lt.sibling=lr,Lt=lr);return et&&zt.forEach(function(Ot){return tt(mt,Ot)}),I$2&&tg(mt,Ht),Ft}function $t(mt,wt,St,Bt){if(typeof St=="object"&&St!==null&&St.type===ya&&St.key===null&&(St=St.props.children),typeof St=="object"&&St!==null){switch(St.$$typeof){case va:e:{for(var Ft=St.key,Lt=wt;Lt!==null;){if(Lt.key===Ft){if(Ft=St.type,Ft===ya){if(Lt.tag===7){rt(mt,Lt.sibling),wt=it(Lt,St.props.children),wt.return=mt,mt=wt;break e}}else if(Lt.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===Ha&&uh(Ft)===Lt.type){rt(mt,Lt.sibling),wt=it(Lt,St.props),wt.ref=sh$1(mt,Lt,St),wt.return=mt,mt=wt;break e}rt(mt,Lt);break}else tt(mt,Lt);Lt=Lt.sibling}St.type===ya?(wt=Ah(St.props.children,mt.mode,Bt,St.key),wt.return=mt,mt=wt):(Bt=yh(St.type,St.key,St.props,null,mt.mode,Bt),Bt.ref=sh$1(mt,wt,St),Bt.return=mt,mt=Bt)}return at(mt);case wa:e:{for(Lt=St.key;wt!==null;){if(wt.key===Lt)if(wt.tag===4&&wt.stateNode.containerInfo===St.containerInfo&&wt.stateNode.implementation===St.implementation){rt(mt,wt.sibling),wt=it(wt,St.children||[]),wt.return=mt,mt=wt;break e}else{rt(mt,wt);break}else tt(mt,wt);wt=wt.sibling}wt=zh(St,mt.mode,Bt),wt.return=mt,mt=wt}return at(mt);case Ha:return Lt=St._init,$t(mt,wt,Lt(St._payload),Bt)}if(eb(St))return pt(mt,wt,St,Bt);if(Ka(St))return yt(mt,wt,St,Bt);th(mt,St)}return typeof St=="string"&&St!==""||typeof St=="number"?(St=""+St,wt!==null&&wt.tag===6?(rt(mt,wt.sibling),wt=it(wt,St),wt.return=mt,mt=wt):(rt(mt,wt),wt=xh(St,mt.mode,Bt),wt.return=mt,mt=wt),at(mt)):rt(mt,wt)}return $t}var Bh=vh(!0),Ch$1=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(et){if(et===Dh)throw Error(p$6(174));return et}function Ih(et,tt){switch(G$2(Gh,tt),G$2(Fh,et),G$2(Eh,Dh),et=tt.nodeType,et){case 9:case 11:tt=(tt=tt.documentElement)?tt.namespaceURI:lb(null,"");break;default:et=et===8?tt.parentNode:tt,tt=et.namespaceURI||null,et=et.tagName,tt=lb(tt,et)}E$2(Eh),G$2(Eh,tt)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh$1(et){Hh(Gh.current);var tt=Hh(Eh.current),rt=lb(tt,et.type);tt!==rt&&(G$2(Fh,et),G$2(Eh,rt))}function Lh(et){Fh.current===et&&(E$2(Eh),E$2(Fh))}var M$2=Uf(0);function Mh(et){for(var tt=et;tt!==null;){if(tt.tag===13){var rt=tt.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return tt}else if(tt.tag===19&&tt.memoizedProps.revealOrder!==void 0){if(tt.flags&128)return tt}else if(tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return null;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}return null}var Nh=[];function Oh(){for(var et=0;etrt?rt:4,et(!0);var nt=Qh.transition;Qh.transition={};try{et(!1),tt()}finally{C$1=rt,Qh.transition=nt}}function Fi(){return di().memoizedState}function Gi(et,tt,rt){var nt=lh(et);if(rt={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null},Hi(et))Ii(tt,rt);else if(rt=Yg(et,tt,rt,nt),rt!==null){var it=L$2();mh(rt,et,nt,it),Ji(rt,tt,nt)}}function ri(et,tt,rt){var nt=lh(et),it={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null};if(Hi(et))Ii(tt,it);else{var st=et.alternate;if(et.lanes===0&&(st===null||st.lanes===0)&&(st=tt.lastRenderedReducer,st!==null))try{var at=tt.lastRenderedState,ot=st(at,rt);if(it.hasEagerState=!0,it.eagerState=ot,He$1(ot,at)){var lt=tt.interleaved;lt===null?(it.next=it,Xg(tt)):(it.next=lt.next,lt.next=it),tt.interleaved=it;return}}catch{}finally{}rt=Yg(et,tt,it,nt),rt!==null&&(it=L$2(),mh(rt,et,nt,it),Ji(rt,tt,nt))}}function Hi(et){var tt=et.alternate;return et===N$2||tt!==null&&tt===N$2}function Ii(et,tt){Th=Sh=!0;var rt=et.pending;rt===null?tt.next=tt:(tt.next=rt.next,rt.next=tt),et.pending=tt}function Ji(et,tt,rt){if(rt&4194240){var nt=tt.lanes;nt&=et.pendingLanes,rt|=nt,tt.lanes=rt,Cc(et,rt)}}var ai={readContext:Vg,useCallback:Q$2,useContext:Q$2,useEffect:Q$2,useImperativeHandle:Q$2,useInsertionEffect:Q$2,useLayoutEffect:Q$2,useMemo:Q$2,useReducer:Q$2,useRef:Q$2,useState:Q$2,useDebugValue:Q$2,useDeferredValue:Q$2,useTransition:Q$2,useMutableSource:Q$2,useSyncExternalStore:Q$2,useId:Q$2,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(et,tt){return ci().memoizedState=[et,tt===void 0?null:tt],et},useContext:Vg,useEffect:vi,useImperativeHandle:function(et,tt,rt){return rt=rt!=null?rt.concat([et]):null,ti(4194308,4,yi.bind(null,tt,et),rt)},useLayoutEffect:function(et,tt){return ti(4194308,4,et,tt)},useInsertionEffect:function(et,tt){return ti(4,2,et,tt)},useMemo:function(et,tt){var rt=ci();return tt=tt===void 0?null:tt,et=et(),rt.memoizedState=[et,tt],et},useReducer:function(et,tt,rt){var nt=ci();return tt=rt!==void 0?rt(tt):tt,nt.memoizedState=nt.baseState=tt,et={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:et,lastRenderedState:tt},nt.queue=et,et=et.dispatch=Gi.bind(null,N$2,et),[nt.memoizedState,et]},useRef:function(et){var tt=ci();return et={current:et},tt.memoizedState=et},useState:qi,useDebugValue:Ai,useDeferredValue:function(et){return ci().memoizedState=et},useTransition:function(){var et=qi(!1),tt=et[0];return et=Ei.bind(null,et[1]),ci().memoizedState=et,[tt,et]},useMutableSource:function(){},useSyncExternalStore:function(et,tt,rt){var nt=N$2,it=ci();if(I$2){if(rt===void 0)throw Error(p$6(407));rt=rt()}else{if(rt=tt(),R$2===null)throw Error(p$6(349));Rh&30||ni(nt,tt,rt)}it.memoizedState=rt;var st={value:rt,getSnapshot:tt};return it.queue=st,vi(ki.bind(null,nt,st,et),[et]),nt.flags|=2048,li(9,mi.bind(null,nt,st,rt,tt),void 0,null),rt},useId:function(){var et=ci(),tt=R$2.identifierPrefix;if(I$2){var rt=sg,nt=rg;rt=(nt&~(1<<32-oc(nt)-1)).toString(32)+rt,tt=":"+tt+"R"+rt,rt=Uh++,0<\/script>",et=et.removeChild(et.firstChild)):typeof nt.is=="string"?et=at.createElement(rt,{is:nt.is}):(et=at.createElement(rt),rt==="select"&&(at=et,nt.multiple?at.multiple=!0:nt.size&&(at.size=nt.size))):et=at.createElementNS(et,rt),et[Of]=tt,et[Pf]=nt,Aj(et,tt,!1,!1),tt.stateNode=et;e:{switch(at=vb(rt,nt),rt){case"dialog":D$1("cancel",et),D$1("close",et),it=nt;break;case"iframe":case"object":case"embed":D$1("load",et),it=nt;break;case"video":case"audio":for(it=0;itHj&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304)}else{if(!nt)if(et=Mh(at),et!==null){if(tt.flags|=128,nt=!0,rt=et.updateQueue,rt!==null&&(tt.updateQueue=rt,tt.flags|=4),Ej(st,!0),st.tail===null&&st.tailMode==="hidden"&&!at.alternate&&!I$2)return S$2(tt),null}else 2*B$2()-st.renderingStartTime>Hj&&rt!==1073741824&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304);st.isBackwards?(at.sibling=tt.child,tt.child=at):(rt=st.last,rt!==null?rt.sibling=at:tt.child=at,st.last=at)}return st.tail!==null?(tt=st.tail,st.rendering=tt,st.tail=tt.sibling,st.renderingStartTime=B$2(),tt.sibling=null,rt=M$2.current,G$2(M$2,nt?rt&1|2:rt&1),tt):(S$2(tt),null);case 22:case 23:return Ij(),nt=tt.memoizedState!==null,et!==null&&et.memoizedState!==null!==nt&&(tt.flags|=8192),nt&&tt.mode&1?gj&1073741824&&(S$2(tt),tt.subtreeFlags&6&&(tt.flags|=8192)):S$2(tt),null;case 24:return null;case 25:return null}throw Error(p$6(156,tt.tag))}function Jj(et,tt){switch(wg(tt),tt.tag){case 1:return Zf(tt.type)&&$f(),et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),et=tt.flags,et&65536&&!(et&128)?(tt.flags=et&-65537|128,tt):null;case 5:return Lh(tt),null;case 13:if(E$2(M$2),et=tt.memoizedState,et!==null&&et.dehydrated!==null){if(tt.alternate===null)throw Error(p$6(340));Ig()}return et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(tt.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(et,tt){var rt=et.ref;if(rt!==null)if(typeof rt=="function")try{rt(null)}catch(nt){W$7(et,tt,nt)}else rt.current=null}function Nj(et,tt,rt){try{rt()}catch(nt){W$7(et,tt,nt)}}var Oj=!1;function Pj(et,tt){if(Cf=dd,et=Me$1(),Ne$1(et)){if("selectionStart"in et)var rt={start:et.selectionStart,end:et.selectionEnd};else e:{rt=(rt=et.ownerDocument)&&rt.defaultView||window;var nt=rt.getSelection&&rt.getSelection();if(nt&&nt.rangeCount!==0){rt=nt.anchorNode;var it=nt.anchorOffset,st=nt.focusNode;nt=nt.focusOffset;try{rt.nodeType,st.nodeType}catch{rt=null;break e}var at=0,ot=-1,lt=-1,ut=0,dt=0,bt=et,gt=null;t:for(;;){for(var kt;bt!==rt||it!==0&&bt.nodeType!==3||(ot=at+it),bt!==st||nt!==0&&bt.nodeType!==3||(lt=at+nt),bt.nodeType===3&&(at+=bt.nodeValue.length),(kt=bt.firstChild)!==null;)gt=bt,bt=kt;for(;;){if(bt===et)break t;if(gt===rt&&++ut===it&&(ot=at),gt===st&&++dt===nt&&(lt=at),(kt=bt.nextSibling)!==null)break;bt=gt,gt=bt.parentNode}bt=kt}rt=ot===-1||lt===-1?null:{start:ot,end:lt}}else rt=null}rt=rt||{start:0,end:0}}else rt=null;for(Df={focusedElem:et,selectionRange:rt},dd=!1,V$1=tt;V$1!==null;)if(tt=V$1,et=tt.child,(tt.subtreeFlags&1028)!==0&&et!==null)et.return=tt,V$1=et;else for(;V$1!==null;){tt=V$1;try{var pt=tt.alternate;if(tt.flags&1024)switch(tt.tag){case 0:case 11:case 15:break;case 1:if(pt!==null){var yt=pt.memoizedProps,$t=pt.memoizedState,mt=tt.stateNode,wt=mt.getSnapshotBeforeUpdate(tt.elementType===tt.type?yt:Lg(tt.type,yt),$t);mt.__reactInternalSnapshotBeforeUpdate=wt}break;case 3:var St=tt.stateNode.containerInfo;St.nodeType===1?St.textContent="":St.nodeType===9&&St.documentElement&&St.removeChild(St.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$6(163))}}catch(Bt){W$7(tt,tt.return,Bt)}if(et=tt.sibling,et!==null){et.return=tt.return,V$1=et;break}V$1=tt.return}return pt=Oj,Oj=!1,pt}function Qj(et,tt,rt){var nt=tt.updateQueue;if(nt=nt!==null?nt.lastEffect:null,nt!==null){var it=nt=nt.next;do{if((it.tag&et)===et){var st=it.destroy;it.destroy=void 0,st!==void 0&&Nj(tt,rt,st)}it=it.next}while(it!==nt)}}function Rj(et,tt){if(tt=tt.updateQueue,tt=tt!==null?tt.lastEffect:null,tt!==null){var rt=tt=tt.next;do{if((rt.tag&et)===et){var nt=rt.create;rt.destroy=nt()}rt=rt.next}while(rt!==tt)}}function Sj(et){var tt=et.ref;if(tt!==null){var rt=et.stateNode;switch(et.tag){case 5:et=rt;break;default:et=rt}typeof tt=="function"?tt(et):tt.current=et}}function Tj(et){var tt=et.alternate;tt!==null&&(et.alternate=null,Tj(tt)),et.child=null,et.deletions=null,et.sibling=null,et.tag===5&&(tt=et.stateNode,tt!==null&&(delete tt[Of],delete tt[Pf],delete tt[of],delete tt[Qf],delete tt[Rf])),et.stateNode=null,et.return=null,et.dependencies=null,et.memoizedProps=null,et.memoizedState=null,et.pendingProps=null,et.stateNode=null,et.updateQueue=null}function Uj(et){return et.tag===5||et.tag===3||et.tag===4}function Vj(et){e:for(;;){for(;et.sibling===null;){if(et.return===null||Uj(et.return))return null;et=et.return}for(et.sibling.return=et.return,et=et.sibling;et.tag!==5&&et.tag!==6&&et.tag!==18;){if(et.flags&2||et.child===null||et.tag===4)continue e;et.child.return=et,et=et.child}if(!(et.flags&2))return et.stateNode}}function Wj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.nodeType===8?rt.parentNode.insertBefore(et,tt):rt.insertBefore(et,tt):(rt.nodeType===8?(tt=rt.parentNode,tt.insertBefore(et,rt)):(tt=rt,tt.appendChild(et)),rt=rt._reactRootContainer,rt!=null||tt.onclick!==null||(tt.onclick=Bf));else if(nt!==4&&(et=et.child,et!==null))for(Wj(et,tt,rt),et=et.sibling;et!==null;)Wj(et,tt,rt),et=et.sibling}function Xj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.insertBefore(et,tt):rt.appendChild(et);else if(nt!==4&&(et=et.child,et!==null))for(Xj(et,tt,rt),et=et.sibling;et!==null;)Xj(et,tt,rt),et=et.sibling}var X$1=null,Yj=!1;function Zj(et,tt,rt){for(rt=rt.child;rt!==null;)ak(et,tt,rt),rt=rt.sibling}function ak(et,tt,rt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,rt)}catch{}switch(rt.tag){case 5:U$1||Mj(rt,tt);case 6:var nt=X$1,it=Yj;X$1=null,Zj(et,tt,rt),X$1=nt,Yj=it,X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?et.parentNode.removeChild(rt):et.removeChild(rt)):X$1.removeChild(rt.stateNode));break;case 18:X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?Kf(et.parentNode,rt):et.nodeType===1&&Kf(et,rt),bd(et)):Kf(X$1,rt.stateNode));break;case 4:nt=X$1,it=Yj,X$1=rt.stateNode.containerInfo,Yj=!0,Zj(et,tt,rt),X$1=nt,Yj=it;break;case 0:case 11:case 14:case 15:if(!U$1&&(nt=rt.updateQueue,nt!==null&&(nt=nt.lastEffect,nt!==null))){it=nt=nt.next;do{var st=it,at=st.destroy;st=st.tag,at!==void 0&&(st&2||st&4)&&Nj(rt,tt,at),it=it.next}while(it!==nt)}Zj(et,tt,rt);break;case 1:if(!U$1&&(Mj(rt,tt),nt=rt.stateNode,typeof nt.componentWillUnmount=="function"))try{nt.props=rt.memoizedProps,nt.state=rt.memoizedState,nt.componentWillUnmount()}catch(ot){W$7(rt,tt,ot)}Zj(et,tt,rt);break;case 21:Zj(et,tt,rt);break;case 22:rt.mode&1?(U$1=(nt=U$1)||rt.memoizedState!==null,Zj(et,tt,rt),U$1=nt):Zj(et,tt,rt);break;default:Zj(et,tt,rt)}}function bk(et){var tt=et.updateQueue;if(tt!==null){et.updateQueue=null;var rt=et.stateNode;rt===null&&(rt=et.stateNode=new Lj),tt.forEach(function(nt){var it=ck.bind(null,et,nt);rt.has(nt)||(rt.add(nt),nt.then(it,it))})}}function dk(et,tt){var rt=tt.deletions;if(rt!==null)for(var nt=0;ntit&&(it=at),nt&=~st}if(nt=it,nt=B$2()-nt,nt=(120>nt?120:480>nt?480:1080>nt?1080:1920>nt?1920:3e3>nt?3e3:4320>nt?4320:1960*mk(nt/1960))-nt,10et?16:et,xk===null)var nt=!1;else{if(et=xk,xk=null,yk=0,K$6&6)throw Error(p$6(331));var it=K$6;for(K$6|=4,V$1=et.current;V$1!==null;){var st=V$1,at=st.child;if(V$1.flags&16){var ot=st.deletions;if(ot!==null){for(var lt=0;ltB$2()-gk?Lk(et,0):sk|=rt),Ek(et,tt)}function Zk(et,tt){tt===0&&(et.mode&1?(tt=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):tt=1);var rt=L$2();et=Zg(et,tt),et!==null&&(Ac(et,tt,rt),Ek(et,rt))}function vj(et){var tt=et.memoizedState,rt=0;tt!==null&&(rt=tt.retryLane),Zk(et,rt)}function ck(et,tt){var rt=0;switch(et.tag){case 13:var nt=et.stateNode,it=et.memoizedState;it!==null&&(rt=it.retryLane);break;case 19:nt=et.stateNode;break;default:throw Error(p$6(314))}nt!==null&&nt.delete(tt),Zk(et,rt)}var Wk;Wk=function(et,tt,rt){if(et!==null)if(et.memoizedProps!==tt.pendingProps||Wf.current)Ug=!0;else{if(!(et.lanes&rt)&&!(tt.flags&128))return Ug=!1,zj(et,tt,rt);Ug=!!(et.flags&131072)}else Ug=!1,I$2&&tt.flags&1048576&&ug(tt,ng,tt.index);switch(tt.lanes=0,tt.tag){case 2:var nt=tt.type;jj(et,tt),et=tt.pendingProps;var it=Yf(tt,H$2.current);Tg(tt,rt),it=Xh(null,tt,nt,et,it,rt);var st=bi();return tt.flags|=1,typeof it=="object"&&it!==null&&typeof it.render=="function"&&it.$$typeof===void 0?(tt.tag=1,tt.memoizedState=null,tt.updateQueue=null,Zf(nt)?(st=!0,cg(tt)):st=!1,tt.memoizedState=it.state!==null&&it.state!==void 0?it.state:null,ah(tt),it.updater=nh,tt.stateNode=it,it._reactInternals=tt,rh$1(tt,nt,et,rt),tt=kj(null,tt,nt,!0,st,rt)):(tt.tag=0,I$2&&st&&vg(tt),Yi(null,tt,it,rt),tt=tt.child),tt;case 16:nt=tt.elementType;e:{switch(jj(et,tt),et=tt.pendingProps,it=nt._init,nt=it(nt._payload),tt.type=nt,it=tt.tag=$k(nt),et=Lg(nt,et),it){case 0:tt=dj(null,tt,nt,et,rt);break e;case 1:tt=ij(null,tt,nt,et,rt);break e;case 11:tt=Zi(null,tt,nt,et,rt);break e;case 14:tt=aj(null,tt,nt,Lg(nt.type,et),rt);break e}throw Error(p$6(306,nt,""))}return tt;case 0:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),dj(et,tt,nt,it,rt);case 1:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),ij(et,tt,nt,it,rt);case 3:e:{if(lj(tt),et===null)throw Error(p$6(387));nt=tt.pendingProps,st=tt.memoizedState,it=st.element,bh(et,tt),gh(tt,nt,null,rt);var at=tt.memoizedState;if(nt=at.element,st.isDehydrated)if(st={element:nt,isDehydrated:!1,cache:at.cache,pendingSuspenseBoundaries:at.pendingSuspenseBoundaries,transitions:at.transitions},tt.updateQueue.baseState=st,tt.memoizedState=st,tt.flags&256){it=Ki(Error(p$6(423)),tt),tt=mj(et,tt,nt,rt,it);break e}else if(nt!==it){it=Ki(Error(p$6(424)),tt),tt=mj(et,tt,nt,rt,it);break e}else for(yg=Lf(tt.stateNode.containerInfo.firstChild),xg=tt,I$2=!0,zg=null,rt=Ch$1(tt,null,nt,rt),tt.child=rt;rt;)rt.flags=rt.flags&-3|4096,rt=rt.sibling;else{if(Ig(),nt===it){tt=$i(et,tt,rt);break e}Yi(et,tt,nt,rt)}tt=tt.child}return tt;case 5:return Kh$1(tt),et===null&&Eg(tt),nt=tt.type,it=tt.pendingProps,st=et!==null?et.memoizedProps:null,at=it.children,Ef(nt,it)?at=null:st!==null&&Ef(nt,st)&&(tt.flags|=32),hj(et,tt),Yi(et,tt,at,rt),tt.child;case 6:return et===null&&Eg(tt),null;case 13:return pj(et,tt,rt);case 4:return Ih(tt,tt.stateNode.containerInfo),nt=tt.pendingProps,et===null?tt.child=Bh(tt,null,nt,rt):Yi(et,tt,nt,rt),tt.child;case 11:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),Zi(et,tt,nt,it,rt);case 7:return Yi(et,tt,tt.pendingProps,rt),tt.child;case 8:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 12:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 10:e:{if(nt=tt.type._context,it=tt.pendingProps,st=tt.memoizedProps,at=it.value,G$2(Mg,nt._currentValue),nt._currentValue=at,st!==null)if(He$1(st.value,at)){if(st.children===it.children&&!Wf.current){tt=$i(et,tt,rt);break e}}else for(st=tt.child,st!==null&&(st.return=tt);st!==null;){var ot=st.dependencies;if(ot!==null){at=st.child;for(var lt=ot.firstContext;lt!==null;){if(lt.context===nt){if(st.tag===1){lt=ch$1(-1,rt&-rt),lt.tag=2;var ut=st.updateQueue;if(ut!==null){ut=ut.shared;var dt=ut.pending;dt===null?lt.next=lt:(lt.next=dt.next,dt.next=lt),ut.pending=lt}}st.lanes|=rt,lt=st.alternate,lt!==null&&(lt.lanes|=rt),Sg(st.return,rt,tt),ot.lanes|=rt;break}lt=lt.next}}else if(st.tag===10)at=st.type===tt.type?null:st.child;else if(st.tag===18){if(at=st.return,at===null)throw Error(p$6(341));at.lanes|=rt,ot=at.alternate,ot!==null&&(ot.lanes|=rt),Sg(at,rt,tt),at=st.sibling}else at=st.child;if(at!==null)at.return=st;else for(at=st;at!==null;){if(at===tt){at=null;break}if(st=at.sibling,st!==null){st.return=at.return,at=st;break}at=at.return}st=at}Yi(et,tt,it.children,rt),tt=tt.child}return tt;case 9:return it=tt.type,nt=tt.pendingProps.children,Tg(tt,rt),it=Vg(it),nt=nt(it),tt.flags|=1,Yi(et,tt,nt,rt),tt.child;case 14:return nt=tt.type,it=Lg(nt,tt.pendingProps),it=Lg(nt.type,it),aj(et,tt,nt,it,rt);case 15:return cj(et,tt,tt.type,tt.pendingProps,rt);case 17:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),jj(et,tt),tt.tag=1,Zf(nt)?(et=!0,cg(tt)):et=!1,Tg(tt,rt),ph(tt,nt,it),rh$1(tt,nt,it,rt),kj(null,tt,nt,!0,et,rt);case 19:return yj(et,tt,rt);case 22:return ej(et,tt,rt)}throw Error(p$6(156,tt.tag))};function Gk(et,tt){return ac(et,tt)}function al(et,tt,rt,nt){this.tag=et,this.key=rt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=tt,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=nt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg$1(et,tt,rt,nt){return new al(et,tt,rt,nt)}function bj(et){return et=et.prototype,!(!et||!et.isReactComponent)}function $k(et){if(typeof et=="function")return bj(et)?1:0;if(et!=null){if(et=et.$$typeof,et===Da)return 11;if(et===Ga)return 14}return 2}function wh(et,tt){var rt=et.alternate;return rt===null?(rt=Bg$1(et.tag,tt,et.key,et.mode),rt.elementType=et.elementType,rt.type=et.type,rt.stateNode=et.stateNode,rt.alternate=et,et.alternate=rt):(rt.pendingProps=tt,rt.type=et.type,rt.flags=0,rt.subtreeFlags=0,rt.deletions=null),rt.flags=et.flags&14680064,rt.childLanes=et.childLanes,rt.lanes=et.lanes,rt.child=et.child,rt.memoizedProps=et.memoizedProps,rt.memoizedState=et.memoizedState,rt.updateQueue=et.updateQueue,tt=et.dependencies,rt.dependencies=tt===null?null:{lanes:tt.lanes,firstContext:tt.firstContext},rt.sibling=et.sibling,rt.index=et.index,rt.ref=et.ref,rt}function yh(et,tt,rt,nt,it,st){var at=2;if(nt=et,typeof et=="function")bj(et)&&(at=1);else if(typeof et=="string")at=5;else e:switch(et){case ya:return Ah(rt.children,it,st,tt);case za:at=8,it|=8;break;case Aa:return et=Bg$1(12,rt,tt,it|2),et.elementType=Aa,et.lanes=st,et;case Ea:return et=Bg$1(13,rt,tt,it),et.elementType=Ea,et.lanes=st,et;case Fa:return et=Bg$1(19,rt,tt,it),et.elementType=Fa,et.lanes=st,et;case Ia:return qj(rt,it,st,tt);default:if(typeof et=="object"&&et!==null)switch(et.$$typeof){case Ba:at=10;break e;case Ca:at=9;break e;case Da:at=11;break e;case Ga:at=14;break e;case Ha:at=16,nt=null;break e}throw Error(p$6(130,et==null?et:typeof et,""))}return tt=Bg$1(at,rt,tt,it),tt.elementType=et,tt.type=nt,tt.lanes=st,tt}function Ah(et,tt,rt,nt){return et=Bg$1(7,et,nt,tt),et.lanes=rt,et}function qj(et,tt,rt,nt){return et=Bg$1(22,et,nt,tt),et.elementType=Ia,et.lanes=rt,et.stateNode={isHidden:!1},et}function xh(et,tt,rt){return et=Bg$1(6,et,null,tt),et.lanes=rt,et}function zh(et,tt,rt){return tt=Bg$1(4,et.children!==null?et.children:[],et.key,tt),tt.lanes=rt,tt.stateNode={containerInfo:et.containerInfo,pendingChildren:null,implementation:et.implementation},tt}function bl(et,tt,rt,nt,it){this.tag=tt,this.containerInfo=et,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=nt,this.onRecoverableError=it,this.mutableSourceEagerHydrationData=null}function cl(et,tt,rt,nt,it,st,at,ot,lt){return et=new bl(et,tt,rt,ot,lt),tt===1?(tt=1,st===!0&&(tt|=8)):tt=0,st=Bg$1(3,null,null,tt),et.current=st,st.stateNode=et,st.memoizedState={element:nt,isDehydrated:rt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(st),et}function dl(et,tt,rt){var nt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(et){console.error(et)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var createRoot,m$5=reactDomExports;createRoot=client$1.createRoot=m$5.createRoot,client$1.hydrateRoot=m$5.hydrateRoot;const scriptRel="modulepreload",assetsURL=function(et){return"/"+et},seen={},__vitePreload=function(tt,rt,nt){if(!rt||rt.length===0)return tt();const it=document.getElementsByTagName("link");return Promise.all(rt.map(st=>{if(st=assetsURL(st),st in seen)return;seen[st]=!0;const at=st.endsWith(".css"),ot=at?'[rel="stylesheet"]':"";if(!!nt)for(let dt=it.length-1;dt>=0;dt--){const bt=it[dt];if(bt.href===st&&(!at||bt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${st}"]${ot}`))return;const ut=document.createElement("link");if(ut.rel=at?"stylesheet":scriptRel,at||(ut.as="script",ut.crossOrigin=""),ut.href=st,document.head.appendChild(ut),at)return new Promise((dt,bt)=>{ut.addEventListener("load",dt),ut.addEventListener("error",()=>bt(new Error(`Unable to preload CSS for ${st}`)))})})).then(()=>tt()).catch(st=>{const at=new Event("vite:preloadError",{cancelable:!0});if(at.payload=st,window.dispatchEvent(at),!at.defaultPrevented)throw st})},reportWebVitals=et=>{et&&et instanceof Function&&__vitePreload(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:tt,getFID:rt,getFCP:nt,getLCP:it,getTTFB:st})=>{tt(et),rt(et),nt(et),it(et),st(et)})};/** * @remix-run/router v1.16.1 @@ -78,16 +78,16 @@ var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}func [`+st+"] ";for(at in arguments[0])hasOwnProp(arguments[0],at)&&(it+=at+": "+arguments[0][at]+", ");it=it.slice(0,-2)}else it=arguments[st];nt.push(it)}warn(et+` Arguments: `+Array.prototype.slice.call(nt).join("")+` `+new Error().stack),rt=!1}return tt.apply(this,arguments)},tt)}var deprecations={};function deprecateSimple(et,tt){hooks.deprecationHandler!=null&&hooks.deprecationHandler(et,tt),deprecations[et]||(warn(tt),deprecations[et]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction$5(et){return typeof Function<"u"&&et instanceof Function||Object.prototype.toString.call(et)==="[object Function]"}function set$1(et){var tt,rt;for(rt in et)hasOwnProp(et,rt)&&(tt=et[rt],isFunction$5(tt)?this[rt]=tt:this["_"+rt]=tt);this._config=et,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(et,tt){var rt=extend({},et),nt;for(nt in tt)hasOwnProp(tt,nt)&&(isObject$a(et[nt])&&isObject$a(tt[nt])?(rt[nt]={},extend(rt[nt],et[nt]),extend(rt[nt],tt[nt])):tt[nt]!=null?rt[nt]=tt[nt]:delete rt[nt]);for(nt in et)hasOwnProp(et,nt)&&!hasOwnProp(tt,nt)&&isObject$a(et[nt])&&(rt[nt]=extend({},rt[nt]));return rt}function Locale(et){et!=null&&this.set(et)}var keys$4;Object.keys?keys$4=Object.keys:keys$4=function(et){var tt,rt=[];for(tt in et)hasOwnProp(et,tt)&&rt.push(tt);return rt};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(et,tt,rt){var nt=this._calendar[et]||this._calendar.sameElse;return isFunction$5(nt)?nt.call(tt,rt):nt}function zeroFill(et,tt,rt){var nt=""+Math.abs(et),it=tt-nt.length,st=et>=0;return(st?rt?"+":"":"-")+Math.pow(10,Math.max(0,it)).toString().substr(1)+nt}var formattingTokens=/(\[[^\[]*\])|(\\)?([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,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(et,tt,rt,nt){var it=nt;typeof nt=="string"&&(it=function(){return this[nt]()}),et&&(formatTokenFunctions[et]=it),tt&&(formatTokenFunctions[tt[0]]=function(){return zeroFill(it.apply(this,arguments),tt[1],tt[2])}),rt&&(formatTokenFunctions[rt]=function(){return this.localeData().ordinal(it.apply(this,arguments),et)})}function removeFormattingTokens(et){return et.match(/\[[\s\S]/)?et.replace(/^\[|\]$/g,""):et.replace(/\\/g,"")}function makeFormatFunction(et){var tt=et.match(formattingTokens),rt,nt;for(rt=0,nt=tt.length;rt=0&&localFormattingTokens.test(et);)et=et.replace(localFormattingTokens,nt),localFormattingTokens.lastIndex=0,rt-=1;return et}var defaultLongDateFormat={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 longDateFormat(et){var tt=this._longDateFormat[et],rt=this._longDateFormat[et.toUpperCase()];return tt||!rt?tt:(this._longDateFormat[et]=rt.match(formattingTokens).map(function(nt){return nt==="MMMM"||nt==="MM"||nt==="DD"||nt==="dddd"?nt.slice(1):nt}).join(""),this._longDateFormat[et])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(et){return this._ordinal.replace("%d",et)}var defaultRelativeTime={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 relativeTime(et,tt,rt,nt){var it=this._relativeTime[rt];return isFunction$5(it)?it(et,tt,rt,nt):it.replace(/%d/i,et)}function pastFuture(et,tt){var rt=this._relativeTime[et>0?"future":"past"];return isFunction$5(rt)?rt(tt):rt.replace(/%s/i,tt)}var aliases$1={};function addUnitAlias(et,tt){var rt=et.toLowerCase();aliases$1[rt]=aliases$1[rt+"s"]=aliases$1[tt]=et}function normalizeUnits(et){return typeof et=="string"?aliases$1[et]||aliases$1[et.toLowerCase()]:void 0}function normalizeObjectUnits(et){var tt={},rt,nt;for(nt in et)hasOwnProp(et,nt)&&(rt=normalizeUnits(nt),rt&&(tt[rt]=et[nt]));return tt}var priorities={};function addUnitPriority(et,tt){priorities[et]=tt}function getPrioritizedUnits(et){var tt=[],rt;for(rt in et)hasOwnProp(et,rt)&&tt.push({unit:rt,priority:priorities[rt]});return tt.sort(function(nt,it){return nt.priority-it.priority}),tt}function isLeapYear(et){return et%4===0&&et%100!==0||et%400===0}function absFloor(et){return et<0?Math.ceil(et)||0:Math.floor(et)}function toInt(et){var tt=+et,rt=0;return tt!==0&&isFinite(tt)&&(rt=absFloor(tt)),rt}function makeGetSet(et,tt){return function(rt){return rt!=null?(set$1$1(this,et,rt),hooks.updateOffset(this,tt),this):get$1(this,et)}}function get$1(et,tt){return et.isValid()?et._d["get"+(et._isUTC?"UTC":"")+tt]():NaN}function set$1$1(et,tt,rt){et.isValid()&&!isNaN(rt)&&(tt==="FullYear"&&isLeapYear(et.year())&&et.month()===1&&et.date()===29?(rt=toInt(rt),et._d["set"+(et._isUTC?"UTC":"")+tt](rt,et.month(),daysInMonth(rt,et.month()))):et._d["set"+(et._isUTC?"UTC":"")+tt](rt))}function stringGet(et){return et=normalizeUnits(et),isFunction$5(this[et])?this[et]():this}function stringSet(et,tt){if(typeof et=="object"){et=normalizeObjectUnits(et);var rt=getPrioritizedUnits(et),nt,it=rt.length;for(nt=0;nt68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(et,tt,rt,nt,it,st,at){var ot;return et<100&&et>=0?(ot=new Date(et+400,tt,rt,nt,it,st,at),isFinite(ot.getFullYear())&&ot.setFullYear(et)):ot=new Date(et,tt,rt,nt,it,st,at),ot}function createUTCDate(et){var tt,rt;return et<100&&et>=0?(rt=Array.prototype.slice.call(arguments),rt[0]=et+400,tt=new Date(Date.UTC.apply(null,rt)),isFinite(tt.getUTCFullYear())&&tt.setUTCFullYear(et)):tt=new Date(Date.UTC.apply(null,arguments)),tt}function firstWeekOffset(et,tt,rt){var nt=7+tt-rt,it=(7+createUTCDate(et,0,nt).getUTCDay()-tt)%7;return-it+nt-1}function dayOfYearFromWeeks(et,tt,rt,nt,it){var st=(7+rt-nt)%7,at=firstWeekOffset(et,nt,it),ot=1+7*(tt-1)+st+at,lt,ut;return ot<=0?(lt=et-1,ut=daysInYear(lt)+ot):ot>daysInYear(et)?(lt=et+1,ut=ot-daysInYear(et)):(lt=et,ut=ot),{year:lt,dayOfYear:ut}}function weekOfYear(et,tt,rt){var nt=firstWeekOffset(et.year(),tt,rt),it=Math.floor((et.dayOfYear()-nt-1)/7)+1,st,at;return it<1?(at=et.year()-1,st=it+weeksInYear(at,tt,rt)):it>weeksInYear(et.year(),tt,rt)?(st=it-weeksInYear(et.year(),tt,rt),at=et.year()+1):(at=et.year(),st=it),{week:st,year:at}}function weeksInYear(et,tt,rt){var nt=firstWeekOffset(et,tt,rt),it=firstWeekOffset(et+1,tt,rt);return(daysInYear(et)-nt+it)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(et,tt,rt,nt){tt[nt.substr(0,1)]=toInt(et)});function localeWeek(et){return weekOfYear(et,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(et){var tt=this.localeData().week(this);return et==null?tt:this.add((et-tt)*7,"d")}function getSetISOWeek(et){var tt=weekOfYear(this,1,4).week;return et==null?tt:this.add((et-tt)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(et){return this.localeData().weekdaysMin(this,et)});addFormatToken("ddd",0,0,function(et){return this.localeData().weekdaysShort(this,et)});addFormatToken("dddd",0,0,function(et){return this.localeData().weekdays(this,et)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(et,tt){return tt.weekdaysMinRegex(et)});addRegexToken("ddd",function(et,tt){return tt.weekdaysShortRegex(et)});addRegexToken("dddd",function(et,tt){return tt.weekdaysRegex(et)});addWeekParseToken(["dd","ddd","dddd"],function(et,tt,rt,nt){var it=rt._locale.weekdaysParse(et,nt,rt._strict);it!=null?tt.d=it:getParsingFlags(rt).invalidWeekday=et});addWeekParseToken(["d","e","E"],function(et,tt,rt,nt){tt[nt]=toInt(et)});function parseWeekday(et,tt){return typeof et!="string"?et:isNaN(et)?(et=tt.weekdaysParse(et),typeof et=="number"?et:null):parseInt(et,10)}function parseIsoWeekday(et,tt){return typeof et=="string"?tt.weekdaysParse(et)%7||7:isNaN(et)?null:et}function shiftWeekdays(et,tt){return et.slice(tt,7).concat(et.slice(0,tt))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(et,tt){var rt=isArray$5(this._weekdays)?this._weekdays:this._weekdays[et&&et!==!0&&this._weekdays.isFormat.test(tt)?"format":"standalone"];return et===!0?shiftWeekdays(rt,this._week.dow):et?rt[et.day()]:rt}function localeWeekdaysShort(et){return et===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):et?this._weekdaysShort[et.day()]:this._weekdaysShort}function localeWeekdaysMin(et){return et===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):et?this._weekdaysMin[et.day()]:this._weekdaysMin}function handleStrictParse$1(et,tt,rt){var nt,it,st,at=et.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],nt=0;nt<7;++nt)st=createUTC([2e3,1]).day(nt),this._minWeekdaysParse[nt]=this.weekdaysMin(st,"").toLocaleLowerCase(),this._shortWeekdaysParse[nt]=this.weekdaysShort(st,"").toLocaleLowerCase(),this._weekdaysParse[nt]=this.weekdays(st,"").toLocaleLowerCase();return rt?tt==="dddd"?(it=indexOf.call(this._weekdaysParse,at),it!==-1?it:null):tt==="ddd"?(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1?it:null):(it=indexOf.call(this._minWeekdaysParse,at),it!==-1?it:null):tt==="dddd"?(it=indexOf.call(this._weekdaysParse,at),it!==-1||(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1)?it:(it=indexOf.call(this._minWeekdaysParse,at),it!==-1?it:null)):tt==="ddd"?(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1||(it=indexOf.call(this._weekdaysParse,at),it!==-1)?it:(it=indexOf.call(this._minWeekdaysParse,at),it!==-1?it:null)):(it=indexOf.call(this._minWeekdaysParse,at),it!==-1||(it=indexOf.call(this._weekdaysParse,at),it!==-1)?it:(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1?it:null))}function localeWeekdaysParse(et,tt,rt){var nt,it,st;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,et,tt,rt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),nt=0;nt<7;nt++){if(it=createUTC([2e3,1]).day(nt),rt&&!this._fullWeekdaysParse[nt]&&(this._fullWeekdaysParse[nt]=new RegExp("^"+this.weekdays(it,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[nt]=new RegExp("^"+this.weekdaysShort(it,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[nt]=new RegExp("^"+this.weekdaysMin(it,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[nt]||(st="^"+this.weekdays(it,"")+"|^"+this.weekdaysShort(it,"")+"|^"+this.weekdaysMin(it,""),this._weekdaysParse[nt]=new RegExp(st.replace(".",""),"i")),rt&&tt==="dddd"&&this._fullWeekdaysParse[nt].test(et))return nt;if(rt&&tt==="ddd"&&this._shortWeekdaysParse[nt].test(et))return nt;if(rt&&tt==="dd"&&this._minWeekdaysParse[nt].test(et))return nt;if(!rt&&this._weekdaysParse[nt].test(et))return nt}}function getSetDayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;var tt=this._isUTC?this._d.getUTCDay():this._d.getDay();return et!=null?(et=parseWeekday(et,this.localeData()),this.add(et-tt,"d")):tt}function getSetLocaleDayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;var tt=(this.day()+7-this.localeData()._week.dow)%7;return et==null?tt:this.add(et-tt,"d")}function getSetISODayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;if(et!=null){var tt=parseIsoWeekday(et,this.localeData());return this.day(this.day()%7?tt:tt-7)}else return this.day()||7}function weekdaysRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&et?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&et?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&et?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function et(dt,bt){return bt.length-dt.length}var tt=[],rt=[],nt=[],it=[],st,at,ot,lt,ut;for(st=0;st<7;st++)at=createUTC([2e3,1]).day(st),ot=regexEscape(this.weekdaysMin(at,"")),lt=regexEscape(this.weekdaysShort(at,"")),ut=regexEscape(this.weekdays(at,"")),tt.push(ot),rt.push(lt),nt.push(ut),it.push(ot),it.push(lt),it.push(ut);tt.sort(et),rt.sort(et),nt.sort(et),it.sort(et),this._weekdaysRegex=new RegExp("^("+it.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+rt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+tt.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(et,tt){addFormatToken(et,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),tt)})}meridiem("a",!0);meridiem("A",!1);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(et,tt){return tt._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("k",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(et,tt,rt){var nt=toInt(et);tt[HOUR]=nt===24?0:nt});addParseToken(["a","A"],function(et,tt,rt){rt._isPm=rt._locale.isPM(et),rt._meridiem=et});addParseToken(["h","hh"],function(et,tt,rt){tt[HOUR]=toInt(et),getParsingFlags(rt).bigHour=!0});addParseToken("hmm",function(et,tt,rt){var nt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt)),getParsingFlags(rt).bigHour=!0});addParseToken("hmmss",function(et,tt,rt){var nt=et.length-4,it=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt,2)),tt[SECOND]=toInt(et.substr(it)),getParsingFlags(rt).bigHour=!0});addParseToken("Hmm",function(et,tt,rt){var nt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt))});addParseToken("Hmmss",function(et,tt,rt){var nt=et.length-4,it=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt,2)),tt[SECOND]=toInt(et.substr(it))});function localeIsPM(et){return(et+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(et,tt,rt){return et>11?rt?"pm":"PM":rt?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(et,tt){var rt,nt=Math.min(et.length,tt.length);for(rt=0;rt0;){if(it=loadLocale(st.slice(0,rt).join("-")),it)return it;if(nt&&nt.length>=rt&&commonPrefix(st,nt)>=rt-1)break;rt--}tt++}return globalLocale}function isLocaleNameSane(et){return et.match("^[^/\\\\]*$")!=null}function loadLocale(et){var tt=null,rt;if(locales[et]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(et))try{tt=globalLocale._abbr,rt=require,rt("./locale/"+et),getSetGlobalLocale(tt)}catch{locales[et]=null}return locales[et]}function getSetGlobalLocale(et,tt){var rt;return et&&(isUndefined$1(tt)?rt=getLocale(et):rt=defineLocale(et,tt),rt?globalLocale=rt:typeof console<"u"&&console.warn&&console.warn("Locale "+et+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(et,tt){if(tt!==null){var rt,nt=baseConfig;if(tt.abbr=et,locales[et]!=null)deprecateSimple("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."),nt=locales[et]._config;else if(tt.parentLocale!=null)if(locales[tt.parentLocale]!=null)nt=locales[tt.parentLocale]._config;else if(rt=loadLocale(tt.parentLocale),rt!=null)nt=rt._config;else return localeFamilies[tt.parentLocale]||(localeFamilies[tt.parentLocale]=[]),localeFamilies[tt.parentLocale].push({name:et,config:tt}),null;return locales[et]=new Locale(mergeConfigs(nt,tt)),localeFamilies[et]&&localeFamilies[et].forEach(function(it){defineLocale(it.name,it.config)}),getSetGlobalLocale(et),locales[et]}else return delete locales[et],null}function updateLocale(et,tt){if(tt!=null){var rt,nt,it=baseConfig;locales[et]!=null&&locales[et].parentLocale!=null?locales[et].set(mergeConfigs(locales[et]._config,tt)):(nt=loadLocale(et),nt!=null&&(it=nt._config),tt=mergeConfigs(it,tt),nt==null&&(tt.abbr=et),rt=new Locale(tt),rt.parentLocale=locales[et],locales[et]=rt),getSetGlobalLocale(et)}else locales[et]!=null&&(locales[et].parentLocale!=null?(locales[et]=locales[et].parentLocale,et===getSetGlobalLocale()&&getSetGlobalLocale(et)):locales[et]!=null&&delete locales[et]);return locales[et]}function getLocale(et){var tt;if(et&&et._locale&&et._locale._abbr&&(et=et._locale._abbr),!et)return globalLocale;if(!isArray$5(et)){if(tt=loadLocale(et),tt)return tt;et=[et]}return chooseLocale(et)}function listLocales(){return keys$4(locales)}function checkOverflow(et){var tt,rt=et._a;return rt&&getParsingFlags(et).overflow===-2&&(tt=rt[MONTH]<0||rt[MONTH]>11?MONTH:rt[DATE]<1||rt[DATE]>daysInMonth(rt[YEAR],rt[MONTH])?DATE:rt[HOUR]<0||rt[HOUR]>24||rt[HOUR]===24&&(rt[MINUTE]!==0||rt[SECOND]!==0||rt[MILLISECOND]!==0)?HOUR:rt[MINUTE]<0||rt[MINUTE]>59?MINUTE:rt[SECOND]<0||rt[SECOND]>59?SECOND:rt[MILLISECOND]<0||rt[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(et)._overflowDayOfYear&&(ttDATE)&&(tt=DATE),getParsingFlags(et)._overflowWeeks&&tt===-1&&(tt=WEEK),getParsingFlags(et)._overflowWeekday&&tt===-1&&(tt=WEEKDAY),getParsingFlags(et).overflow=tt),et}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(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}))$/,obsOffsets={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 configFromISO(et){var tt,rt,nt=et._i,it=extendedIsoRegex.exec(nt)||basicIsoRegex.exec(nt),st,at,ot,lt,ut=isoDates.length,dt=isoTimes.length;if(it){for(getParsingFlags(et).iso=!0,tt=0,rt=ut;ttdaysInYear(at)||et._dayOfYear===0)&&(getParsingFlags(et)._overflowDayOfYear=!0),rt=createUTCDate(at,0,et._dayOfYear),et._a[MONTH]=rt.getUTCMonth(),et._a[DATE]=rt.getUTCDate()),tt=0;tt<3&&et._a[tt]==null;++tt)et._a[tt]=nt[tt]=it[tt];for(;tt<7;tt++)et._a[tt]=nt[tt]=et._a[tt]==null?tt===2?1:0:et._a[tt];et._a[HOUR]===24&&et._a[MINUTE]===0&&et._a[SECOND]===0&&et._a[MILLISECOND]===0&&(et._nextDay=!0,et._a[HOUR]=0),et._d=(et._useUTC?createUTCDate:createDate).apply(null,nt),st=et._useUTC?et._d.getUTCDay():et._d.getDay(),et._tzm!=null&&et._d.setUTCMinutes(et._d.getUTCMinutes()-et._tzm),et._nextDay&&(et._a[HOUR]=24),et._w&&typeof et._w.d<"u"&&et._w.d!==st&&(getParsingFlags(et).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(et){var tt,rt,nt,it,st,at,ot,lt,ut;tt=et._w,tt.GG!=null||tt.W!=null||tt.E!=null?(st=1,at=4,rt=defaults(tt.GG,et._a[YEAR],weekOfYear(createLocal(),1,4).year),nt=defaults(tt.W,1),it=defaults(tt.E,1),(it<1||it>7)&&(lt=!0)):(st=et._locale._week.dow,at=et._locale._week.doy,ut=weekOfYear(createLocal(),st,at),rt=defaults(tt.gg,et._a[YEAR],ut.year),nt=defaults(tt.w,ut.week),tt.d!=null?(it=tt.d,(it<0||it>6)&&(lt=!0)):tt.e!=null?(it=tt.e+st,(tt.e<0||tt.e>6)&&(lt=!0)):it=st),nt<1||nt>weeksInYear(rt,st,at)?getParsingFlags(et)._overflowWeeks=!0:lt!=null?getParsingFlags(et)._overflowWeekday=!0:(ot=dayOfYearFromWeeks(rt,nt,it,st,at),et._a[YEAR]=ot.year,et._dayOfYear=ot.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(et){if(et._f===hooks.ISO_8601){configFromISO(et);return}if(et._f===hooks.RFC_2822){configFromRFC2822(et);return}et._a=[],getParsingFlags(et).empty=!0;var tt=""+et._i,rt,nt,it,st,at,ot=tt.length,lt=0,ut,dt;for(it=expandFormat(et._f,et._locale).match(formattingTokens)||[],dt=it.length,rt=0;rt0&&getParsingFlags(et).unusedInput.push(at),tt=tt.slice(tt.indexOf(nt)+nt.length),lt+=nt.length),formatTokenFunctions[st]?(nt?getParsingFlags(et).empty=!1:getParsingFlags(et).unusedTokens.push(st),addTimeToArrayFromToken(st,nt,et)):et._strict&&!nt&&getParsingFlags(et).unusedTokens.push(st);getParsingFlags(et).charsLeftOver=ot-lt,tt.length>0&&getParsingFlags(et).unusedInput.push(tt),et._a[HOUR]<=12&&getParsingFlags(et).bigHour===!0&&et._a[HOUR]>0&&(getParsingFlags(et).bigHour=void 0),getParsingFlags(et).parsedDateParts=et._a.slice(0),getParsingFlags(et).meridiem=et._meridiem,et._a[HOUR]=meridiemFixWrap(et._locale,et._a[HOUR],et._meridiem),ut=getParsingFlags(et).era,ut!==null&&(et._a[YEAR]=et._locale.erasConvertYear(ut,et._a[YEAR])),configFromArray(et),checkOverflow(et)}function meridiemFixWrap(et,tt,rt){var nt;return rt==null?tt:et.meridiemHour!=null?et.meridiemHour(tt,rt):(et.isPM!=null&&(nt=et.isPM(rt),nt&&tt<12&&(tt+=12),!nt&&tt===12&&(tt=0)),tt)}function configFromStringAndArray(et){var tt,rt,nt,it,st,at,ot=!1,lt=et._f.length;if(lt===0){getParsingFlags(et).invalidFormat=!0,et._d=new Date(NaN);return}for(it=0;itthis?this:et:createInvalid()});function pickBy(et,tt){var rt,nt;if(tt.length===1&&isArray$5(tt[0])&&(tt=tt[0]),!tt.length)return createLocal();for(rt=tt[0],nt=1;ntthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined$1(this._isDSTShifted))return this._isDSTShifted;var et={},tt;return copyConfig(et,this),et=prepareConfig(et),et._a?(tt=et._isUTC?createUTC(et._a):createLocal(et._a),this._isDSTShifted=this.isValid()&&compareArrays(et._a,tt.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(et,tt){var rt=et,nt=null,it,st,at;return isDuration(et)?rt={ms:et._milliseconds,d:et._days,M:et._months}:isNumber$1(et)||!isNaN(+et)?(rt={},tt?rt[tt]=+et:rt.milliseconds=+et):(nt=aspNetRegex.exec(et))?(it=nt[1]==="-"?-1:1,rt={y:0,d:toInt(nt[DATE])*it,h:toInt(nt[HOUR])*it,m:toInt(nt[MINUTE])*it,s:toInt(nt[SECOND])*it,ms:toInt(absRound(nt[MILLISECOND]*1e3))*it}):(nt=isoRegex.exec(et))?(it=nt[1]==="-"?-1:1,rt={y:parseIso(nt[2],it),M:parseIso(nt[3],it),w:parseIso(nt[4],it),d:parseIso(nt[5],it),h:parseIso(nt[6],it),m:parseIso(nt[7],it),s:parseIso(nt[8],it)}):rt==null?rt={}:typeof rt=="object"&&("from"in rt||"to"in rt)&&(at=momentsDifference(createLocal(rt.from),createLocal(rt.to)),rt={},rt.ms=at.milliseconds,rt.M=at.months),st=new Duration(rt),isDuration(et)&&hasOwnProp(et,"_locale")&&(st._locale=et._locale),isDuration(et)&&hasOwnProp(et,"_isValid")&&(st._isValid=et._isValid),st}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(et,tt){var rt=et&&parseFloat(et.replace(",","."));return(isNaN(rt)?0:rt)*tt}function positiveMomentsDifference(et,tt){var rt={};return rt.months=tt.month()-et.month()+(tt.year()-et.year())*12,et.clone().add(rt.months,"M").isAfter(tt)&&--rt.months,rt.milliseconds=+tt-+et.clone().add(rt.months,"M"),rt}function momentsDifference(et,tt){var rt;return et.isValid()&&tt.isValid()?(tt=cloneWithOffset(tt,et),et.isBefore(tt)?rt=positiveMomentsDifference(et,tt):(rt=positiveMomentsDifference(tt,et),rt.milliseconds=-rt.milliseconds,rt.months=-rt.months),rt):{milliseconds:0,months:0}}function createAdder(et,tt){return function(rt,nt){var it,st;return nt!==null&&!isNaN(+nt)&&(deprecateSimple(tt,"moment()."+tt+"(period, number) is deprecated. Please use moment()."+tt+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),st=rt,rt=nt,nt=st),it=createDuration(rt,nt),addSubtract(this,it,et),this}}function addSubtract(et,tt,rt,nt){var it=tt._milliseconds,st=absRound(tt._days),at=absRound(tt._months);et.isValid()&&(nt=nt??!0,at&&setMonth(et,get$1(et,"Month")+at*rt),st&&set$1$1(et,"Date",get$1(et,"Date")+st*rt),it&&et._d.setTime(et._d.valueOf()+it*rt),nt&&hooks.updateOffset(et,st||at))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString$1(et){return typeof et=="string"||et instanceof String}function isMomentInput(et){return isMoment(et)||isDate$1(et)||isString$1(et)||isNumber$1(et)||isNumberOrStringArray(et)||isMomentInputObject(et)||et===null||et===void 0}function isMomentInputObject(et){var tt=isObject$a(et)&&!isObjectEmpty$1(et),rt=!1,nt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],it,st,at=nt.length;for(it=0;itrt.valueOf():rt.valueOf()9999?formatMoment(rt,tt?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$5(Date.prototype.toISOString)?tt?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(rt,"Z")):formatMoment(rt,tt?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var et="moment",tt="",rt,nt,it,st;return this.isLocal()||(et=this.utcOffset()===0?"moment.utc":"moment.parseZone",tt="Z"),rt="["+et+'("]',nt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",it="-MM-DD[T]HH:mm:ss.SSS",st=tt+'[")]',this.format(rt+nt+it+st)}function format(et){et||(et=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var tt=formatMoment(this,et);return this.localeData().postformat(tt)}function from$1(et,tt){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({to:this,from:et}).locale(this.locale()).humanize(!tt):this.localeData().invalidDate()}function fromNow(et){return this.from(createLocal(),et)}function to(et,tt){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({from:this,to:et}).locale(this.locale()).humanize(!tt):this.localeData().invalidDate()}function toNow(et){return this.to(createLocal(),et)}function locale(et){var tt;return et===void 0?this._locale._abbr:(tt=getLocale(et),tt!=null&&(this._locale=tt),this)}var lang=deprecate$1("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(et){return et===void 0?this.localeData():this.locale(et)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(et,tt){return(et%tt+tt)%tt}function localStartOfDate(et,tt,rt){return et<100&&et>=0?new Date(et+400,tt,rt)-MS_PER_400_YEARS:new Date(et,tt,rt).valueOf()}function utcStartOfDate(et,tt,rt){return et<100&&et>=0?Date.UTC(et+400,tt,rt)-MS_PER_400_YEARS:Date.UTC(et,tt,rt)}function startOf(et){var tt,rt;if(et=normalizeUnits(et),et===void 0||et==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":tt=rt(this.year(),0,1);break;case"quarter":tt=rt(this.year(),this.month()-this.month()%3,1);break;case"month":tt=rt(this.year(),this.month(),1);break;case"week":tt=rt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":tt=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":tt=rt(this.year(),this.month(),this.date());break;case"hour":tt=this._d.valueOf(),tt-=mod$1(tt+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":tt=this._d.valueOf(),tt-=mod$1(tt,MS_PER_MINUTE);break;case"second":tt=this._d.valueOf(),tt-=mod$1(tt,MS_PER_SECOND);break}return this._d.setTime(tt),hooks.updateOffset(this,!0),this}function endOf(et){var tt,rt;if(et=normalizeUnits(et),et===void 0||et==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":tt=rt(this.year()+1,0,1)-1;break;case"quarter":tt=rt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":tt=rt(this.year(),this.month()+1,1)-1;break;case"week":tt=rt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":tt=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":tt=rt(this.year(),this.month(),this.date()+1)-1;break;case"hour":tt=this._d.valueOf(),tt+=MS_PER_HOUR-mod$1(tt+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":tt=this._d.valueOf(),tt+=MS_PER_MINUTE-mod$1(tt,MS_PER_MINUTE)-1;break;case"second":tt=this._d.valueOf(),tt+=MS_PER_SECOND-mod$1(tt,MS_PER_SECOND)-1;break}return this._d.setTime(tt),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$3(){var et=this;return[et.year(),et.month(),et.date(),et.hour(),et.minute(),et.second(),et.millisecond()]}function toObject$1(){var et=this;return{years:et.year(),months:et.month(),date:et.date(),hours:et.hours(),minutes:et.minutes(),seconds:et.seconds(),milliseconds:et.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(et,tt,rt,nt){var it=rt._locale.erasParse(et,nt,rt._strict);it?getParsingFlags(rt).era=it:getParsingFlags(rt).invalidEra=et});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(et,tt,rt,nt){var it;rt._locale._eraYearOrdinalRegex&&(it=et.match(rt._locale._eraYearOrdinalRegex)),rt._locale.eraYearOrdinalParse?tt[YEAR]=rt._locale.eraYearOrdinalParse(et,it):tt[YEAR]=parseInt(et,10)});function localeEras(et,tt){var rt,nt,it,st=this._eras||getLocale("en")._eras;for(rt=0,nt=st.length;rt=0)return st[nt]}function localeErasConvertYear(et,tt){var rt=et.since<=et.until?1:-1;return tt===void 0?hooks(et.since).year():hooks(et.since).year()+(tt-et.offset)*rt}function getEraName(){var et,tt,rt,nt=this.localeData().eras();for(et=0,tt=nt.length;etst&&(tt=st),setWeekAll.call(this,et,tt,rt,nt,it))}function setWeekAll(et,tt,rt,nt,it){var st=dayOfYearFromWeeks(et,tt,rt,nt,it),at=createUTCDate(st.year,0,st.dayOfYear);return this.year(at.getUTCFullYear()),this.month(at.getUTCMonth()),this.date(at.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(et,tt){tt[MONTH]=(toInt(et)-1)*3});function getSetQuarter(et){return et==null?Math.ceil((this.month()+1)/3):this.month((et-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(et,tt){return et?tt._dayOfMonthOrdinalParse||tt._ordinalParse:tt._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(et,tt){tt[DATE]=toInt(et.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(et,tt,rt){rt._dayOfYear=toInt(et)});function getSetDayOfYear(et){var tt=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return et==null?tt:this.add(et-tt,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token$1,getSetMillisecond;for(token$1="SSSS";token$1.length<=9;token$1+="S")addRegexToken(token$1,matchUnsigned);function parseMs(et,tt){tt[MILLISECOND]=toInt(("0."+et)*1e3)}for(token$1="S";token$1.length<=9;token$1+="S")addParseToken(token$1,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto$1=Moment.prototype;proto$1.add=add;proto$1.calendar=calendar$1;proto$1.clone=clone;proto$1.diff=diff;proto$1.endOf=endOf;proto$1.format=format;proto$1.from=from$1;proto$1.fromNow=fromNow;proto$1.to=to;proto$1.toNow=toNow;proto$1.get=stringGet;proto$1.invalidAt=invalidAt;proto$1.isAfter=isAfter;proto$1.isBefore=isBefore;proto$1.isBetween=isBetween;proto$1.isSame=isSame;proto$1.isSameOrAfter=isSameOrAfter;proto$1.isSameOrBefore=isSameOrBefore;proto$1.isValid=isValid$2;proto$1.lang=lang;proto$1.locale=locale;proto$1.localeData=localeData;proto$1.max=prototypeMax;proto$1.min=prototypeMin;proto$1.parsingFlags=parsingFlags;proto$1.set=stringSet;proto$1.startOf=startOf;proto$1.subtract=subtract;proto$1.toArray=toArray$3;proto$1.toObject=toObject$1;proto$1.toDate=toDate;proto$1.toISOString=toISOString;proto$1.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto$1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto$1.toJSON=toJSON;proto$1.toString=toString$2;proto$1.unix=unix;proto$1.valueOf=valueOf;proto$1.creationData=creationData;proto$1.eraName=getEraName;proto$1.eraNarrow=getEraNarrow;proto$1.eraAbbr=getEraAbbr;proto$1.eraYear=getEraYear;proto$1.year=getSetYear;proto$1.isLeapYear=getIsLeapYear;proto$1.weekYear=getSetWeekYear;proto$1.isoWeekYear=getSetISOWeekYear;proto$1.quarter=proto$1.quarters=getSetQuarter;proto$1.month=getSetMonth;proto$1.daysInMonth=getDaysInMonth;proto$1.week=proto$1.weeks=getSetWeek;proto$1.isoWeek=proto$1.isoWeeks=getSetISOWeek;proto$1.weeksInYear=getWeeksInYear;proto$1.weeksInWeekYear=getWeeksInWeekYear;proto$1.isoWeeksInYear=getISOWeeksInYear;proto$1.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto$1.date=getSetDayOfMonth;proto$1.day=proto$1.days=getSetDayOfWeek;proto$1.weekday=getSetLocaleDayOfWeek;proto$1.isoWeekday=getSetISODayOfWeek;proto$1.dayOfYear=getSetDayOfYear;proto$1.hour=proto$1.hours=getSetHour;proto$1.minute=proto$1.minutes=getSetMinute;proto$1.second=proto$1.seconds=getSetSecond;proto$1.millisecond=proto$1.milliseconds=getSetMillisecond;proto$1.utcOffset=getSetOffset;proto$1.utc=setOffsetToUTC;proto$1.local=setOffsetToLocal;proto$1.parseZone=setOffsetToParsedOffset;proto$1.hasAlignedHourOffset=hasAlignedHourOffset;proto$1.isDST=isDaylightSavingTime;proto$1.isLocal=isLocal;proto$1.isUtcOffset=isUtcOffset;proto$1.isUtc=isUtc;proto$1.isUTC=isUtc;proto$1.zoneAbbr=getZoneAbbr;proto$1.zoneName=getZoneName;proto$1.dates=deprecate$1("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto$1.months=deprecate$1("months accessor is deprecated. Use month instead",getSetMonth);proto$1.years=deprecate$1("years accessor is deprecated. Use year instead",getSetYear);proto$1.zone=deprecate$1("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto$1.isDSTShifted=deprecate$1("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(et){return createLocal(et*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(et){return et}var proto$1$1=Locale.prototype;proto$1$1.calendar=calendar;proto$1$1.longDateFormat=longDateFormat;proto$1$1.invalidDate=invalidDate;proto$1$1.ordinal=ordinal;proto$1$1.preparse=preParsePostFormat;proto$1$1.postformat=preParsePostFormat;proto$1$1.relativeTime=relativeTime;proto$1$1.pastFuture=pastFuture;proto$1$1.set=set$1;proto$1$1.eras=localeEras;proto$1$1.erasParse=localeErasParse;proto$1$1.erasConvertYear=localeErasConvertYear;proto$1$1.erasAbbrRegex=erasAbbrRegex;proto$1$1.erasNameRegex=erasNameRegex;proto$1$1.erasNarrowRegex=erasNarrowRegex;proto$1$1.months=localeMonths;proto$1$1.monthsShort=localeMonthsShort;proto$1$1.monthsParse=localeMonthsParse;proto$1$1.monthsRegex=monthsRegex;proto$1$1.monthsShortRegex=monthsShortRegex;proto$1$1.week=localeWeek;proto$1$1.firstDayOfYear=localeFirstDayOfYear;proto$1$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1$1.weekdays=localeWeekdays;proto$1$1.weekdaysMin=localeWeekdaysMin;proto$1$1.weekdaysShort=localeWeekdaysShort;proto$1$1.weekdaysParse=localeWeekdaysParse;proto$1$1.weekdaysRegex=weekdaysRegex;proto$1$1.weekdaysShortRegex=weekdaysShortRegex;proto$1$1.weekdaysMinRegex=weekdaysMinRegex;proto$1$1.isPM=localeIsPM;proto$1$1.meridiem=localeMeridiem;function get$1$1(et,tt,rt,nt){var it=getLocale(),st=createUTC().set(nt,tt);return it[rt](st,et)}function listMonthsImpl(et,tt,rt){if(isNumber$1(et)&&(tt=et,et=void 0),et=et||"",tt!=null)return get$1$1(et,tt,rt,"month");var nt,it=[];for(nt=0;nt<12;nt++)it[nt]=get$1$1(et,nt,rt,"month");return it}function listWeekdaysImpl(et,tt,rt,nt){typeof et=="boolean"?(isNumber$1(tt)&&(rt=tt,tt=void 0),tt=tt||""):(tt=et,rt=tt,et=!1,isNumber$1(tt)&&(rt=tt,tt=void 0),tt=tt||"");var it=getLocale(),st=et?it._week.dow:0,at,ot=[];if(rt!=null)return get$1$1(tt,(rt+st)%7,nt,"day");for(at=0;at<7;at++)ot[at]=get$1$1(tt,(at+st)%7,nt,"day");return ot}function listMonths(et,tt){return listMonthsImpl(et,tt,"months")}function listMonthsShort(et,tt){return listMonthsImpl(et,tt,"monthsShort")}function listWeekdays(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdays")}function listWeekdaysShort(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdaysShort")}function listWeekdaysMin(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdaysMin")}getSetGlobalLocale("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(et){var tt=et%10,rt=toInt(et%100/10)===1?"th":tt===1?"st":tt===2?"nd":tt===3?"rd":"th";return et+rt}});hooks.lang=deprecate$1("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate$1("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs$1(){var et=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),et.milliseconds=mathAbs(et.milliseconds),et.seconds=mathAbs(et.seconds),et.minutes=mathAbs(et.minutes),et.hours=mathAbs(et.hours),et.months=mathAbs(et.months),et.years=mathAbs(et.years),this}function addSubtract$1(et,tt,rt,nt){var it=createDuration(tt,rt);return et._milliseconds+=nt*it._milliseconds,et._days+=nt*it._days,et._months+=nt*it._months,et._bubble()}function add$1(et,tt){return addSubtract$1(this,et,tt,1)}function subtract$1(et,tt){return addSubtract$1(this,et,tt,-1)}function absCeil(et){return et<0?Math.floor(et):Math.ceil(et)}function bubble(){var et=this._milliseconds,tt=this._days,rt=this._months,nt=this._data,it,st,at,ot,lt;return et>=0&&tt>=0&&rt>=0||et<=0&&tt<=0&&rt<=0||(et+=absCeil(monthsToDays(rt)+tt)*864e5,tt=0,rt=0),nt.milliseconds=et%1e3,it=absFloor(et/1e3),nt.seconds=it%60,st=absFloor(it/60),nt.minutes=st%60,at=absFloor(st/60),nt.hours=at%24,tt+=absFloor(at/24),lt=absFloor(daysToMonths(tt)),rt+=lt,tt-=absCeil(monthsToDays(lt)),ot=absFloor(rt/12),rt%=12,nt.days=tt,nt.months=rt,nt.years=ot,this}function daysToMonths(et){return et*4800/146097}function monthsToDays(et){return et*146097/4800}function as(et){if(!this.isValid())return NaN;var tt,rt,nt=this._milliseconds;if(et=normalizeUnits(et),et==="month"||et==="quarter"||et==="year")switch(tt=this._days+nt/864e5,rt=this._months+daysToMonths(tt),et){case"month":return rt;case"quarter":return rt/3;case"year":return rt/12}else switch(tt=this._days+Math.round(monthsToDays(this._months)),et){case"week":return tt/7+nt/6048e5;case"day":return tt+nt/864e5;case"hour":return tt*24+nt/36e5;case"minute":return tt*1440+nt/6e4;case"second":return tt*86400+nt/1e3;case"millisecond":return Math.floor(tt*864e5)+nt;default:throw new Error("Unknown unit "+et)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(et){return function(){return this.as(et)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1(){return createDuration(this)}function get$2(et){return et=normalizeUnits(et),this.isValid()?this[et+"s"]():NaN}function makeGetter(et){return function(){return this.isValid()?this._data[et]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round$1=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(et,tt,rt,nt,it){return it.relativeTime(tt||1,!!rt,et,nt)}function relativeTime$1(et,tt,rt,nt){var it=createDuration(et).abs(),st=round$1(it.as("s")),at=round$1(it.as("m")),ot=round$1(it.as("h")),lt=round$1(it.as("d")),ut=round$1(it.as("M")),dt=round$1(it.as("w")),bt=round$1(it.as("y")),gt=st<=rt.ss&&["s",st]||st0,gt[4]=nt,substituteTimeAgo.apply(null,gt)}function getSetRelativeTimeRounding(et){return et===void 0?round$1:typeof et=="function"?(round$1=et,!0):!1}function getSetRelativeTimeThreshold(et,tt){return thresholds[et]===void 0?!1:tt===void 0?thresholds[et]:(thresholds[et]=tt,et==="s"&&(thresholds.ss=tt-1),!0)}function humanize(et,tt){if(!this.isValid())return this.localeData().invalidDate();var rt=!1,nt=thresholds,it,st;return typeof et=="object"&&(tt=et,et=!1),typeof et=="boolean"&&(rt=et),typeof tt=="object"&&(nt=Object.assign({},thresholds,tt),tt.s!=null&&tt.ss==null&&(nt.ss=tt.s-1)),it=this.localeData(),st=relativeTime$1(this,!rt,nt,it),rt&&(st=it.pastFuture(+this,st)),it.postformat(st)}var abs$1$1=Math.abs;function sign$2(et){return(et>0)-(et<0)||+et}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var et=abs$1$1(this._milliseconds)/1e3,tt=abs$1$1(this._days),rt=abs$1$1(this._months),nt,it,st,at,ot=this.asSeconds(),lt,ut,dt,bt;return ot?(nt=absFloor(et/60),it=absFloor(nt/60),et%=60,nt%=60,st=absFloor(rt/12),rt%=12,at=et?et.toFixed(3).replace(/\.?0+$/,""):"",lt=ot<0?"-":"",ut=sign$2(this._months)!==sign$2(ot)?"-":"",dt=sign$2(this._days)!==sign$2(ot)?"-":"",bt=sign$2(this._milliseconds)!==sign$2(ot)?"-":"",lt+"P"+(st?ut+st+"Y":"")+(rt?ut+rt+"M":"")+(tt?dt+tt+"D":"")+(it||nt||et?"T":"")+(it?bt+it+"H":"")+(nt?bt+nt+"M":"")+(et?bt+at+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs$1;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate$1("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(et,tt,rt){rt._d=new Date(parseFloat(et)*1e3)});addParseToken("x",function(et,tt,rt){rt._d=new Date(toInt(et))});//! moment.js -hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min;hooks.max=max$1;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$1;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.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"};const{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://bitcoin.sphinx.chat";function apiUrlFromSwarmHost(){let tt=window.location.origin;if(host.includes("swarm")){if(host.startsWith("nav")){const rt=host.split(".");rt[0]="boltwall",tt=`https://${rt.join(".")}`}}else origin$1.includes("localhost")&&(tt="https://bitcoin.sphinx.chat");return`${tt}/api`}function removeApi(et){const tt=/\/api$/;return et.replace(tt,"")}const{origin}=window.location;hooks.relativeTimeThreshold("h",24);hooks.updateLocale("en",{relativeTime:{s:et=>`${et} ${et>1?"seconds":"second"}`,m:"1 minute",h:et=>`${et} ${et>1?"hours":"hour"}`,d:"1 day",M:"1 month"}});const isDevelopment=origin==="http://localhost:3000"||origin==="http://localhost:3001"||origin==="https://sphinx-jarvis-david.sphinx1.repl.co";API_URL.includes("boltwall");const GRAPH_FOG_COLOR="blue",GRAPH_GROUND_COLOR=13421772,GRAPH_LIGHT_INTENSITY=.8,NODE_ADD_ERROR="Submission failed, please try again.",NODE_RELATIVE_HIGHLIGHT_COLORS={children:{nodeColor:"green",segmentColor:4063109},guests:{nodeColor:"purple",segmentColor:14504191},topics:{nodeColor:"purple",segmentColor:5273842},pathway:{nodeColor:"#ffffff",segmentColor:16777215}},LINK="link",TWITTER_HANDLE="twitter_handle",GITHUB_REPOSITORY="github_repository",YOUTUBE_CHANNEL="youtube_channel",WEB_PAGE="web_page",RSS="rss",TWITTER_SOURCE="tweet",DOCUMENT="document",isE2E=!!{}.VITE_APP_IS_E2E,requiredRule={required:{message:"The field is required",value:!0}},assertNever=et=>{throw new Error(`Unexpected object: ${et}`)};var dist$3={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(et){var tt=window;if(tt.sendToElectron)return tt.sendToElectron("sphinx-bridge",et);tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?tt.ReactNativeWebView.postMessage(JSON.stringify(et)):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.webkit.messageHandlers.sphinx.postMessage(et):tt.Android?tt.Android.receiveMessage(JSON.stringify(et)):tt.parent.postMessage(et,"*")}postMessage$1.postMessage=postMessage;function addEventer(et){var tt=window;if(tt.sendToElectron){tt.EE&&tt.EE.once("sphinx-bridge",et);return}else tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.addEventListener("message",function(rt){var nt={};try{nt=JSON.parse(rt.data)}catch{}et({data:nt})}):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.Android?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.addEventListener("message",et)}postMessage$1.addEventer=addEventer;function removeEventer(et){var tt=window;tt.sendToElectron||(tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.removeEventListener("message",et):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx||tt.Android?tt.sphinxMessage=null:tt.removeEventListener("message",et))}postMessage$1.removeEventer=removeEventer;(function(et){var tt=commonjsGlobal&&commonjsGlobal.__assign||function(){return tt=Object.assign||function(lt){for(var ut,dt=1,bt=arguments.length;dt0&&kt[kt.length-1])&&(mt[0]===6||mt[0]===2)){dt=0;continue}if(mt[0]===3&&(!kt||mt[1]>kt[0]&&mt[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:at}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.AUTHORIZE)];case 2:return dt=gt.sent(),dt.pubkey?(this.isEnabled=!0,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.authorize=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt,pt,yt;return nt(this,function($t){switch($t.label){case 0:bt&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),$t.label=1;case 1:return $t.trys.push([1,3,,4]),gt=dt||!1,[4,this.postMsg(st.AUTHORIZE,{challenge:ut,noBudget:gt})];case 2:return kt=$t.sent(),pt=kt.budget||kt.budget===0,(gt||pt)&&kt.pubkey?(this.isEnabled=!0,this.budget=kt.budget||0,this.pubkey=kt.pubkey,[2,kt]):[3,4];case 3:return yt=$t.sent(),this.logging&&console.log(yt),[3,4];case 4:return[2,null]}})})},lt.prototype.topup=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:this.logging&&console.log("=> TOP UP"),gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.keysend=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt,kt;return nt(this,function(pt){switch(pt.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!ut||!dt)return[2,null];if(ut.length!==66)return[2,null];if(dt<1)return[2,null];if(dt>this.budget)return[2,null];pt.label=1;case 1:return pt.trys.push([1,3,,4]),bt={dest:ut,amt:dt},[4,this.postMsg(st.KEYSEND,bt)];case 2:return gt=pt.sent(),gt&>.success&&(this.budget=this.budget-dt,gt.budget=this.budget),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,null];case 4:return[2]}})})},lt.prototype.updated=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATED)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.sendPayment=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.PAYMENT,{paymentRequest:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.saveLsat=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt;return nt(this,function(pt){switch(pt.label){case 0:this.logging&&console.log("=> SAVE LSAT"),pt.label=1;case 1:return pt.trys.push([1,3,,4]),[4,this.postMsg(st.LSAT,{paymentRequest:ut,macaroon:dt,issuer:bt})];case 2:return gt=pt.sent(),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,kt];case 4:return[2]}})})},lt.prototype.getLsat=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETLSAT,{issuer:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,bt];case 4:return[2]}})})},lt.prototype.updateLsat=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATELSAT,{identifier:ut,status:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,gt];case 4:return[2]}})})},lt.prototype.makeInvoice=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.INVOICE,{amt:ut,memo:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.signMessage=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{message:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.verifyMessage=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{signature:ut,message:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.reload=function(ut){return rt(this,void 0,void 0,function(){var dt,bt,gt;return nt(this,function(kt){switch(kt.label){case 0:this.logging&&console.log("=> RELOAD"),kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.RELOAD,{password:ut})];case 2:return dt=kt.sent(),bt=dt.budget||dt.budget===0,bt&&dt.pubkey?(this.isEnabled=!0,this.budget=dt.budget,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[3,4];case 4:return[2,null]}})})},lt.prototype.saveGraphData=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SAVEDATA,{data:{type:ut.type,metaData:ut.metaData}})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getPersonData=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETPERSONDATA)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.getBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.setBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getSignedToken=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETSIGNEDTOKEN"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETSIGNEDTOKEN)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.postMsg=function(ut,dt){var bt,gt=this;gt.active&&Promise.reject(new Error("User is busy")),gt.active=ut;var kt=window;return!((bt=kt.kmpJsBridge)===null||bt===void 0)&&bt.callNative?new Promise(function(pt,yt){kt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(tt({application:at,type:ut},dt||{})),function($t){var mt={};try{mt=JSON.parse($t)}catch{}Object.keys(mt).length===0||mt.application!==at||(gt.active=null,mt.error?yt(mt.error):pt(mt))})}):new Promise(function(pt,yt){it.postMessage(tt({application:at,type:ut},dt||{}));function $t(mt){!mt.data||mt.data.application!==at||(mt.data.error?(gt.active=null,yt(mt.data.error)):(gt.active=null,pt(mt.data)),it.removeEventer($t))}it.addEventer($t)})},lt}();et.default=ot})(lib$2);var dist$2=dist$3.exports;Object.defineProperty(dist$2,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$3.exports=sphinx;var distExports$1=dist$3.exports;const sphinx$1=getDefaultExportFromCjs(distExports$1),request=async(et,tt,rt)=>{let nt=et;const it=new URL(et),st=new URLSearchParams(it.search),at=await getSignedMessageFromRelay();st.append("sig",at.signature),st.append("msg",at.message),it.search=st.toString(),nt=it.toString();const ot=new AbortController,lt=rt||ot.signal,ut=await fetch(nt,{...tt,signal:lt});if(!ut.ok)throw ut;return ut.json()},api$1={delete:(et,tt,rt)=>request(`${API_URL}${et}`,{headers:{...tt,"Content-Type":"application/json"},method:"DELETE"},rt),get:(et,tt,rt)=>request(`${API_URL}${et}`,tt?{headers:tt}:void 0,rt),post:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"POST"},nt),put:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"PUT"},nt)},colors={black:"rgb(0, 0, 0)",appearanceBg:"rgba(60, 64, 83, 0.3)",disableBtn:"rgba(35, 37, 47, 0.8)",bluePressState:"rgb(57, 97, 220)",addAttributeBtn:"rgba(107, 122, 141, 0.25)",blueTextAccent:"rgb(130, 180, 255)",colorPickerThing:"rgba(255, 158, 239, 1)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",BG4:"rgba(30, 30, 35, 0.9)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)",CLIP:"rgba(143, 38, 44, 1)",TEXT:"rgba(40, 74, 178, 1)",SHOW:"rgba(79, 111, 24, 1)",EPISODE:"rgba(109, 33, 151, 1)",ORGANIZATION:"rgba(153, 62, 19, 1)",TWEET:"rgba(22, 23, 29, 1)",PERSON:"rgba(7, 105, 82, 1)",EVENT:"rgba(137, 107, 0, 1)",TOPIC:"rgba(255, 255, 255, 0.85)",THING:"rgba(150, 39, 119, 1)",SUCESS:"rgba(73, 201, 152, 1)",SEEDQUESTION:"rgba(47, 58, 89, 1)",SEEDQUESTION_HOVER:"rgba(38, 42, 58, 1)",COLLAPSE_BUTTON:"rgba(48, 51, 66, 1)",SOURCE_TABLE_LINK:"rgba(171, 204, 254, 1)",AI_HIGHLIGHT:"rgba(0, 123, 255, 0.1)",createTestButton:"rgb(178, 255, 102)",MESSAGE_BG:"rgba(22, 22, 29, 0.89)",MESSAGE_BG_HOVER:"rgba(35, 37, 47, 0.3)",DIVIDER_4:"rgba(46, 55, 67, 1)",INPUT_BG:"rgba(255, 255, 255, 0.05)",INPUT_PLACEHOLDER:"rgba(255, 255, 255, 0.5)",HOVER_CARD_BG:"rgba(41, 44, 54, 1)"},nodes=[];function getCurrentUser(){if(window.CYPRESS_USER){const et=window.CYPRESS_USER;let tt;for(let rt=0;rtenableSphinx(),getLsat:async et=>getLsatSphinx(et),signMessage:async et=>signMessage(et),setBudget:async()=>setBudget(),saveLsat:async(et,tt,rt)=>saveLsat(et,tt,rt)},isSphinx=()=>sessionStorage.getItem("isSphinx")==="true",getLSat=async()=>{var et;try{const tt=(et=window.localStorage)==null?void 0:et.getItem("lsat");if(tt){const rt=JSON.parse(tt);return lsatToken(rt.macaroon,rt.preimage)}if(isSphinx()){let rt;const{host:nt}=window.location;return isE2E?rt=await sphinxBridge.getLsat(nt):rt=await distExports$1.getLsat(nt),rt.macaroon?(window.localStorage.setItem("lsat",JSON.stringify({macaroon:rt.macaroon,identifier:rt.identifier,preimage:rt.preimage})),lsatToken(rt.macaroon,rt.preimage)):""}return""}catch(tt){return console.warn(tt),""}};function lsatToken(et,tt){return`LSAT ${et}:${tt}`}var lodash={exports:{}};/** +hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min;hooks.max=max$1;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$1;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.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"};const{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://bitcoin.sphinx.chat";function apiUrlFromSwarmHost(){let tt=window.location.origin;if(host.includes("swarm")){if(host.startsWith("nav")){const rt=host.split(".");rt[0]="boltwall",tt=`https://${rt.join(".")}`}}else origin$1.includes("localhost")&&(tt="https://bitcoin.sphinx.chat");return`${tt}/api`}function removeApi(et){const tt=/\/api$/;return et.replace(tt,"")}const{origin}=window.location;hooks.relativeTimeThreshold("h",24);hooks.updateLocale("en",{relativeTime:{s:et=>`${et} ${et>1?"seconds":"second"}`,m:"1 minute",h:et=>`${et} ${et>1?"hours":"hour"}`,d:"1 day",M:"1 month"}});const isDevelopment=origin==="http://localhost:3000"||origin==="http://localhost:3001"||origin==="https://sphinx-jarvis-david.sphinx1.repl.co";API_URL.includes("boltwall");const GRAPH_GROUND_COLOR=13421772,GRAPH_LIGHT_INTENSITY=.8,NODE_ADD_ERROR="Submission failed, please try again.",NODE_RELATIVE_HIGHLIGHT_COLORS={children:{nodeColor:"green",segmentColor:4063109},guests:{nodeColor:"purple",segmentColor:14504191},topics:{nodeColor:"purple",segmentColor:5273842},pathway:{nodeColor:"#ffffff",segmentColor:16777215}},LINK="link",TWITTER_HANDLE="twitter_handle",GITHUB_REPOSITORY="github_repository",YOUTUBE_CHANNEL="youtube_channel",WEB_PAGE="web_page",RSS="rss",TWITTER_SOURCE="tweet",DOCUMENT="document",isE2E=!!{}.VITE_APP_IS_E2E,requiredRule={required:{message:"The field is required",value:!0}},assertNever=et=>{throw new Error(`Unexpected object: ${et}`)};var dist$3={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(et){var tt=window;if(tt.sendToElectron)return tt.sendToElectron("sphinx-bridge",et);tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?tt.ReactNativeWebView.postMessage(JSON.stringify(et)):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.webkit.messageHandlers.sphinx.postMessage(et):tt.Android?tt.Android.receiveMessage(JSON.stringify(et)):tt.parent.postMessage(et,"*")}postMessage$1.postMessage=postMessage;function addEventer(et){var tt=window;if(tt.sendToElectron){tt.EE&&tt.EE.once("sphinx-bridge",et);return}else tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.addEventListener("message",function(rt){var nt={};try{nt=JSON.parse(rt.data)}catch{}et({data:nt})}):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.Android?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.addEventListener("message",et)}postMessage$1.addEventer=addEventer;function removeEventer(et){var tt=window;tt.sendToElectron||(tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.removeEventListener("message",et):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx||tt.Android?tt.sphinxMessage=null:tt.removeEventListener("message",et))}postMessage$1.removeEventer=removeEventer;(function(et){var tt=commonjsGlobal&&commonjsGlobal.__assign||function(){return tt=Object.assign||function(lt){for(var ut,dt=1,bt=arguments.length;dt0&&kt[kt.length-1])&&(mt[0]===6||mt[0]===2)){dt=0;continue}if(mt[0]===3&&(!kt||mt[1]>kt[0]&&mt[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:at}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.AUTHORIZE)];case 2:return dt=gt.sent(),dt.pubkey?(this.isEnabled=!0,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.authorize=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt,pt,yt;return nt(this,function($t){switch($t.label){case 0:bt&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),$t.label=1;case 1:return $t.trys.push([1,3,,4]),gt=dt||!1,[4,this.postMsg(st.AUTHORIZE,{challenge:ut,noBudget:gt})];case 2:return kt=$t.sent(),pt=kt.budget||kt.budget===0,(gt||pt)&&kt.pubkey?(this.isEnabled=!0,this.budget=kt.budget||0,this.pubkey=kt.pubkey,[2,kt]):[3,4];case 3:return yt=$t.sent(),this.logging&&console.log(yt),[3,4];case 4:return[2,null]}})})},lt.prototype.topup=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:this.logging&&console.log("=> TOP UP"),gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.keysend=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt,kt;return nt(this,function(pt){switch(pt.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!ut||!dt)return[2,null];if(ut.length!==66)return[2,null];if(dt<1)return[2,null];if(dt>this.budget)return[2,null];pt.label=1;case 1:return pt.trys.push([1,3,,4]),bt={dest:ut,amt:dt},[4,this.postMsg(st.KEYSEND,bt)];case 2:return gt=pt.sent(),gt&>.success&&(this.budget=this.budget-dt,gt.budget=this.budget),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,null];case 4:return[2]}})})},lt.prototype.updated=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATED)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.sendPayment=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.PAYMENT,{paymentRequest:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.saveLsat=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt;return nt(this,function(pt){switch(pt.label){case 0:this.logging&&console.log("=> SAVE LSAT"),pt.label=1;case 1:return pt.trys.push([1,3,,4]),[4,this.postMsg(st.LSAT,{paymentRequest:ut,macaroon:dt,issuer:bt})];case 2:return gt=pt.sent(),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,kt];case 4:return[2]}})})},lt.prototype.getLsat=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETLSAT,{issuer:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,bt];case 4:return[2]}})})},lt.prototype.updateLsat=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATELSAT,{identifier:ut,status:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,gt];case 4:return[2]}})})},lt.prototype.makeInvoice=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.INVOICE,{amt:ut,memo:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.signMessage=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{message:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.verifyMessage=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{signature:ut,message:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.reload=function(ut){return rt(this,void 0,void 0,function(){var dt,bt,gt;return nt(this,function(kt){switch(kt.label){case 0:this.logging&&console.log("=> RELOAD"),kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.RELOAD,{password:ut})];case 2:return dt=kt.sent(),bt=dt.budget||dt.budget===0,bt&&dt.pubkey?(this.isEnabled=!0,this.budget=dt.budget,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[3,4];case 4:return[2,null]}})})},lt.prototype.saveGraphData=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SAVEDATA,{data:{type:ut.type,metaData:ut.metaData}})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getPersonData=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETPERSONDATA)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.getBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.setBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getSignedToken=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETSIGNEDTOKEN"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETSIGNEDTOKEN)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.postMsg=function(ut,dt){var bt,gt=this;gt.active&&Promise.reject(new Error("User is busy")),gt.active=ut;var kt=window;return!((bt=kt.kmpJsBridge)===null||bt===void 0)&&bt.callNative?new Promise(function(pt,yt){kt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(tt({application:at,type:ut},dt||{})),function($t){var mt={};try{mt=JSON.parse($t)}catch{}Object.keys(mt).length===0||mt.application!==at||(gt.active=null,mt.error?yt(mt.error):pt(mt))})}):new Promise(function(pt,yt){it.postMessage(tt({application:at,type:ut},dt||{}));function $t(mt){!mt.data||mt.data.application!==at||(mt.data.error?(gt.active=null,yt(mt.data.error)):(gt.active=null,pt(mt.data)),it.removeEventer($t))}it.addEventer($t)})},lt}();et.default=ot})(lib$2);var dist$2=dist$3.exports;Object.defineProperty(dist$2,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$3.exports=sphinx;var distExports$1=dist$3.exports;const sphinx$1=getDefaultExportFromCjs(distExports$1),request=async(et,tt,rt)=>{let nt=et;const it=new URL(et),st=new URLSearchParams(it.search),at=await getSignedMessageFromRelay();st.append("sig",at.signature),st.append("msg",at.message),it.search=st.toString(),nt=it.toString();const ot=new AbortController,lt=rt||ot.signal,ut=await fetch(nt,{...tt,signal:lt});if(!ut.ok)throw ut;return ut.json()},api$1={delete:(et,tt,rt)=>request(`${API_URL}${et}`,{headers:{...tt,"Content-Type":"application/json"},method:"DELETE"},rt),get:(et,tt,rt)=>request(`${API_URL}${et}`,tt?{headers:tt}:void 0,rt),post:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"POST"},nt),put:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"PUT"},nt)},colors={black:"rgb(0, 0, 0)",appearanceBg:"rgba(60, 64, 83, 0.3)",disableBtn:"rgba(35, 37, 47, 0.8)",bluePressState:"rgb(57, 97, 220)",addAttributeBtn:"rgba(107, 122, 141, 0.25)",blueTextAccent:"rgb(130, 180, 255)",colorPickerThing:"rgba(255, 158, 239, 1)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",BG4:"rgba(30, 30, 35, 0.9)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)",CLIP:"rgba(143, 38, 44, 1)",TEXT:"rgba(40, 74, 178, 1)",SHOW:"rgba(79, 111, 24, 1)",EPISODE:"rgba(109, 33, 151, 1)",ORGANIZATION:"rgba(153, 62, 19, 1)",TWEET:"rgba(22, 23, 29, 1)",PERSON:"rgba(7, 105, 82, 1)",EVENT:"rgba(137, 107, 0, 1)",TOPIC:"rgba(255, 255, 255, 0.85)",THING:"rgba(150, 39, 119, 1)",SUCESS:"rgba(73, 201, 152, 1)",SEEDQUESTION:"rgba(47, 58, 89, 1)",SEEDQUESTION_HOVER:"rgba(38, 42, 58, 1)",COLLAPSE_BUTTON:"rgba(48, 51, 66, 1)",SOURCE_TABLE_LINK:"rgba(171, 204, 254, 1)",AI_HIGHLIGHT:"rgba(0, 123, 255, 0.1)",createTestButton:"rgb(178, 255, 102)",MESSAGE_BG:"rgba(22, 22, 29, 0.89)",MESSAGE_BG_HOVER:"rgba(35, 37, 47, 0.3)",DIVIDER_4:"rgba(46, 55, 67, 1)",INPUT_BG:"rgba(255, 255, 255, 0.05)",INPUT_PLACEHOLDER:"rgba(255, 255, 255, 0.5)",HOVER_CARD_BG:"rgba(41, 44, 54, 1)"},nodes=[];function getCurrentUser(){if(window.CYPRESS_USER){const et=window.CYPRESS_USER;let tt;for(let rt=0;rtenableSphinx(),getLsat:async et=>getLsatSphinx(et),signMessage:async et=>signMessage(et),setBudget:async()=>setBudget(),saveLsat:async(et,tt,rt)=>saveLsat(et,tt,rt)},isSphinx=()=>sessionStorage.getItem("isSphinx")==="true",getLSat=async()=>{var et;try{const tt=(et=window.localStorage)==null?void 0:et.getItem("lsat");if(tt){const rt=JSON.parse(tt);return lsatToken(rt.macaroon,rt.preimage)}if(isSphinx()){let rt;const{host:nt}=window.location;return isE2E?rt=await sphinxBridge.getLsat(nt):rt=await distExports$1.getLsat(nt),rt.macaroon?(window.localStorage.setItem("lsat",JSON.stringify({macaroon:rt.macaroon,identifier:rt.identifier,preimage:rt.preimage})),lsatToken(rt.macaroon,rt.preimage)):""}return""}catch(tt){return console.warn(tt),""}};function lsatToken(et,tt){return`LSAT ${et}:${tt}`}var lodash={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */lodash.exports;(function(et,tt){(function(){var rt,nt="4.17.21",it=200,st="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",at="Expected a function",ot="Invalid `variable` option passed into `_.template`",lt="__lodash_hash_undefined__",ut=500,dt="__lodash_placeholder__",bt=1,gt=2,kt=4,pt=1,yt=2,$t=1,mt=2,wt=4,St=8,Bt=16,Ft=32,Dt=64,zt=128,Ht=256,Wt=512,lr=30,qt="...",Ot=800,Mt=16,ht=1,Et=2,Tt=3,Rt=1/0,At=9007199254740991,Pt=17976931348623157e292,It=0/0,Ct=4294967295,xt=Ct-1,Lt=Ct>>>1,tr=[["ary",zt],["bind",$t],["bindKey",mt],["curry",St],["curryRight",Bt],["flip",Wt],["partial",Ft],["partialRight",Dt],["rearg",Ht]],pr="[object Arguments]",Kt="[object Array]",Qt="[object AsyncFunction]",Zt="[object Boolean]",ur="[object Date]",_r="[object DOMException]",er="[object Error]",Jt="[object Function]",Ar="[object GeneratorFunction]",Er="[object Map]",Dr="[object Number]",Xr="[object Null]",Vr="[object Object]",wr="[object Promise]",br="[object Proxy]",or="[object RegExp]",xr="[object Set]",Pr="[object String]",Or="[object Symbol]",rr="[object Undefined]",gr="[object WeakMap]",Ir="[object WeakSet]",Yt="[object ArrayBuffer]",Ut="[object DataView]",Vt="[object Float32Array]",ir="[object Float64Array]",kr="[object Int8Array]",$r="[object Int16Array]",Br="[object Int32Array]",an="[object Uint8Array]",ln="[object Uint8ClampedArray]",rn="[object Uint16Array]",kn="[object Uint32Array]",fn=/\b__p \+= '';/g,gn=/\b(__p \+=) '' \+/g,fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ln=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,hs=RegExp(Ln.source),Cn=RegExp(En.source),xn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,_n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ls=/^\w*$/,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dn=/[\\^$.*+?()[\]{}|]/g,cs=RegExp(dn.source),Xt=/^\s+/,ar=/\s/,cr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jt=/\{\n\/\* \[wrapped with (.+)\] \*/,dr=/,? & /,Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cr=/[()=,{}\[\]\/\s]/,Nr=/\\(\\)?/g,Yr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tn=/\w*$/,qr=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,hn=/^\[object .+?Constructor\]$/,Tn=/^0o[0-7]+$/i,An=/^(?:0|[1-9]\d*)$/,Rn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pn=/($^)/,In=/['\n\r\u2028\u2029\\]/g,$n="\\ud800-\\udfff",Bn="\\u0300-\\u036f",pn="\\ufe20-\\ufe2f",wn="\\u20d0-\\u20ff",un=Bn+pn+wn,yn="\\u2700-\\u27bf",mn="a-z\\xdf-\\xf6\\xf8-\\xff",cn="\\xac\\xb1\\xd7\\xf7",Ur="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jr="\\u2000-\\u206f",en=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gr="A-Z\\xc0-\\xd6\\xd8-\\xde",Zr="\\ufe0e\\ufe0f",sn=cn+Ur+jr+en,On="['’]",zn="["+$n+"]",Gn="["+sn+"]",Hn="["+un+"]",Tr="\\d+",Yn="["+yn+"]",es="["+mn+"]",ts="[^"+$n+sn+Tr+yn+mn+Gr+"]",Wn="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Hn+"|"+Wn+")",Qn="[^"+$n+"]",vs="(?:\\ud83c[\\udde6-\\uddff]){2}",os="[\\ud800-\\udbff][\\udc00-\\udfff]",ps="["+Gr+"]",bs="\\u200d",xs="(?:"+es+"|"+ts+")",Ss="(?:"+ps+"|"+ts+")",As="(?:"+On+"(?:d|ll|m|re|s|t|ve))?",Ps="(?:"+On+"(?:D|LL|M|RE|S|T|VE))?",Is=rs+"?",$u="["+Zr+"]?",Lp="(?:"+bs+"(?:"+[Qn,vs,os].join("|")+")"+$u+Is+")*",Dp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Up="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tu=$u+Is+Lp,jp="(?:"+[Yn,vs,os].join("|")+")"+Tu,Vp="(?:"+[Qn+Hn+"?",Hn,vs,os,zn].join("|")+")",Hp=RegExp(On,"g"),zp=RegExp(Hn,"g"),X0=RegExp(Wn+"(?="+Wn+")|"+Vp+Tu,"g"),Gp=RegExp([ps+"?"+es+"+"+As+"(?="+[Gn,ps,"$"].join("|")+")",Ss+"+"+Ps+"(?="+[Gn,ps+xs,"$"].join("|")+")",ps+"?"+xs+"+"+As,ps+"+"+Ps,Up,Dp,Tr,jp].join("|"),"g"),Wp=RegExp("["+bs+$n+un+Zr+"]"),qp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yp=-1,ws={};ws[Vt]=ws[ir]=ws[kr]=ws[$r]=ws[Br]=ws[an]=ws[ln]=ws[rn]=ws[kn]=!0,ws[pr]=ws[Kt]=ws[Yt]=ws[Zt]=ws[Ut]=ws[ur]=ws[er]=ws[Jt]=ws[Er]=ws[Dr]=ws[Vr]=ws[or]=ws[xr]=ws[Pr]=ws[gr]=!1;var gs={};gs[pr]=gs[Kt]=gs[Yt]=gs[Ut]=gs[Zt]=gs[ur]=gs[Vt]=gs[ir]=gs[kr]=gs[$r]=gs[Br]=gs[Er]=gs[Dr]=gs[Vr]=gs[or]=gs[xr]=gs[Pr]=gs[Or]=gs[an]=gs[ln]=gs[rn]=gs[kn]=!0,gs[er]=gs[Jt]=gs[gr]=!1;var Xp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zp={"&":"&","<":"<",">":">",'"':""","'":"'"},Jp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ey=parseFloat,ty=parseInt,Au=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ry=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Au||ry||Function("return this")(),Z0=tt&&!tt.nodeType&&tt,$o=Z0&&!0&&et&&!et.nodeType&&et,Pu=$o&&$o.exports===Z0,J0=Pu&&Au.process,Zs=function(){try{var Fr=$o&&$o.require&&$o.require("util").types;return Fr||J0&&J0.binding&&J0.binding("util")}catch{}}(),Iu=Zs&&Zs.isArrayBuffer,Bu=Zs&&Zs.isDate,Mu=Zs&&Zs.isMap,Cu=Zs&&Zs.isRegExp,Ru=Zs&&Zs.isSet,Ou=Zs&&Zs.isTypedArray;function Gs(Fr,Wr,Hr){switch(Hr.length){case 0:return Fr.call(Wr);case 1:return Fr.call(Wr,Hr[0]);case 2:return Fr.call(Wr,Hr[0],Hr[1]);case 3:return Fr.call(Wr,Hr[0],Hr[1],Hr[2])}return Fr.apply(Wr,Hr)}function ny(Fr,Wr,Hr,Sn){for(var qn=-1,us=Fr==null?0:Fr.length;++qn-1}function Q0(Fr,Wr,Hr){for(var Sn=-1,qn=Fr==null?0:Fr.length;++Sn-1;);return Hr}function Hu(Fr,Wr){for(var Hr=Fr.length;Hr--&&Oo(Wr,Fr[Hr],0)>-1;);return Hr}function hy(Fr,Wr){for(var Hr=Fr.length,Sn=0;Hr--;)Fr[Hr]===Wr&&++Sn;return Sn}var dy=_l(Xp),py=_l(Zp);function yy(Fr){return"\\"+Qp[Fr]}function my(Fr,Wr){return Fr==null?rt:Fr[Wr]}function Fo(Fr){return Wp.test(Fr)}function gy(Fr){return qp.test(Fr)}function vy(Fr){for(var Wr,Hr=[];!(Wr=Fr.next()).done;)Hr.push(Wr.value);return Hr}function Tl(Fr){var Wr=-1,Hr=Array(Fr.size);return Fr.forEach(function(Sn,qn){Hr[++Wr]=[qn,Sn]}),Hr}function zu(Fr,Wr){return function(Hr){return Fr(Wr(Hr))}}function bo(Fr,Wr){for(var Hr=-1,Sn=Fr.length,qn=0,us=[];++Hr-1}function s2(ct,vt){var Nt=this.__data__,Gt=T0(Nt,ct);return Gt<0?(++this.size,Nt.push([ct,vt])):Nt[Gt][1]=vt,this}oo.prototype.clear=t2,oo.prototype.delete=r2,oo.prototype.get=n2,oo.prototype.has=i2,oo.prototype.set=s2;function fo(ct){var vt=-1,Nt=ct==null?0:ct.length;for(this.clear();++vt=vt?ct:vt)),ct}function ga(ct,vt,Nt,Gt,nr,vr){var Sr,Mr=vt&bt,Lr=vt>,Jr=vt&kt;if(Nt&&(Sr=nr?Nt(ct,Gt,nr,vr):Nt(ct)),Sr!==rt)return Sr;if(!ks(ct))return ct;var Qr=Kn(ct);if(Qr){if(Sr=cm(ct),!Mr)return js(ct,Sr)}else{var nn=Ns(ct),vn=nn==Jt||nn==Ar;if(So(ct))return $1(ct,Mr);if(nn==Vr||nn==pr||vn&&!nr){if(Sr=Lr||vn?{}:G1(ct),!Mr)return Lr?J2(ct,w2(Sr,ct)):Z2(ct,t1(Sr,ct))}else{if(!gs[nn])return nr?ct:{};Sr=um(ct,nn,Mr)}}vr||(vr=new eo);var Mn=vr.get(ct);if(Mn)return Mn;vr.set(ct,Sr),wp(ct)?ct.forEach(function(Un){Sr.add(ga(Un,vt,Nt,Un,ct,vr))}):bp(ct)&&ct.forEach(function(Un,_i){Sr.set(_i,ga(Un,vt,Nt,_i,ct,vr))});var Dn=Jr?Lr?ru:tu:Lr?Hs:Cs,Zn=Qr?rt:Dn(ct);return Js(Zn||ct,function(Un,_i){Zn&&(_i=Un,Un=ct[_i]),t0(Sr,_i,ga(Un,vt,Nt,_i,ct,vr))}),Sr}function _2(ct){var vt=Cs(ct);return function(Nt){return r1(Nt,ct,vt)}}function r1(ct,vt,Nt){var Gt=Nt.length;if(ct==null)return!Gt;for(ct=ms(ct);Gt--;){var nr=Nt[Gt],vr=vt[nr],Sr=ct[nr];if(Sr===rt&&!(nr in ct)||!vr(Sr))return!1}return!0}function n1(ct,vt,Nt){if(typeof ct!="function")throw new Qs(at);return f0(function(){ct.apply(rt,Nt)},vt)}function r0(ct,vt,Nt,Gt){var nr=-1,vr=c0,Sr=!0,Mr=ct.length,Lr=[],Jr=vt.length;if(!Mr)return Lr;Nt&&(vt=_s(vt,Ws(Nt))),Gt?(vr=Q0,Sr=!1):vt.length>=it&&(vr=Yo,Sr=!1,vt=new Po(vt));e:for(;++nrnr?0:nr+Nt),Gt=Gt===rt||Gt>nr?nr:Xn(Gt),Gt<0&&(Gt+=nr),Gt=Nt>Gt?0:kp(Gt);Nt0&&Nt(Mr)?vt>1?Os(Mr,vt-1,Nt,Gt,nr):vo(nr,Mr):Gt||(nr[nr.length]=Mr)}return nr}var Rl=M1(),a1=M1(!0);function io(ct,vt){return ct&&Rl(ct,vt,Cs)}function Ol(ct,vt){return ct&&a1(ct,vt,Cs)}function P0(ct,vt){return go(vt,function(Nt){return po(ct[Nt])})}function Bo(ct,vt){vt=ko(vt,ct);for(var Nt=0,Gt=vt.length;ct!=null&&Ntvt}function S2(ct,vt){return ct!=null&&ys.call(ct,vt)}function $2(ct,vt){return ct!=null&&vt in ms(ct)}function T2(ct,vt,Nt){return ct>=Fs(vt,Nt)&&ct=120&&Qr.length>=120)?new Po(Sr&&Qr):rt}Qr=ct[0];var nn=-1,vn=Mr[0];e:for(;++nn-1;)Mr!==ct&&x0.call(Mr,Lr,1),x0.call(ct,Lr,1);return ct}function g1(ct,vt){for(var Nt=ct?vt.length:0,Gt=Nt-1;Nt--;){var nr=vt[Nt];if(Nt==Gt||nr!==vr){var vr=nr;ho(nr)?x0.call(ct,nr,1):Yl(ct,nr)}}return ct}function Hl(ct,vt){return ct+k0(Ju()*(vt-ct+1))}function U2(ct,vt,Nt,Gt){for(var nr=-1,vr=Ms(_0((vt-ct)/(Nt||1)),0),Sr=Hr(vr);vr--;)Sr[Gt?vr:++nr]=ct,ct+=Nt;return Sr}function Gl(ct,vt){var Nt="";if(!ct||vt<1||vt>At)return Nt;do vt%2&&(Nt+=ct),vt=k0(vt/2),vt&&(ct+=ct);while(vt);return Nt}function Jn(ct,vt){return lu(K1(ct,vt,zs),ct+"")}function j2(ct){return e1(qo(ct))}function V2(ct,vt){var Nt=qo(ct);return U0(Nt,Io(vt,0,Nt.length))}function s0(ct,vt,Nt,Gt){if(!ks(ct))return ct;vt=ko(vt,ct);for(var nr=-1,vr=vt.length,Sr=vr-1,Mr=ct;Mr!=null&&++nrnr?0:nr+vt),Nt=Nt>nr?nr:Nt,Nt<0&&(Nt+=nr),nr=vt>Nt?0:Nt-vt>>>0,vt>>>=0;for(var vr=Hr(nr);++Gt>>1,Sr=ct[vr];Sr!==null&&!Ks(Sr)&&(Nt?Sr<=vt:Sr=it){var Jr=vt?null:rm(ct);if(Jr)return h0(Jr);Sr=!1,nr=Yo,Lr=new Po}else Lr=vt?[]:Mr;e:for(;++Gt=Gt?ct:ba(ct,vt,Nt)}var S1=Cy||function(ct){return Rs.clearTimeout(ct)};function $1(ct,vt){if(vt)return ct.slice();var Nt=ct.length,Gt=qu?qu(Nt):new ct.constructor(Nt);return ct.copy(Gt),Gt}function Ql(ct){var vt=new ct.constructor(ct.byteLength);return new v0(vt).set(new v0(ct)),vt}function q2(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.byteLength)}function K2(ct){var vt=new ct.constructor(ct.source,tn.exec(ct));return vt.lastIndex=ct.lastIndex,vt}function Y2(ct){return e0?ms(e0.call(ct)):{}}function T1(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.length)}function A1(ct,vt){if(ct!==vt){var Nt=ct!==rt,Gt=ct===null,nr=ct===ct,vr=Ks(ct),Sr=vt!==rt,Mr=vt===null,Lr=vt===vt,Jr=Ks(vt);if(!Mr&&!Jr&&!vr&&ct>vt||vr&&Sr&&Lr&&!Mr&&!Jr||Gt&&Sr&&Lr||!Nt&&Lr||!nr)return 1;if(!Gt&&!vr&&!Jr&&ct=Mr)return Lr;var Jr=Nt[Gt];return Lr*(Jr=="desc"?-1:1)}}return ct.index-vt.index}function P1(ct,vt,Nt,Gt){for(var nr=-1,vr=ct.length,Sr=Nt.length,Mr=-1,Lr=vt.length,Jr=Ms(vr-Sr,0),Qr=Hr(Lr+Jr),nn=!Gt;++Mr1?Nt[nr-1]:rt,Sr=nr>2?Nt[2]:rt;for(vr=ct.length>3&&typeof vr=="function"?(nr--,vr):rt,Sr&&Ds(Nt[0],Nt[1],Sr)&&(vr=nr<3?rt:vr,nr=1),vt=ms(vt);++Gt-1?nr[vr?vt[Sr]:Sr]:rt}}function O1(ct){return uo(function(vt){var Nt=vt.length,Gt=Nt,nr=na.prototype.thru;for(ct&&vt.reverse();Gt--;){var vr=vt[Gt];if(typeof vr!="function")throw new Qs(at);if(nr&&!Sr&&L0(vr)=="wrapper")var Sr=new na([],!0)}for(Gt=Sr?Gt:Nt;++Gt1&&ss.reverse(),Qr&&Lr<_i&&(ss.length=Lr),this&&this!==Rs&&this instanceof Un&&(mo=Zn||a0(mo)),mo.apply(no,ss)}return Un}function F1(ct,vt){return function(Nt,Gt){return A2(Nt,ct,vt(Gt),{})}}function O0(ct,vt){return function(Nt,Gt){var nr;if(Nt===rt&&Gt===rt)return vt;if(Nt!==rt&&(nr=Nt),Gt!==rt){if(nr===rt)return Gt;typeof Nt=="string"||typeof Gt=="string"?(Nt=qs(Nt),Gt=qs(Gt)):(Nt=x1(Nt),Gt=x1(Gt)),nr=ct(Nt,Gt)}return nr}}function _c(ct){return uo(function(vt){return vt=_s(vt,Ws(Nn())),Jn(function(Nt){var Gt=this;return ct(vt,function(nr){return Gs(nr,Gt,Nt)})})})}function F0(ct,vt){vt=vt===rt?" ":qs(vt);var Nt=vt.length;if(Nt<2)return Nt?Gl(vt,ct):vt;var Gt=Gl(vt,_0(ct/No(vt)));return Fo(vt)?Eo($a(Gt),0,ct).join(""):Gt.slice(0,ct)}function tm(ct,vt,Nt,Gt){var nr=vt&$t,vr=a0(ct);function Sr(){for(var Mr=-1,Lr=arguments.length,Jr=-1,Qr=Gt.length,nn=Hr(Qr+Lr),vn=this&&this!==Rs&&this instanceof Sr?vr:ct;++JrMr))return!1;var Jr=vr.get(ct),Qr=vr.get(vt);if(Jr&&Qr)return Jr==vt&&Qr==ct;var nn=-1,vn=!0,Mn=Nt&yt?new Po:rt;for(vr.set(ct,vt),vr.set(vt,ct);++nn1?"& ":"")+vt[Gt],vt=vt.join(Nt>2?", ":" "),ct.replace(cr,`{ + */lodash.exports;(function(et,tt){(function(){var rt,nt="4.17.21",it=200,st="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",at="Expected a function",ot="Invalid `variable` option passed into `_.template`",lt="__lodash_hash_undefined__",ut=500,dt="__lodash_placeholder__",bt=1,gt=2,kt=4,pt=1,yt=2,$t=1,mt=2,wt=4,St=8,Bt=16,Ft=32,Lt=64,zt=128,Ht=256,Wt=512,lr=30,qt="...",Ot=800,Mt=16,ht=1,Et=2,Tt=3,Rt=1/0,At=9007199254740991,Pt=17976931348623157e292,It=0/0,Ct=4294967295,xt=Ct-1,Dt=Ct>>>1,tr=[["ary",zt],["bind",$t],["bindKey",mt],["curry",St],["curryRight",Bt],["flip",Wt],["partial",Ft],["partialRight",Lt],["rearg",Ht]],pr="[object Arguments]",Kt="[object Array]",Qt="[object AsyncFunction]",Zt="[object Boolean]",ur="[object Date]",_r="[object DOMException]",er="[object Error]",Jt="[object Function]",Ar="[object GeneratorFunction]",Er="[object Map]",Dr="[object Number]",Xr="[object Null]",Vr="[object Object]",wr="[object Promise]",br="[object Proxy]",or="[object RegExp]",xr="[object Set]",Pr="[object String]",Or="[object Symbol]",rr="[object Undefined]",gr="[object WeakMap]",Ir="[object WeakSet]",Yt="[object ArrayBuffer]",Ut="[object DataView]",Vt="[object Float32Array]",ir="[object Float64Array]",kr="[object Int8Array]",$r="[object Int16Array]",Br="[object Int32Array]",an="[object Uint8Array]",ln="[object Uint8ClampedArray]",rn="[object Uint16Array]",kn="[object Uint32Array]",fn=/\b__p \+= '';/g,gn=/\b(__p \+=) '' \+/g,fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ln=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,hs=RegExp(Ln.source),Cn=RegExp(En.source),xn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,_n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ls=/^\w*$/,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dn=/[\\^$.*+?()[\]{}|]/g,cs=RegExp(dn.source),Xt=/^\s+/,ar=/\s/,cr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jt=/\{\n\/\* \[wrapped with (.+)\] \*/,dr=/,? & /,Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cr=/[()=,{}\[\]\/\s]/,Nr=/\\(\\)?/g,Yr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tn=/\w*$/,qr=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,hn=/^\[object .+?Constructor\]$/,Tn=/^0o[0-7]+$/i,An=/^(?:0|[1-9]\d*)$/,Rn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pn=/($^)/,In=/['\n\r\u2028\u2029\\]/g,$n="\\ud800-\\udfff",Bn="\\u0300-\\u036f",pn="\\ufe20-\\ufe2f",wn="\\u20d0-\\u20ff",un=Bn+pn+wn,yn="\\u2700-\\u27bf",mn="a-z\\xdf-\\xf6\\xf8-\\xff",cn="\\xac\\xb1\\xd7\\xf7",Ur="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jr="\\u2000-\\u206f",en=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gr="A-Z\\xc0-\\xd6\\xd8-\\xde",Zr="\\ufe0e\\ufe0f",sn=cn+Ur+jr+en,On="['’]",zn="["+$n+"]",Gn="["+sn+"]",Hn="["+un+"]",Tr="\\d+",Yn="["+yn+"]",es="["+mn+"]",ts="[^"+$n+sn+Tr+yn+mn+Gr+"]",Wn="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Hn+"|"+Wn+")",Qn="[^"+$n+"]",vs="(?:\\ud83c[\\udde6-\\uddff]){2}",os="[\\ud800-\\udbff][\\udc00-\\udfff]",ps="["+Gr+"]",bs="\\u200d",xs="(?:"+es+"|"+ts+")",Ss="(?:"+ps+"|"+ts+")",As="(?:"+On+"(?:d|ll|m|re|s|t|ve))?",Ps="(?:"+On+"(?:D|LL|M|RE|S|T|VE))?",Is=rs+"?",$u="["+Zr+"]?",Lp="(?:"+bs+"(?:"+[Qn,vs,os].join("|")+")"+$u+Is+")*",Dp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Up="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tu=$u+Is+Lp,jp="(?:"+[Yn,vs,os].join("|")+")"+Tu,Vp="(?:"+[Qn+Hn+"?",Hn,vs,os,zn].join("|")+")",Hp=RegExp(On,"g"),zp=RegExp(Hn,"g"),X0=RegExp(Wn+"(?="+Wn+")|"+Vp+Tu,"g"),Gp=RegExp([ps+"?"+es+"+"+As+"(?="+[Gn,ps,"$"].join("|")+")",Ss+"+"+Ps+"(?="+[Gn,ps+xs,"$"].join("|")+")",ps+"?"+xs+"+"+As,ps+"+"+Ps,Up,Dp,Tr,jp].join("|"),"g"),Wp=RegExp("["+bs+$n+un+Zr+"]"),qp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yp=-1,ws={};ws[Vt]=ws[ir]=ws[kr]=ws[$r]=ws[Br]=ws[an]=ws[ln]=ws[rn]=ws[kn]=!0,ws[pr]=ws[Kt]=ws[Yt]=ws[Zt]=ws[Ut]=ws[ur]=ws[er]=ws[Jt]=ws[Er]=ws[Dr]=ws[Vr]=ws[or]=ws[xr]=ws[Pr]=ws[gr]=!1;var gs={};gs[pr]=gs[Kt]=gs[Yt]=gs[Ut]=gs[Zt]=gs[ur]=gs[Vt]=gs[ir]=gs[kr]=gs[$r]=gs[Br]=gs[Er]=gs[Dr]=gs[Vr]=gs[or]=gs[xr]=gs[Pr]=gs[Or]=gs[an]=gs[ln]=gs[rn]=gs[kn]=!0,gs[er]=gs[Jt]=gs[gr]=!1;var Xp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zp={"&":"&","<":"<",">":">",'"':""","'":"'"},Jp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ey=parseFloat,ty=parseInt,Au=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ry=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Au||ry||Function("return this")(),Z0=tt&&!tt.nodeType&&tt,$o=Z0&&!0&&et&&!et.nodeType&&et,Pu=$o&&$o.exports===Z0,J0=Pu&&Au.process,Zs=function(){try{var Fr=$o&&$o.require&&$o.require("util").types;return Fr||J0&&J0.binding&&J0.binding("util")}catch{}}(),Iu=Zs&&Zs.isArrayBuffer,Bu=Zs&&Zs.isDate,Mu=Zs&&Zs.isMap,Cu=Zs&&Zs.isRegExp,Ru=Zs&&Zs.isSet,Ou=Zs&&Zs.isTypedArray;function Gs(Fr,Wr,Hr){switch(Hr.length){case 0:return Fr.call(Wr);case 1:return Fr.call(Wr,Hr[0]);case 2:return Fr.call(Wr,Hr[0],Hr[1]);case 3:return Fr.call(Wr,Hr[0],Hr[1],Hr[2])}return Fr.apply(Wr,Hr)}function ny(Fr,Wr,Hr,Sn){for(var qn=-1,us=Fr==null?0:Fr.length;++qn-1}function Q0(Fr,Wr,Hr){for(var Sn=-1,qn=Fr==null?0:Fr.length;++Sn-1;);return Hr}function Hu(Fr,Wr){for(var Hr=Fr.length;Hr--&&Oo(Wr,Fr[Hr],0)>-1;);return Hr}function hy(Fr,Wr){for(var Hr=Fr.length,Sn=0;Hr--;)Fr[Hr]===Wr&&++Sn;return Sn}var dy=_l(Xp),py=_l(Zp);function yy(Fr){return"\\"+Qp[Fr]}function my(Fr,Wr){return Fr==null?rt:Fr[Wr]}function Fo(Fr){return Wp.test(Fr)}function gy(Fr){return qp.test(Fr)}function vy(Fr){for(var Wr,Hr=[];!(Wr=Fr.next()).done;)Hr.push(Wr.value);return Hr}function Tl(Fr){var Wr=-1,Hr=Array(Fr.size);return Fr.forEach(function(Sn,qn){Hr[++Wr]=[qn,Sn]}),Hr}function zu(Fr,Wr){return function(Hr){return Fr(Wr(Hr))}}function bo(Fr,Wr){for(var Hr=-1,Sn=Fr.length,qn=0,us=[];++Hr-1}function s2(ct,vt){var Nt=this.__data__,Gt=T0(Nt,ct);return Gt<0?(++this.size,Nt.push([ct,vt])):Nt[Gt][1]=vt,this}oo.prototype.clear=t2,oo.prototype.delete=r2,oo.prototype.get=n2,oo.prototype.has=i2,oo.prototype.set=s2;function fo(ct){var vt=-1,Nt=ct==null?0:ct.length;for(this.clear();++vt=vt?ct:vt)),ct}function ga(ct,vt,Nt,Gt,nr,vr){var Sr,Mr=vt&bt,Lr=vt>,Jr=vt&kt;if(Nt&&(Sr=nr?Nt(ct,Gt,nr,vr):Nt(ct)),Sr!==rt)return Sr;if(!ks(ct))return ct;var Qr=Kn(ct);if(Qr){if(Sr=cm(ct),!Mr)return js(ct,Sr)}else{var nn=Ns(ct),vn=nn==Jt||nn==Ar;if(So(ct))return $1(ct,Mr);if(nn==Vr||nn==pr||vn&&!nr){if(Sr=Lr||vn?{}:G1(ct),!Mr)return Lr?J2(ct,w2(Sr,ct)):Z2(ct,t1(Sr,ct))}else{if(!gs[nn])return nr?ct:{};Sr=um(ct,nn,Mr)}}vr||(vr=new eo);var Mn=vr.get(ct);if(Mn)return Mn;vr.set(ct,Sr),wp(ct)?ct.forEach(function(Un){Sr.add(ga(Un,vt,Nt,Un,ct,vr))}):bp(ct)&&ct.forEach(function(Un,_i){Sr.set(_i,ga(Un,vt,Nt,_i,ct,vr))});var Dn=Jr?Lr?ru:tu:Lr?Hs:Cs,Zn=Qr?rt:Dn(ct);return Js(Zn||ct,function(Un,_i){Zn&&(_i=Un,Un=ct[_i]),t0(Sr,_i,ga(Un,vt,Nt,_i,ct,vr))}),Sr}function _2(ct){var vt=Cs(ct);return function(Nt){return r1(Nt,ct,vt)}}function r1(ct,vt,Nt){var Gt=Nt.length;if(ct==null)return!Gt;for(ct=ms(ct);Gt--;){var nr=Nt[Gt],vr=vt[nr],Sr=ct[nr];if(Sr===rt&&!(nr in ct)||!vr(Sr))return!1}return!0}function n1(ct,vt,Nt){if(typeof ct!="function")throw new Qs(at);return f0(function(){ct.apply(rt,Nt)},vt)}function r0(ct,vt,Nt,Gt){var nr=-1,vr=c0,Sr=!0,Mr=ct.length,Lr=[],Jr=vt.length;if(!Mr)return Lr;Nt&&(vt=_s(vt,Ws(Nt))),Gt?(vr=Q0,Sr=!1):vt.length>=it&&(vr=Yo,Sr=!1,vt=new Po(vt));e:for(;++nrnr?0:nr+Nt),Gt=Gt===rt||Gt>nr?nr:Xn(Gt),Gt<0&&(Gt+=nr),Gt=Nt>Gt?0:kp(Gt);Nt0&&Nt(Mr)?vt>1?Os(Mr,vt-1,Nt,Gt,nr):vo(nr,Mr):Gt||(nr[nr.length]=Mr)}return nr}var Rl=M1(),a1=M1(!0);function io(ct,vt){return ct&&Rl(ct,vt,Cs)}function Ol(ct,vt){return ct&&a1(ct,vt,Cs)}function P0(ct,vt){return go(vt,function(Nt){return po(ct[Nt])})}function Bo(ct,vt){vt=ko(vt,ct);for(var Nt=0,Gt=vt.length;ct!=null&&Ntvt}function S2(ct,vt){return ct!=null&&ys.call(ct,vt)}function $2(ct,vt){return ct!=null&&vt in ms(ct)}function T2(ct,vt,Nt){return ct>=Fs(vt,Nt)&&ct=120&&Qr.length>=120)?new Po(Sr&&Qr):rt}Qr=ct[0];var nn=-1,vn=Mr[0];e:for(;++nn-1;)Mr!==ct&&x0.call(Mr,Lr,1),x0.call(ct,Lr,1);return ct}function g1(ct,vt){for(var Nt=ct?vt.length:0,Gt=Nt-1;Nt--;){var nr=vt[Nt];if(Nt==Gt||nr!==vr){var vr=nr;ho(nr)?x0.call(ct,nr,1):Yl(ct,nr)}}return ct}function Hl(ct,vt){return ct+k0(Ju()*(vt-ct+1))}function U2(ct,vt,Nt,Gt){for(var nr=-1,vr=Ms(_0((vt-ct)/(Nt||1)),0),Sr=Hr(vr);vr--;)Sr[Gt?vr:++nr]=ct,ct+=Nt;return Sr}function Gl(ct,vt){var Nt="";if(!ct||vt<1||vt>At)return Nt;do vt%2&&(Nt+=ct),vt=k0(vt/2),vt&&(ct+=ct);while(vt);return Nt}function Jn(ct,vt){return lu(K1(ct,vt,zs),ct+"")}function j2(ct){return e1(qo(ct))}function V2(ct,vt){var Nt=qo(ct);return U0(Nt,Io(vt,0,Nt.length))}function s0(ct,vt,Nt,Gt){if(!ks(ct))return ct;vt=ko(vt,ct);for(var nr=-1,vr=vt.length,Sr=vr-1,Mr=ct;Mr!=null&&++nrnr?0:nr+vt),Nt=Nt>nr?nr:Nt,Nt<0&&(Nt+=nr),nr=vt>Nt?0:Nt-vt>>>0,vt>>>=0;for(var vr=Hr(nr);++Gt>>1,Sr=ct[vr];Sr!==null&&!Ks(Sr)&&(Nt?Sr<=vt:Sr=it){var Jr=vt?null:rm(ct);if(Jr)return h0(Jr);Sr=!1,nr=Yo,Lr=new Po}else Lr=vt?[]:Mr;e:for(;++Gt=Gt?ct:ba(ct,vt,Nt)}var S1=Cy||function(ct){return Rs.clearTimeout(ct)};function $1(ct,vt){if(vt)return ct.slice();var Nt=ct.length,Gt=qu?qu(Nt):new ct.constructor(Nt);return ct.copy(Gt),Gt}function Ql(ct){var vt=new ct.constructor(ct.byteLength);return new v0(vt).set(new v0(ct)),vt}function q2(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.byteLength)}function K2(ct){var vt=new ct.constructor(ct.source,tn.exec(ct));return vt.lastIndex=ct.lastIndex,vt}function Y2(ct){return e0?ms(e0.call(ct)):{}}function T1(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.length)}function A1(ct,vt){if(ct!==vt){var Nt=ct!==rt,Gt=ct===null,nr=ct===ct,vr=Ks(ct),Sr=vt!==rt,Mr=vt===null,Lr=vt===vt,Jr=Ks(vt);if(!Mr&&!Jr&&!vr&&ct>vt||vr&&Sr&&Lr&&!Mr&&!Jr||Gt&&Sr&&Lr||!Nt&&Lr||!nr)return 1;if(!Gt&&!vr&&!Jr&&ct=Mr)return Lr;var Jr=Nt[Gt];return Lr*(Jr=="desc"?-1:1)}}return ct.index-vt.index}function P1(ct,vt,Nt,Gt){for(var nr=-1,vr=ct.length,Sr=Nt.length,Mr=-1,Lr=vt.length,Jr=Ms(vr-Sr,0),Qr=Hr(Lr+Jr),nn=!Gt;++Mr1?Nt[nr-1]:rt,Sr=nr>2?Nt[2]:rt;for(vr=ct.length>3&&typeof vr=="function"?(nr--,vr):rt,Sr&&Ds(Nt[0],Nt[1],Sr)&&(vr=nr<3?rt:vr,nr=1),vt=ms(vt);++Gt-1?nr[vr?vt[Sr]:Sr]:rt}}function O1(ct){return uo(function(vt){var Nt=vt.length,Gt=Nt,nr=na.prototype.thru;for(ct&&vt.reverse();Gt--;){var vr=vt[Gt];if(typeof vr!="function")throw new Qs(at);if(nr&&!Sr&&L0(vr)=="wrapper")var Sr=new na([],!0)}for(Gt=Sr?Gt:Nt;++Gt1&&ss.reverse(),Qr&&Lr<_i&&(ss.length=Lr),this&&this!==Rs&&this instanceof Un&&(mo=Zn||a0(mo)),mo.apply(no,ss)}return Un}function F1(ct,vt){return function(Nt,Gt){return A2(Nt,ct,vt(Gt),{})}}function O0(ct,vt){return function(Nt,Gt){var nr;if(Nt===rt&&Gt===rt)return vt;if(Nt!==rt&&(nr=Nt),Gt!==rt){if(nr===rt)return Gt;typeof Nt=="string"||typeof Gt=="string"?(Nt=qs(Nt),Gt=qs(Gt)):(Nt=x1(Nt),Gt=x1(Gt)),nr=ct(Nt,Gt)}return nr}}function _c(ct){return uo(function(vt){return vt=_s(vt,Ws(Nn())),Jn(function(Nt){var Gt=this;return ct(vt,function(nr){return Gs(nr,Gt,Nt)})})})}function F0(ct,vt){vt=vt===rt?" ":qs(vt);var Nt=vt.length;if(Nt<2)return Nt?Gl(vt,ct):vt;var Gt=Gl(vt,_0(ct/No(vt)));return Fo(vt)?Eo($a(Gt),0,ct).join(""):Gt.slice(0,ct)}function tm(ct,vt,Nt,Gt){var nr=vt&$t,vr=a0(ct);function Sr(){for(var Mr=-1,Lr=arguments.length,Jr=-1,Qr=Gt.length,nn=Hr(Qr+Lr),vn=this&&this!==Rs&&this instanceof Sr?vr:ct;++JrMr))return!1;var Jr=vr.get(ct),Qr=vr.get(vt);if(Jr&&Qr)return Jr==vt&&Qr==ct;var nn=-1,vn=!0,Mn=Nt&yt?new Po:rt;for(vr.set(ct,vt),vr.set(vt,ct);++nn1?"& ":"")+vt[Gt],vt=vt.join(Nt>2?", ":" "),ct.replace(cr,`{ /* [wrapped with `+vt+`] */ -`)}function dm(ct){return Kn(ct)||Ro(ct)||!!(Xu&&ct&&ct[Xu])}function ho(ct,vt){var Nt=typeof ct;return vt=vt??At,!!vt&&(Nt=="number"||Nt!="symbol"&&An.test(ct))&&ct>-1&&ct%1==0&&ct0){if(++vt>=Ot)return arguments[0]}else vt=0;return ct.apply(rt,arguments)}}function U0(ct,vt){var Nt=-1,Gt=ct.length,nr=Gt-1;for(vt=vt===rt?Gt:vt;++Nt1?ct[vt-1]:rt;return Nt=typeof Nt=="function"?(ct.pop(),Nt):rt,ap(ct,Nt)});function fp(ct){var vt=yr(ct);return vt.__chain__=!0,vt}function kv(ct,vt){return vt(ct),ct}function j0(ct,vt){return vt(ct)}var Ev=uo(function(ct){var vt=ct.length,Nt=vt?ct[0]:0,Gt=this.__wrapped__,nr=function(vr){return Cl(vr,ct)};return vt>1||this.__actions__.length||!(Gt instanceof ns)||!ho(Nt)?this.thru(nr):(Gt=Gt.slice(Nt,+Nt+(vt?1:0)),Gt.__actions__.push({func:j0,args:[nr],thisArg:rt}),new na(Gt,this.__chain__).thru(function(vr){return vt&&!vr.length&&vr.push(rt),vr}))});function Sv(){return fp(this)}function $v(){return new na(this.value(),this.__chain__)}function Tv(){this.__values__===rt&&(this.__values__=_p(this.value()));var ct=this.__index__>=this.__values__.length,vt=ct?rt:this.__values__[this.__index__++];return{done:ct,value:vt}}function Av(){return this}function Pv(ct){for(var vt,Nt=this;Nt instanceof $0;){var Gt=_d(Nt);Gt.__index__=0,Gt.__values__=rt,vt?nr.__wrapped__=Gt:vt=Gt;var nr=Gt;Nt=Nt.__wrapped__}return nr.__wrapped__=ct,vt}function Iv(){var ct=this.__wrapped__;if(ct instanceof ns){var vt=ct;return this.__actions__.length&&(vt=new ns(this)),vt=vt.reverse(),vt.__actions__.push({func:j0,args:[cu],thisArg:rt}),new na(vt,this.__chain__)}return this.thru(cu)}function Bv(){return k1(this.__wrapped__,this.__actions__)}var Mv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?++ct[Nt]:lo(ct,Nt,1)});function Cv(ct,vt,Nt){var Gt=Kn(ct)?Fu:k2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}function Rv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,Nn(vt,3))}var Ov=R1(ep),Fv=R1(tp);function Nv(ct,vt){return Os(V0(ct,vt),1)}function Lv(ct,vt){return Os(V0(ct,vt),Rt)}function Dv(ct,vt,Nt){return Nt=Nt===rt?1:Xn(Nt),Os(V0(ct,vt),Nt)}function lp(ct,vt){var Nt=Kn(ct)?Js:wo;return Nt(ct,Nn(vt,3))}function cp(ct,vt){var Nt=Kn(ct)?iy:i1;return Nt(ct,Nn(vt,3))}var Uv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?ct[Nt].push(vt):lo(ct,Nt,[vt])});function jv(ct,vt,Nt,Gt){ct=Vs(ct)?ct:qo(ct),Nt=Nt&&!Gt?Xn(Nt):0;var nr=ct.length;return Nt<0&&(Nt=Ms(nr+Nt,0)),q0(ct)?Nt<=nr&&ct.indexOf(vt,Nt)>-1:!!nr&&Oo(ct,vt,Nt)>-1}var Vv=Jn(function(ct,vt,Nt){var Gt=-1,nr=typeof vt=="function",vr=Vs(ct)?Hr(ct.length):[];return wo(ct,function(Sr){vr[++Gt]=nr?Gs(vt,Sr,Nt):n0(Sr,vt,Nt)}),vr}),Hv=C0(function(ct,vt,Nt){lo(ct,Nt,vt)});function V0(ct,vt){var Nt=Kn(ct)?_s:u1;return Nt(ct,Nn(vt,3))}function zv(ct,vt,Nt,Gt){return ct==null?[]:(Kn(vt)||(vt=vt==null?[]:[vt]),Nt=Gt?rt:Nt,Kn(Nt)||(Nt=Nt==null?[]:[Nt]),y1(ct,vt,Nt))}var Gv=C0(function(ct,vt,Nt){ct[Nt?0:1].push(vt)},function(){return[[],[]]});function Wv(ct,vt,Nt){var Gt=Kn(ct)?_f:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,wo)}function qv(ct,vt,Nt){var Gt=Kn(ct)?sy:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,i1)}function Kv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,G0(Nn(vt,3)))}function Yv(ct){var vt=Kn(ct)?e1:j2;return vt(ct)}function Xv(ct,vt,Nt){(Nt?Ds(ct,vt,Nt):vt===rt)?vt=1:vt=Xn(vt);var Gt=Kn(ct)?v2:V2;return Gt(ct,vt)}function Zv(ct){var vt=Kn(ct)?b2:z2;return vt(ct)}function Jv(ct){if(ct==null)return 0;if(Vs(ct))return q0(ct)?No(ct):ct.length;var vt=Ns(ct);return vt==Er||vt==xr?ct.size:Dl(ct).length}function Qv(ct,vt,Nt){var Gt=Kn(ct)?yl:G2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}var e3=Jn(function(ct,vt){if(ct==null)return[];var Nt=vt.length;return Nt>1&&Ds(ct,vt[0],vt[1])?vt=[]:Nt>2&&Ds(vt[0],vt[1],vt[2])&&(vt=[vt[0]]),y1(ct,Os(vt,1),[])}),H0=Ry||function(){return Rs.Date.now()};function t3(ct,vt){if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){if(--ct<1)return vt.apply(this,arguments)}}function up(ct,vt,Nt){return vt=Nt?rt:vt,vt=ct&&vt==null?ct.length:vt,co(ct,zt,rt,rt,rt,rt,vt)}function hp(ct,vt){var Nt;if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){return--ct>0&&(Nt=vt.apply(this,arguments)),ct<=1&&(vt=rt),Nt}}var hu=Jn(function(ct,vt,Nt){var Gt=$t;if(Nt.length){var nr=bo(Nt,Go(hu));Gt|=Ft}return co(ct,Gt,vt,Nt,nr)}),dp=Jn(function(ct,vt,Nt){var Gt=$t|mt;if(Nt.length){var nr=bo(Nt,Go(dp));Gt|=Ft}return co(vt,Gt,ct,Nt,nr)});function pp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,St,rt,rt,rt,rt,rt,vt);return Gt.placeholder=pp.placeholder,Gt}function yp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,Bt,rt,rt,rt,rt,rt,vt);return Gt.placeholder=yp.placeholder,Gt}function mp(ct,vt,Nt){var Gt,nr,vr,Sr,Mr,Lr,Jr=0,Qr=!1,nn=!1,vn=!0;if(typeof ct!="function")throw new Qs(at);vt=_a(vt)||0,ks(Nt)&&(Qr=!!Nt.leading,nn="maxWait"in Nt,vr=nn?Ms(_a(Nt.maxWait)||0,vt):vr,vn="trailing"in Nt?!!Nt.trailing:vn);function Mn(Ts){var no=Gt,mo=nr;return Gt=nr=rt,Jr=Ts,Sr=ct.apply(mo,no),Sr}function Dn(Ts){return Jr=Ts,Mr=f0(_i,vt),Qr?Mn(Ts):Sr}function Zn(Ts){var no=Ts-Lr,mo=Ts-Jr,Op=vt-no;return nn?Fs(Op,vr-mo):Op}function Un(Ts){var no=Ts-Lr,mo=Ts-Jr;return Lr===rt||no>=vt||no<0||nn&&mo>=vr}function _i(){var Ts=H0();if(Un(Ts))return ss(Ts);Mr=f0(_i,Zn(Ts))}function ss(Ts){return Mr=rt,vn&&Gt?Mn(Ts):(Gt=nr=rt,Sr)}function Ys(){Mr!==rt&&S1(Mr),Jr=0,Gt=Lr=nr=Mr=rt}function Us(){return Mr===rt?Sr:ss(H0())}function Xs(){var Ts=H0(),no=Un(Ts);if(Gt=arguments,nr=this,Lr=Ts,no){if(Mr===rt)return Dn(Lr);if(nn)return S1(Mr),Mr=f0(_i,vt),Mn(Lr)}return Mr===rt&&(Mr=f0(_i,vt)),Sr}return Xs.cancel=Ys,Xs.flush=Us,Xs}var r3=Jn(function(ct,vt){return n1(ct,1,vt)}),n3=Jn(function(ct,vt,Nt){return n1(ct,_a(vt)||0,Nt)});function i3(ct){return co(ct,Wt)}function z0(ct,vt){if(typeof ct!="function"||vt!=null&&typeof vt!="function")throw new Qs(at);var Nt=function(){var Gt=arguments,nr=vt?vt.apply(this,Gt):Gt[0],vr=Nt.cache;if(vr.has(nr))return vr.get(nr);var Sr=ct.apply(this,Gt);return Nt.cache=vr.set(nr,Sr)||vr,Sr};return Nt.cache=new(z0.Cache||fo),Nt}z0.Cache=fo;function G0(ct){if(typeof ct!="function")throw new Qs(at);return function(){var vt=arguments;switch(vt.length){case 0:return!ct.call(this);case 1:return!ct.call(this,vt[0]);case 2:return!ct.call(this,vt[0],vt[1]);case 3:return!ct.call(this,vt[0],vt[1],vt[2])}return!ct.apply(this,vt)}}function s3(ct){return hp(2,ct)}var a3=W2(function(ct,vt){vt=vt.length==1&&Kn(vt[0])?_s(vt[0],Ws(Nn())):_s(Os(vt,1),Ws(Nn()));var Nt=vt.length;return Jn(function(Gt){for(var nr=-1,vr=Fs(Gt.length,Nt);++nr=vt}),Ro=f1(function(){return arguments}())?f1:function(ct){return Es(ct)&&ys.call(ct,"callee")&&!Yu.call(ct,"callee")},Kn=Hr.isArray,w3=Iu?Ws(Iu):P2;function Vs(ct){return ct!=null&&W0(ct.length)&&!po(ct)}function $s(ct){return Es(ct)&&Vs(ct)}function _3(ct){return ct===!0||ct===!1||Es(ct)&&Ls(ct)==Zt}var So=Fy||Eu,k3=Bu?Ws(Bu):I2;function E3(ct){return Es(ct)&&ct.nodeType===1&&!l0(ct)}function S3(ct){if(ct==null)return!0;if(Vs(ct)&&(Kn(ct)||typeof ct=="string"||typeof ct.splice=="function"||So(ct)||Wo(ct)||Ro(ct)))return!ct.length;var vt=Ns(ct);if(vt==Er||vt==xr)return!ct.size;if(o0(ct))return!Dl(ct).length;for(var Nt in ct)if(ys.call(ct,Nt))return!1;return!0}function $3(ct,vt){return i0(ct,vt)}function T3(ct,vt,Nt){Nt=typeof Nt=="function"?Nt:rt;var Gt=Nt?Nt(ct,vt):rt;return Gt===rt?i0(ct,vt,rt,Nt):!!Gt}function pu(ct){if(!Es(ct))return!1;var vt=Ls(ct);return vt==er||vt==_r||typeof ct.message=="string"&&typeof ct.name=="string"&&!l0(ct)}function A3(ct){return typeof ct=="number"&&Zu(ct)}function po(ct){if(!ks(ct))return!1;var vt=Ls(ct);return vt==Jt||vt==Ar||vt==Qt||vt==br}function vp(ct){return typeof ct=="number"&&ct==Xn(ct)}function W0(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=At}function ks(ct){var vt=typeof ct;return ct!=null&&(vt=="object"||vt=="function")}function Es(ct){return ct!=null&&typeof ct=="object"}var bp=Mu?Ws(Mu):M2;function P3(ct,vt){return ct===vt||Ll(ct,vt,iu(vt))}function I3(ct,vt,Nt){return Nt=typeof Nt=="function"?Nt:rt,Ll(ct,vt,iu(vt),Nt)}function B3(ct){return xp(ct)&&ct!=+ct}function M3(ct){if(mm(ct))throw new qn(st);return l1(ct)}function C3(ct){return ct===null}function R3(ct){return ct==null}function xp(ct){return typeof ct=="number"||Es(ct)&&Ls(ct)==Dr}function l0(ct){if(!Es(ct)||Ls(ct)!=Vr)return!1;var vt=b0(ct);if(vt===null)return!0;var Nt=ys.call(vt,"constructor")&&vt.constructor;return typeof Nt=="function"&&Nt instanceof Nt&&y0.call(Nt)==Iy}var yu=Cu?Ws(Cu):C2;function O3(ct){return vp(ct)&&ct>=-At&&ct<=At}var wp=Ru?Ws(Ru):R2;function q0(ct){return typeof ct=="string"||!Kn(ct)&&Es(ct)&&Ls(ct)==Pr}function Ks(ct){return typeof ct=="symbol"||Es(ct)&&Ls(ct)==Or}var Wo=Ou?Ws(Ou):O2;function F3(ct){return ct===rt}function N3(ct){return Es(ct)&&Ns(ct)==gr}function L3(ct){return Es(ct)&&Ls(ct)==Ir}var D3=N0(Ul),U3=N0(function(ct,vt){return ct<=vt});function _p(ct){if(!ct)return[];if(Vs(ct))return q0(ct)?$a(ct):js(ct);if(Xo&&ct[Xo])return vy(ct[Xo]());var vt=Ns(ct),Nt=vt==Er?Tl:vt==xr?h0:qo;return Nt(ct)}function yo(ct){if(!ct)return ct===0?ct:0;if(ct=_a(ct),ct===Rt||ct===-Rt){var vt=ct<0?-1:1;return vt*Pt}return ct===ct?ct:0}function Xn(ct){var vt=yo(ct),Nt=vt%1;return vt===vt?Nt?vt-Nt:vt:0}function kp(ct){return ct?Io(Xn(ct),0,Ct):0}function _a(ct){if(typeof ct=="number")return ct;if(Ks(ct))return It;if(ks(ct)){var vt=typeof ct.valueOf=="function"?ct.valueOf():ct;ct=ks(vt)?vt+"":vt}if(typeof ct!="string")return ct===0?ct:+ct;ct=ju(ct);var Nt=Vn.test(ct);return Nt||Tn.test(ct)?ty(ct.slice(2),Nt?2:8):qr.test(ct)?It:+ct}function Ep(ct){return so(ct,Hs(ct))}function j3(ct){return ct?Io(Xn(ct),-At,At):ct===0?ct:0}function ds(ct){return ct==null?"":qs(ct)}var V3=Ho(function(ct,vt){if(o0(vt)||Vs(vt)){so(vt,Cs(vt),ct);return}for(var Nt in vt)ys.call(vt,Nt)&&t0(ct,Nt,vt[Nt])}),Sp=Ho(function(ct,vt){so(vt,Hs(vt),ct)}),K0=Ho(function(ct,vt,Nt,Gt){so(vt,Hs(vt),ct,Gt)}),H3=Ho(function(ct,vt,Nt,Gt){so(vt,Cs(vt),ct,Gt)}),z3=uo(Cl);function G3(ct,vt){var Nt=Vo(ct);return vt==null?Nt:t1(Nt,vt)}var W3=Jn(function(ct,vt){ct=ms(ct);var Nt=-1,Gt=vt.length,nr=Gt>2?vt[2]:rt;for(nr&&Ds(vt[0],vt[1],nr)&&(Gt=1);++Nt1),vr}),so(ct,ru(ct),Nt),Gt&&(Nt=ga(Nt,bt|gt|kt,im));for(var nr=vt.length;nr--;)Yl(Nt,vt[nr]);return Nt});function c4(ct,vt){return Tp(ct,G0(Nn(vt)))}var u4=uo(function(ct,vt){return ct==null?{}:L2(ct,vt)});function Tp(ct,vt){if(ct==null)return{};var Nt=_s(ru(ct),function(Gt){return[Gt]});return vt=Nn(vt),m1(ct,Nt,function(Gt,nr){return vt(Gt,nr[0])})}function h4(ct,vt,Nt){vt=ko(vt,ct);var Gt=-1,nr=vt.length;for(nr||(nr=1,ct=rt);++Gtvt){var Gt=ct;ct=vt,vt=Gt}if(Nt||ct%1||vt%1){var nr=Ju();return Fs(ct+nr*(vt-ct+ey("1e-"+((nr+"").length-1))),vt)}return Hl(ct,vt)}var E4=zo(function(ct,vt,Nt){return vt=vt.toLowerCase(),ct+(Nt?Ip(vt):vt)});function Ip(ct){return vu(ds(ct).toLowerCase())}function Bp(ct){return ct=ds(ct),ct&&ct.replace(Rn,dy).replace(zp,"")}function S4(ct,vt,Nt){ct=ds(ct),vt=qs(vt);var Gt=ct.length;Nt=Nt===rt?Gt:Io(Xn(Nt),0,Gt);var nr=Nt;return Nt-=vt.length,Nt>=0&&ct.slice(Nt,nr)==vt}function $4(ct){return ct=ds(ct),ct&&Cn.test(ct)?ct.replace(En,py):ct}function T4(ct){return ct=ds(ct),ct&&cs.test(ct)?ct.replace(dn,"\\$&"):ct}var A4=zo(function(ct,vt,Nt){return ct+(Nt?"-":"")+vt.toLowerCase()}),P4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vt.toLowerCase()}),I4=C1("toLowerCase");function B4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;if(!vt||Gt>=vt)return ct;var nr=(vt-Gt)/2;return F0(k0(nr),Nt)+ct+F0(_0(nr),Nt)}function M4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;return vt&&Gt>>0,Nt?(ct=ds(ct),ct&&(typeof vt=="string"||vt!=null&&!yu(vt))&&(vt=qs(vt),!vt&&Fo(ct))?Eo($a(ct),0,Nt):ct.split(vt,Nt)):[]}var D4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vu(vt)});function U4(ct,vt,Nt){return ct=ds(ct),Nt=Nt==null?0:Io(Xn(Nt),0,ct.length),vt=qs(vt),ct.slice(Nt,Nt+vt.length)==vt}function j4(ct,vt,Nt){var Gt=yr.templateSettings;Nt&&Ds(ct,vt,Nt)&&(vt=rt),ct=ds(ct),vt=K0({},vt,Gt,U1);var nr=K0({},vt.imports,Gt.imports,U1),vr=Cs(nr),Sr=$l(nr,vr),Mr,Lr,Jr=0,Qr=vt.interpolate||Pn,nn="__p += '",vn=Al((vt.escape||Pn).source+"|"+Qr.source+"|"+(Qr===Fn?Yr:Pn).source+"|"+(vt.evaluate||Pn).source+"|$","g"),Mn="//# sourceURL="+(ys.call(vt,"sourceURL")?(vt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yp+"]")+` +`)}function dm(ct){return Kn(ct)||Ro(ct)||!!(Xu&&ct&&ct[Xu])}function ho(ct,vt){var Nt=typeof ct;return vt=vt??At,!!vt&&(Nt=="number"||Nt!="symbol"&&An.test(ct))&&ct>-1&&ct%1==0&&ct0){if(++vt>=Ot)return arguments[0]}else vt=0;return ct.apply(rt,arguments)}}function U0(ct,vt){var Nt=-1,Gt=ct.length,nr=Gt-1;for(vt=vt===rt?Gt:vt;++Nt1?ct[vt-1]:rt;return Nt=typeof Nt=="function"?(ct.pop(),Nt):rt,ap(ct,Nt)});function fp(ct){var vt=yr(ct);return vt.__chain__=!0,vt}function kv(ct,vt){return vt(ct),ct}function j0(ct,vt){return vt(ct)}var Ev=uo(function(ct){var vt=ct.length,Nt=vt?ct[0]:0,Gt=this.__wrapped__,nr=function(vr){return Cl(vr,ct)};return vt>1||this.__actions__.length||!(Gt instanceof ns)||!ho(Nt)?this.thru(nr):(Gt=Gt.slice(Nt,+Nt+(vt?1:0)),Gt.__actions__.push({func:j0,args:[nr],thisArg:rt}),new na(Gt,this.__chain__).thru(function(vr){return vt&&!vr.length&&vr.push(rt),vr}))});function Sv(){return fp(this)}function $v(){return new na(this.value(),this.__chain__)}function Tv(){this.__values__===rt&&(this.__values__=_p(this.value()));var ct=this.__index__>=this.__values__.length,vt=ct?rt:this.__values__[this.__index__++];return{done:ct,value:vt}}function Av(){return this}function Pv(ct){for(var vt,Nt=this;Nt instanceof $0;){var Gt=_d(Nt);Gt.__index__=0,Gt.__values__=rt,vt?nr.__wrapped__=Gt:vt=Gt;var nr=Gt;Nt=Nt.__wrapped__}return nr.__wrapped__=ct,vt}function Iv(){var ct=this.__wrapped__;if(ct instanceof ns){var vt=ct;return this.__actions__.length&&(vt=new ns(this)),vt=vt.reverse(),vt.__actions__.push({func:j0,args:[cu],thisArg:rt}),new na(vt,this.__chain__)}return this.thru(cu)}function Bv(){return k1(this.__wrapped__,this.__actions__)}var Mv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?++ct[Nt]:lo(ct,Nt,1)});function Cv(ct,vt,Nt){var Gt=Kn(ct)?Fu:k2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}function Rv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,Nn(vt,3))}var Ov=R1(ep),Fv=R1(tp);function Nv(ct,vt){return Os(V0(ct,vt),1)}function Lv(ct,vt){return Os(V0(ct,vt),Rt)}function Dv(ct,vt,Nt){return Nt=Nt===rt?1:Xn(Nt),Os(V0(ct,vt),Nt)}function lp(ct,vt){var Nt=Kn(ct)?Js:wo;return Nt(ct,Nn(vt,3))}function cp(ct,vt){var Nt=Kn(ct)?iy:i1;return Nt(ct,Nn(vt,3))}var Uv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?ct[Nt].push(vt):lo(ct,Nt,[vt])});function jv(ct,vt,Nt,Gt){ct=Vs(ct)?ct:qo(ct),Nt=Nt&&!Gt?Xn(Nt):0;var nr=ct.length;return Nt<0&&(Nt=Ms(nr+Nt,0)),q0(ct)?Nt<=nr&&ct.indexOf(vt,Nt)>-1:!!nr&&Oo(ct,vt,Nt)>-1}var Vv=Jn(function(ct,vt,Nt){var Gt=-1,nr=typeof vt=="function",vr=Vs(ct)?Hr(ct.length):[];return wo(ct,function(Sr){vr[++Gt]=nr?Gs(vt,Sr,Nt):n0(Sr,vt,Nt)}),vr}),Hv=C0(function(ct,vt,Nt){lo(ct,Nt,vt)});function V0(ct,vt){var Nt=Kn(ct)?_s:u1;return Nt(ct,Nn(vt,3))}function zv(ct,vt,Nt,Gt){return ct==null?[]:(Kn(vt)||(vt=vt==null?[]:[vt]),Nt=Gt?rt:Nt,Kn(Nt)||(Nt=Nt==null?[]:[Nt]),y1(ct,vt,Nt))}var Gv=C0(function(ct,vt,Nt){ct[Nt?0:1].push(vt)},function(){return[[],[]]});function Wv(ct,vt,Nt){var Gt=Kn(ct)?_f:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,wo)}function qv(ct,vt,Nt){var Gt=Kn(ct)?sy:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,i1)}function Kv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,G0(Nn(vt,3)))}function Yv(ct){var vt=Kn(ct)?e1:j2;return vt(ct)}function Xv(ct,vt,Nt){(Nt?Ds(ct,vt,Nt):vt===rt)?vt=1:vt=Xn(vt);var Gt=Kn(ct)?v2:V2;return Gt(ct,vt)}function Zv(ct){var vt=Kn(ct)?b2:z2;return vt(ct)}function Jv(ct){if(ct==null)return 0;if(Vs(ct))return q0(ct)?No(ct):ct.length;var vt=Ns(ct);return vt==Er||vt==xr?ct.size:Dl(ct).length}function Qv(ct,vt,Nt){var Gt=Kn(ct)?yl:G2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}var e3=Jn(function(ct,vt){if(ct==null)return[];var Nt=vt.length;return Nt>1&&Ds(ct,vt[0],vt[1])?vt=[]:Nt>2&&Ds(vt[0],vt[1],vt[2])&&(vt=[vt[0]]),y1(ct,Os(vt,1),[])}),H0=Ry||function(){return Rs.Date.now()};function t3(ct,vt){if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){if(--ct<1)return vt.apply(this,arguments)}}function up(ct,vt,Nt){return vt=Nt?rt:vt,vt=ct&&vt==null?ct.length:vt,co(ct,zt,rt,rt,rt,rt,vt)}function hp(ct,vt){var Nt;if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){return--ct>0&&(Nt=vt.apply(this,arguments)),ct<=1&&(vt=rt),Nt}}var hu=Jn(function(ct,vt,Nt){var Gt=$t;if(Nt.length){var nr=bo(Nt,Go(hu));Gt|=Ft}return co(ct,Gt,vt,Nt,nr)}),dp=Jn(function(ct,vt,Nt){var Gt=$t|mt;if(Nt.length){var nr=bo(Nt,Go(dp));Gt|=Ft}return co(vt,Gt,ct,Nt,nr)});function pp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,St,rt,rt,rt,rt,rt,vt);return Gt.placeholder=pp.placeholder,Gt}function yp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,Bt,rt,rt,rt,rt,rt,vt);return Gt.placeholder=yp.placeholder,Gt}function mp(ct,vt,Nt){var Gt,nr,vr,Sr,Mr,Lr,Jr=0,Qr=!1,nn=!1,vn=!0;if(typeof ct!="function")throw new Qs(at);vt=_a(vt)||0,ks(Nt)&&(Qr=!!Nt.leading,nn="maxWait"in Nt,vr=nn?Ms(_a(Nt.maxWait)||0,vt):vr,vn="trailing"in Nt?!!Nt.trailing:vn);function Mn(Ts){var no=Gt,mo=nr;return Gt=nr=rt,Jr=Ts,Sr=ct.apply(mo,no),Sr}function Dn(Ts){return Jr=Ts,Mr=f0(_i,vt),Qr?Mn(Ts):Sr}function Zn(Ts){var no=Ts-Lr,mo=Ts-Jr,Op=vt-no;return nn?Fs(Op,vr-mo):Op}function Un(Ts){var no=Ts-Lr,mo=Ts-Jr;return Lr===rt||no>=vt||no<0||nn&&mo>=vr}function _i(){var Ts=H0();if(Un(Ts))return ss(Ts);Mr=f0(_i,Zn(Ts))}function ss(Ts){return Mr=rt,vn&&Gt?Mn(Ts):(Gt=nr=rt,Sr)}function Ys(){Mr!==rt&&S1(Mr),Jr=0,Gt=Lr=nr=Mr=rt}function Us(){return Mr===rt?Sr:ss(H0())}function Xs(){var Ts=H0(),no=Un(Ts);if(Gt=arguments,nr=this,Lr=Ts,no){if(Mr===rt)return Dn(Lr);if(nn)return S1(Mr),Mr=f0(_i,vt),Mn(Lr)}return Mr===rt&&(Mr=f0(_i,vt)),Sr}return Xs.cancel=Ys,Xs.flush=Us,Xs}var r3=Jn(function(ct,vt){return n1(ct,1,vt)}),n3=Jn(function(ct,vt,Nt){return n1(ct,_a(vt)||0,Nt)});function i3(ct){return co(ct,Wt)}function z0(ct,vt){if(typeof ct!="function"||vt!=null&&typeof vt!="function")throw new Qs(at);var Nt=function(){var Gt=arguments,nr=vt?vt.apply(this,Gt):Gt[0],vr=Nt.cache;if(vr.has(nr))return vr.get(nr);var Sr=ct.apply(this,Gt);return Nt.cache=vr.set(nr,Sr)||vr,Sr};return Nt.cache=new(z0.Cache||fo),Nt}z0.Cache=fo;function G0(ct){if(typeof ct!="function")throw new Qs(at);return function(){var vt=arguments;switch(vt.length){case 0:return!ct.call(this);case 1:return!ct.call(this,vt[0]);case 2:return!ct.call(this,vt[0],vt[1]);case 3:return!ct.call(this,vt[0],vt[1],vt[2])}return!ct.apply(this,vt)}}function s3(ct){return hp(2,ct)}var a3=W2(function(ct,vt){vt=vt.length==1&&Kn(vt[0])?_s(vt[0],Ws(Nn())):_s(Os(vt,1),Ws(Nn()));var Nt=vt.length;return Jn(function(Gt){for(var nr=-1,vr=Fs(Gt.length,Nt);++nr=vt}),Ro=f1(function(){return arguments}())?f1:function(ct){return Es(ct)&&ys.call(ct,"callee")&&!Yu.call(ct,"callee")},Kn=Hr.isArray,w3=Iu?Ws(Iu):P2;function Vs(ct){return ct!=null&&W0(ct.length)&&!po(ct)}function $s(ct){return Es(ct)&&Vs(ct)}function _3(ct){return ct===!0||ct===!1||Es(ct)&&Ls(ct)==Zt}var So=Fy||Eu,k3=Bu?Ws(Bu):I2;function E3(ct){return Es(ct)&&ct.nodeType===1&&!l0(ct)}function S3(ct){if(ct==null)return!0;if(Vs(ct)&&(Kn(ct)||typeof ct=="string"||typeof ct.splice=="function"||So(ct)||Wo(ct)||Ro(ct)))return!ct.length;var vt=Ns(ct);if(vt==Er||vt==xr)return!ct.size;if(o0(ct))return!Dl(ct).length;for(var Nt in ct)if(ys.call(ct,Nt))return!1;return!0}function $3(ct,vt){return i0(ct,vt)}function T3(ct,vt,Nt){Nt=typeof Nt=="function"?Nt:rt;var Gt=Nt?Nt(ct,vt):rt;return Gt===rt?i0(ct,vt,rt,Nt):!!Gt}function pu(ct){if(!Es(ct))return!1;var vt=Ls(ct);return vt==er||vt==_r||typeof ct.message=="string"&&typeof ct.name=="string"&&!l0(ct)}function A3(ct){return typeof ct=="number"&&Zu(ct)}function po(ct){if(!ks(ct))return!1;var vt=Ls(ct);return vt==Jt||vt==Ar||vt==Qt||vt==br}function vp(ct){return typeof ct=="number"&&ct==Xn(ct)}function W0(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=At}function ks(ct){var vt=typeof ct;return ct!=null&&(vt=="object"||vt=="function")}function Es(ct){return ct!=null&&typeof ct=="object"}var bp=Mu?Ws(Mu):M2;function P3(ct,vt){return ct===vt||Ll(ct,vt,iu(vt))}function I3(ct,vt,Nt){return Nt=typeof Nt=="function"?Nt:rt,Ll(ct,vt,iu(vt),Nt)}function B3(ct){return xp(ct)&&ct!=+ct}function M3(ct){if(mm(ct))throw new qn(st);return l1(ct)}function C3(ct){return ct===null}function R3(ct){return ct==null}function xp(ct){return typeof ct=="number"||Es(ct)&&Ls(ct)==Dr}function l0(ct){if(!Es(ct)||Ls(ct)!=Vr)return!1;var vt=b0(ct);if(vt===null)return!0;var Nt=ys.call(vt,"constructor")&&vt.constructor;return typeof Nt=="function"&&Nt instanceof Nt&&y0.call(Nt)==Iy}var yu=Cu?Ws(Cu):C2;function O3(ct){return vp(ct)&&ct>=-At&&ct<=At}var wp=Ru?Ws(Ru):R2;function q0(ct){return typeof ct=="string"||!Kn(ct)&&Es(ct)&&Ls(ct)==Pr}function Ks(ct){return typeof ct=="symbol"||Es(ct)&&Ls(ct)==Or}var Wo=Ou?Ws(Ou):O2;function F3(ct){return ct===rt}function N3(ct){return Es(ct)&&Ns(ct)==gr}function L3(ct){return Es(ct)&&Ls(ct)==Ir}var D3=N0(Ul),U3=N0(function(ct,vt){return ct<=vt});function _p(ct){if(!ct)return[];if(Vs(ct))return q0(ct)?$a(ct):js(ct);if(Xo&&ct[Xo])return vy(ct[Xo]());var vt=Ns(ct),Nt=vt==Er?Tl:vt==xr?h0:qo;return Nt(ct)}function yo(ct){if(!ct)return ct===0?ct:0;if(ct=_a(ct),ct===Rt||ct===-Rt){var vt=ct<0?-1:1;return vt*Pt}return ct===ct?ct:0}function Xn(ct){var vt=yo(ct),Nt=vt%1;return vt===vt?Nt?vt-Nt:vt:0}function kp(ct){return ct?Io(Xn(ct),0,Ct):0}function _a(ct){if(typeof ct=="number")return ct;if(Ks(ct))return It;if(ks(ct)){var vt=typeof ct.valueOf=="function"?ct.valueOf():ct;ct=ks(vt)?vt+"":vt}if(typeof ct!="string")return ct===0?ct:+ct;ct=ju(ct);var Nt=Vn.test(ct);return Nt||Tn.test(ct)?ty(ct.slice(2),Nt?2:8):qr.test(ct)?It:+ct}function Ep(ct){return so(ct,Hs(ct))}function j3(ct){return ct?Io(Xn(ct),-At,At):ct===0?ct:0}function ds(ct){return ct==null?"":qs(ct)}var V3=Ho(function(ct,vt){if(o0(vt)||Vs(vt)){so(vt,Cs(vt),ct);return}for(var Nt in vt)ys.call(vt,Nt)&&t0(ct,Nt,vt[Nt])}),Sp=Ho(function(ct,vt){so(vt,Hs(vt),ct)}),K0=Ho(function(ct,vt,Nt,Gt){so(vt,Hs(vt),ct,Gt)}),H3=Ho(function(ct,vt,Nt,Gt){so(vt,Cs(vt),ct,Gt)}),z3=uo(Cl);function G3(ct,vt){var Nt=Vo(ct);return vt==null?Nt:t1(Nt,vt)}var W3=Jn(function(ct,vt){ct=ms(ct);var Nt=-1,Gt=vt.length,nr=Gt>2?vt[2]:rt;for(nr&&Ds(vt[0],vt[1],nr)&&(Gt=1);++Nt1),vr}),so(ct,ru(ct),Nt),Gt&&(Nt=ga(Nt,bt|gt|kt,im));for(var nr=vt.length;nr--;)Yl(Nt,vt[nr]);return Nt});function c4(ct,vt){return Tp(ct,G0(Nn(vt)))}var u4=uo(function(ct,vt){return ct==null?{}:L2(ct,vt)});function Tp(ct,vt){if(ct==null)return{};var Nt=_s(ru(ct),function(Gt){return[Gt]});return vt=Nn(vt),m1(ct,Nt,function(Gt,nr){return vt(Gt,nr[0])})}function h4(ct,vt,Nt){vt=ko(vt,ct);var Gt=-1,nr=vt.length;for(nr||(nr=1,ct=rt);++Gtvt){var Gt=ct;ct=vt,vt=Gt}if(Nt||ct%1||vt%1){var nr=Ju();return Fs(ct+nr*(vt-ct+ey("1e-"+((nr+"").length-1))),vt)}return Hl(ct,vt)}var E4=zo(function(ct,vt,Nt){return vt=vt.toLowerCase(),ct+(Nt?Ip(vt):vt)});function Ip(ct){return vu(ds(ct).toLowerCase())}function Bp(ct){return ct=ds(ct),ct&&ct.replace(Rn,dy).replace(zp,"")}function S4(ct,vt,Nt){ct=ds(ct),vt=qs(vt);var Gt=ct.length;Nt=Nt===rt?Gt:Io(Xn(Nt),0,Gt);var nr=Nt;return Nt-=vt.length,Nt>=0&&ct.slice(Nt,nr)==vt}function $4(ct){return ct=ds(ct),ct&&Cn.test(ct)?ct.replace(En,py):ct}function T4(ct){return ct=ds(ct),ct&&cs.test(ct)?ct.replace(dn,"\\$&"):ct}var A4=zo(function(ct,vt,Nt){return ct+(Nt?"-":"")+vt.toLowerCase()}),P4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vt.toLowerCase()}),I4=C1("toLowerCase");function B4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;if(!vt||Gt>=vt)return ct;var nr=(vt-Gt)/2;return F0(k0(nr),Nt)+ct+F0(_0(nr),Nt)}function M4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;return vt&&Gt>>0,Nt?(ct=ds(ct),ct&&(typeof vt=="string"||vt!=null&&!yu(vt))&&(vt=qs(vt),!vt&&Fo(ct))?Eo($a(ct),0,Nt):ct.split(vt,Nt)):[]}var D4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vu(vt)});function U4(ct,vt,Nt){return ct=ds(ct),Nt=Nt==null?0:Io(Xn(Nt),0,ct.length),vt=qs(vt),ct.slice(Nt,Nt+vt.length)==vt}function j4(ct,vt,Nt){var Gt=yr.templateSettings;Nt&&Ds(ct,vt,Nt)&&(vt=rt),ct=ds(ct),vt=K0({},vt,Gt,U1);var nr=K0({},vt.imports,Gt.imports,U1),vr=Cs(nr),Sr=$l(nr,vr),Mr,Lr,Jr=0,Qr=vt.interpolate||Pn,nn="__p += '",vn=Al((vt.escape||Pn).source+"|"+Qr.source+"|"+(Qr===Fn?Yr:Pn).source+"|"+(vt.evaluate||Pn).source+"|$","g"),Mn="//# sourceURL="+(ys.call(vt,"sourceURL")?(vt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yp+"]")+` `;ct.replace(vn,function(Un,_i,ss,Ys,Us,Xs){return ss||(ss=Ys),nn+=ct.slice(Jr,Xs).replace(In,yy),_i&&(Mr=!0,nn+=`' + __e(`+_i+`) + '`),Us&&(Lr=!0,nn+=`'; @@ -112,7 +112,7 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b$4=Symbol.for("react.element"),c$3=Symbol.for("react.portal"),d$3=Symbol.for("react.fragment"),e$3=Symbol.for("react.strict_mode"),f$5=Symbol.for("react.profiler"),g$6=Symbol.for("react.provider"),h$7=Symbol.for("react.context"),k$5=Symbol.for("react.server_context"),l$3=Symbol.for("react.forward_ref"),m$4=Symbol.for("react.suspense"),n$4=Symbol.for("react.suspense_list"),p$5=Symbol.for("react.memo"),q$5=Symbol.for("react.lazy"),t$4=Symbol.for("react.offscreen"),u$4;u$4=Symbol.for("react.module.reference");function v$6(et){if(typeof et=="object"&&et!==null){var tt=et.$$typeof;switch(tt){case b$4:switch(et=et.type,et){case d$3:case f$5:case e$3:case m$4:case n$4:return et;default:switch(et=et&&et.$$typeof,et){case k$5:case h$7:case l$3:case q$5:case p$5:case g$6:return et;default:return tt}}case c$3:return tt}}}reactIs_production_min$1.ContextConsumer=h$7;reactIs_production_min$1.ContextProvider=g$6;reactIs_production_min$1.Element=b$4;reactIs_production_min$1.ForwardRef=l$3;reactIs_production_min$1.Fragment=d$3;reactIs_production_min$1.Lazy=q$5;reactIs_production_min$1.Memo=p$5;reactIs_production_min$1.Portal=c$3;reactIs_production_min$1.Profiler=f$5;reactIs_production_min$1.StrictMode=e$3;reactIs_production_min$1.Suspense=m$4;reactIs_production_min$1.SuspenseList=n$4;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(et){return v$6(et)===h$7};reactIs_production_min$1.isContextProvider=function(et){return v$6(et)===g$6};reactIs_production_min$1.isElement=function(et){return typeof et=="object"&&et!==null&&et.$$typeof===b$4};reactIs_production_min$1.isForwardRef=function(et){return v$6(et)===l$3};reactIs_production_min$1.isFragment=function(et){return v$6(et)===d$3};reactIs_production_min$1.isLazy=function(et){return v$6(et)===q$5};reactIs_production_min$1.isMemo=function(et){return v$6(et)===p$5};reactIs_production_min$1.isPortal=function(et){return v$6(et)===c$3};reactIs_production_min$1.isProfiler=function(et){return v$6(et)===f$5};reactIs_production_min$1.isStrictMode=function(et){return v$6(et)===e$3};reactIs_production_min$1.isSuspense=function(et){return v$6(et)===m$4};reactIs_production_min$1.isSuspenseList=function(et){return v$6(et)===n$4};reactIs_production_min$1.isValidElementType=function(et){return typeof et=="string"||typeof et=="function"||et===d$3||et===f$5||et===e$3||et===m$4||et===n$4||et===t$4||typeof et=="object"&&et!==null&&(et.$$typeof===q$5||et.$$typeof===p$5||et.$$typeof===g$6||et.$$typeof===h$7||et.$$typeof===l$3||et.$$typeof===u$4||et.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$6;reactIs$2.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$2.exports;function stylis_min(et){function tt(xt,Lt,tr,pr,Kt){for(var Qt=0,Zt=0,ur=0,_r=0,er,Jt,Ar=0,Er=0,Dr,Xr=Dr=er=0,Vr=0,wr=0,br=0,or=0,xr=tr.length,Pr=xr-1,Or,rr="",gr="",Ir="",Yt="",Ut;Vrer)&&(or=(rr=rr.replace(" ",":")).length),0pr&&(pr=(Lt=Lt.trim()).charCodeAt(0)),pr){case 38:return Lt.replace(mt,"$1"+xt.trim());case 58:return xt.trim()+Lt.replace(mt,"$1"+xt.trim());default:if(0<1*tr&&0Zt.charCodeAt(8))break;case 115:Kt=Kt.replace(Zt,"-webkit-"+Zt)+";"+Kt;break;case 207:case 102:Kt=Kt.replace(Zt,"-webkit-"+(102tr.charCodeAt(0)&&(tr=tr.trim()),Ct=tr,tr=[Ct],0er)&&(or=(rr=rr.replace(" ",":")).length),0pr&&(pr=(Dt=Dt.trim()).charCodeAt(0)),pr){case 38:return Dt.replace(mt,"$1"+xt.trim());case 58:return xt.trim()+Dt.replace(mt,"$1"+xt.trim());default:if(0<1*tr&&0Zt.charCodeAt(8))break;case 115:Kt=Kt.replace(Zt,"-webkit-"+Zt)+";"+Kt;break;case 207:case 102:Kt=Kt.replace(Zt,"-webkit-"+(102tr.charCodeAt(0)&&(tr=tr.trim()),Ct=tr,tr=[Ct],01?tt-1:0),nt=1;nt0?" Args: "+rt.join(", "):""))}var T$1=function(){function et(rt){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=rt}var tt=et.prototype;return tt.indexOfGroup=function(rt){for(var nt=0,it=0;it=this.groupSizes.length){for(var it=this.groupSizes,st=it.length,at=st;rt>=at;)(at<<=1)<0&&j(16,""+rt);this.groupSizes=new Uint32Array(at),this.groupSizes.set(it),this.length=at;for(var ot=st;ot=this.length||this.groupSizes[rt]===0)return nt;for(var it=this.groupSizes[rt],st=this.indexOfGroup(rt),at=st+it,ot=st;ot=V&&(V=tt+1),x$2.set(et,tt),k$3.set(tt,et)},G$1="style["+A$1+'][data-styled-version="5.3.9"]',L$1=new RegExp("^"+A$1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(et,tt,rt){for(var nt,it=rt.split(","),st=0,at=it.length;st=0;ut--){var dt=lt[ut];if(dt&&dt.nodeType===1&&dt.hasAttribute(A$1))return dt}}(rt),st=it!==void 0?it.nextSibling:null;nt.setAttribute(A$1,"active"),nt.setAttribute("data-styled-version","5.3.9");var at=q$3();return at&&nt.setAttribute("nonce",at),rt.insertBefore(nt,st),nt},$$1=function(){function et(rt){var nt=this.element=H$1(rt);nt.appendChild(document.createTextNode("")),this.sheet=function(it){if(it.sheet)return it.sheet;for(var st=document.styleSheets,at=0,ot=st.length;at=0){var it=document.createTextNode(nt),st=this.nodes[rt];return this.element.insertBefore(it,st||null),this.length++,!0}return!1},tt.deleteRule=function(rt){this.element.removeChild(this.nodes[rt]),this.length--},tt.getRule=function(rt){return rt0&&(bt+=gt+",")}),st+=""+ut+dt+'{content:"'+bt+`"}/*!sc*/ -`}}}return st}(this)},et}(),K$5=/(a)(d)/gi,Q$1=function(et){return String.fromCharCode(et+(et>25?39:97))};function ee(et){var tt,rt="";for(tt=Math.abs(et);tt>52;tt=tt/52|0)rt=Q$1(tt%52)+rt;return(Q$1(tt%52)+rt).replace(K$5,"$1-$2")}var te=function(et,tt){for(var rt=tt.length;rt;)et=33*et^tt.charCodeAt(--rt);return et},ne=function(et){return te(5381,et)};function re$1(et){for(var tt=0;tt>>0);if(!rt.hasNameForId(it,ot)){var lt=nt(at,"."+ot,void 0,it);rt.insertRules(it,ot,lt)}st.push(ot),this.staticRulesId=ot}else{for(var ut=this.rules.length,dt=te(this.baseHash,nt.hash),bt="",gt=0;gt>>0);if(!rt.hasNameForId(it,$t)){var mt=nt(bt,"."+$t,void 0,it);rt.insertRules(it,$t,mt)}st.push($t)}}return st.join(" ")},et}(),ie=/^\s*\/\/.*$/gm,ae=[":","[",".","#"];function ce(et){var tt,rt,nt,it,st=et===void 0?E$1:et,at=st.options,ot=at===void 0?E$1:at,lt=st.plugins,ut=lt===void 0?w$3:lt,dt=new stylis_min(ot),bt=[],gt=function(yt){function $t(mt){if(mt)try{yt(mt+"}")}catch{}}return function(mt,wt,St,Bt,Ft,Dt,zt,Ht,Wt,lr){switch(mt){case 1:if(Wt===0&&wt.charCodeAt(0)===64)return yt(wt+";"),"";break;case 2:if(Ht===0)return wt+"/*|*/";break;case 3:switch(Ht){case 102:case 112:return yt(St[0]+wt),"";default:return wt+(lr===0?"/*|*/":"")}case-2:wt.split("/*|*/}").forEach($t)}}}(function(yt){bt.push(yt)}),kt=function(yt,$t,mt){return $t===0&&ae.indexOf(mt[rt.length])!==-1||mt.match(it)?yt:"."+tt};function pt(yt,$t,mt,wt){wt===void 0&&(wt="&");var St=yt.replace(ie,""),Bt=$t&&mt?mt+" "+$t+" { "+St+" }":St;return tt=wt,rt=$t,nt=new RegExp("\\"+rt+"\\b","g"),it=new RegExp("(\\"+rt+"\\b){2,}"),dt(mt||!$t?"":$t,Bt)}return dt.use([].concat(ut,[function(yt,$t,mt){yt===2&&mt.length&&mt[0].lastIndexOf(rt)>0&&(mt[0]=mt[0].replace(nt,kt))},gt,function(yt){if(yt===-2){var $t=bt;return bt=[],$t}}])),pt.hash=ut.length?ut.reduce(function(yt,$t){return $t.name||j(15),te(yt,$t.name)},5381).toString():"",pt}var ue=React.createContext();ue.Consumer;var de=React.createContext(),he=(de.Consumer,new Z),pe=ce();function fe(){return reactExports.useContext(ue)||he}function me(){return reactExports.useContext(de)||pe}var ve=function(){function et(tt,rt){var nt=this;this.inject=function(it,st){st===void 0&&(st=pe);var at=nt.name+st.hash;it.hasNameForId(nt.id,at)||it.insertRules(nt.id,at,st(nt.rules,at,"@keyframes"))},this.toString=function(){return j(12,String(nt.name))},this.name=tt,this.id="sc-keyframes-"+tt,this.rules=rt}return et.prototype.getName=function(tt){return tt===void 0&&(tt=pe),this.name+tt.hash},et}(),ge=/([A-Z])/,Se=/([A-Z])/g,we=/^ms-/,Ee=function(et){return"-"+et.toLowerCase()};function be(et){return ge.test(et)?et.replace(Se,Ee).replace(we,"-ms-"):et}var _e=function(et){return et==null||et===!1||et===""};function Ne(et,tt,rt,nt){if(Array.isArray(et)){for(var it,st=[],at=0,ot=et.length;at1?tt-1:0),nt=1;nt?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Te(et){return et.replace(De,"-").replace(je,"")}var xe=function(et){return ee(ne(et)>>>0)};function ke(et){return typeof et=="string"&&!0}var Ve=function(et){return typeof et=="function"||typeof et=="object"&&et!==null&&!Array.isArray(et)},Be=function(et){return et!=="__proto__"&&et!=="constructor"&&et!=="prototype"};function ze(et,tt,rt){var nt=et[rt];Ve(tt)&&Ve(nt)?Me(nt,tt):et[rt]=tt}function Me(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt=0||(lr[Ht]=Dt[Ht]);return lr}(tt,["componentId"]),Ft=St&&St+"-"+(ke(wt)?wt:Te(_$3(wt)));return qe(wt,v$4({},Bt,{attrs:gt,componentId:Ft}),rt)},Object.defineProperty(pt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(wt){this._foldedDefaultProps=nt?Me({},et.defaultProps,wt):wt}}),Object.defineProperty(pt,"toString",{value:function(){return"."+pt.styledComponentId}}),it&&hoistNonReactStatics$1(pt,et,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),pt}var He=function(et){return function tt(rt,nt,it){if(it===void 0&&(it=E$1),!reactIsExports$1.isValidElementType(nt))return j(1,String(nt));var st=function(){return rt(nt,it,Ce.apply(void 0,arguments))};return st.withConfig=function(at){return tt(rt,nt,v$4({},it,{},at))},st.attrs=function(at){return tt(rt,nt,v$4({},it,{attrs:Array.prototype.concat(it.attrs,at).filter(Boolean)}))},st}(qe,et)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(et){He[et]=He(et)});var $e=function(){function et(rt,nt){this.rules=rt,this.componentId=nt,this.isStatic=re$1(rt),Z.registerId(this.componentId+1)}var tt=et.prototype;return tt.createStyles=function(rt,nt,it,st){var at=st(Ne(this.rules,nt,it,st).join(""),""),ot=this.componentId+rt;it.insertRules(ot,ot,at)},tt.removeStyles=function(rt,nt){nt.clearRules(this.componentId+rt)},tt.renderStyles=function(rt,nt,it,st){rt>2&&Z.registerId(this.componentId+rt),this.removeStyles(rt,it),this.createStyles(rt,nt,it,st)},et}();function We(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt1?tt-1:0),nt=1;nt(tt,...rt)=>{const nt=Ce(tt,...rt);return nt.join("").trim()?Ce` +`}}}return st}(this)},et}(),K$5=/(a)(d)/gi,Q$1=function(et){return String.fromCharCode(et+(et>25?39:97))};function ee(et){var tt,rt="";for(tt=Math.abs(et);tt>52;tt=tt/52|0)rt=Q$1(tt%52)+rt;return(Q$1(tt%52)+rt).replace(K$5,"$1-$2")}var te=function(et,tt){for(var rt=tt.length;rt;)et=33*et^tt.charCodeAt(--rt);return et},ne=function(et){return te(5381,et)};function re$1(et){for(var tt=0;tt>>0);if(!rt.hasNameForId(it,ot)){var lt=nt(at,"."+ot,void 0,it);rt.insertRules(it,ot,lt)}st.push(ot),this.staticRulesId=ot}else{for(var ut=this.rules.length,dt=te(this.baseHash,nt.hash),bt="",gt=0;gt>>0);if(!rt.hasNameForId(it,$t)){var mt=nt(bt,"."+$t,void 0,it);rt.insertRules(it,$t,mt)}st.push($t)}}return st.join(" ")},et}(),ie=/^\s*\/\/.*$/gm,ae=[":","[",".","#"];function ce(et){var tt,rt,nt,it,st=et===void 0?E$1:et,at=st.options,ot=at===void 0?E$1:at,lt=st.plugins,ut=lt===void 0?w$3:lt,dt=new stylis_min(ot),bt=[],gt=function(yt){function $t(mt){if(mt)try{yt(mt+"}")}catch{}}return function(mt,wt,St,Bt,Ft,Lt,zt,Ht,Wt,lr){switch(mt){case 1:if(Wt===0&&wt.charCodeAt(0)===64)return yt(wt+";"),"";break;case 2:if(Ht===0)return wt+"/*|*/";break;case 3:switch(Ht){case 102:case 112:return yt(St[0]+wt),"";default:return wt+(lr===0?"/*|*/":"")}case-2:wt.split("/*|*/}").forEach($t)}}}(function(yt){bt.push(yt)}),kt=function(yt,$t,mt){return $t===0&&ae.indexOf(mt[rt.length])!==-1||mt.match(it)?yt:"."+tt};function pt(yt,$t,mt,wt){wt===void 0&&(wt="&");var St=yt.replace(ie,""),Bt=$t&&mt?mt+" "+$t+" { "+St+" }":St;return tt=wt,rt=$t,nt=new RegExp("\\"+rt+"\\b","g"),it=new RegExp("(\\"+rt+"\\b){2,}"),dt(mt||!$t?"":$t,Bt)}return dt.use([].concat(ut,[function(yt,$t,mt){yt===2&&mt.length&&mt[0].lastIndexOf(rt)>0&&(mt[0]=mt[0].replace(nt,kt))},gt,function(yt){if(yt===-2){var $t=bt;return bt=[],$t}}])),pt.hash=ut.length?ut.reduce(function(yt,$t){return $t.name||j(15),te(yt,$t.name)},5381).toString():"",pt}var ue=React.createContext();ue.Consumer;var de=React.createContext(),he=(de.Consumer,new Z),pe=ce();function fe(){return reactExports.useContext(ue)||he}function me(){return reactExports.useContext(de)||pe}var ve=function(){function et(tt,rt){var nt=this;this.inject=function(it,st){st===void 0&&(st=pe);var at=nt.name+st.hash;it.hasNameForId(nt.id,at)||it.insertRules(nt.id,at,st(nt.rules,at,"@keyframes"))},this.toString=function(){return j(12,String(nt.name))},this.name=tt,this.id="sc-keyframes-"+tt,this.rules=rt}return et.prototype.getName=function(tt){return tt===void 0&&(tt=pe),this.name+tt.hash},et}(),ge=/([A-Z])/,Se=/([A-Z])/g,we=/^ms-/,Ee=function(et){return"-"+et.toLowerCase()};function be(et){return ge.test(et)?et.replace(Se,Ee).replace(we,"-ms-"):et}var _e=function(et){return et==null||et===!1||et===""};function Ne(et,tt,rt,nt){if(Array.isArray(et)){for(var it,st=[],at=0,ot=et.length;at1?tt-1:0),nt=1;nt?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Te(et){return et.replace(De,"-").replace(je,"")}var xe=function(et){return ee(ne(et)>>>0)};function ke(et){return typeof et=="string"&&!0}var Ve=function(et){return typeof et=="function"||typeof et=="object"&&et!==null&&!Array.isArray(et)},Be=function(et){return et!=="__proto__"&&et!=="constructor"&&et!=="prototype"};function ze(et,tt,rt){var nt=et[rt];Ve(tt)&&Ve(nt)?Me(nt,tt):et[rt]=tt}function Me(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt=0||(lr[Ht]=Lt[Ht]);return lr}(tt,["componentId"]),Ft=St&&St+"-"+(ke(wt)?wt:Te(_$3(wt)));return qe(wt,v$4({},Bt,{attrs:gt,componentId:Ft}),rt)},Object.defineProperty(pt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(wt){this._foldedDefaultProps=nt?Me({},et.defaultProps,wt):wt}}),Object.defineProperty(pt,"toString",{value:function(){return"."+pt.styledComponentId}}),it&&hoistNonReactStatics$1(pt,et,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),pt}var He=function(et){return function tt(rt,nt,it){if(it===void 0&&(it=E$1),!reactIsExports$1.isValidElementType(nt))return j(1,String(nt));var st=function(){return rt(nt,it,Ce.apply(void 0,arguments))};return st.withConfig=function(at){return tt(rt,nt,v$4({},it,{},at))},st.attrs=function(at){return tt(rt,nt,v$4({},it,{attrs:Array.prototype.concat(it.attrs,at).filter(Boolean)}))},st}(qe,et)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(et){He[et]=He(et)});var $e=function(){function et(rt,nt){this.rules=rt,this.componentId=nt,this.isStatic=re$1(rt),Z.registerId(this.componentId+1)}var tt=et.prototype;return tt.createStyles=function(rt,nt,it,st){var at=st(Ne(this.rules,nt,it,st).join(""),""),ot=this.componentId+rt;it.insertRules(ot,ot,at)},tt.removeStyles=function(rt,nt){nt.clearRules(this.componentId+rt)},tt.renderStyles=function(rt,nt,it,st){rt>2&&Z.registerId(this.componentId+rt),this.removeStyles(rt,it),this.createStyles(rt,nt,it,st)},et}();function We(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt1?tt-1:0),nt=1;nt(tt,...rt)=>{const nt=Ce(tt,...rt);return nt.join("").trim()?Ce` @media ${et} { ${nt} } - `:[""]},breakpoints={large:1024,medium:640,small:0},media={large:cssWithMediaQuery(`(min-width: ${breakpoints.large}px)`),medium:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px)`),mediumOnly:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px) and (max-width: ${breakpoints.large-1}px)`),small:cssWithMediaQuery(`(min-width: ${breakpoints.small}px)`),smallOnly:cssWithMediaQuery(`(min-width: ${breakpoints.small}px) and (max-width: ${breakpoints.medium-1}px)`)};var dist$1={},identifier$1={},assert$o={exports:{}},errors$3={},util={},types$7={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var tt={},rt=Symbol("test"),nt=Object(rt);if(typeof rt=="string"||Object.prototype.toString.call(rt)!=="[object Symbol]"||Object.prototype.toString.call(nt)!=="[object Symbol]")return!1;var it=42;tt[rt]=it;for(rt in tt)return!1;if(typeof Object.keys=="function"&&Object.keys(tt).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(tt).length!==0)return!1;var st=Object.getOwnPropertySymbols(tt);if(st.length!==1||st[0]!==rt||!Object.prototype.propertyIsEnumerable.call(tt,rt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var at=Object.getOwnPropertyDescriptor(tt,rt);if(at.value!==it||at.enumerable!==!0)return!1}return!0},hasSymbols$3=shams$1,shams=function(){return hasSymbols$3()&&!!Symbol.toStringTag},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$2=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$4=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(tt,rt){for(var nt=[],it=0;it"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols$1?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(et){var errorProto=getProto$1(getProto$1(et));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function et(tt){var rt;if(tt==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(tt==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(tt==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(tt==="%AsyncGenerator%"){var nt=et("%AsyncGeneratorFunction%");nt&&(rt=nt.prototype)}else if(tt==="%AsyncIteratorPrototype%"){var it=et("%AsyncGenerator%");it&&getProto$1&&(rt=getProto$1(it.prototype))}return INTRINSICS[tt]=rt,rt},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=function(tt){var rt=$strSlice(tt,0,1),nt=$strSlice(tt,-1);if(rt==="%"&&nt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&rt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var it=[];return $replace(tt,rePropName,function(st,at,ot,lt){it[it.length]=ot?$replace(lt,reEscapeChar,"$1"):at||st}),it},getBaseIntrinsic=function(tt,rt){var nt=tt,it;if(hasOwn(LEGACY_ALIASES,nt)&&(it=LEGACY_ALIASES[nt],nt="%"+it[0]+"%"),hasOwn(INTRINSICS,nt)){var st=INTRINSICS[nt];if(st===needsEval&&(st=doEval(nt)),typeof st>"u"&&!rt)throw new $TypeError$2("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:it,name:nt,value:st}}throw new $SyntaxError$1("intrinsic "+tt+" does not exist!")},getIntrinsic=function(tt,rt){if(typeof tt!="string"||tt.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,tt)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=stringToPath$1(tt),it=nt.length>0?nt[0]:"",st=getBaseIntrinsic("%"+it+"%",rt),at=st.name,ot=st.value,lt=!1,ut=st.alias;ut&&(it=ut[0],$spliceApply(nt,$concat([0,1],ut)));for(var dt=1,bt=!0;dt=nt.length){var yt=$gOPD$1(ot,gt);bt=!!yt,bt&&"get"in yt&&!("originalValue"in yt.get)?ot=yt.get:ot=ot[gt]}else bt=hasOwn(ot,gt),ot=ot[gt];bt&&!lt&&(INTRINSICS[at]=ot)}}return ot},callBind$2={exports:{}},GetIntrinsic$4=getIntrinsic,$defineProperty$1=GetIntrinsic$4("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch{return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$2=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$2("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}var $SyntaxError=GetIntrinsic$2("%SyntaxError%"),$TypeError$1=GetIntrinsic$2("%TypeError%"),gopd=gopd$1,defineDataProperty=function(tt,rt,nt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof rt!="string"&&typeof rt!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var it=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,at=arguments.length>5?arguments[5]:null,ot=arguments.length>6?arguments[6]:!1,lt=!!gopd&&gopd(tt,rt);if($defineProperty)$defineProperty(tt,rt,{configurable:at===null&<?lt.configurable:!at,enumerable:it===null&<?lt.enumerable:!it,value:nt,writable:st===null&<?lt.writable:!st});else if(ot||!it&&!st&&!at)tt[rt]=nt;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=GetIntrinsic$1("%TypeError%"),$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(tt,rt){if(typeof tt!="function")throw new $TypeError("`fn` is not a function");if(typeof rt!="number"||rt<0||rt>4294967295||$floor(rt)!==rt)throw new $TypeError("`length` must be a positive 32-bit integer");var nt=arguments.length>2&&!!arguments[2],it=!0,st=!0;if("length"in tt&&gOPD$1){var at=gOPD$1(tt,"length");at&&!at.configurable&&(it=!1),at&&!at.writable&&(st=!1)}return(it||st||!nt)&&(hasDescriptors?define(tt,"length",rt,!0,!0):define(tt,"length",rt)),tt};(function(et){var tt=functionBind,rt=getIntrinsic,nt=setFunctionLength,it=rt("%TypeError%"),st=rt("%Function.prototype.apply%"),at=rt("%Function.prototype.call%"),ot=rt("%Reflect.apply%",!0)||tt.call(at,st),lt=rt("%Object.defineProperty%",!0),ut=rt("%Math.max%");if(lt)try{lt({},"a",{value:1})}catch{lt=null}et.exports=function(gt){if(typeof gt!="function")throw new it("a function is required");var kt=ot(tt,at,arguments);return nt(kt,1+ut(0,gt.length-(arguments.length-1)),!0)};var dt=function(){return ot(tt,st,arguments)};lt?lt(et.exports,"apply",{value:dt}):et.exports.apply=dt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$3=function(tt,rt){var nt=GetIntrinsic(tt,!!rt);return typeof nt=="function"&&$indexOf$1(tt,".prototype.")>-1?callBind$1(nt):nt},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(tt){return hasToStringTag$3&&tt&&typeof tt=="object"&&Symbol.toStringTag in tt?!1:$toString$1(tt)==="[object Arguments]"},isLegacyArguments=function(tt){return isStandardArguments(tt)?!0:tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&$toString$1(tt)!=="[object Array]"&&$toString$1(tt.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$3=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(tt){if(typeof tt!="function")return!1;if(isFnRegex.test(fnToStr$1.call(tt)))return!0;if(!hasToStringTag$2){var rt=toStr$3.call(tt);return rt==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var nt=getGeneratorFunc();GeneratorFunction=nt?getProto(nt):!1}return getProto(tt)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(et){et!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(tt){try{var rt=fnToStr.call(tt);return constructorRegex.test(rt)}catch{return!1}},tryFunctionObject=function(tt){try{return isES6ClassFn(tt)?!1:(fnToStr.call(tt),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(tt){if((isIE68||!tt)&&(typeof tt>"u"||typeof tt=="object"))try{var rt=toStr$2.call(tt);return(rt===ddaClass||rt===ddaClass2||rt===ddaClass3||rt===objectClass)&&tt("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;try{reflectApply(tt,null,badArrayLike)}catch(rt){if(rt!==isCallableMarker)return!1}return!isES6ClassFn(tt)&&tryFunctionObject(tt)}:function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(tt);if(isES6ClassFn(tt))return!1;var rt=toStr$2.call(tt);return rt!==fnClass&&rt!==genClass&&!/^\[object HTML/.test(rt)?!1:tryFunctionObject(tt)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$a=Object.prototype.hasOwnProperty,forEachArray=function(tt,rt,nt){for(var it=0,st=tt.length;it=3&&(it=nt),toStr$1.call(tt)==="[object Array]"?forEachArray(tt,rt,it):typeof tt=="string"?forEachString(tt,rt,it):forEachObject(tt,rt,it)},forEach_1=forEach$1,possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g$3=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var tt=[],rt=0;rt"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound$1("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(tt,rt){for(var nt=0;nt-1?rt:rt!=="Object"?!1:trySlices(tt)}return gOPD?tryTypedArrays(tt):null},whichTypedArray=whichTypedArray$1,isTypedArray$2=function(tt){return!!whichTypedArray(tt)};(function(et){var tt=isArguments$3,rt=isGeneratorFunction,nt=whichTypedArray$1,it=isTypedArray$2;function st(br){return br.call.bind(br)}var at=typeof BigInt<"u",ot=typeof Symbol<"u",lt=st(Object.prototype.toString),ut=st(Number.prototype.valueOf),dt=st(String.prototype.valueOf),bt=st(Boolean.prototype.valueOf);if(at)var gt=st(BigInt.prototype.valueOf);if(ot)var kt=st(Symbol.prototype.valueOf);function pt(br,or){if(typeof br!="object")return!1;try{return or(br),!0}catch{return!1}}et.isArgumentsObject=tt,et.isGeneratorFunction=rt,et.isTypedArray=it;function yt(br){return typeof Promise<"u"&&br instanceof Promise||br!==null&&typeof br=="object"&&typeof br.then=="function"&&typeof br.catch=="function"}et.isPromise=yt;function $t(br){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(br):it(br)||Lt(br)}et.isArrayBufferView=$t;function mt(br){return nt(br)==="Uint8Array"}et.isUint8Array=mt;function wt(br){return nt(br)==="Uint8ClampedArray"}et.isUint8ClampedArray=wt;function St(br){return nt(br)==="Uint16Array"}et.isUint16Array=St;function Bt(br){return nt(br)==="Uint32Array"}et.isUint32Array=Bt;function Ft(br){return nt(br)==="Int8Array"}et.isInt8Array=Ft;function Dt(br){return nt(br)==="Int16Array"}et.isInt16Array=Dt;function zt(br){return nt(br)==="Int32Array"}et.isInt32Array=zt;function Ht(br){return nt(br)==="Float32Array"}et.isFloat32Array=Ht;function Wt(br){return nt(br)==="Float64Array"}et.isFloat64Array=Wt;function lr(br){return nt(br)==="BigInt64Array"}et.isBigInt64Array=lr;function qt(br){return nt(br)==="BigUint64Array"}et.isBigUint64Array=qt;function Ot(br){return lt(br)==="[object Map]"}Ot.working=typeof Map<"u"&&Ot(new Map);function Mt(br){return typeof Map>"u"?!1:Ot.working?Ot(br):br instanceof Map}et.isMap=Mt;function ht(br){return lt(br)==="[object Set]"}ht.working=typeof Set<"u"&&ht(new Set);function Et(br){return typeof Set>"u"?!1:ht.working?ht(br):br instanceof Set}et.isSet=Et;function Tt(br){return lt(br)==="[object WeakMap]"}Tt.working=typeof WeakMap<"u"&&Tt(new WeakMap);function Rt(br){return typeof WeakMap>"u"?!1:Tt.working?Tt(br):br instanceof WeakMap}et.isWeakMap=Rt;function At(br){return lt(br)==="[object WeakSet]"}At.working=typeof WeakSet<"u"&&At(new WeakSet);function Pt(br){return At(br)}et.isWeakSet=Pt;function It(br){return lt(br)==="[object ArrayBuffer]"}It.working=typeof ArrayBuffer<"u"&&It(new ArrayBuffer);function Ct(br){return typeof ArrayBuffer>"u"?!1:It.working?It(br):br instanceof ArrayBuffer}et.isArrayBuffer=Ct;function xt(br){return lt(br)==="[object DataView]"}xt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&xt(new DataView(new ArrayBuffer(1),0,1));function Lt(br){return typeof DataView>"u"?!1:xt.working?xt(br):br instanceof DataView}et.isDataView=Lt;var tr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pr(br){return lt(br)==="[object SharedArrayBuffer]"}function Kt(br){return typeof tr>"u"?!1:(typeof pr.working>"u"&&(pr.working=pr(new tr)),pr.working?pr(br):br instanceof tr)}et.isSharedArrayBuffer=Kt;function Qt(br){return lt(br)==="[object AsyncFunction]"}et.isAsyncFunction=Qt;function Zt(br){return lt(br)==="[object Map Iterator]"}et.isMapIterator=Zt;function ur(br){return lt(br)==="[object Set Iterator]"}et.isSetIterator=ur;function _r(br){return lt(br)==="[object Generator]"}et.isGeneratorObject=_r;function er(br){return lt(br)==="[object WebAssembly.Module]"}et.isWebAssemblyCompiledModule=er;function Jt(br){return pt(br,ut)}et.isNumberObject=Jt;function Ar(br){return pt(br,dt)}et.isStringObject=Ar;function Er(br){return pt(br,bt)}et.isBooleanObject=Er;function Dr(br){return at&&pt(br,gt)}et.isBigIntObject=Dr;function Xr(br){return ot&&pt(br,kt)}et.isSymbolObject=Xr;function Vr(br){return Jt(br)||Ar(br)||Er(br)||Dr(br)||Xr(br)}et.isBoxedPrimitive=Vr;function wr(br){return typeof Uint8Array<"u"&&(Ct(br)||Kt(br))}et.isAnyArrayBuffer=wr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(br){Object.defineProperty(et,br,{enumerable:!1,value:function(){throw new Error(br+" is not supported in userland")}})})})(types$7);var isBufferBrowser=function(tt){return tt&&typeof tt=="object"&&typeof tt.copy=="function"&&typeof tt.fill=="function"&&typeof tt.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(tt,rt){rt&&(tt.super_=rt,tt.prototype=Object.create(rt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(tt,rt){if(rt){tt.super_=rt;var nt=function(){};nt.prototype=rt.prototype,tt.prototype=new nt,tt.prototype.constructor=tt}};var inherits_browserExports=inherits_browser.exports;(function(et){var tt=Object.getOwnPropertyDescriptors||function(Lt){for(var tr=Object.keys(Lt),pr={},Kt=0;Kt=Kt)return ur;switch(ur){case"%s":return String(pr[tr++]);case"%d":return Number(pr[tr++]);case"%j":try{return JSON.stringify(pr[tr++])}catch{return"[Circular]"}default:return ur}}),Zt=pr[tr];tr"u")return function(){return et.deprecate(xt,Lt).apply(this,arguments)};var tr=!1;function pr(){if(!tr){if(process.throwDeprecation)throw new Error(Lt);process.traceDeprecation?console.trace(Lt):console.error(Lt),tr=!0}return xt.apply(this,arguments)}return pr};var nt={},it=/^$/;if({}.NODE_DEBUG){var st={}.NODE_DEBUG;st=st.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),it=new RegExp("^"+st+"$","i")}et.debuglog=function(xt){if(xt=xt.toUpperCase(),!nt[xt])if(it.test(xt)){var Lt=process.pid;nt[xt]=function(){var tr=et.format.apply(et,arguments);console.error("%s %d: %s",xt,Lt,tr)}}else nt[xt]=function(){};return nt[xt]};function at(xt,Lt){var tr={seen:[],stylize:lt};return arguments.length>=3&&(tr.depth=arguments[2]),arguments.length>=4&&(tr.colors=arguments[3]),mt(Lt)?tr.showHidden=Lt:Lt&&et._extend(tr,Lt),zt(tr.showHidden)&&(tr.showHidden=!1),zt(tr.depth)&&(tr.depth=2),zt(tr.colors)&&(tr.colors=!1),zt(tr.customInspect)&&(tr.customInspect=!0),tr.colors&&(tr.stylize=ot),dt(tr,xt,tr.depth)}et.inspect=at,at.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},at.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ot(xt,Lt){var tr=at.styles[Lt];return tr?"\x1B["+at.colors[tr][0]+"m"+xt+"\x1B["+at.colors[tr][1]+"m":xt}function lt(xt,Lt){return xt}function ut(xt){var Lt={};return xt.forEach(function(tr,pr){Lt[tr]=!0}),Lt}function dt(xt,Lt,tr){if(xt.customInspect&&Lt&&Ot(Lt.inspect)&&Lt.inspect!==et.inspect&&!(Lt.constructor&&Lt.constructor.prototype===Lt)){var pr=Lt.inspect(tr,xt);return Ft(pr)||(pr=dt(xt,pr,tr)),pr}var Kt=bt(xt,Lt);if(Kt)return Kt;var Qt=Object.keys(Lt),Zt=ut(Qt);if(xt.showHidden&&(Qt=Object.getOwnPropertyNames(Lt)),qt(Lt)&&(Qt.indexOf("message")>=0||Qt.indexOf("description")>=0))return gt(Lt);if(Qt.length===0){if(Ot(Lt)){var ur=Lt.name?": "+Lt.name:"";return xt.stylize("[Function"+ur+"]","special")}if(Ht(Lt))return xt.stylize(RegExp.prototype.toString.call(Lt),"regexp");if(lr(Lt))return xt.stylize(Date.prototype.toString.call(Lt),"date");if(qt(Lt))return gt(Lt)}var _r="",er=!1,Jt=["{","}"];if($t(Lt)&&(er=!0,Jt=["[","]"]),Ot(Lt)){var Ar=Lt.name?": "+Lt.name:"";_r=" [Function"+Ar+"]"}if(Ht(Lt)&&(_r=" "+RegExp.prototype.toString.call(Lt)),lr(Lt)&&(_r=" "+Date.prototype.toUTCString.call(Lt)),qt(Lt)&&(_r=" "+gt(Lt)),Qt.length===0&&(!er||Lt.length==0))return Jt[0]+_r+Jt[1];if(tr<0)return Ht(Lt)?xt.stylize(RegExp.prototype.toString.call(Lt),"regexp"):xt.stylize("[Object]","special");xt.seen.push(Lt);var Er;return er?Er=kt(xt,Lt,tr,Zt,Qt):Er=Qt.map(function(Dr){return pt(xt,Lt,tr,Zt,Dr,er)}),xt.seen.pop(),yt(Er,_r,Jt)}function bt(xt,Lt){if(zt(Lt))return xt.stylize("undefined","undefined");if(Ft(Lt)){var tr="'"+JSON.stringify(Lt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(tr,"string")}if(Bt(Lt))return xt.stylize(""+Lt,"number");if(mt(Lt))return xt.stylize(""+Lt,"boolean");if(wt(Lt))return xt.stylize("null","null")}function gt(xt){return"["+Error.prototype.toString.call(xt)+"]"}function kt(xt,Lt,tr,pr,Kt){for(var Qt=[],Zt=0,ur=Lt.length;Zt"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols$1?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(et){var errorProto=getProto$1(getProto$1(et));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function et(tt){var rt;if(tt==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(tt==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(tt==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(tt==="%AsyncGenerator%"){var nt=et("%AsyncGeneratorFunction%");nt&&(rt=nt.prototype)}else if(tt==="%AsyncIteratorPrototype%"){var it=et("%AsyncGenerator%");it&&getProto$1&&(rt=getProto$1(it.prototype))}return INTRINSICS[tt]=rt,rt},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=function(tt){var rt=$strSlice(tt,0,1),nt=$strSlice(tt,-1);if(rt==="%"&&nt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&rt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var it=[];return $replace(tt,rePropName,function(st,at,ot,lt){it[it.length]=ot?$replace(lt,reEscapeChar,"$1"):at||st}),it},getBaseIntrinsic=function(tt,rt){var nt=tt,it;if(hasOwn(LEGACY_ALIASES,nt)&&(it=LEGACY_ALIASES[nt],nt="%"+it[0]+"%"),hasOwn(INTRINSICS,nt)){var st=INTRINSICS[nt];if(st===needsEval&&(st=doEval(nt)),typeof st>"u"&&!rt)throw new $TypeError$2("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:it,name:nt,value:st}}throw new $SyntaxError$1("intrinsic "+tt+" does not exist!")},getIntrinsic=function(tt,rt){if(typeof tt!="string"||tt.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,tt)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=stringToPath$1(tt),it=nt.length>0?nt[0]:"",st=getBaseIntrinsic("%"+it+"%",rt),at=st.name,ot=st.value,lt=!1,ut=st.alias;ut&&(it=ut[0],$spliceApply(nt,$concat([0,1],ut)));for(var dt=1,bt=!0;dt=nt.length){var yt=$gOPD$1(ot,gt);bt=!!yt,bt&&"get"in yt&&!("originalValue"in yt.get)?ot=yt.get:ot=ot[gt]}else bt=hasOwn(ot,gt),ot=ot[gt];bt&&!lt&&(INTRINSICS[at]=ot)}}return ot},callBind$2={exports:{}},GetIntrinsic$4=getIntrinsic,$defineProperty$1=GetIntrinsic$4("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch{return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$2=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$2("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}var $SyntaxError=GetIntrinsic$2("%SyntaxError%"),$TypeError$1=GetIntrinsic$2("%TypeError%"),gopd=gopd$1,defineDataProperty=function(tt,rt,nt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof rt!="string"&&typeof rt!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var it=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,at=arguments.length>5?arguments[5]:null,ot=arguments.length>6?arguments[6]:!1,lt=!!gopd&&gopd(tt,rt);if($defineProperty)$defineProperty(tt,rt,{configurable:at===null&<?lt.configurable:!at,enumerable:it===null&<?lt.enumerable:!it,value:nt,writable:st===null&<?lt.writable:!st});else if(ot||!it&&!st&&!at)tt[rt]=nt;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=GetIntrinsic$1("%TypeError%"),$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(tt,rt){if(typeof tt!="function")throw new $TypeError("`fn` is not a function");if(typeof rt!="number"||rt<0||rt>4294967295||$floor(rt)!==rt)throw new $TypeError("`length` must be a positive 32-bit integer");var nt=arguments.length>2&&!!arguments[2],it=!0,st=!0;if("length"in tt&&gOPD$1){var at=gOPD$1(tt,"length");at&&!at.configurable&&(it=!1),at&&!at.writable&&(st=!1)}return(it||st||!nt)&&(hasDescriptors?define(tt,"length",rt,!0,!0):define(tt,"length",rt)),tt};(function(et){var tt=functionBind,rt=getIntrinsic,nt=setFunctionLength,it=rt("%TypeError%"),st=rt("%Function.prototype.apply%"),at=rt("%Function.prototype.call%"),ot=rt("%Reflect.apply%",!0)||tt.call(at,st),lt=rt("%Object.defineProperty%",!0),ut=rt("%Math.max%");if(lt)try{lt({},"a",{value:1})}catch{lt=null}et.exports=function(gt){if(typeof gt!="function")throw new it("a function is required");var kt=ot(tt,at,arguments);return nt(kt,1+ut(0,gt.length-(arguments.length-1)),!0)};var dt=function(){return ot(tt,st,arguments)};lt?lt(et.exports,"apply",{value:dt}):et.exports.apply=dt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$3=function(tt,rt){var nt=GetIntrinsic(tt,!!rt);return typeof nt=="function"&&$indexOf$1(tt,".prototype.")>-1?callBind$1(nt):nt},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(tt){return hasToStringTag$3&&tt&&typeof tt=="object"&&Symbol.toStringTag in tt?!1:$toString$1(tt)==="[object Arguments]"},isLegacyArguments=function(tt){return isStandardArguments(tt)?!0:tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&$toString$1(tt)!=="[object Array]"&&$toString$1(tt.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$3=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(tt){if(typeof tt!="function")return!1;if(isFnRegex.test(fnToStr$1.call(tt)))return!0;if(!hasToStringTag$2){var rt=toStr$3.call(tt);return rt==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var nt=getGeneratorFunc();GeneratorFunction=nt?getProto(nt):!1}return getProto(tt)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(et){et!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(tt){try{var rt=fnToStr.call(tt);return constructorRegex.test(rt)}catch{return!1}},tryFunctionObject=function(tt){try{return isES6ClassFn(tt)?!1:(fnToStr.call(tt),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(tt){if((isIE68||!tt)&&(typeof tt>"u"||typeof tt=="object"))try{var rt=toStr$2.call(tt);return(rt===ddaClass||rt===ddaClass2||rt===ddaClass3||rt===objectClass)&&tt("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;try{reflectApply(tt,null,badArrayLike)}catch(rt){if(rt!==isCallableMarker)return!1}return!isES6ClassFn(tt)&&tryFunctionObject(tt)}:function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(tt);if(isES6ClassFn(tt))return!1;var rt=toStr$2.call(tt);return rt!==fnClass&&rt!==genClass&&!/^\[object HTML/.test(rt)?!1:tryFunctionObject(tt)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$a=Object.prototype.hasOwnProperty,forEachArray=function(tt,rt,nt){for(var it=0,st=tt.length;it=3&&(it=nt),toStr$1.call(tt)==="[object Array]"?forEachArray(tt,rt,it):typeof tt=="string"?forEachString(tt,rt,it):forEachObject(tt,rt,it)},forEach_1=forEach$1,possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g$3=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var tt=[],rt=0;rt"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound$1("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(tt,rt){for(var nt=0;nt-1?rt:rt!=="Object"?!1:trySlices(tt)}return gOPD?tryTypedArrays(tt):null},whichTypedArray=whichTypedArray$1,isTypedArray$2=function(tt){return!!whichTypedArray(tt)};(function(et){var tt=isArguments$3,rt=isGeneratorFunction,nt=whichTypedArray$1,it=isTypedArray$2;function st(br){return br.call.bind(br)}var at=typeof BigInt<"u",ot=typeof Symbol<"u",lt=st(Object.prototype.toString),ut=st(Number.prototype.valueOf),dt=st(String.prototype.valueOf),bt=st(Boolean.prototype.valueOf);if(at)var gt=st(BigInt.prototype.valueOf);if(ot)var kt=st(Symbol.prototype.valueOf);function pt(br,or){if(typeof br!="object")return!1;try{return or(br),!0}catch{return!1}}et.isArgumentsObject=tt,et.isGeneratorFunction=rt,et.isTypedArray=it;function yt(br){return typeof Promise<"u"&&br instanceof Promise||br!==null&&typeof br=="object"&&typeof br.then=="function"&&typeof br.catch=="function"}et.isPromise=yt;function $t(br){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(br):it(br)||Dt(br)}et.isArrayBufferView=$t;function mt(br){return nt(br)==="Uint8Array"}et.isUint8Array=mt;function wt(br){return nt(br)==="Uint8ClampedArray"}et.isUint8ClampedArray=wt;function St(br){return nt(br)==="Uint16Array"}et.isUint16Array=St;function Bt(br){return nt(br)==="Uint32Array"}et.isUint32Array=Bt;function Ft(br){return nt(br)==="Int8Array"}et.isInt8Array=Ft;function Lt(br){return nt(br)==="Int16Array"}et.isInt16Array=Lt;function zt(br){return nt(br)==="Int32Array"}et.isInt32Array=zt;function Ht(br){return nt(br)==="Float32Array"}et.isFloat32Array=Ht;function Wt(br){return nt(br)==="Float64Array"}et.isFloat64Array=Wt;function lr(br){return nt(br)==="BigInt64Array"}et.isBigInt64Array=lr;function qt(br){return nt(br)==="BigUint64Array"}et.isBigUint64Array=qt;function Ot(br){return lt(br)==="[object Map]"}Ot.working=typeof Map<"u"&&Ot(new Map);function Mt(br){return typeof Map>"u"?!1:Ot.working?Ot(br):br instanceof Map}et.isMap=Mt;function ht(br){return lt(br)==="[object Set]"}ht.working=typeof Set<"u"&&ht(new Set);function Et(br){return typeof Set>"u"?!1:ht.working?ht(br):br instanceof Set}et.isSet=Et;function Tt(br){return lt(br)==="[object WeakMap]"}Tt.working=typeof WeakMap<"u"&&Tt(new WeakMap);function Rt(br){return typeof WeakMap>"u"?!1:Tt.working?Tt(br):br instanceof WeakMap}et.isWeakMap=Rt;function At(br){return lt(br)==="[object WeakSet]"}At.working=typeof WeakSet<"u"&&At(new WeakSet);function Pt(br){return At(br)}et.isWeakSet=Pt;function It(br){return lt(br)==="[object ArrayBuffer]"}It.working=typeof ArrayBuffer<"u"&&It(new ArrayBuffer);function Ct(br){return typeof ArrayBuffer>"u"?!1:It.working?It(br):br instanceof ArrayBuffer}et.isArrayBuffer=Ct;function xt(br){return lt(br)==="[object DataView]"}xt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&xt(new DataView(new ArrayBuffer(1),0,1));function Dt(br){return typeof DataView>"u"?!1:xt.working?xt(br):br instanceof DataView}et.isDataView=Dt;var tr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pr(br){return lt(br)==="[object SharedArrayBuffer]"}function Kt(br){return typeof tr>"u"?!1:(typeof pr.working>"u"&&(pr.working=pr(new tr)),pr.working?pr(br):br instanceof tr)}et.isSharedArrayBuffer=Kt;function Qt(br){return lt(br)==="[object AsyncFunction]"}et.isAsyncFunction=Qt;function Zt(br){return lt(br)==="[object Map Iterator]"}et.isMapIterator=Zt;function ur(br){return lt(br)==="[object Set Iterator]"}et.isSetIterator=ur;function _r(br){return lt(br)==="[object Generator]"}et.isGeneratorObject=_r;function er(br){return lt(br)==="[object WebAssembly.Module]"}et.isWebAssemblyCompiledModule=er;function Jt(br){return pt(br,ut)}et.isNumberObject=Jt;function Ar(br){return pt(br,dt)}et.isStringObject=Ar;function Er(br){return pt(br,bt)}et.isBooleanObject=Er;function Dr(br){return at&&pt(br,gt)}et.isBigIntObject=Dr;function Xr(br){return ot&&pt(br,kt)}et.isSymbolObject=Xr;function Vr(br){return Jt(br)||Ar(br)||Er(br)||Dr(br)||Xr(br)}et.isBoxedPrimitive=Vr;function wr(br){return typeof Uint8Array<"u"&&(Ct(br)||Kt(br))}et.isAnyArrayBuffer=wr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(br){Object.defineProperty(et,br,{enumerable:!1,value:function(){throw new Error(br+" is not supported in userland")}})})})(types$7);var isBufferBrowser=function(tt){return tt&&typeof tt=="object"&&typeof tt.copy=="function"&&typeof tt.fill=="function"&&typeof tt.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(tt,rt){rt&&(tt.super_=rt,tt.prototype=Object.create(rt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(tt,rt){if(rt){tt.super_=rt;var nt=function(){};nt.prototype=rt.prototype,tt.prototype=new nt,tt.prototype.constructor=tt}};var inherits_browserExports=inherits_browser.exports;(function(et){var tt=Object.getOwnPropertyDescriptors||function(Dt){for(var tr=Object.keys(Dt),pr={},Kt=0;Kt=Kt)return ur;switch(ur){case"%s":return String(pr[tr++]);case"%d":return Number(pr[tr++]);case"%j":try{return JSON.stringify(pr[tr++])}catch{return"[Circular]"}default:return ur}}),Zt=pr[tr];tr"u")return function(){return et.deprecate(xt,Dt).apply(this,arguments)};var tr=!1;function pr(){if(!tr){if(process.throwDeprecation)throw new Error(Dt);process.traceDeprecation?console.trace(Dt):console.error(Dt),tr=!0}return xt.apply(this,arguments)}return pr};var nt={},it=/^$/;if({}.NODE_DEBUG){var st={}.NODE_DEBUG;st=st.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),it=new RegExp("^"+st+"$","i")}et.debuglog=function(xt){if(xt=xt.toUpperCase(),!nt[xt])if(it.test(xt)){var Dt=process.pid;nt[xt]=function(){var tr=et.format.apply(et,arguments);console.error("%s %d: %s",xt,Dt,tr)}}else nt[xt]=function(){};return nt[xt]};function at(xt,Dt){var tr={seen:[],stylize:lt};return arguments.length>=3&&(tr.depth=arguments[2]),arguments.length>=4&&(tr.colors=arguments[3]),mt(Dt)?tr.showHidden=Dt:Dt&&et._extend(tr,Dt),zt(tr.showHidden)&&(tr.showHidden=!1),zt(tr.depth)&&(tr.depth=2),zt(tr.colors)&&(tr.colors=!1),zt(tr.customInspect)&&(tr.customInspect=!0),tr.colors&&(tr.stylize=ot),dt(tr,xt,tr.depth)}et.inspect=at,at.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},at.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ot(xt,Dt){var tr=at.styles[Dt];return tr?"\x1B["+at.colors[tr][0]+"m"+xt+"\x1B["+at.colors[tr][1]+"m":xt}function lt(xt,Dt){return xt}function ut(xt){var Dt={};return xt.forEach(function(tr,pr){Dt[tr]=!0}),Dt}function dt(xt,Dt,tr){if(xt.customInspect&&Dt&&Ot(Dt.inspect)&&Dt.inspect!==et.inspect&&!(Dt.constructor&&Dt.constructor.prototype===Dt)){var pr=Dt.inspect(tr,xt);return Ft(pr)||(pr=dt(xt,pr,tr)),pr}var Kt=bt(xt,Dt);if(Kt)return Kt;var Qt=Object.keys(Dt),Zt=ut(Qt);if(xt.showHidden&&(Qt=Object.getOwnPropertyNames(Dt)),qt(Dt)&&(Qt.indexOf("message")>=0||Qt.indexOf("description")>=0))return gt(Dt);if(Qt.length===0){if(Ot(Dt)){var ur=Dt.name?": "+Dt.name:"";return xt.stylize("[Function"+ur+"]","special")}if(Ht(Dt))return xt.stylize(RegExp.prototype.toString.call(Dt),"regexp");if(lr(Dt))return xt.stylize(Date.prototype.toString.call(Dt),"date");if(qt(Dt))return gt(Dt)}var _r="",er=!1,Jt=["{","}"];if($t(Dt)&&(er=!0,Jt=["[","]"]),Ot(Dt)){var Ar=Dt.name?": "+Dt.name:"";_r=" [Function"+Ar+"]"}if(Ht(Dt)&&(_r=" "+RegExp.prototype.toString.call(Dt)),lr(Dt)&&(_r=" "+Date.prototype.toUTCString.call(Dt)),qt(Dt)&&(_r=" "+gt(Dt)),Qt.length===0&&(!er||Dt.length==0))return Jt[0]+_r+Jt[1];if(tr<0)return Ht(Dt)?xt.stylize(RegExp.prototype.toString.call(Dt),"regexp"):xt.stylize("[Object]","special");xt.seen.push(Dt);var Er;return er?Er=kt(xt,Dt,tr,Zt,Qt):Er=Qt.map(function(Dr){return pt(xt,Dt,tr,Zt,Dr,er)}),xt.seen.pop(),yt(Er,_r,Jt)}function bt(xt,Dt){if(zt(Dt))return xt.stylize("undefined","undefined");if(Ft(Dt)){var tr="'"+JSON.stringify(Dt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(tr,"string")}if(Bt(Dt))return xt.stylize(""+Dt,"number");if(mt(Dt))return xt.stylize(""+Dt,"boolean");if(wt(Dt))return xt.stylize("null","null")}function gt(xt){return"["+Error.prototype.toString.call(xt)+"]"}function kt(xt,Dt,tr,pr,Kt){for(var Qt=[],Zt=0,ur=Dt.length;Zt-1&&(Qt?ur=ur.split(` `).map(function(er){return" "+er}).join(` `).slice(2):ur=` `+ur.split(` `).map(function(er){return" "+er}).join(` -`))):ur=xt.stylize("[Circular]","special")),zt(Zt)){if(Qt&&Kt.match(/^\d+$/))return ur;Zt=JSON.stringify(""+Kt),Zt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Zt=Zt.slice(1,-1),Zt=xt.stylize(Zt,"name")):(Zt=Zt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Zt=xt.stylize(Zt,"string"))}return Zt+": "+ur}function yt(xt,Lt,tr){var pr=xt.reduce(function(Kt,Qt){return Qt.indexOf(` -`)>=0,Kt+Qt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return pr>60?tr[0]+(Lt===""?"":Lt+` +`))):ur=xt.stylize("[Circular]","special")),zt(Zt)){if(Qt&&Kt.match(/^\d+$/))return ur;Zt=JSON.stringify(""+Kt),Zt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Zt=Zt.slice(1,-1),Zt=xt.stylize(Zt,"name")):(Zt=Zt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Zt=xt.stylize(Zt,"string"))}return Zt+": "+ur}function yt(xt,Dt,tr){var pr=xt.reduce(function(Kt,Qt){return Qt.indexOf(` +`)>=0,Kt+Qt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return pr>60?tr[0]+(Dt===""?"":Dt+` `)+" "+xt.join(`, - `)+" "+tr[1]:tr[0]+Lt+" "+xt.join(", ")+" "+tr[1]}et.types=types$7;function $t(xt){return Array.isArray(xt)}et.isArray=$t;function mt(xt){return typeof xt=="boolean"}et.isBoolean=mt;function wt(xt){return xt===null}et.isNull=wt;function St(xt){return xt==null}et.isNullOrUndefined=St;function Bt(xt){return typeof xt=="number"}et.isNumber=Bt;function Ft(xt){return typeof xt=="string"}et.isString=Ft;function Dt(xt){return typeof xt=="symbol"}et.isSymbol=Dt;function zt(xt){return xt===void 0}et.isUndefined=zt;function Ht(xt){return Wt(xt)&&ht(xt)==="[object RegExp]"}et.isRegExp=Ht,et.types.isRegExp=Ht;function Wt(xt){return typeof xt=="object"&&xt!==null}et.isObject=Wt;function lr(xt){return Wt(xt)&&ht(xt)==="[object Date]"}et.isDate=lr,et.types.isDate=lr;function qt(xt){return Wt(xt)&&(ht(xt)==="[object Error]"||xt instanceof Error)}et.isError=qt,et.types.isNativeError=qt;function Ot(xt){return typeof xt=="function"}et.isFunction=Ot;function Mt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt>"u"}et.isPrimitive=Mt,et.isBuffer=isBufferBrowser;function ht(xt){return Object.prototype.toString.call(xt)}function Et(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var Tt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Rt(){var xt=new Date,Lt=[Et(xt.getHours()),Et(xt.getMinutes()),Et(xt.getSeconds())].join(":");return[xt.getDate(),Tt[xt.getMonth()],Lt].join(" ")}et.log=function(){console.log("%s - %s",Rt(),et.format.apply(et,arguments))},et.inherits=inherits_browserExports,et._extend=function(xt,Lt){if(!Lt||!Wt(Lt))return xt;for(var tr=Object.keys(Lt),pr=tr.length;pr--;)xt[tr[pr]]=Lt[tr[pr]];return xt};function At(xt,Lt){return Object.prototype.hasOwnProperty.call(xt,Lt)}var Pt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;et.promisify=function(Lt){if(typeof Lt!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&Lt[Pt]){var tr=Lt[Pt];if(typeof tr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tr,Pt,{value:tr,enumerable:!1,writable:!1,configurable:!0}),tr}function tr(){for(var pr,Kt,Qt=new Promise(function(_r,er){pr=_r,Kt=er}),Zt=[],ur=0;ur"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 gt(Ft){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},gt(Ft)}var kt={},pt,yt;function $t(Ft,Dt,zt){zt||(zt=Error);function Ht(lr,qt,Ot){return typeof Dt=="string"?Dt:Dt(lr,qt,Ot)}var Wt=function(lr){at(Ot,lr);var qt=lt(Ot);function Ot(Mt,ht,Et){var Tt;return st(this,Ot),Tt=qt.call(this,Ht(Mt,ht,Et)),Tt.code=Ft,Tt}return rt(Ot)}(zt);kt[Ft]=Wt}function mt(Ft,Dt){if(Array.isArray(Ft)){var zt=Ft.length;return Ft=Ft.map(function(Ht){return String(Ht)}),zt>2?"one of ".concat(Dt," ").concat(Ft.slice(0,zt-1).join(", "),", or ")+Ft[zt-1]:zt===2?"one of ".concat(Dt," ").concat(Ft[0]," or ").concat(Ft[1]):"of ".concat(Dt," ").concat(Ft[0])}else return"of ".concat(Dt," ").concat(String(Ft))}function wt(Ft,Dt,zt){return Ft.substr(!zt||zt<0?0:+zt,Dt.length)===Dt}function St(Ft,Dt,zt){return(zt===void 0||zt>Ft.length)&&(zt=Ft.length),Ft.substring(zt-Dt.length,zt)===Dt}function Bt(Ft,Dt,zt){return typeof zt!="number"&&(zt=0),zt+Dt.length>Ft.length?!1:Ft.indexOf(Dt,zt)!==-1}return $t("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),$t("ERR_INVALID_ARG_TYPE",function(Ft,Dt,zt){pt===void 0&&(pt=requireAssert()),pt(typeof Ft=="string","'name' must be a string");var Ht;typeof Dt=="string"&&wt(Dt,"not ")?(Ht="must not be",Dt=Dt.replace(/^not /,"")):Ht="must be";var Wt;if(St(Ft," argument"))Wt="The ".concat(Ft," ").concat(Ht," ").concat(mt(Dt,"type"));else{var lr=Bt(Ft,".")?"property":"argument";Wt='The "'.concat(Ft,'" ').concat(lr," ").concat(Ht," ").concat(mt(Dt,"type"))}return Wt+=". Received type ".concat(et(zt)),Wt},TypeError),$t("ERR_INVALID_ARG_VALUE",function(Ft,Dt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";yt===void 0&&(yt=util);var Ht=yt.inspect(Dt);return Ht.length>128&&(Ht="".concat(Ht.slice(0,128),"...")),"The argument '".concat(Ft,"' ").concat(zt,". Received ").concat(Ht)},TypeError),$t("ERR_INVALID_RETURN_VALUE",function(Ft,Dt,zt){var Ht;return zt&&zt.constructor&&zt.constructor.name?Ht="instance of ".concat(zt.constructor.name):Ht="type ".concat(et(zt)),"Expected ".concat(Ft,' to be returned from the "').concat(Dt,'"')+" function but got ".concat(Ht,".")},TypeError),$t("ERR_MISSING_ARGS",function(){for(var Ft=arguments.length,Dt=new Array(Ft),zt=0;zt0,"At least one arg needs to be specified");var Ht="The ",Wt=Dt.length;switch(Dt=Dt.map(function(lr){return'"'.concat(lr,'"')}),Wt){case 1:Ht+="".concat(Dt[0]," argument");break;case 2:Ht+="".concat(Dt[0]," and ").concat(Dt[1]," arguments");break;default:Ht+=Dt.slice(0,Wt-1).join(", "),Ht+=", and ".concat(Dt[Wt-1]," arguments");break}return"".concat(Ht," must be specified")},TypeError),errors$3.codes=kt,errors$3}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function et(Pt,It){var Ct=Object.keys(Pt);if(Object.getOwnPropertySymbols){var xt=Object.getOwnPropertySymbols(Pt);It&&(xt=xt.filter(function(Lt){return Object.getOwnPropertyDescriptor(Pt,Lt).enumerable})),Ct.push.apply(Ct,xt)}return Ct}function tt(Pt){for(var It=1;It"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 yt(Pt){return Function.toString.call(Pt).indexOf("[native code]")!==-1}function $t(Pt,It){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xt,Lt){return xt.__proto__=Lt,xt},$t(Pt,It)}function mt(Pt){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ct){return Ct.__proto__||Object.getPrototypeOf(Ct)},mt(Pt)}function wt(Pt){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},wt(Pt)}var St=util,Bt=St.inspect,Ft=requireErrors(),Dt=Ft.codes.ERR_INVALID_ARG_TYPE;function zt(Pt,It,Ct){return(Ct===void 0||Ct>Pt.length)&&(Ct=Pt.length),Pt.substring(Ct-It.length,Ct)===It}function Ht(Pt,It){if(It=Math.floor(It),Pt.length==0||It==0)return"";var Ct=Pt.length*It;for(It=Math.floor(Math.log(It)/Math.log(2));It;)Pt+=Pt,It--;return Pt+=Pt.substring(0,Ct-Pt.length),Pt}var Wt="",lr="",qt="",Ot="",Mt={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ht=10;function Et(Pt){var It=Object.keys(Pt),Ct=Object.create(Object.getPrototypeOf(Pt));return It.forEach(function(xt){Ct[xt]=Pt[xt]}),Object.defineProperty(Ct,"message",{value:Pt.message}),Ct}function Tt(Pt){return Bt(Pt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Rt(Pt,It,Ct){var xt="",Lt="",tr=0,pr="",Kt=!1,Qt=Tt(Pt),Zt=Qt.split(` + `)+" "+tr[1]:tr[0]+Dt+" "+xt.join(", ")+" "+tr[1]}et.types=types$7;function $t(xt){return Array.isArray(xt)}et.isArray=$t;function mt(xt){return typeof xt=="boolean"}et.isBoolean=mt;function wt(xt){return xt===null}et.isNull=wt;function St(xt){return xt==null}et.isNullOrUndefined=St;function Bt(xt){return typeof xt=="number"}et.isNumber=Bt;function Ft(xt){return typeof xt=="string"}et.isString=Ft;function Lt(xt){return typeof xt=="symbol"}et.isSymbol=Lt;function zt(xt){return xt===void 0}et.isUndefined=zt;function Ht(xt){return Wt(xt)&&ht(xt)==="[object RegExp]"}et.isRegExp=Ht,et.types.isRegExp=Ht;function Wt(xt){return typeof xt=="object"&&xt!==null}et.isObject=Wt;function lr(xt){return Wt(xt)&&ht(xt)==="[object Date]"}et.isDate=lr,et.types.isDate=lr;function qt(xt){return Wt(xt)&&(ht(xt)==="[object Error]"||xt instanceof Error)}et.isError=qt,et.types.isNativeError=qt;function Ot(xt){return typeof xt=="function"}et.isFunction=Ot;function Mt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt>"u"}et.isPrimitive=Mt,et.isBuffer=isBufferBrowser;function ht(xt){return Object.prototype.toString.call(xt)}function Et(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var Tt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Rt(){var xt=new Date,Dt=[Et(xt.getHours()),Et(xt.getMinutes()),Et(xt.getSeconds())].join(":");return[xt.getDate(),Tt[xt.getMonth()],Dt].join(" ")}et.log=function(){console.log("%s - %s",Rt(),et.format.apply(et,arguments))},et.inherits=inherits_browserExports,et._extend=function(xt,Dt){if(!Dt||!Wt(Dt))return xt;for(var tr=Object.keys(Dt),pr=tr.length;pr--;)xt[tr[pr]]=Dt[tr[pr]];return xt};function At(xt,Dt){return Object.prototype.hasOwnProperty.call(xt,Dt)}var Pt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;et.promisify=function(Dt){if(typeof Dt!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&Dt[Pt]){var tr=Dt[Pt];if(typeof tr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tr,Pt,{value:tr,enumerable:!1,writable:!1,configurable:!0}),tr}function tr(){for(var pr,Kt,Qt=new Promise(function(_r,er){pr=_r,Kt=er}),Zt=[],ur=0;ur"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 gt(Ft){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},gt(Ft)}var kt={},pt,yt;function $t(Ft,Lt,zt){zt||(zt=Error);function Ht(lr,qt,Ot){return typeof Lt=="string"?Lt:Lt(lr,qt,Ot)}var Wt=function(lr){at(Ot,lr);var qt=lt(Ot);function Ot(Mt,ht,Et){var Tt;return st(this,Ot),Tt=qt.call(this,Ht(Mt,ht,Et)),Tt.code=Ft,Tt}return rt(Ot)}(zt);kt[Ft]=Wt}function mt(Ft,Lt){if(Array.isArray(Ft)){var zt=Ft.length;return Ft=Ft.map(function(Ht){return String(Ht)}),zt>2?"one of ".concat(Lt," ").concat(Ft.slice(0,zt-1).join(", "),", or ")+Ft[zt-1]:zt===2?"one of ".concat(Lt," ").concat(Ft[0]," or ").concat(Ft[1]):"of ".concat(Lt," ").concat(Ft[0])}else return"of ".concat(Lt," ").concat(String(Ft))}function wt(Ft,Lt,zt){return Ft.substr(!zt||zt<0?0:+zt,Lt.length)===Lt}function St(Ft,Lt,zt){return(zt===void 0||zt>Ft.length)&&(zt=Ft.length),Ft.substring(zt-Lt.length,zt)===Lt}function Bt(Ft,Lt,zt){return typeof zt!="number"&&(zt=0),zt+Lt.length>Ft.length?!1:Ft.indexOf(Lt,zt)!==-1}return $t("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),$t("ERR_INVALID_ARG_TYPE",function(Ft,Lt,zt){pt===void 0&&(pt=requireAssert()),pt(typeof Ft=="string","'name' must be a string");var Ht;typeof Lt=="string"&&wt(Lt,"not ")?(Ht="must not be",Lt=Lt.replace(/^not /,"")):Ht="must be";var Wt;if(St(Ft," argument"))Wt="The ".concat(Ft," ").concat(Ht," ").concat(mt(Lt,"type"));else{var lr=Bt(Ft,".")?"property":"argument";Wt='The "'.concat(Ft,'" ').concat(lr," ").concat(Ht," ").concat(mt(Lt,"type"))}return Wt+=". Received type ".concat(et(zt)),Wt},TypeError),$t("ERR_INVALID_ARG_VALUE",function(Ft,Lt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";yt===void 0&&(yt=util);var Ht=yt.inspect(Lt);return Ht.length>128&&(Ht="".concat(Ht.slice(0,128),"...")),"The argument '".concat(Ft,"' ").concat(zt,". Received ").concat(Ht)},TypeError),$t("ERR_INVALID_RETURN_VALUE",function(Ft,Lt,zt){var Ht;return zt&&zt.constructor&&zt.constructor.name?Ht="instance of ".concat(zt.constructor.name):Ht="type ".concat(et(zt)),"Expected ".concat(Ft,' to be returned from the "').concat(Lt,'"')+" function but got ".concat(Ht,".")},TypeError),$t("ERR_MISSING_ARGS",function(){for(var Ft=arguments.length,Lt=new Array(Ft),zt=0;zt0,"At least one arg needs to be specified");var Ht="The ",Wt=Lt.length;switch(Lt=Lt.map(function(lr){return'"'.concat(lr,'"')}),Wt){case 1:Ht+="".concat(Lt[0]," argument");break;case 2:Ht+="".concat(Lt[0]," and ").concat(Lt[1]," arguments");break;default:Ht+=Lt.slice(0,Wt-1).join(", "),Ht+=", and ".concat(Lt[Wt-1]," arguments");break}return"".concat(Ht," must be specified")},TypeError),errors$3.codes=kt,errors$3}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function et(Pt,It){var Ct=Object.keys(Pt);if(Object.getOwnPropertySymbols){var xt=Object.getOwnPropertySymbols(Pt);It&&(xt=xt.filter(function(Dt){return Object.getOwnPropertyDescriptor(Pt,Dt).enumerable})),Ct.push.apply(Ct,xt)}return Ct}function tt(Pt){for(var It=1;It"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 yt(Pt){return Function.toString.call(Pt).indexOf("[native code]")!==-1}function $t(Pt,It){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xt,Dt){return xt.__proto__=Dt,xt},$t(Pt,It)}function mt(Pt){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ct){return Ct.__proto__||Object.getPrototypeOf(Ct)},mt(Pt)}function wt(Pt){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},wt(Pt)}var St=util,Bt=St.inspect,Ft=requireErrors(),Lt=Ft.codes.ERR_INVALID_ARG_TYPE;function zt(Pt,It,Ct){return(Ct===void 0||Ct>Pt.length)&&(Ct=Pt.length),Pt.substring(Ct-It.length,Ct)===It}function Ht(Pt,It){if(It=Math.floor(It),Pt.length==0||It==0)return"";var Ct=Pt.length*It;for(It=Math.floor(Math.log(It)/Math.log(2));It;)Pt+=Pt,It--;return Pt+=Pt.substring(0,Ct-Pt.length),Pt}var Wt="",lr="",qt="",Ot="",Mt={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ht=10;function Et(Pt){var It=Object.keys(Pt),Ct=Object.create(Object.getPrototypeOf(Pt));return It.forEach(function(xt){Ct[xt]=Pt[xt]}),Object.defineProperty(Ct,"message",{value:Pt.message}),Ct}function Tt(Pt){return Bt(Pt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Rt(Pt,It,Ct){var xt="",Dt="",tr=0,pr="",Kt=!1,Qt=Tt(Pt),Zt=Qt.split(` `),ur=Tt(It).split(` `),_r=0,er="";if(Ct==="strictEqual"&&wt(Pt)==="object"&&wt(It)==="object"&&Pt!==null&&It!==null&&(Ct="strictEqualObject"),Zt.length===1&&ur.length===1&&Zt[0]!==ur[0]){var Jt=Zt[0].length+ur[0].length;if(Jt<=ht){if((wt(Pt)!=="object"||Pt===null)&&(wt(It)!=="object"||It===null)&&(Pt!==0||It!==0))return"".concat(Mt[Ct],` @@ -150,25 +150,25 @@ function print() { __p += __j.call(arguments, '') } `)}_r>3&&(pr=` `.concat(Wt,"...").concat(Ot).concat(pr),Kt=!0),xt!==""&&(pr=` `.concat(xt).concat(pr),xt="");var wr=0,br=Mt[Ct]+` -`.concat(lr,"+ actual").concat(Ot," ").concat(qt,"- expected").concat(Ot),or=" ".concat(Wt,"...").concat(Ot," Lines skipped");for(_r=0;_r1&&_r>2&&(xr>4?(Lt+=` -`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Lt+=` - `.concat(ur[_r-2]),wr++),Lt+=` +`.concat(lr,"+ actual").concat(Ot," ").concat(qt,"- expected").concat(Ot),or=" ".concat(Wt,"...").concat(Ot," Lines skipped");for(_r=0;_r1&&_r>2&&(xr>4?(Dt+=` +`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Dt+=` + `.concat(ur[_r-2]),wr++),Dt+=` `.concat(ur[_r-1]),wr++),tr=_r,xt+=` -`.concat(qt,"-").concat(Ot," ").concat(ur[_r]),wr++;else if(ur.length<_r+1)xr>1&&_r>2&&(xr>4?(Lt+=` -`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Lt+=` - `.concat(Zt[_r-2]),wr++),Lt+=` - `.concat(Zt[_r-1]),wr++),tr=_r,Lt+=` -`.concat(lr,"+").concat(Ot," ").concat(Zt[_r]),wr++;else{var Pr=ur[_r],Or=Zt[_r],rr=Or!==Pr&&(!zt(Or,",")||Or.slice(0,-1)!==Pr);rr&&zt(Pr,",")&&Pr.slice(0,-1)===Or&&(rr=!1,Or+=","),rr?(xr>1&&_r>2&&(xr>4?(Lt+=` -`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Lt+=` - `.concat(Zt[_r-2]),wr++),Lt+=` - `.concat(Zt[_r-1]),wr++),tr=_r,Lt+=` +`.concat(qt,"-").concat(Ot," ").concat(ur[_r]),wr++;else if(ur.length<_r+1)xr>1&&_r>2&&(xr>4?(Dt+=` +`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Dt+=` + `.concat(Zt[_r-2]),wr++),Dt+=` + `.concat(Zt[_r-1]),wr++),tr=_r,Dt+=` +`.concat(lr,"+").concat(Ot," ").concat(Zt[_r]),wr++;else{var Pr=ur[_r],Or=Zt[_r],rr=Or!==Pr&&(!zt(Or,",")||Or.slice(0,-1)!==Pr);rr&&zt(Pr,",")&&Pr.slice(0,-1)===Or&&(rr=!1,Or+=","),rr?(xr>1&&_r>2&&(xr>4?(Dt+=` +`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Dt+=` + `.concat(Zt[_r-2]),wr++),Dt+=` + `.concat(Zt[_r-1]),wr++),tr=_r,Dt+=` `.concat(lr,"+").concat(Ot," ").concat(Or),xt+=` -`.concat(qt,"-").concat(Ot," ").concat(Pr),wr+=2):(Lt+=xt,xt="",(xr===1||_r===0)&&(Lt+=` +`.concat(qt,"-").concat(Ot," ").concat(Pr),wr+=2):(Dt+=xt,xt="",(xr===1||_r===0)&&(Dt+=` `.concat(Or),wr++))}if(wr>20&&_r30)for(Jt[26]="".concat(Wt,"...").concat(Ot);Jt.length>27;)Jt.pop();Jt.length===1?tr=Ct.call(this,"".concat(er," ").concat(Jt[0])):tr=Ct.call(this,"".concat(er,` `).concat(Jt.join(` @@ -181,14 +181,14 @@ function print() { __p += __j.call(arguments, '') } should equal -`):Er=" ".concat(Kt," ").concat(Er)),tr=Ct.call(this,"".concat(Ar).concat(Er))}return Error.stackTraceLimit=_r,tr.generatedMessage=!pr,Object.defineProperty(bt(tr),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),tr.code="ERR_ASSERTION",tr.actual=Zt,tr.expected=ur,tr.operator=Kt,Error.captureStackTrace&&Error.captureStackTrace(bt(tr),Qt),tr.stack,tr.name="AssertionError",dt(tr)}return st(xt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:It,value:function(tr,pr){return Bt(this,tt(tt({},pr),{},{customInspect:!1,depth:0}))}}]),xt}(gt(Error),Bt.custom);return assertion_error=At,assertion_error}var toStr=Object.prototype.toString,isArguments$2=function(tt){var rt=toStr.call(tt),nt=rt==="[object Arguments]";return nt||(nt=rt!=="[object Array]"&&tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&toStr.call(tt.callee)==="[object Function]"),nt},implementation$5,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$5;hasRequiredImplementation$1=1;var et;if(!Object.keys){var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.toString,nt=isArguments$2,it=Object.prototype.propertyIsEnumerable,st=!it.call({toString:null},"toString"),at=it.call(function(){},"prototype"),ot=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],lt=function(gt){var kt=gt.constructor;return kt&&kt.prototype===gt},ut={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},dt=function(){if(typeof window>"u")return!1;for(var gt in window)try{if(!ut["$"+gt]&&tt.call(window,gt)&&window[gt]!==null&&typeof window[gt]=="object")try{lt(window[gt])}catch{return!0}}catch{return!0}return!1}(),bt=function(gt){if(typeof window>"u"||!dt)return lt(gt);try{return lt(gt)}catch{return!1}};et=function(kt){var pt=kt!==null&&typeof kt=="object",yt=rt.call(kt)==="[object Function]",$t=nt(kt),mt=pt&&rt.call(kt)==="[object String]",wt=[];if(!pt&&!yt&&!$t)throw new TypeError("Object.keys called on a non-object");var St=at&&yt;if(mt&&kt.length>0&&!tt.call(kt,0))for(var Bt=0;Bt0)for(var Ft=0;Ft2?arguments[2]:{},gt=et(dt);tt&&(gt=nt.call(gt,Object.getOwnPropertySymbols(dt)));for(var kt=0;ktrr.length)&&(gr=rr.length);for(var Ir=0,Yt=new Array(gr);Ir10)return!0;for(var gr=0;gr57)return!0}return rr.length===10&&rr>=Math.pow(2,32)}function At(rr){return Object.keys(rr).filter(Rt).concat(bt(rr).filter(Object.prototype.propertyIsEnumerable.bind(rr)))}/*! +`):Er=" ".concat(Kt," ").concat(Er)),tr=Ct.call(this,"".concat(Ar).concat(Er))}return Error.stackTraceLimit=_r,tr.generatedMessage=!pr,Object.defineProperty(bt(tr),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),tr.code="ERR_ASSERTION",tr.actual=Zt,tr.expected=ur,tr.operator=Kt,Error.captureStackTrace&&Error.captureStackTrace(bt(tr),Qt),tr.stack,tr.name="AssertionError",dt(tr)}return st(xt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:It,value:function(tr,pr){return Bt(this,tt(tt({},pr),{},{customInspect:!1,depth:0}))}}]),xt}(gt(Error),Bt.custom);return assertion_error=At,assertion_error}var toStr=Object.prototype.toString,isArguments$2=function(tt){var rt=toStr.call(tt),nt=rt==="[object Arguments]";return nt||(nt=rt!=="[object Array]"&&tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&toStr.call(tt.callee)==="[object Function]"),nt},implementation$5,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$5;hasRequiredImplementation$1=1;var et;if(!Object.keys){var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.toString,nt=isArguments$2,it=Object.prototype.propertyIsEnumerable,st=!it.call({toString:null},"toString"),at=it.call(function(){},"prototype"),ot=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],lt=function(gt){var kt=gt.constructor;return kt&&kt.prototype===gt},ut={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},dt=function(){if(typeof window>"u")return!1;for(var gt in window)try{if(!ut["$"+gt]&&tt.call(window,gt)&&window[gt]!==null&&typeof window[gt]=="object")try{lt(window[gt])}catch{return!0}}catch{return!0}return!1}(),bt=function(gt){if(typeof window>"u"||!dt)return lt(gt);try{return lt(gt)}catch{return!1}};et=function(kt){var pt=kt!==null&&typeof kt=="object",yt=rt.call(kt)==="[object Function]",$t=nt(kt),mt=pt&&rt.call(kt)==="[object String]",wt=[];if(!pt&&!yt&&!$t)throw new TypeError("Object.keys called on a non-object");var St=at&&yt;if(mt&&kt.length>0&&!tt.call(kt,0))for(var Bt=0;Bt0)for(var Ft=0;Ft2?arguments[2]:{},gt=et(dt);tt&&(gt=nt.call(gt,Object.getOwnPropertySymbols(dt)));for(var kt=0;ktrr.length)&&(gr=rr.length);for(var Ir=0,Yt=new Array(gr);Ir10)return!0;for(var gr=0;gr57)return!0}return rr.length===10&&rr>=Math.pow(2,32)}function At(rr){return Object.keys(rr).filter(Rt).concat(bt(rr).filter(Object.prototype.propertyIsEnumerable.bind(rr)))}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function Pt(rr,gr){if(rr===gr)return 0;for(var Ir=rr.length,Yt=gr.length,Ut=0,Vt=Math.min(Ir,Yt);Ut1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er>>0===nt,"off","integer"),nt+tt>rt.length)throw new EncodingError(nt,"Out of bounds read");return et(rt,nt)}}function _readn(et){return function(tt,rt,nt){if(enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),enforce$1(nt>>>0===nt,"len","integer"),rt+nt>tt.length)throw new EncodingError(rt,"Out of bounds read");return et(tt,rt,nt)}}function _readvar(et){return function(tt,rt){return enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),et(tt,rt)}}function _write(et,tt){return function(rt,nt,it){if(enforce$1(Buffer.isBuffer(rt),"data","buffer"),enforce$1(it>>>0===it,"off","integer"),it+tt>rt.length)throw new EncodingError(it,"Out of bounds write");return et(rt,nt,it)}}function _writen(et){return function(tt,rt,nt,it){if(enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(nt>>>0===nt,"off","integer"),enforce$1(it>>>0===it,"len","integer"),nt+it>tt.length)throw new EncodingError(nt,"Out of bounds write");return et(tt,rt,nt,it)}}function _writecb(et,tt){return function(rt,nt,it){if(enforce$1(Buffer.isBuffer(rt),"data","buffer"),enforce$1(it>>>0===it,"off","integer"),it+tt(nt)>rt.length)throw new EncodingError(it,"Out of bounds write");return et(rt,nt,it)}}bufio.readU=_readn(encoding.readU);bufio.readBigU256=_read(encoding.readBigU256,32);bufio.readBigU128=_read(encoding.readBigU128,16);bufio.readBigU64=_read(encoding.readBigU64,8);bufio.readBigU56=_read(encoding.readBigU56,7);bufio.readU64=_read(encoding.readU64,8);bufio.readU56=_read(encoding.readU56,7);bufio.readU48=_read(encoding.readU48,6);bufio.readU40=_read(encoding.readU40,5);bufio.readU32=_read(encoding.readU32,4);bufio.readU24=_read(encoding.readU24,3);bufio.readU16=_read(encoding.readU16,2);bufio.readU8=_read(encoding.readU8,1);bufio.readUBE=_readn(encoding.readUBE);bufio.readBigU256BE=_read(encoding.readBigU256BE,32);bufio.readBigU128BE=_read(encoding.readBigU128BE,16);bufio.readBigU64BE=_read(encoding.readBigU64BE,8);bufio.readBigU56BE=_read(encoding.readBigU56BE,7);bufio.readU64BE=_read(encoding.readU64BE,8);bufio.readU56BE=_read(encoding.readU56BE,7);bufio.readU48BE=_read(encoding.readU48BE,6);bufio.readU40BE=_read(encoding.readU40BE,5);bufio.readU32BE=_read(encoding.readU32BE,4);bufio.readU24BE=_read(encoding.readU24BE,3);bufio.readU16BE=_read(encoding.readU16BE,2);bufio.readI=_readn(encoding.readI);bufio.readBigI64=_read(encoding.readBigI64,8);bufio.readBigI56=_read(encoding.readBigI56,7);bufio.readI64=_read(encoding.readI64,8);bufio.readI56=_read(encoding.readI56,7);bufio.readI48=_read(encoding.readI48,6);bufio.readI40=_read(encoding.readI40,5);bufio.readI32=_read(encoding.readI32,4);bufio.readI24=_read(encoding.readI24,3);bufio.readI16=_read(encoding.readI16,2);bufio.readI8=_read(encoding.readI8,1);bufio.readIBE=_readn(encoding.readIBE);bufio.readBigI64BE=_read(encoding.readBigI64BE,8);bufio.readBigI56BE=_read(encoding.readBigI56BE,7);bufio.readI64BE=_read(encoding.readI64BE,8);bufio.readI56BE=_read(encoding.readI56BE,7);bufio.readI48BE=_read(encoding.readI48BE,6);bufio.readI40BE=_read(encoding.readI40BE,5);bufio.readI32BE=_read(encoding.readI32BE,4);bufio.readI24BE=_read(encoding.readI24BE,3);bufio.readI16BE=_read(encoding.readI16BE,2);bufio.readFloat=_read(encoding.readFloat,4);bufio.readFloatBE=_read(encoding.readFloatBE,4);bufio.readDouble=_read(encoding.readDouble,8);bufio.readDoubleBE=_read(encoding.readDoubleBE,8);bufio.writeU=_writen(encoding.writeU);bufio.writeBigU256=_write(encoding.writeBigU256,32);bufio.writeBigU128=_write(encoding.writeBigU128,16);bufio.writeBigU64=_write(encoding.writeBigU64,8);bufio.writeBigU56=_write(encoding.writeBigU56,7);bufio.writeU64=_write(encoding.writeU64,8);bufio.writeU56=_write(encoding.writeU56,7);bufio.writeU48=_write(encoding.writeU48,6);bufio.writeU40=_write(encoding.writeU40,5);bufio.writeU32=_write(encoding.writeU32,4);bufio.writeU24=_write(encoding.writeU24,3);bufio.writeU16=_write(encoding.writeU16,2);bufio.writeU8=_write(encoding.writeU8,1);bufio.writeUBE=_writen(encoding.writeUBE);bufio.writeBigU256BE=_write(encoding.writeBigU256BE,32);bufio.writeBigU128BE=_write(encoding.writeBigU128BE,16);bufio.writeBigU64BE=_write(encoding.writeBigU64BE,8);bufio.writeBigU56BE=_write(encoding.writeBigU56BE,7);bufio.writeU64BE=_write(encoding.writeU64BE,8);bufio.writeU56BE=_write(encoding.writeU56BE,7);bufio.writeU48BE=_write(encoding.writeU48BE,6);bufio.writeU40BE=_write(encoding.writeU40BE,5);bufio.writeU32BE=_write(encoding.writeU32BE,4);bufio.writeU24BE=_write(encoding.writeU24BE,3);bufio.writeU16BE=_write(encoding.writeU16BE,2);bufio.writeI=_writen(encoding.writeI);bufio.writeBigI64=_write(encoding.writeBigI64,8);bufio.writeBigI56=_write(encoding.writeBigI56,7);bufio.writeI64=_write(encoding.writeI64,8);bufio.writeI56=_write(encoding.writeI56,7);bufio.writeI48=_write(encoding.writeI48,6);bufio.writeI40=_write(encoding.writeI40,5);bufio.writeI32=_write(encoding.writeI32,4);bufio.writeI24=_write(encoding.writeI24,3);bufio.writeI16=_write(encoding.writeI16,2);bufio.writeI8=_write(encoding.writeI8,1);bufio.writeIBE=_writen(encoding.writeIBE);bufio.writeBigI64BE=_write(encoding.writeBigI64BE,8);bufio.writeBigI56BE=_write(encoding.writeBigI56BE,7);bufio.writeI64BE=_write(encoding.writeI64BE,8);bufio.writeI56BE=_write(encoding.writeI56BE,7);bufio.writeI48BE=_write(encoding.writeI48BE,6);bufio.writeI40BE=_write(encoding.writeI40BE,5);bufio.writeI32BE=_write(encoding.writeI32BE,4);bufio.writeI24BE=_write(encoding.writeI24BE,3);bufio.writeI16BE=_write(encoding.writeI16BE,2);bufio.writeFloat=_write(encoding.writeFloat,4);bufio.writeFloatBE=_write(encoding.writeFloatBE,4);bufio.writeDouble=_write(encoding.writeDouble,8);bufio.writeDoubleBE=_write(encoding.writeDoubleBE,8);bufio.readVarint=_readvar(encoding.readVarint);bufio.writeVarint=_writecb(encoding.writeVarint,encoding.sizeVarint);bufio.sizeVarint=encoding.sizeVarint;bufio.readVarint2=_readvar(encoding.readVarint2);bufio.writeVarint2=_writecb(encoding.writeVarint2,encoding.sizeVarint2);bufio.sizeVarint2=encoding.sizeVarint2;bufio.sliceBytes=encoding.sliceBytes;bufio.readBytes=encoding.readBytes;bufio.writeBytes=encoding.writeBytes;bufio.readString=encoding.readString;bufio.writeString=encoding.writeString;bufio.realloc=encoding.realloc;bufio.copy=encoding.copy;bufio.concat=encoding.concat;bufio.sizeVarBytes=encoding.sizeVarBytes;bufio.sizeVarlen=encoding.sizeVarlen;bufio.sizeVarString=encoding.sizeVarString;var cryptoBrowserify={},browser$c={exports:{}},safeBuffer$1={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(et,tt){var rt=buffer$2,nt=rt.Buffer;function it(at,ot){for(var lt in at)ot[lt]=at[lt]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?et.exports=rt:(it(rt,tt),tt.Buffer=st);function st(at,ot,lt){return nt(at,ot,lt)}st.prototype=Object.create(nt.prototype),it(nt,st),st.from=function(at,ot,lt){if(typeof at=="number")throw new TypeError("Argument must not be a number");return nt(at,ot,lt)},st.alloc=function(at,ot,lt){if(typeof at!="number")throw new TypeError("Argument must be a number");var ut=nt(at);return ot!==void 0?typeof lt=="string"?ut.fill(ot,lt):ut.fill(ot):ut.fill(0),ut},st.allocUnsafe=function(at){if(typeof at!="number")throw new TypeError("Argument must be a number");return nt(at)},st.allocUnsafeSlow=function(at){if(typeof at!="number")throw new TypeError("Argument must be a number");return rt.SlowBuffer(at)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$H=safeBufferExports.Buffer,crypto$4=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$4&&crypto$4.getRandomValues?browser$c.exports=randomBytes$2:browser$c.exports=oldBrowser$1;function randomBytes$2(et,tt){if(et>MAX_UINT32)throw new RangeError("requested too many random bytes");var rt=Buffer$H.allocUnsafe(et);if(et>0)if(et>MAX_BYTES)for(var nt=0;nt0&&(at=rt[0]),at instanceof Error)throw at;var ot=new Error("Unhandled error."+(at?" ("+at.message+")":""));throw ot.context=at,ot}var lt=st[tt];if(lt===void 0)return!1;if(typeof lt=="function")ReflectApply(lt,this,rt);else for(var ut=lt.length,dt=arrayClone(lt,ut),nt=0;nt0&&at.length>it&&!at.warned){at.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+at.length+" "+String(tt)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=et,ot.type=tt,ot.count=at.length,ProcessEmitWarning(ot)}return et}EventEmitter.prototype.addListener=function(tt,rt){return _addListener(this,tt,rt,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(tt,rt){return _addListener(this,tt,rt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,tt,rt){var nt={fired:!1,wrapFn:void 0,target:et,type:tt,listener:rt},it=onceWrapper.bind(nt);return it.listener=rt,nt.wrapFn=it,it}EventEmitter.prototype.once=function(tt,rt){return checkListener(rt),this.on(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.prependOnceListener=function(tt,rt){return checkListener(rt),this.prependListener(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.removeListener=function(tt,rt){var nt,it,st,at,ot;if(checkListener(rt),it=this._events,it===void 0)return this;if(nt=it[tt],nt===void 0)return this;if(nt===rt||nt.listener===rt)--this._eventsCount===0?this._events=Object.create(null):(delete it[tt],it.removeListener&&this.emit("removeListener",tt,nt.listener||rt));else if(typeof nt!="function"){for(st=-1,at=nt.length-1;at>=0;at--)if(nt[at]===rt||nt[at].listener===rt){ot=nt[at].listener,st=at;break}if(st<0)return this;st===0?nt.shift():spliceOne(nt,st),nt.length===1&&(it[tt]=nt[0]),it.removeListener!==void 0&&this.emit("removeListener",tt,ot||rt)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(tt){var rt,nt,it;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[tt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[tt]),this;if(arguments.length===0){var st=Object.keys(nt),at;for(it=0;it=0;it--)this.removeListener(tt,rt[it]);return this};function _listeners(et,tt,rt){var nt=et._events;if(nt===void 0)return[];var it=nt[tt];return it===void 0?[]:typeof it=="function"?rt?[it.listener||it]:[it]:rt?unwrapListeners(it):arrayClone(it,it.length)}EventEmitter.prototype.listeners=function(tt){return _listeners(this,tt,!0)};EventEmitter.prototype.rawListeners=function(tt){return _listeners(this,tt,!1)};EventEmitter.listenerCount=function(et,tt){return typeof et.listenerCount=="function"?et.listenerCount(tt):listenerCount.call(et,tt)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(et){var tt=this._events;if(tt!==void 0){var rt=tt[et];if(typeof rt=="function")return 1;if(rt!==void 0)return rt.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(et,tt){for(var rt=new Array(tt),nt=0;nt0?this.tail.next=mt:this.head=mt,this.tail=mt,++this.length}},{key:"unshift",value:function($t){var mt={data:$t,next:this.head};this.length===0&&(this.tail=mt),this.head=mt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var $t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,$t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function($t){if(this.length===0)return"";for(var mt=this.head,wt=""+mt.data;mt=mt.next;)wt+=$t+mt.data;return wt}},{key:"concat",value:function($t){if(this.length===0)return ut.alloc(0);for(var mt=ut.allocUnsafe($t>>>0),wt=this.head,St=0;wt;)kt(wt.data,mt,St),St+=wt.data.length,wt=wt.next;return mt}},{key:"consume",value:function($t,mt){var wt;return $tBt.length?Bt.length:$t;if(Ft===Bt.length?St+=Bt:St+=Bt.slice(0,$t),$t-=Ft,$t===0){Ft===Bt.length?(++wt,mt.next?this.head=mt.next:this.head=this.tail=null):(this.head=mt,mt.data=Bt.slice(Ft));break}++wt}return this.length-=wt,St}},{key:"_getBuffer",value:function($t){var mt=ut.allocUnsafe($t),wt=this.head,St=1;for(wt.data.copy(mt),$t-=wt.data.length;wt=wt.next;){var Bt=wt.data,Ft=$t>Bt.length?Bt.length:$t;if(Bt.copy(mt,mt.length-$t,0,Ft),$t-=Ft,$t===0){Ft===Bt.length?(++St,wt.next?this.head=wt.next:this.head=this.tail=null):(this.head=wt,wt.data=Bt.slice(Ft));break}++St}return this.length-=St,mt}},{key:gt,value:function($t,mt){return bt(this,tt(tt({},mt),{},{depth:0,customInspect:!1}))}}]),pt}(),buffer_list}function destroy(et,tt){var rt=this,nt=this._readableState&&this._readableState.destroyed,it=this._writableState&&this._writableState.destroyed;return nt||it?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,et)):process.nextTick(emitErrorNT,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(st){!tt&&st?rt._writableState?rt._writableState.errorEmitted?process.nextTick(emitCloseNT,rt):(rt._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,rt,st)):process.nextTick(emitErrorAndCloseNT,rt,st):tt?(process.nextTick(emitCloseNT,rt),tt(st)):process.nextTick(emitCloseNT,rt)}),this)}function emitErrorAndCloseNT(et,tt){emitErrorNT(et,tt),emitCloseNT(et)}function emitCloseNT(et){et._writableState&&!et._writableState.emitClose||et._readableState&&!et._readableState.emitClose||et.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,tt){et.emit("error",tt)}function errorOrDestroy(et,tt){var rt=et._readableState,nt=et._writableState;rt&&rt.autoDestroy||nt&&nt.autoDestroy?et.destroy(tt):et.emit("error",tt)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose$1(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,et.__proto__=tt}var codes={};function createErrorType(et,tt,rt){rt||(rt=Error);function nt(st,at,ot){return typeof tt=="string"?tt:tt(st,at,ot)}var it=function(st){_inheritsLoose$1(at,st);function at(ot,lt,ut){return st.call(this,nt(ot,lt,ut))||this}return at}(rt);it.prototype.name=rt.name,it.prototype.code=et,codes[et]=it}function oneOf(et,tt){if(Array.isArray(et)){var rt=et.length;return et=et.map(function(nt){return String(nt)}),rt>2?"one of ".concat(tt," ").concat(et.slice(0,rt-1).join(", "),", or ")+et[rt-1]:rt===2?"one of ".concat(tt," ").concat(et[0]," or ").concat(et[1]):"of ".concat(tt," ").concat(et[0])}else return"of ".concat(tt," ").concat(String(et))}function startsWith(et,tt,rt){return et.substr(!rt||rt<0?0:+rt,tt.length)===tt}function endsWith(et,tt,rt){return(rt===void 0||rt>et.length)&&(rt=et.length),et.substring(rt-tt.length,rt)===tt}function includes(et,tt,rt){return typeof rt!="number"&&(rt=0),rt+tt.length>et.length?!1:et.indexOf(tt,rt)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(et,tt){return'The value "'+tt+'" is invalid for option "'+et+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(et,tt,rt){var nt;typeof tt=="string"&&startsWith(tt,"not ")?(nt="must not be",tt=tt.replace(/^not /,"")):nt="must be";var it;if(endsWith(et," argument"))it="The ".concat(et," ").concat(nt," ").concat(oneOf(tt,"type"));else{var st=includes(et,".")?"property":"argument";it='The "'.concat(et,'" ').concat(st," ").concat(nt," ").concat(oneOf(tt,"type"))}return it+=". Received type ".concat(typeof rt),it},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,tt,rt){return et.highWaterMark!=null?et.highWaterMark:tt?et[rt]:null}function getHighWaterMark(et,tt,rt,nt){var it=highWaterMarkFrom(tt,nt,rt);if(it!=null){if(!(isFinite(it)&&Math.floor(it)===it)||it<0){var st=nt?rt:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(st,it)}return Math.floor(it)}return et.objectMode?16:16*1024}var state={getHighWaterMark},browser$b=deprecate;function deprecate(et,tt){if(config("noDeprecation"))return et;var rt=!1;function nt(){if(!rt){if(config("throwDeprecation"))throw new Error(tt);config("traceDeprecation")?console.trace(tt):console.warn(tt),rt=!0}return et.apply(this,arguments)}return nt}function config(et){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var tt=commonjsGlobal.localStorage[et];return tt==null?!1:String(tt).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=Ht;function et(Kt){var Qt=this;this.next=null,this.entry=null,this.finish=function(){pr(Qt,Kt)}}var tt;Ht.WritableState=Dt;var rt={deprecate:browser$b},nt=streamBrowser,it=buffer$2.Buffer,st=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function at(Kt){return it.from(Kt)}function ot(Kt){return it.isBuffer(Kt)||Kt instanceof st}var lt=destroy_1,ut=state,dt=ut.getHighWaterMark,bt=errorsBrowser.codes,gt=bt.ERR_INVALID_ARG_TYPE,kt=bt.ERR_METHOD_NOT_IMPLEMENTED,pt=bt.ERR_MULTIPLE_CALLBACK,yt=bt.ERR_STREAM_CANNOT_PIPE,$t=bt.ERR_STREAM_DESTROYED,mt=bt.ERR_STREAM_NULL_VALUES,wt=bt.ERR_STREAM_WRITE_AFTER_END,St=bt.ERR_UNKNOWN_ENCODING,Bt=lt.errorOrDestroy;inherits_browserExports(Ht,nt);function Ft(){}function Dt(Kt,Qt,Zt){tt=tt||require_stream_duplex(),Kt=Kt||{},typeof Zt!="boolean"&&(Zt=Qt instanceof tt),this.objectMode=!!Kt.objectMode,Zt&&(this.objectMode=this.objectMode||!!Kt.writableObjectMode),this.highWaterMark=dt(this,Kt,"writableHighWaterMark",Zt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ur=Kt.decodeStrings===!1;this.decodeStrings=!ur,this.defaultEncoding=Kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_r){Tt(Qt,_r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Kt.emitClose!==!1,this.autoDestroy=!!Kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}Dt.prototype.getBuffer=function(){for(var Qt=this.bufferedRequest,Zt=[];Qt;)Zt.push(Qt),Qt=Qt.next;return Zt},function(){try{Object.defineProperty(Dt.prototype,"buffer",{get:rt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var zt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ht,Symbol.hasInstance,{value:function(Qt){return zt.call(this,Qt)?!0:this!==Ht?!1:Qt&&Qt._writableState instanceof Dt}})):zt=function(Qt){return Qt instanceof this};function Ht(Kt){tt=tt||require_stream_duplex();var Qt=this instanceof tt;if(!Qt&&!zt.call(Ht,this))return new Ht(Kt);this._writableState=new Dt(Kt,this,Qt),this.writable=!0,Kt&&(typeof Kt.write=="function"&&(this._write=Kt.write),typeof Kt.writev=="function"&&(this._writev=Kt.writev),typeof Kt.destroy=="function"&&(this._destroy=Kt.destroy),typeof Kt.final=="function"&&(this._final=Kt.final)),nt.call(this)}Ht.prototype.pipe=function(){Bt(this,new yt)};function Wt(Kt,Qt){var Zt=new wt;Bt(Kt,Zt),process.nextTick(Qt,Zt)}function lr(Kt,Qt,Zt,ur){var _r;return Zt===null?_r=new mt:typeof Zt!="string"&&!Qt.objectMode&&(_r=new gt("chunk",["string","Buffer"],Zt)),_r?(Bt(Kt,_r),process.nextTick(ur,_r),!1):!0}Ht.prototype.write=function(Kt,Qt,Zt){var ur=this._writableState,_r=!1,er=!ur.objectMode&&ot(Kt);return er&&!it.isBuffer(Kt)&&(Kt=at(Kt)),typeof Qt=="function"&&(Zt=Qt,Qt=null),er?Qt="buffer":Qt||(Qt=ur.defaultEncoding),typeof Zt!="function"&&(Zt=Ft),ur.ending?Wt(this,Zt):(er||lr(this,ur,Kt,Zt))&&(ur.pendingcb++,_r=Ot(this,ur,er,Kt,Qt,Zt)),_r},Ht.prototype.cork=function(){this._writableState.corked++},Ht.prototype.uncork=function(){var Kt=this._writableState;Kt.corked&&(Kt.corked--,!Kt.writing&&!Kt.corked&&!Kt.bufferProcessing&&Kt.bufferedRequest&&Pt(this,Kt))},Ht.prototype.setDefaultEncoding=function(Qt){if(typeof Qt=="string"&&(Qt=Qt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qt+"").toLowerCase())>-1))throw new St(Qt);return this._writableState.defaultEncoding=Qt,this},Object.defineProperty(Ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qt(Kt,Qt,Zt){return!Kt.objectMode&&Kt.decodeStrings!==!1&&typeof Qt=="string"&&(Qt=it.from(Qt,Zt)),Qt}Object.defineProperty(Ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ot(Kt,Qt,Zt,ur,_r,er){if(!Zt){var Jt=qt(Qt,ur,_r);ur!==Jt&&(Zt=!0,_r="buffer",ur=Jt)}var Ar=Qt.objectMode?1:ur.length;Qt.length+=Ar;var Er=Qt.length>5===6?2:et>>4===14?3:et>>3===30?4:et>>6===2?-1:-2}function utf8CheckIncomplete(et,tt,rt){var nt=tt.length-1;if(nt=0?(it>0&&(et.lastNeed=it-1),it):--nt=0?(it>0&&(et.lastNeed=it-2),it):--nt=0?(it>0&&(it===2?it=0:et.lastNeed=it-3),it):0))}function utf8CheckExtraBytes(et,tt,rt){if((tt[0]&192)!==128)return et.lastNeed=0,"�";if(et.lastNeed>1&&tt.length>1){if((tt[1]&192)!==128)return et.lastNeed=1,"�";if(et.lastNeed>2&&tt.length>2&&(tt[2]&192)!==128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var tt=this.lastTotal-this.lastNeed,rt=utf8CheckExtraBytes(this,et);if(rt!==void 0)return rt;if(this.lastNeed<=et.length)return et.copy(this.lastChar,tt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,tt,0,et.length),this.lastNeed-=et.length}function utf8Text(et,tt){var rt=utf8CheckIncomplete(this,et,tt);if(!this.lastNeed)return et.toString("utf8",tt);this.lastTotal=rt;var nt=et.length-(rt-this.lastNeed);return et.copy(this.lastChar,0,nt),et.toString("utf8",tt,nt)}function utf8End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+"�":tt}function utf16Text(et,tt){if((et.length-tt)%2===0){var rt=et.toString("utf16le",tt);if(rt){var nt=rt.charCodeAt(rt.length-1);if(nt>=55296&&nt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",tt,et.length-1)}function utf16End(et){var tt=et&&et.length?this.write(et):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return tt+this.lastChar.toString("utf16le",0,rt)}return tt}function base64Text(et,tt){var rt=(et.length-tt)%3;return rt===0?et.toString("base64",tt):(this.lastNeed=3-rt,this.lastTotal=3,rt===1?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",tt,et.length-rt))}function base64End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+this.lastChar.toString("base64",0,3-this.lastNeed):tt}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(et){var tt=!1;return function(){if(!tt){tt=!0;for(var rt=arguments.length,nt=new Array(rt),it=0;it0)if(typeof Jt!="string"&&!Xr.objectMode&&Object.getPrototypeOf(Jt)!==nt.prototype&&(Jt=st(Jt)),Er)Xr.endEmitted?Ft(er,new mt):qt(er,Xr,Jt,!0);else if(Xr.ended)Ft(er,new yt);else{if(Xr.destroyed)return!1;Xr.reading=!1,Xr.decoder&&!Ar?(Jt=Xr.decoder.write(Jt),Xr.objectMode||Jt.length!==0?qt(er,Xr,Jt,!1):Pt(er,Xr)):qt(er,Xr,Jt,!1)}else Er||(Xr.reading=!1,Pt(er,Xr))}return!Xr.ended&&(Xr.length=Mt?er=Mt:(er--,er|=er>>>1,er|=er>>>2,er|=er>>>4,er|=er>>>8,er|=er>>>16,er++),er}function Et(er,Jt){return er<=0||Jt.length===0&&Jt.ended?0:Jt.objectMode?1:er!==er?Jt.flowing&&Jt.length?Jt.buffer.head.data.length:Jt.length:(er>Jt.highWaterMark&&(Jt.highWaterMark=ht(er)),er<=Jt.length?er:Jt.ended?Jt.length:(Jt.needReadable=!0,0))}Wt.prototype.read=function(er){lt("read",er),er=parseInt(er,10);var Jt=this._readableState,Ar=er;if(er!==0&&(Jt.emittedReadable=!1),er===0&&Jt.needReadable&&((Jt.highWaterMark!==0?Jt.length>=Jt.highWaterMark:Jt.length>0)||Jt.ended))return lt("read: emitReadable",Jt.length,Jt.ended),Jt.length===0&&Jt.ended?Zt(this):Rt(this),null;if(er=Et(er,Jt),er===0&&Jt.ended)return Jt.length===0&&Zt(this),null;var Er=Jt.needReadable;lt("need readable",Er),(Jt.length===0||Jt.length-er0?Dr=Qt(er,Jt):Dr=null,Dr===null?(Jt.needReadable=Jt.length<=Jt.highWaterMark,er=0):(Jt.length-=er,Jt.awaitDrain=0),Jt.length===0&&(Jt.ended||(Jt.needReadable=!0),Ar!==er&&Jt.ended&&Zt(this)),Dr!==null&&this.emit("data",Dr),Dr};function Tt(er,Jt){if(lt("onEofChunk"),!Jt.ended){if(Jt.decoder){var Ar=Jt.decoder.end();Ar&&Ar.length&&(Jt.buffer.push(Ar),Jt.length+=Jt.objectMode?1:Ar.length)}Jt.ended=!0,Jt.sync?Rt(er):(Jt.needReadable=!1,Jt.emittedReadable||(Jt.emittedReadable=!0,At(er)))}}function Rt(er){var Jt=er._readableState;lt("emitReadable",Jt.needReadable,Jt.emittedReadable),Jt.needReadable=!1,Jt.emittedReadable||(lt("emitReadable",Jt.flowing),Jt.emittedReadable=!0,process.nextTick(At,er))}function At(er){var Jt=er._readableState;lt("emitReadable_",Jt.destroyed,Jt.length,Jt.ended),!Jt.destroyed&&(Jt.length||Jt.ended)&&(er.emit("readable"),Jt.emittedReadable=!1),Jt.needReadable=!Jt.flowing&&!Jt.ended&&Jt.length<=Jt.highWaterMark,Kt(er)}function Pt(er,Jt){Jt.readingMore||(Jt.readingMore=!0,process.nextTick(It,er,Jt))}function It(er,Jt){for(;!Jt.reading&&!Jt.ended&&(Jt.length1&&_r(Er.pipes,er)!==-1)&&!or&&(lt("false write response, pause",Er.awaitDrain),Er.awaitDrain++),Ar.pause())}function Or(Yt){lt("onerror",Yt),Ir(),er.removeListener("error",Or),tt(er,"error")===0&&Ft(er,Yt)}zt(er,"error",Or);function rr(){er.removeListener("finish",gr),Ir()}er.once("close",rr);function gr(){lt("onfinish"),er.removeListener("close",rr),Ir()}er.once("finish",gr);function Ir(){lt("unpipe"),Ar.unpipe(er)}return er.emit("pipe",Ar),Er.flowing||(lt("pipe resume"),Ar.resume()),er};function Ct(er){return function(){var Ar=er._readableState;lt("pipeOnDrain",Ar.awaitDrain),Ar.awaitDrain&&Ar.awaitDrain--,Ar.awaitDrain===0&&tt(er,"data")&&(Ar.flowing=!0,Kt(er))}}Wt.prototype.unpipe=function(er){var Jt=this._readableState,Ar={hasUnpiped:!1};if(Jt.pipesCount===0)return this;if(Jt.pipesCount===1)return er&&er!==Jt.pipes?this:(er||(er=Jt.pipes),Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1,er&&er.emit("unpipe",this,Ar),this);if(!er){var Er=Jt.pipes,Dr=Jt.pipesCount;Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1;for(var Xr=0;Xr0,Er.flowing!==!1&&this.resume()):er==="readable"&&!Er.endEmitted&&!Er.readableListening&&(Er.readableListening=Er.needReadable=!0,Er.flowing=!1,Er.emittedReadable=!1,lt("on readable",Er.length,Er.reading),Er.length?Rt(this):Er.reading||process.nextTick(Lt,this)),Ar},Wt.prototype.addListener=Wt.prototype.on,Wt.prototype.removeListener=function(er,Jt){var Ar=rt.prototype.removeListener.call(this,er,Jt);return er==="readable"&&process.nextTick(xt,this),Ar},Wt.prototype.removeAllListeners=function(er){var Jt=rt.prototype.removeAllListeners.apply(this,arguments);return(er==="readable"||er===void 0)&&process.nextTick(xt,this),Jt};function xt(er){var Jt=er._readableState;Jt.readableListening=er.listenerCount("readable")>0,Jt.resumeScheduled&&!Jt.paused?Jt.flowing=!0:er.listenerCount("data")>0&&er.resume()}function Lt(er){lt("readable nexttick read 0"),er.read(0)}Wt.prototype.resume=function(){var er=this._readableState;return er.flowing||(lt("resume"),er.flowing=!er.readableListening,tr(this,er)),er.paused=!1,this};function tr(er,Jt){Jt.resumeScheduled||(Jt.resumeScheduled=!0,process.nextTick(pr,er,Jt))}function pr(er,Jt){lt("resume",Jt.reading),Jt.reading||er.read(0),Jt.resumeScheduled=!1,er.emit("resume"),Kt(er),Jt.flowing&&!Jt.reading&&er.read(0)}Wt.prototype.pause=function(){return lt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(lt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Kt(er){var Jt=er._readableState;for(lt("flow",Jt.flowing);Jt.flowing&&er.read()!==null;);}Wt.prototype.wrap=function(er){var Jt=this,Ar=this._readableState,Er=!1;er.on("end",function(){if(lt("wrapped end"),Ar.decoder&&!Ar.ended){var Vr=Ar.decoder.end();Vr&&Vr.length&&Jt.push(Vr)}Jt.push(null)}),er.on("data",function(Vr){if(lt("wrapped data"),Ar.decoder&&(Vr=Ar.decoder.write(Vr)),!(Ar.objectMode&&Vr==null)&&!(!Ar.objectMode&&(!Vr||!Vr.length))){var wr=Jt.push(Vr);wr||(Er=!0,er.pause())}});for(var Dr in er)this[Dr]===void 0&&typeof er[Dr]=="function"&&(this[Dr]=function(wr){return function(){return er[wr].apply(er,arguments)}}(Dr));for(var Xr=0;Xr=Jt.length?(Jt.decoder?Ar=Jt.buffer.join(""):Jt.buffer.length===1?Ar=Jt.buffer.first():Ar=Jt.buffer.concat(Jt.length),Jt.buffer.clear()):Ar=Jt.buffer.consume(er,Jt.decoder),Ar}function Zt(er){var Jt=er._readableState;lt("endReadable",Jt.endEmitted),Jt.endEmitted||(Jt.ended=!0,process.nextTick(ur,Jt,er))}function ur(er,Jt){if(lt("endReadableNT",er.endEmitted,er.length),!er.endEmitted&&er.length===0&&(er.endEmitted=!0,Jt.readable=!1,Jt.emit("end"),er.autoDestroy)){var Ar=Jt._writableState;(!Ar||Ar.autoDestroy&&Ar.finished)&&Jt.destroy()}}typeof Symbol=="function"&&(Wt.from=function(er,Jt){return Bt===void 0&&(Bt=requireFromBrowser()),Bt(Wt,er,Jt)});function _r(er,Jt){for(var Ar=0,Er=er.length;Ar0;return destroyer(at,lt,ut,function(dt){it||(it=dt),dt&&st.forEach(call),!lt&&(st.forEach(call),nt(it))})});return tt.reduce(pipe)}var pipeline_1=pipeline;(function(et,tt){tt=et.exports=require_stream_readable(),tt.Stream=tt,tt.Readable=tt,tt.Writable=require_stream_writable(),tt.Duplex=require_stream_duplex(),tt.Transform=_stream_transform,tt.PassThrough=_stream_passthrough,tt.finished=endOfStream,tt.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,Buffer$F=safeBufferExports.Buffer,Transform$5=readableBrowserExports.Transform,inherits$v=inherits_browserExports;function throwIfNotStringOrBuffer(et,tt){if(!Buffer$F.isBuffer(et)&&typeof et!="string")throw new TypeError(tt+" must be a string or a buffer")}function HashBase$2(et){Transform$5.call(this),this._block=Buffer$F.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$v(HashBase$2,Transform$5);HashBase$2.prototype._transform=function(et,tt,rt){var nt=null;try{this.update(et,tt)}catch(it){nt=it}rt(nt)};HashBase$2.prototype._flush=function(et){var tt=null;try{this.push(this.digest())}catch(rt){tt=rt}et(tt)};HashBase$2.prototype.update=function(et,tt){if(throwIfNotStringOrBuffer(et,"Data"),this._finalized)throw new Error("Digest already called");Buffer$F.isBuffer(et)||(et=Buffer$F.from(et,tt));for(var rt=this._block,nt=0;this._blockOffset+et.length-nt>=this._blockSize;){for(var it=this._blockOffset;it0;++st)this._length[st]+=at,at=this._length[st]/4294967296|0,at>0&&(this._length[st]-=4294967296*at);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(et){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var tt=this._digest();et!==void 0&&(tt=tt.toString(et)),this._block.fill(0),this._blockOffset=0;for(var rt=0;rt<4;++rt)this._length[rt]=0;return tt};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$u=inherits_browserExports,HashBase$1=hashBase,Buffer$E=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$u(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var et=ARRAY16$1,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);var rt=this._a,nt=this._b,it=this._c,st=this._d;rt=fnF(rt,nt,it,st,et[0],3614090360,7),st=fnF(st,rt,nt,it,et[1],3905402710,12),it=fnF(it,st,rt,nt,et[2],606105819,17),nt=fnF(nt,it,st,rt,et[3],3250441966,22),rt=fnF(rt,nt,it,st,et[4],4118548399,7),st=fnF(st,rt,nt,it,et[5],1200080426,12),it=fnF(it,st,rt,nt,et[6],2821735955,17),nt=fnF(nt,it,st,rt,et[7],4249261313,22),rt=fnF(rt,nt,it,st,et[8],1770035416,7),st=fnF(st,rt,nt,it,et[9],2336552879,12),it=fnF(it,st,rt,nt,et[10],4294925233,17),nt=fnF(nt,it,st,rt,et[11],2304563134,22),rt=fnF(rt,nt,it,st,et[12],1804603682,7),st=fnF(st,rt,nt,it,et[13],4254626195,12),it=fnF(it,st,rt,nt,et[14],2792965006,17),nt=fnF(nt,it,st,rt,et[15],1236535329,22),rt=fnG(rt,nt,it,st,et[1],4129170786,5),st=fnG(st,rt,nt,it,et[6],3225465664,9),it=fnG(it,st,rt,nt,et[11],643717713,14),nt=fnG(nt,it,st,rt,et[0],3921069994,20),rt=fnG(rt,nt,it,st,et[5],3593408605,5),st=fnG(st,rt,nt,it,et[10],38016083,9),it=fnG(it,st,rt,nt,et[15],3634488961,14),nt=fnG(nt,it,st,rt,et[4],3889429448,20),rt=fnG(rt,nt,it,st,et[9],568446438,5),st=fnG(st,rt,nt,it,et[14],3275163606,9),it=fnG(it,st,rt,nt,et[3],4107603335,14),nt=fnG(nt,it,st,rt,et[8],1163531501,20),rt=fnG(rt,nt,it,st,et[13],2850285829,5),st=fnG(st,rt,nt,it,et[2],4243563512,9),it=fnG(it,st,rt,nt,et[7],1735328473,14),nt=fnG(nt,it,st,rt,et[12],2368359562,20),rt=fnH(rt,nt,it,st,et[5],4294588738,4),st=fnH(st,rt,nt,it,et[8],2272392833,11),it=fnH(it,st,rt,nt,et[11],1839030562,16),nt=fnH(nt,it,st,rt,et[14],4259657740,23),rt=fnH(rt,nt,it,st,et[1],2763975236,4),st=fnH(st,rt,nt,it,et[4],1272893353,11),it=fnH(it,st,rt,nt,et[7],4139469664,16),nt=fnH(nt,it,st,rt,et[10],3200236656,23),rt=fnH(rt,nt,it,st,et[13],681279174,4),st=fnH(st,rt,nt,it,et[0],3936430074,11),it=fnH(it,st,rt,nt,et[3],3572445317,16),nt=fnH(nt,it,st,rt,et[6],76029189,23),rt=fnH(rt,nt,it,st,et[9],3654602809,4),st=fnH(st,rt,nt,it,et[12],3873151461,11),it=fnH(it,st,rt,nt,et[15],530742520,16),nt=fnH(nt,it,st,rt,et[2],3299628645,23),rt=fnI(rt,nt,it,st,et[0],4096336452,6),st=fnI(st,rt,nt,it,et[7],1126891415,10),it=fnI(it,st,rt,nt,et[14],2878612391,15),nt=fnI(nt,it,st,rt,et[5],4237533241,21),rt=fnI(rt,nt,it,st,et[12],1700485571,6),st=fnI(st,rt,nt,it,et[3],2399980690,10),it=fnI(it,st,rt,nt,et[10],4293915773,15),nt=fnI(nt,it,st,rt,et[1],2240044497,21),rt=fnI(rt,nt,it,st,et[8],1873313359,6),st=fnI(st,rt,nt,it,et[15],4264355552,10),it=fnI(it,st,rt,nt,et[6],2734768916,15),nt=fnI(nt,it,st,rt,et[13],1309151649,21),rt=fnI(rt,nt,it,st,et[4],4149444226,6),st=fnI(st,rt,nt,it,et[11],3174756917,10),it=fnI(it,st,rt,nt,et[2],718787259,15),nt=fnI(nt,it,st,rt,et[9],3951481745,21),this._a=this._a+rt|0,this._b=this._b+nt|0,this._c=this._c+it|0,this._d=this._d+st|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$E.allocUnsafe(16);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et};function rotl$3(et,tt){return et<>>32-tt}function fnF(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&rt|~tt&nt)+it+st|0,at)+tt|0}function fnG(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&nt|rt&~nt)+it+st|0,at)+tt|0}function fnH(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt^rt^nt)+it+st|0,at)+tt|0}function fnI(et,tt,rt,nt,it,st,at){return rotl$3(et+(rt^(tt|~nt))+it+st|0,at)+tt|0}var md5_js=MD5$3,Buffer$D=buffer$2.Buffer,inherits$t=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$t(RIPEMD160$5,HashBase);RIPEMD160$5.prototype._update=function(){for(var et=ARRAY16,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);for(var rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._a|0,lt=this._b|0,ut=this._c|0,dt=this._d|0,bt=this._e|0,gt=0;gt<80;gt+=1){var kt,pt;gt<16?(kt=fn1(rt,nt,it,st,at,et[zl[gt]],hl[0],sl[gt]),pt=fn5(ot,lt,ut,dt,bt,et[zr[gt]],hr[0],sr[gt])):gt<32?(kt=fn2(rt,nt,it,st,at,et[zl[gt]],hl[1],sl[gt]),pt=fn4(ot,lt,ut,dt,bt,et[zr[gt]],hr[1],sr[gt])):gt<48?(kt=fn3(rt,nt,it,st,at,et[zl[gt]],hl[2],sl[gt]),pt=fn3(ot,lt,ut,dt,bt,et[zr[gt]],hr[2],sr[gt])):gt<64?(kt=fn4(rt,nt,it,st,at,et[zl[gt]],hl[3],sl[gt]),pt=fn2(ot,lt,ut,dt,bt,et[zr[gt]],hr[3],sr[gt])):(kt=fn5(rt,nt,it,st,at,et[zl[gt]],hl[4],sl[gt]),pt=fn1(ot,lt,ut,dt,bt,et[zr[gt]],hr[4],sr[gt])),rt=at,at=st,st=rotl$2(it,10),it=nt,nt=kt,ot=bt,bt=dt,dt=rotl$2(ut,10),ut=lt,lt=pt}var yt=this._b+it+dt|0;this._b=this._c+st+bt|0,this._c=this._d+at+ot|0,this._d=this._e+rt+lt|0,this._e=this._a+nt+ut|0,this._a=yt};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$D.alloc?Buffer$D.alloc(20):new Buffer$D(20);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et.writeInt32LE(this._e,16),et};function rotl$2(et,tt){return et<>>32-tt}function fn1(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^rt^nt)+st+at|0,ot)+it|0}function fn2(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&rt|~tt&nt)+st+at|0,ot)+it|0}function fn3(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+((tt|~rt)^nt)+st+at|0,ot)+it|0}function fn4(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&nt|rt&~nt)+st+at|0,ot)+it|0}function fn5(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^(rt|~nt))+st+at|0,ot)+it|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},Buffer$C=safeBufferExports.Buffer;function Hash$9(et,tt){this._block=Buffer$C.alloc(et),this._finalSize=tt,this._blockSize=et,this._len=0}Hash$9.prototype.update=function(et,tt){typeof et=="string"&&(tt=tt||"utf8",et=Buffer$C.from(et,tt));for(var rt=this._block,nt=this._blockSize,it=et.length,st=this._len,at=0;at=this._finalSize&&(this._update(this._block),this._block.fill(0));var rt=this._len*8;if(rt<=4294967295)this._block.writeUInt32BE(rt,this._blockSize-4);else{var nt=(rt&4294967295)>>>0,it=(rt-nt)/4294967296;this._block.writeUInt32BE(it,this._blockSize-8),this._block.writeUInt32BE(nt,this._blockSize-4)}this._update(this._block);var st=this._hash();return et?st.toString(et):st};Hash$9.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$5=Hash$9,inherits$s=inherits_browserExports,Hash$8=hash$5,Buffer$B=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$8.call(this,64,56)}inherits$s(Sha,Hash$8);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(et){return et<<5|et>>>27}function rotl30$1(et){return et<<30|et>>>2}function ft$1(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16];for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5$1(rt)+ft$1(ut,nt,it,st)+at+tt[lt]+K$4[ut]|0;at=st,st=it,it=rotl30$1(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha.prototype._hash=function(){var et=Buffer$B.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha$4=Sha,inherits$r=inherits_browserExports,Hash$7=hash$5,Buffer$A=safeBufferExports.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$7.call(this,64,56)}inherits$r(Sha1,Hash$7);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(et){return et<<1|et>>>31}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=rotl1(tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16]);for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5(rt)+ft(ut,nt,it,st)+at+tt[lt]+K$3[ut]|0;at=st,st=it,it=rotl30(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha1.prototype._hash=function(){var et=Buffer$A.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha1$1=Sha1,inherits$q=inherits_browserExports,Hash$6=hash$5,Buffer$z=safeBufferExports.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$6.call(this,64,56)}inherits$q(Sha256$1,Hash$6);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(et,tt,rt){return rt^et&(tt^rt)}function maj$1(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0$1(et){return(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10)}function sigma1$1(et){return(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7)}function gamma0(et){return(et>>>7|et<<25)^(et>>>18|et<<14)^et>>>3}function gamma1(et){return(et>>>17|et<<15)^(et>>>19|et<<13)^et>>>10}Sha256$1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._f|0,lt=this._g|0,ut=this._h|0,dt=0;dt<16;++dt)tt[dt]=et.readInt32BE(dt*4);for(;dt<64;++dt)tt[dt]=gamma1(tt[dt-2])+tt[dt-7]+gamma0(tt[dt-15])+tt[dt-16]|0;for(var bt=0;bt<64;++bt){var gt=ut+sigma1$1(at)+ch(at,ot,lt)+K$2[bt]+tt[bt]|0,kt=sigma0$1(rt)+maj$1(rt,nt,it)|0;ut=lt,lt=ot,ot=at,at=st+gt|0,st=it,it=nt,nt=rt,rt=gt+kt|0}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0,this._f=ot+this._f|0,this._g=lt+this._g|0,this._h=ut+this._h|0};Sha256$1.prototype._hash=function(){var et=Buffer$z.allocUnsafe(32);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et.writeInt32BE(this._h,28),et};var sha256$4=Sha256$1,inherits$p=inherits_browserExports,Sha256=sha256$4,Hash$5=hash$5,Buffer$y=safeBufferExports.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$5.call(this,64,56)}inherits$p(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var et=Buffer$y.allocUnsafe(28);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et};var sha224$1=Sha224,inherits$o=inherits_browserExports,Hash$4=hash$5,Buffer$x=safeBufferExports.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$4.call(this,128,112)}inherits$o(Sha512,Hash$4);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(et,tt,rt){return rt^et&(tt^rt)}function maj(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0(et,tt){return(et>>>28|tt<<4)^(tt>>>2|et<<30)^(tt>>>7|et<<25)}function sigma1(et,tt){return(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23)}function Gamma0(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^et>>>7}function Gamma0l(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^(et>>>7|tt<<25)}function Gamma1(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^et>>>6}function Gamma1l(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^(et>>>6|tt<<26)}function getCarry(et,tt){return et>>>0>>0?1:0}Sha512.prototype._update=function(et){for(var tt=this._w,rt=this._ah|0,nt=this._bh|0,it=this._ch|0,st=this._dh|0,at=this._eh|0,ot=this._fh|0,lt=this._gh|0,ut=this._hh|0,dt=this._al|0,bt=this._bl|0,gt=this._cl|0,kt=this._dl|0,pt=this._el|0,yt=this._fl|0,$t=this._gl|0,mt=this._hl|0,wt=0;wt<32;wt+=2)tt[wt]=et.readInt32BE(wt*4),tt[wt+1]=et.readInt32BE(wt*4+4);for(;wt<160;wt+=2){var St=tt[wt-30],Bt=tt[wt-15*2+1],Ft=Gamma0(St,Bt),Dt=Gamma0l(Bt,St);St=tt[wt-2*2],Bt=tt[wt-2*2+1];var zt=Gamma1(St,Bt),Ht=Gamma1l(Bt,St),Wt=tt[wt-7*2],lr=tt[wt-7*2+1],qt=tt[wt-16*2],Ot=tt[wt-16*2+1],Mt=Dt+lr|0,ht=Ft+Wt+getCarry(Mt,Dt)|0;Mt=Mt+Ht|0,ht=ht+zt+getCarry(Mt,Ht)|0,Mt=Mt+Ot|0,ht=ht+qt+getCarry(Mt,Ot)|0,tt[wt]=ht,tt[wt+1]=Mt}for(var Et=0;Et<160;Et+=2){ht=tt[Et],Mt=tt[Et+1];var Tt=maj(rt,nt,it),Rt=maj(dt,bt,gt),At=sigma0(rt,dt),Pt=sigma0(dt,rt),It=sigma1(at,pt),Ct=sigma1(pt,at),xt=K$1[Et],Lt=K$1[Et+1],tr=Ch(at,ot,lt),pr=Ch(pt,yt,$t),Kt=mt+Ct|0,Qt=ut+It+getCarry(Kt,mt)|0;Kt=Kt+pr|0,Qt=Qt+tr+getCarry(Kt,pr)|0,Kt=Kt+Lt|0,Qt=Qt+xt+getCarry(Kt,Lt)|0,Kt=Kt+Mt|0,Qt=Qt+ht+getCarry(Kt,Mt)|0;var Zt=Pt+Rt|0,ur=At+Tt+getCarry(Zt,Pt)|0;ut=lt,mt=$t,lt=ot,$t=yt,ot=at,yt=pt,pt=kt+Kt|0,at=st+Qt+getCarry(pt,kt)|0,st=it,kt=gt,it=nt,gt=bt,nt=rt,bt=dt,dt=Kt+Zt|0,rt=Qt+ur+getCarry(dt,Kt)|0}this._al=this._al+dt|0,this._bl=this._bl+bt|0,this._cl=this._cl+gt|0,this._dl=this._dl+kt|0,this._el=this._el+pt|0,this._fl=this._fl+yt|0,this._gl=this._gl+$t|0,this._hl=this._hl+mt|0,this._ah=this._ah+rt+getCarry(this._al,dt)|0,this._bh=this._bh+nt+getCarry(this._bl,bt)|0,this._ch=this._ch+it+getCarry(this._cl,gt)|0,this._dh=this._dh+st+getCarry(this._dl,kt)|0,this._eh=this._eh+at+getCarry(this._el,pt)|0,this._fh=this._fh+ot+getCarry(this._fl,yt)|0,this._gh=this._gh+lt+getCarry(this._gl,$t)|0,this._hh=this._hh+ut+getCarry(this._hl,mt)|0};Sha512.prototype._hash=function(){var et=Buffer$x.allocUnsafe(64);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),tt(this._gh,this._gl,48),tt(this._hh,this._hl,56),et};var sha512$1=Sha512,inherits$n=inherits_browserExports,SHA512$2=sha512$1,Hash$3=hash$5,Buffer$w=safeBufferExports.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$3.call(this,128,112)}inherits$n(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var et=Buffer$w.allocUnsafe(48);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),et};var sha384$1=Sha384,exports$1=sha_js.exports=function(tt){tt=tt.toLowerCase();var rt=exports$1[tt];if(!rt)throw new Error(tt+" is not supported (we accept pull requests)");return new rt};exports$1.sha=sha$4;exports$1.sha1=sha1$1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$4;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$m=inherits_browserExports;inherits$m(Stream,EE);Stream.Readable=require_stream_readable();Stream.Writable=require_stream_writable();Stream.Duplex=require_stream_duplex();Stream.Transform=_stream_transform;Stream.PassThrough=_stream_passthrough;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(et,tt){var rt=this;function nt(dt){et.writable&&et.write(dt)===!1&&rt.pause&&rt.pause()}rt.on("data",nt);function it(){rt.readable&&rt.resume&&rt.resume()}et.on("drain",it),!et._isStdio&&(!tt||tt.end!==!1)&&(rt.on("end",at),rt.on("close",ot));var st=!1;function at(){st||(st=!0,et.end())}function ot(){st||(st=!0,typeof et.destroy=="function"&&et.destroy())}function lt(dt){if(ut(),EE.listenerCount(this,"error")===0)throw dt}rt.on("error",lt),et.on("error",lt);function ut(){rt.removeListener("data",nt),et.removeListener("drain",it),rt.removeListener("end",at),rt.removeListener("close",ot),rt.removeListener("error",lt),et.removeListener("error",lt),rt.removeListener("end",ut),rt.removeListener("close",ut),et.removeListener("close",ut)}return rt.on("end",ut),rt.on("close",ut),et.on("close",ut),et.emit("pipe",rt),et};var Buffer$v=safeBufferExports.Buffer,Transform$4=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$l=inherits_browserExports;function CipherBase$1(et){Transform$4.call(this),this.hashMode=typeof et=="string",this.hashMode?this[et]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$l(CipherBase$1,Transform$4);CipherBase$1.prototype.update=function(et,tt,rt){typeof et=="string"&&(et=Buffer$v.from(et,tt));var nt=this._update(et);return this.hashMode?this:(rt&&(nt=this._toString(nt,rt)),nt)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(et,tt,rt){var nt;try{this.hashMode?this._update(et):this.push(this._update(et))}catch(it){nt=it}finally{rt(nt)}};CipherBase$1.prototype._flush=function(et){var tt;try{this.push(this.__final())}catch(rt){tt=rt}et(tt)};CipherBase$1.prototype._finalOrDigest=function(et){var tt=this.__final()||Buffer$v.alloc(0);return et&&(tt=this._toString(tt,et,!0)),tt};CipherBase$1.prototype._toString=function(et,tt,rt){if(this._decoder||(this._decoder=new StringDecoder(tt),this._encoding=tt),this._encoding!==tt)throw new Error("can't switch encodings");var nt=this._decoder.write(et);return rt&&(nt+=this._decoder.end()),nt};var cipherBase=CipherBase$1,inherits$k=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash$2(et){Base$5.call(this,"digest"),this._hash=et}inherits$k(Hash$2,Base$5);Hash$2.prototype._update=function(et){this._hash.update(et)};Hash$2.prototype._final=function(){return this._hash.digest()};var browser$a=function(tt){return tt=tt.toLowerCase(),tt==="md5"?new MD5$2:tt==="rmd160"||tt==="ripemd160"?new RIPEMD160$4:new Hash$2(sha$3(tt))},inherits$j=inherits_browserExports,Buffer$u=safeBufferExports.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$u.alloc(128),blocksize=64;function Hmac$3(et,tt){Base$4.call(this,"digest"),typeof tt=="string"&&(tt=Buffer$u.from(tt)),this._alg=et,this._key=tt,tt.length>blocksize?tt=et(tt):tt.lengthrt){var nt=et==="rmd160"?new RIPEMD160$3:sha$2(et);tt=nt.update(tt).digest()}else tt.lengthMAX_ALLOC||tt!==tt)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$s=safeBufferExports.Buffer,toBuffer$3=function(et,tt,rt){if(Buffer$s.isBuffer(et))return et;if(typeof et=="string")return Buffer$s.from(et,tt);if(ArrayBuffer.isView(et))return Buffer$s.from(et.buffer);throw new TypeError(rt+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$2=ripemd160$1,sha$1=sha_jsExports,Buffer$r=safeBufferExports.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$2=toBuffer$3,ZEROS=Buffer$r.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(et,tt,rt){var nt=getDigest(et),it=et==="sha512"||et==="sha384"?128:64;tt.length>it?tt=nt(tt):tt.length>>0};utils$p.writeUInt32BE=function(tt,rt,nt){tt[0+nt]=rt>>>24,tt[1+nt]=rt>>>16&255,tt[2+nt]=rt>>>8&255,tt[3+nt]=rt&255};utils$p.ip=function(tt,rt,nt,it){for(var st=0,at=0,ot=6;ot>=0;ot-=2){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>>lt+ot&1}for(var ot=6;ot>=0;ot-=2){for(var lt=1;lt<=25;lt+=8)at<<=1,at|=rt>>>lt+ot&1;for(var lt=1;lt<=25;lt+=8)at<<=1,at|=tt>>>lt+ot&1}nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.rip=function(tt,rt,nt,it){for(var st=0,at=0,ot=0;ot<4;ot++)for(var lt=24;lt>=0;lt-=8)st<<=1,st|=rt>>>lt+ot&1,st<<=1,st|=tt>>>lt+ot&1;for(var ot=4;ot<8;ot++)for(var lt=24;lt>=0;lt-=8)at<<=1,at|=rt>>>lt+ot&1,at<<=1,at|=tt>>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.pc1=function(tt,rt,nt,it){for(var st=0,at=0,ot=7;ot>=5;ot--){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var ot=1;ot<=3;ot++){for(var lt=0;lt<=24;lt+=8)at<<=1,at|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.r28shl=function(tt,rt){return tt<>>28-rt};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$p.pc2=function(tt,rt,nt,it){for(var st=0,at=0,ot=pc2table.length>>>1,lt=0;lt>>pc2table[lt]&1;for(var lt=ot;lt>>pc2table[lt]&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.expand=function(tt,rt,nt){var it=0,st=0;it=(tt&1)<<5|tt>>>27;for(var at=23;at>=15;at-=4)it<<=6,it|=tt>>>at&63;for(var at=11;at>=3;at-=4)st|=tt>>>at&63,st<<=6;st|=(tt&31)<<1|tt>>>31,rt[nt+0]=it>>>0,rt[nt+1]=st>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$p.substitute=function(tt,rt){for(var nt=0,it=0;it<4;it++){var st=tt>>>18-it*6&63,at=sTable[it*64+st];nt<<=4,nt|=at}for(var it=0;it<4;it++){var st=rt>>>18-it*6&63,at=sTable[4*64+it*64+st];nt<<=4,nt|=at}return nt>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$p.permute=function(tt){for(var rt=0,nt=0;nt>>permuteTable[nt]&1;return rt>>>0};utils$p.padSplit=function(tt,rt,nt){for(var it=tt.toString(2);it.length0;it--)rt+=this._buffer(tt,rt),nt+=this._flushBuffer(st,nt);return rt+=this._buffer(tt,rt),st};Cipher$3.prototype.final=function(tt){var rt;tt&&(rt=this.update(tt));var nt;return this.type==="encrypt"?nt=this._finalEncrypt():nt=this._finalDecrypt(),rt?rt.concat(nt):nt};Cipher$3.prototype._pad=function(tt,rt){if(rt===0)return!1;for(;rt>>1];nt=utils$o.r28shl(nt,at),it=utils$o.r28shl(it,at),utils$o.pc2(nt,it,tt.keys,st)}};DES$3.prototype._update=function(tt,rt,nt,it){var st=this._desState,at=utils$o.readUInt32BE(tt,rt),ot=utils$o.readUInt32BE(tt,rt+4);utils$o.ip(at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],this.type==="encrypt"?this._encrypt(st,at,ot,st.tmp,0):this._decrypt(st,at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],utils$o.writeUInt32BE(nt,at,it),utils$o.writeUInt32BE(nt,ot,it+4)};DES$3.prototype._pad=function(tt,rt){if(this.padding===!1)return!1;for(var nt=tt.length-rt,it=rt;it>>0,at=kt}utils$o.rip(ot,at,it,st)};DES$3.prototype._decrypt=function(tt,rt,nt,it,st){for(var at=nt,ot=rt,lt=tt.keys.length-2;lt>=0;lt-=2){var ut=tt.keys[lt],dt=tt.keys[lt+1];utils$o.expand(at,tt.tmp,0),ut^=tt.tmp[0],dt^=tt.tmp[1];var bt=utils$o.substitute(ut,dt),gt=utils$o.permute(bt),kt=at;at=(ot^gt)>>>0,ot=kt}utils$o.rip(at,ot,it,st)};var cbc$1={},assert$k=minimalisticAssert,inherits$g=inherits_browserExports,proto={};function CBCState(et){assert$k.equal(et.length,8,"Invalid IV length"),this.iv=new Array(8);for(var tt=0;tt>it%8,et._prev=shiftIn(et._prev,rt?ot:lt);return at}function shiftIn(et,tt){var rt=et.length,nt=-1,it=Buffer$m.allocUnsafe(et.length);for(et=Buffer$m.concat([et,Buffer$m.from([tt])]);++nt>7;return it}cfb1.encrypt=function(et,tt,rt){for(var nt=tt.length,it=Buffer$m.allocUnsafe(nt),st=-1;++st>>24]^at[dt>>>16&255]^ot[bt>>>8&255]^lt[gt&255]^tt[mt++],pt=st[dt>>>24]^at[bt>>>16&255]^ot[gt>>>8&255]^lt[ut&255]^tt[mt++],yt=st[bt>>>24]^at[gt>>>16&255]^ot[ut>>>8&255]^lt[dt&255]^tt[mt++],$t=st[gt>>>24]^at[ut>>>16&255]^ot[dt>>>8&255]^lt[bt&255]^tt[mt++],ut=kt,dt=pt,bt=yt,gt=$t;return kt=(nt[ut>>>24]<<24|nt[dt>>>16&255]<<16|nt[bt>>>8&255]<<8|nt[gt&255])^tt[mt++],pt=(nt[dt>>>24]<<24|nt[bt>>>16&255]<<16|nt[gt>>>8&255]<<8|nt[ut&255])^tt[mt++],yt=(nt[bt>>>24]<<24|nt[gt>>>16&255]<<16|nt[ut>>>8&255]<<8|nt[dt&255])^tt[mt++],$t=(nt[gt>>>24]<<24|nt[ut>>>16&255]<<16|nt[dt>>>8&255]<<8|nt[bt&255])^tt[mt++],kt=kt>>>0,pt=pt>>>0,yt=yt>>>0,$t=$t>>>0,[kt,pt,yt,$t]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var et=new Array(256),tt=0;tt<256;tt++)tt<128?et[tt]=tt<<1:et[tt]=tt<<1^283;for(var rt=[],nt=[],it=[[],[],[],[]],st=[[],[],[],[]],at=0,ot=0,lt=0;lt<256;++lt){var ut=ot^ot<<1^ot<<2^ot<<3^ot<<4;ut=ut>>>8^ut&255^99,rt[at]=ut,nt[ut]=at;var dt=et[at],bt=et[dt],gt=et[bt],kt=et[ut]*257^ut*16843008;it[0][at]=kt<<24|kt>>>8,it[1][at]=kt<<16|kt>>>16,it[2][at]=kt<<8|kt>>>24,it[3][at]=kt,kt=gt*16843009^bt*65537^dt*257^at*16843008,st[0][ut]=kt<<24|kt>>>8,st[1][ut]=kt<<16|kt>>>16,st[2][ut]=kt<<8|kt>>>24,st[3][ut]=kt,at===0?at=ot=1:(at=dt^et[et[et[gt^dt]]],ot^=et[et[ot]])}return{SBOX:rt,INV_SBOX:nt,SUB_MIX:it,INV_SUB_MIX:st}}();function AES(et){this._key=asUInt32Array(et),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var et=this._key,tt=et.length,rt=tt+6,nt=(rt+1)*4,it=[],st=0;st>>24,at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255],at^=RCON[st/tt|0]<<24):tt>6&&st%tt===4&&(at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255]),it[st]=it[st-tt]^at}for(var ot=[],lt=0;lt>>24]]^G.INV_SUB_MIX[1][G.SBOX[dt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[dt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[dt&255]]}this._nRounds=rt,this._keySchedule=it,this._invKeySchedule=ot};AES.prototype.encryptBlockRaw=function(et){return et=asUInt32Array(et),cryptBlock(et,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(et){var tt=this.encryptBlockRaw(et),rt=Buffer$k.allocUnsafe(16);return rt.writeUInt32BE(tt[0],0),rt.writeUInt32BE(tt[1],4),rt.writeUInt32BE(tt[2],8),rt.writeUInt32BE(tt[3],12),rt};AES.prototype.decryptBlock=function(et){et=asUInt32Array(et);var tt=et[1];et[1]=et[3],et[3]=tt;var rt=cryptBlock(et,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),nt=Buffer$k.allocUnsafe(16);return nt.writeUInt32BE(rt[0],0),nt.writeUInt32BE(rt[3],4),nt.writeUInt32BE(rt[2],8),nt.writeUInt32BE(rt[1],12),nt};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$j=safeBufferExports.Buffer,ZEROES=Buffer$j.alloc(16,0);function toArray$2(et){return[et.readUInt32BE(0),et.readUInt32BE(4),et.readUInt32BE(8),et.readUInt32BE(12)]}function fromArray(et){var tt=Buffer$j.allocUnsafe(16);return tt.writeUInt32BE(et[0]>>>0,0),tt.writeUInt32BE(et[1]>>>0,4),tt.writeUInt32BE(et[2]>>>0,8),tt.writeUInt32BE(et[3]>>>0,12),tt}function GHASH$1(et){this.h=et,this.state=Buffer$j.alloc(16,0),this.cache=Buffer$j.allocUnsafe(0)}GHASH$1.prototype.ghash=function(et){for(var tt=-1;++tt0;rt--)et[rt]=et[rt]>>>1|(et[rt-1]&1)<<31;et[0]=et[0]>>>1,it&&(et[0]=et[0]^225<<24)}this.state=fromArray(tt)};GHASH$1.prototype.update=function(et){this.cache=Buffer$j.concat([this.cache,et]);for(var tt;this.cache.length>=16;)tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(tt)};GHASH$1.prototype.final=function(et,tt){return this.cache.length&&this.ghash(Buffer$j.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,et,0,tt])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$i=safeBufferExports.Buffer,Transform$3=cipherBase,inherits$d=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(et,tt){var rt=0;et.length!==tt.length&&rt++;for(var nt=Math.min(et.length,tt.length),it=0;it0||nt>0;){var lt=new MD5;lt.update(ot),lt.update(et),tt&<.update(tt),ot=lt.digest();var ut=0;if(it>0){var dt=st.length-it;ut=Math.min(it,ot.length),ot.copy(st,dt,0,ut),it-=ut}if(ut0){var bt=at.length-nt,gt=Math.min(nt,ot.length-ut);ot.copy(at,bt,ut,ut+gt),nt-=gt}}return ot.fill(0),{key:st,iv:at}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$f=safeBufferExports.Buffer,StreamCipher$1=streamCipher,Transform$1=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$b=inherits_browserExports;function Cipher(et,tt,rt){Transform$1.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(tt),this._prev=Buffer$f.from(rt),this._mode=et,this._autopadding=!0}inherits$b(Cipher,Transform$1);Cipher.prototype._update=function(et){this._cache.add(et);for(var tt,rt,nt=[];tt=this._cache.get();)rt=this._mode.encrypt(this,tt),nt.push(rt);return Buffer$f.concat(nt)};var PADDING=Buffer$f.alloc(16,16);Cipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return et=this._mode.encrypt(this,et),this._cipher.scrub(),et;if(!et.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this};function Splitter$1(){this.cache=Buffer$f.allocUnsafe(0)}Splitter$1.prototype.add=function(et){this.cache=Buffer$f.concat([this.cache,et])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var et=this.cache.slice(0,16);return this.cache=this.cache.slice(16),et}return null};Splitter$1.prototype.flush=function(){for(var et=16-this.cache.length,tt=Buffer$f.allocUnsafe(et),rt=-1;++rt16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt}else if(this.cache.length>=16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(et){var tt=et[15];if(tt<1||tt>16)throw new Error("unable to decrypt data");for(var rt=-1;++rt0?Ot:Mt},st.min=function(Ot,Mt){return Ot.cmp(Mt)<0?Ot:Mt},st.prototype._init=function(Ot,Mt,ht){if(typeof Ot=="number")return this._initNumber(Ot,Mt,ht);if(typeof Ot=="object")return this._initArray(Ot,Mt,ht);Mt==="hex"&&(Mt=16),nt(Mt===(Mt|0)&&Mt>=2&&Mt<=36),Ot=Ot.toString().replace(/\s+/g,"");var Et=0;Ot[0]==="-"&&(Et++,this.negative=1),Et=0;Et-=3)Rt=Ot[Et]|Ot[Et-1]<<8|Ot[Et-2]<<16,this.words[Tt]|=Rt<>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);else if(ht==="le")for(Et=0,Tt=0;Et>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);return this.strip()};function ot(qt,Ot){var Mt=qt.charCodeAt(Ot);return Mt>=65&&Mt<=70?Mt-55:Mt>=97&&Mt<=102?Mt-87:Mt-48&15}function lt(qt,Ot,Mt){var ht=ot(qt,Mt);return Mt-1>=Ot&&(ht|=ot(qt,Mt-1)<<4),ht}st.prototype._parseHex=function(Ot,Mt,ht){this.length=Math.ceil((Ot.length-Mt)/6),this.words=new Array(this.length);for(var Et=0;Et=Mt;Et-=2)At=lt(Ot,Mt,Et)<=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8;else{var Pt=Ot.length-Mt;for(Et=Pt%2===0?Mt+1:Mt;Et=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8}this.strip()};function ut(qt,Ot,Mt,ht){for(var Et=0,Tt=Math.min(qt.length,Mt),Rt=Ot;Rt=49?Et+=At-49+10:At>=17?Et+=At-17+10:Et+=At}return Et}st.prototype._parseBase=function(Ot,Mt,ht){this.words=[0],this.length=1;for(var Et=0,Tt=1;Tt<=67108863;Tt*=Mt)Et++;Et--,Tt=Tt/Mt|0;for(var Rt=Ot.length-ht,At=Rt%Et,Pt=Math.min(Rt,Rt-At)+ht,It=0,Ct=ht;Ct1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},st.prototype.inspect=function(){return(this.red?""};var dt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],bt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(Ot,Mt){Ot=Ot||10,Mt=Mt|0||1;var ht;if(Ot===16||Ot==="hex"){ht="";for(var Et=0,Tt=0,Rt=0;Rt>>24-Et&16777215,Tt!==0||Rt!==this.length-1?ht=dt[6-Pt.length]+Pt+ht:ht=Pt+ht,Et+=2,Et>=26&&(Et-=26,Rt--)}for(Tt!==0&&(ht=Tt.toString(16)+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}if(Ot===(Ot|0)&&Ot>=2&&Ot<=36){var It=bt[Ot],Ct=gt[Ot];ht="";var xt=this.clone();for(xt.negative=0;!xt.isZero();){var Lt=xt.modn(Ct).toString(Ot);xt=xt.idivn(Ct),xt.isZero()?ht=Lt+ht:ht=dt[It-Lt.length]+Lt+ht}for(this.isZero()&&(ht="0"+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var Ot=this.words[0];return this.length===2?Ot+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Ot+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Ot:Ot},st.prototype.toJSON=function(){return this.toString(16)},st.prototype.toBuffer=function(Ot,Mt){return nt(typeof at<"u"),this.toArrayLike(at,Ot,Mt)},st.prototype.toArray=function(Ot,Mt){return this.toArrayLike(Array,Ot,Mt)},st.prototype.toArrayLike=function(Ot,Mt,ht){var Et=this.byteLength(),Tt=ht||Math.max(1,Et);nt(Et<=Tt,"byte array longer than desired length"),nt(Tt>0,"Requested array length <= 0"),this.strip();var Rt=Mt==="le",At=new Ot(Tt),Pt,It,Ct=this.clone();if(Rt){for(It=0;!Ct.isZero();It++)Pt=Ct.andln(255),Ct.iushrn(8),At[It]=Pt;for(;It=4096&&(ht+=13,Mt>>>=13),Mt>=64&&(ht+=7,Mt>>>=7),Mt>=8&&(ht+=4,Mt>>>=4),Mt>=2&&(ht+=2,Mt>>>=2),ht+Mt},st.prototype._zeroBits=function(Ot){if(Ot===0)return 26;var Mt=Ot,ht=0;return Mt&8191||(ht+=13,Mt>>>=13),Mt&127||(ht+=7,Mt>>>=7),Mt&15||(ht+=4,Mt>>>=4),Mt&3||(ht+=2,Mt>>>=2),Mt&1||ht++,ht},st.prototype.bitLength=function(){var Ot=this.words[this.length-1],Mt=this._countBits(Ot);return(this.length-1)*26+Mt};function kt(qt){for(var Ot=new Array(qt.bitLength()),Mt=0;Mt>>Et}return Ot}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Ot=0,Mt=0;MtOt.length?this.clone().ior(Ot):Ot.clone().ior(this)},st.prototype.uor=function(Ot){return this.length>Ot.length?this.clone().iuor(Ot):Ot.clone().iuor(this)},st.prototype.iuand=function(Ot){var Mt;this.length>Ot.length?Mt=Ot:Mt=this;for(var ht=0;htOt.length?this.clone().iand(Ot):Ot.clone().iand(this)},st.prototype.uand=function(Ot){return this.length>Ot.length?this.clone().iuand(Ot):Ot.clone().iuand(this)},st.prototype.iuxor=function(Ot){var Mt,ht;this.length>Ot.length?(Mt=this,ht=Ot):(Mt=Ot,ht=this);for(var Et=0;EtOt.length?this.clone().ixor(Ot):Ot.clone().ixor(this)},st.prototype.uxor=function(Ot){return this.length>Ot.length?this.clone().iuxor(Ot):Ot.clone().iuxor(this)},st.prototype.inotn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Math.ceil(Ot/26)|0,ht=Ot%26;this._expand(Mt),ht>0&&Mt--;for(var Et=0;Et0&&(this.words[Et]=~this.words[Et]&67108863>>26-ht),this.strip()},st.prototype.notn=function(Ot){return this.clone().inotn(Ot)},st.prototype.setn=function(Ot,Mt){nt(typeof Ot=="number"&&Ot>=0);var ht=Ot/26|0,Et=Ot%26;return this._expand(ht+1),Mt?this.words[ht]=this.words[ht]|1<Ot.length?(ht=this,Et=Ot):(ht=Ot,Et=this);for(var Tt=0,Rt=0;Rt>>26;for(;Tt!==0&&Rt>>26;if(this.length=ht.length,Tt!==0)this.words[this.length]=Tt,this.length++;else if(ht!==this)for(;RtOt.length?this.clone().iadd(Ot):Ot.clone().iadd(this)},st.prototype.isub=function(Ot){if(Ot.negative!==0){Ot.negative=0;var Mt=this.iadd(Ot);return Ot.negative=1,Mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Ot),this.negative=1,this._normSign();var ht=this.cmp(Ot);if(ht===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Et,Tt;ht>0?(Et=this,Tt=Ot):(Et=Ot,Tt=this);for(var Rt=0,At=0;At>26,this.words[At]=Mt&67108863;for(;Rt!==0&&At>26,this.words[At]=Mt&67108863;if(Rt===0&&At>>26,xt=Pt&67108863,Lt=Math.min(It,Ot.length-1),tr=Math.max(0,It-qt.length+1);tr<=Lt;tr++){var pr=It-tr|0;Et=qt.words[pr]|0,Tt=Ot.words[tr]|0,Rt=Et*Tt+xt,Ct+=Rt/67108864|0,xt=Rt&67108863}Mt.words[It]=xt|0,Pt=Ct|0}return Pt!==0?Mt.words[It]=Pt|0:Mt.length--,Mt.strip()}var yt=function(Ot,Mt,ht){var Et=Ot.words,Tt=Mt.words,Rt=ht.words,At=0,Pt,It,Ct,xt=Et[0]|0,Lt=xt&8191,tr=xt>>>13,pr=Et[1]|0,Kt=pr&8191,Qt=pr>>>13,Zt=Et[2]|0,ur=Zt&8191,_r=Zt>>>13,er=Et[3]|0,Jt=er&8191,Ar=er>>>13,Er=Et[4]|0,Dr=Er&8191,Xr=Er>>>13,Vr=Et[5]|0,wr=Vr&8191,br=Vr>>>13,or=Et[6]|0,xr=or&8191,Pr=or>>>13,Or=Et[7]|0,rr=Or&8191,gr=Or>>>13,Ir=Et[8]|0,Yt=Ir&8191,Ut=Ir>>>13,Vt=Et[9]|0,ir=Vt&8191,kr=Vt>>>13,$r=Tt[0]|0,Br=$r&8191,an=$r>>>13,ln=Tt[1]|0,rn=ln&8191,kn=ln>>>13,fn=Tt[2]|0,gn=fn&8191,fs=fn>>>13,Ln=Tt[3]|0,En=Ln&8191,hs=Ln>>>13,Cn=Tt[4]|0,xn=Cn&8191,is=Cn>>>13,Fn=Tt[5]|0,_n=Fn&8191,ls=Fn>>>13,jn=Tt[6]|0,dn=jn&8191,cs=jn>>>13,Xt=Tt[7]|0,ar=Xt&8191,cr=Xt>>>13,jt=Tt[8]|0,dr=jt&8191,Rr=jt>>>13,Cr=Tt[9]|0,Nr=Cr&8191,Yr=Cr>>>13;ht.negative=Ot.negative^Mt.negative,ht.length=19,Pt=Math.imul(Lt,Br),It=Math.imul(Lt,an),It=It+Math.imul(tr,Br)|0,Ct=Math.imul(tr,an);var tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(tn>>>26)|0,tn&=67108863,Pt=Math.imul(Kt,Br),It=Math.imul(Kt,an),It=It+Math.imul(Qt,Br)|0,Ct=Math.imul(Qt,an),Pt=Pt+Math.imul(Lt,rn)|0,It=It+Math.imul(Lt,kn)|0,It=It+Math.imul(tr,rn)|0,Ct=Ct+Math.imul(tr,kn)|0;var qr=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(qr>>>26)|0,qr&=67108863,Pt=Math.imul(ur,Br),It=Math.imul(ur,an),It=It+Math.imul(_r,Br)|0,Ct=Math.imul(_r,an),Pt=Pt+Math.imul(Kt,rn)|0,It=It+Math.imul(Kt,kn)|0,It=It+Math.imul(Qt,rn)|0,Ct=Ct+Math.imul(Qt,kn)|0,Pt=Pt+Math.imul(Lt,gn)|0,It=It+Math.imul(Lt,fs)|0,It=It+Math.imul(tr,gn)|0,Ct=Ct+Math.imul(tr,fs)|0;var Vn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Pt=Math.imul(Jt,Br),It=Math.imul(Jt,an),It=It+Math.imul(Ar,Br)|0,Ct=Math.imul(Ar,an),Pt=Pt+Math.imul(ur,rn)|0,It=It+Math.imul(ur,kn)|0,It=It+Math.imul(_r,rn)|0,Ct=Ct+Math.imul(_r,kn)|0,Pt=Pt+Math.imul(Kt,gn)|0,It=It+Math.imul(Kt,fs)|0,It=It+Math.imul(Qt,gn)|0,Ct=Ct+Math.imul(Qt,fs)|0,Pt=Pt+Math.imul(Lt,En)|0,It=It+Math.imul(Lt,hs)|0,It=It+Math.imul(tr,En)|0,Ct=Ct+Math.imul(tr,hs)|0;var hn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(hn>>>26)|0,hn&=67108863,Pt=Math.imul(Dr,Br),It=Math.imul(Dr,an),It=It+Math.imul(Xr,Br)|0,Ct=Math.imul(Xr,an),Pt=Pt+Math.imul(Jt,rn)|0,It=It+Math.imul(Jt,kn)|0,It=It+Math.imul(Ar,rn)|0,Ct=Ct+Math.imul(Ar,kn)|0,Pt=Pt+Math.imul(ur,gn)|0,It=It+Math.imul(ur,fs)|0,It=It+Math.imul(_r,gn)|0,Ct=Ct+Math.imul(_r,fs)|0,Pt=Pt+Math.imul(Kt,En)|0,It=It+Math.imul(Kt,hs)|0,It=It+Math.imul(Qt,En)|0,Ct=Ct+Math.imul(Qt,hs)|0,Pt=Pt+Math.imul(Lt,xn)|0,It=It+Math.imul(Lt,is)|0,It=It+Math.imul(tr,xn)|0,Ct=Ct+Math.imul(tr,is)|0;var Tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Pt=Math.imul(wr,Br),It=Math.imul(wr,an),It=It+Math.imul(br,Br)|0,Ct=Math.imul(br,an),Pt=Pt+Math.imul(Dr,rn)|0,It=It+Math.imul(Dr,kn)|0,It=It+Math.imul(Xr,rn)|0,Ct=Ct+Math.imul(Xr,kn)|0,Pt=Pt+Math.imul(Jt,gn)|0,It=It+Math.imul(Jt,fs)|0,It=It+Math.imul(Ar,gn)|0,Ct=Ct+Math.imul(Ar,fs)|0,Pt=Pt+Math.imul(ur,En)|0,It=It+Math.imul(ur,hs)|0,It=It+Math.imul(_r,En)|0,Ct=Ct+Math.imul(_r,hs)|0,Pt=Pt+Math.imul(Kt,xn)|0,It=It+Math.imul(Kt,is)|0,It=It+Math.imul(Qt,xn)|0,Ct=Ct+Math.imul(Qt,is)|0,Pt=Pt+Math.imul(Lt,_n)|0,It=It+Math.imul(Lt,ls)|0,It=It+Math.imul(tr,_n)|0,Ct=Ct+Math.imul(tr,ls)|0;var An=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(An>>>26)|0,An&=67108863,Pt=Math.imul(xr,Br),It=Math.imul(xr,an),It=It+Math.imul(Pr,Br)|0,Ct=Math.imul(Pr,an),Pt=Pt+Math.imul(wr,rn)|0,It=It+Math.imul(wr,kn)|0,It=It+Math.imul(br,rn)|0,Ct=Ct+Math.imul(br,kn)|0,Pt=Pt+Math.imul(Dr,gn)|0,It=It+Math.imul(Dr,fs)|0,It=It+Math.imul(Xr,gn)|0,Ct=Ct+Math.imul(Xr,fs)|0,Pt=Pt+Math.imul(Jt,En)|0,It=It+Math.imul(Jt,hs)|0,It=It+Math.imul(Ar,En)|0,Ct=Ct+Math.imul(Ar,hs)|0,Pt=Pt+Math.imul(ur,xn)|0,It=It+Math.imul(ur,is)|0,It=It+Math.imul(_r,xn)|0,Ct=Ct+Math.imul(_r,is)|0,Pt=Pt+Math.imul(Kt,_n)|0,It=It+Math.imul(Kt,ls)|0,It=It+Math.imul(Qt,_n)|0,Ct=Ct+Math.imul(Qt,ls)|0,Pt=Pt+Math.imul(Lt,dn)|0,It=It+Math.imul(Lt,cs)|0,It=It+Math.imul(tr,dn)|0,Ct=Ct+Math.imul(tr,cs)|0;var Rn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Pt=Math.imul(rr,Br),It=Math.imul(rr,an),It=It+Math.imul(gr,Br)|0,Ct=Math.imul(gr,an),Pt=Pt+Math.imul(xr,rn)|0,It=It+Math.imul(xr,kn)|0,It=It+Math.imul(Pr,rn)|0,Ct=Ct+Math.imul(Pr,kn)|0,Pt=Pt+Math.imul(wr,gn)|0,It=It+Math.imul(wr,fs)|0,It=It+Math.imul(br,gn)|0,Ct=Ct+Math.imul(br,fs)|0,Pt=Pt+Math.imul(Dr,En)|0,It=It+Math.imul(Dr,hs)|0,It=It+Math.imul(Xr,En)|0,Ct=Ct+Math.imul(Xr,hs)|0,Pt=Pt+Math.imul(Jt,xn)|0,It=It+Math.imul(Jt,is)|0,It=It+Math.imul(Ar,xn)|0,Ct=Ct+Math.imul(Ar,is)|0,Pt=Pt+Math.imul(ur,_n)|0,It=It+Math.imul(ur,ls)|0,It=It+Math.imul(_r,_n)|0,Ct=Ct+Math.imul(_r,ls)|0,Pt=Pt+Math.imul(Kt,dn)|0,It=It+Math.imul(Kt,cs)|0,It=It+Math.imul(Qt,dn)|0,Ct=Ct+Math.imul(Qt,cs)|0,Pt=Pt+Math.imul(Lt,ar)|0,It=It+Math.imul(Lt,cr)|0,It=It+Math.imul(tr,ar)|0,Ct=Ct+Math.imul(tr,cr)|0;var Pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Pt=Math.imul(Yt,Br),It=Math.imul(Yt,an),It=It+Math.imul(Ut,Br)|0,Ct=Math.imul(Ut,an),Pt=Pt+Math.imul(rr,rn)|0,It=It+Math.imul(rr,kn)|0,It=It+Math.imul(gr,rn)|0,Ct=Ct+Math.imul(gr,kn)|0,Pt=Pt+Math.imul(xr,gn)|0,It=It+Math.imul(xr,fs)|0,It=It+Math.imul(Pr,gn)|0,Ct=Ct+Math.imul(Pr,fs)|0,Pt=Pt+Math.imul(wr,En)|0,It=It+Math.imul(wr,hs)|0,It=It+Math.imul(br,En)|0,Ct=Ct+Math.imul(br,hs)|0,Pt=Pt+Math.imul(Dr,xn)|0,It=It+Math.imul(Dr,is)|0,It=It+Math.imul(Xr,xn)|0,Ct=Ct+Math.imul(Xr,is)|0,Pt=Pt+Math.imul(Jt,_n)|0,It=It+Math.imul(Jt,ls)|0,It=It+Math.imul(Ar,_n)|0,Ct=Ct+Math.imul(Ar,ls)|0,Pt=Pt+Math.imul(ur,dn)|0,It=It+Math.imul(ur,cs)|0,It=It+Math.imul(_r,dn)|0,Ct=Ct+Math.imul(_r,cs)|0,Pt=Pt+Math.imul(Kt,ar)|0,It=It+Math.imul(Kt,cr)|0,It=It+Math.imul(Qt,ar)|0,Ct=Ct+Math.imul(Qt,cr)|0,Pt=Pt+Math.imul(Lt,dr)|0,It=It+Math.imul(Lt,Rr)|0,It=It+Math.imul(tr,dr)|0,Ct=Ct+Math.imul(tr,Rr)|0;var In=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(In>>>26)|0,In&=67108863,Pt=Math.imul(ir,Br),It=Math.imul(ir,an),It=It+Math.imul(kr,Br)|0,Ct=Math.imul(kr,an),Pt=Pt+Math.imul(Yt,rn)|0,It=It+Math.imul(Yt,kn)|0,It=It+Math.imul(Ut,rn)|0,Ct=Ct+Math.imul(Ut,kn)|0,Pt=Pt+Math.imul(rr,gn)|0,It=It+Math.imul(rr,fs)|0,It=It+Math.imul(gr,gn)|0,Ct=Ct+Math.imul(gr,fs)|0,Pt=Pt+Math.imul(xr,En)|0,It=It+Math.imul(xr,hs)|0,It=It+Math.imul(Pr,En)|0,Ct=Ct+Math.imul(Pr,hs)|0,Pt=Pt+Math.imul(wr,xn)|0,It=It+Math.imul(wr,is)|0,It=It+Math.imul(br,xn)|0,Ct=Ct+Math.imul(br,is)|0,Pt=Pt+Math.imul(Dr,_n)|0,It=It+Math.imul(Dr,ls)|0,It=It+Math.imul(Xr,_n)|0,Ct=Ct+Math.imul(Xr,ls)|0,Pt=Pt+Math.imul(Jt,dn)|0,It=It+Math.imul(Jt,cs)|0,It=It+Math.imul(Ar,dn)|0,Ct=Ct+Math.imul(Ar,cs)|0,Pt=Pt+Math.imul(ur,ar)|0,It=It+Math.imul(ur,cr)|0,It=It+Math.imul(_r,ar)|0,Ct=Ct+Math.imul(_r,cr)|0,Pt=Pt+Math.imul(Kt,dr)|0,It=It+Math.imul(Kt,Rr)|0,It=It+Math.imul(Qt,dr)|0,Ct=Ct+Math.imul(Qt,Rr)|0,Pt=Pt+Math.imul(Lt,Nr)|0,It=It+Math.imul(Lt,Yr)|0,It=It+Math.imul(tr,Nr)|0,Ct=Ct+Math.imul(tr,Yr)|0;var $n=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+($n>>>26)|0,$n&=67108863,Pt=Math.imul(ir,rn),It=Math.imul(ir,kn),It=It+Math.imul(kr,rn)|0,Ct=Math.imul(kr,kn),Pt=Pt+Math.imul(Yt,gn)|0,It=It+Math.imul(Yt,fs)|0,It=It+Math.imul(Ut,gn)|0,Ct=Ct+Math.imul(Ut,fs)|0,Pt=Pt+Math.imul(rr,En)|0,It=It+Math.imul(rr,hs)|0,It=It+Math.imul(gr,En)|0,Ct=Ct+Math.imul(gr,hs)|0,Pt=Pt+Math.imul(xr,xn)|0,It=It+Math.imul(xr,is)|0,It=It+Math.imul(Pr,xn)|0,Ct=Ct+Math.imul(Pr,is)|0,Pt=Pt+Math.imul(wr,_n)|0,It=It+Math.imul(wr,ls)|0,It=It+Math.imul(br,_n)|0,Ct=Ct+Math.imul(br,ls)|0,Pt=Pt+Math.imul(Dr,dn)|0,It=It+Math.imul(Dr,cs)|0,It=It+Math.imul(Xr,dn)|0,Ct=Ct+Math.imul(Xr,cs)|0,Pt=Pt+Math.imul(Jt,ar)|0,It=It+Math.imul(Jt,cr)|0,It=It+Math.imul(Ar,ar)|0,Ct=Ct+Math.imul(Ar,cr)|0,Pt=Pt+Math.imul(ur,dr)|0,It=It+Math.imul(ur,Rr)|0,It=It+Math.imul(_r,dr)|0,Ct=Ct+Math.imul(_r,Rr)|0,Pt=Pt+Math.imul(Kt,Nr)|0,It=It+Math.imul(Kt,Yr)|0,It=It+Math.imul(Qt,Nr)|0,Ct=Ct+Math.imul(Qt,Yr)|0;var Bn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Pt=Math.imul(ir,gn),It=Math.imul(ir,fs),It=It+Math.imul(kr,gn)|0,Ct=Math.imul(kr,fs),Pt=Pt+Math.imul(Yt,En)|0,It=It+Math.imul(Yt,hs)|0,It=It+Math.imul(Ut,En)|0,Ct=Ct+Math.imul(Ut,hs)|0,Pt=Pt+Math.imul(rr,xn)|0,It=It+Math.imul(rr,is)|0,It=It+Math.imul(gr,xn)|0,Ct=Ct+Math.imul(gr,is)|0,Pt=Pt+Math.imul(xr,_n)|0,It=It+Math.imul(xr,ls)|0,It=It+Math.imul(Pr,_n)|0,Ct=Ct+Math.imul(Pr,ls)|0,Pt=Pt+Math.imul(wr,dn)|0,It=It+Math.imul(wr,cs)|0,It=It+Math.imul(br,dn)|0,Ct=Ct+Math.imul(br,cs)|0,Pt=Pt+Math.imul(Dr,ar)|0,It=It+Math.imul(Dr,cr)|0,It=It+Math.imul(Xr,ar)|0,Ct=Ct+Math.imul(Xr,cr)|0,Pt=Pt+Math.imul(Jt,dr)|0,It=It+Math.imul(Jt,Rr)|0,It=It+Math.imul(Ar,dr)|0,Ct=Ct+Math.imul(Ar,Rr)|0,Pt=Pt+Math.imul(ur,Nr)|0,It=It+Math.imul(ur,Yr)|0,It=It+Math.imul(_r,Nr)|0,Ct=Ct+Math.imul(_r,Yr)|0;var pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(pn>>>26)|0,pn&=67108863,Pt=Math.imul(ir,En),It=Math.imul(ir,hs),It=It+Math.imul(kr,En)|0,Ct=Math.imul(kr,hs),Pt=Pt+Math.imul(Yt,xn)|0,It=It+Math.imul(Yt,is)|0,It=It+Math.imul(Ut,xn)|0,Ct=Ct+Math.imul(Ut,is)|0,Pt=Pt+Math.imul(rr,_n)|0,It=It+Math.imul(rr,ls)|0,It=It+Math.imul(gr,_n)|0,Ct=Ct+Math.imul(gr,ls)|0,Pt=Pt+Math.imul(xr,dn)|0,It=It+Math.imul(xr,cs)|0,It=It+Math.imul(Pr,dn)|0,Ct=Ct+Math.imul(Pr,cs)|0,Pt=Pt+Math.imul(wr,ar)|0,It=It+Math.imul(wr,cr)|0,It=It+Math.imul(br,ar)|0,Ct=Ct+Math.imul(br,cr)|0,Pt=Pt+Math.imul(Dr,dr)|0,It=It+Math.imul(Dr,Rr)|0,It=It+Math.imul(Xr,dr)|0,Ct=Ct+Math.imul(Xr,Rr)|0,Pt=Pt+Math.imul(Jt,Nr)|0,It=It+Math.imul(Jt,Yr)|0,It=It+Math.imul(Ar,Nr)|0,Ct=Ct+Math.imul(Ar,Yr)|0;var wn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(wn>>>26)|0,wn&=67108863,Pt=Math.imul(ir,xn),It=Math.imul(ir,is),It=It+Math.imul(kr,xn)|0,Ct=Math.imul(kr,is),Pt=Pt+Math.imul(Yt,_n)|0,It=It+Math.imul(Yt,ls)|0,It=It+Math.imul(Ut,_n)|0,Ct=Ct+Math.imul(Ut,ls)|0,Pt=Pt+Math.imul(rr,dn)|0,It=It+Math.imul(rr,cs)|0,It=It+Math.imul(gr,dn)|0,Ct=Ct+Math.imul(gr,cs)|0,Pt=Pt+Math.imul(xr,ar)|0,It=It+Math.imul(xr,cr)|0,It=It+Math.imul(Pr,ar)|0,Ct=Ct+Math.imul(Pr,cr)|0,Pt=Pt+Math.imul(wr,dr)|0,It=It+Math.imul(wr,Rr)|0,It=It+Math.imul(br,dr)|0,Ct=Ct+Math.imul(br,Rr)|0,Pt=Pt+Math.imul(Dr,Nr)|0,It=It+Math.imul(Dr,Yr)|0,It=It+Math.imul(Xr,Nr)|0,Ct=Ct+Math.imul(Xr,Yr)|0;var un=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(un>>>26)|0,un&=67108863,Pt=Math.imul(ir,_n),It=Math.imul(ir,ls),It=It+Math.imul(kr,_n)|0,Ct=Math.imul(kr,ls),Pt=Pt+Math.imul(Yt,dn)|0,It=It+Math.imul(Yt,cs)|0,It=It+Math.imul(Ut,dn)|0,Ct=Ct+Math.imul(Ut,cs)|0,Pt=Pt+Math.imul(rr,ar)|0,It=It+Math.imul(rr,cr)|0,It=It+Math.imul(gr,ar)|0,Ct=Ct+Math.imul(gr,cr)|0,Pt=Pt+Math.imul(xr,dr)|0,It=It+Math.imul(xr,Rr)|0,It=It+Math.imul(Pr,dr)|0,Ct=Ct+Math.imul(Pr,Rr)|0,Pt=Pt+Math.imul(wr,Nr)|0,It=It+Math.imul(wr,Yr)|0,It=It+Math.imul(br,Nr)|0,Ct=Ct+Math.imul(br,Yr)|0;var yn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(yn>>>26)|0,yn&=67108863,Pt=Math.imul(ir,dn),It=Math.imul(ir,cs),It=It+Math.imul(kr,dn)|0,Ct=Math.imul(kr,cs),Pt=Pt+Math.imul(Yt,ar)|0,It=It+Math.imul(Yt,cr)|0,It=It+Math.imul(Ut,ar)|0,Ct=Ct+Math.imul(Ut,cr)|0,Pt=Pt+Math.imul(rr,dr)|0,It=It+Math.imul(rr,Rr)|0,It=It+Math.imul(gr,dr)|0,Ct=Ct+Math.imul(gr,Rr)|0,Pt=Pt+Math.imul(xr,Nr)|0,It=It+Math.imul(xr,Yr)|0,It=It+Math.imul(Pr,Nr)|0,Ct=Ct+Math.imul(Pr,Yr)|0;var mn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(mn>>>26)|0,mn&=67108863,Pt=Math.imul(ir,ar),It=Math.imul(ir,cr),It=It+Math.imul(kr,ar)|0,Ct=Math.imul(kr,cr),Pt=Pt+Math.imul(Yt,dr)|0,It=It+Math.imul(Yt,Rr)|0,It=It+Math.imul(Ut,dr)|0,Ct=Ct+Math.imul(Ut,Rr)|0,Pt=Pt+Math.imul(rr,Nr)|0,It=It+Math.imul(rr,Yr)|0,It=It+Math.imul(gr,Nr)|0,Ct=Ct+Math.imul(gr,Yr)|0;var cn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(cn>>>26)|0,cn&=67108863,Pt=Math.imul(ir,dr),It=Math.imul(ir,Rr),It=It+Math.imul(kr,dr)|0,Ct=Math.imul(kr,Rr),Pt=Pt+Math.imul(Yt,Nr)|0,It=It+Math.imul(Yt,Yr)|0,It=It+Math.imul(Ut,Nr)|0,Ct=Ct+Math.imul(Ut,Yr)|0;var Ur=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Pt=Math.imul(ir,Nr),It=Math.imul(ir,Yr),It=It+Math.imul(kr,Nr)|0,Ct=Math.imul(kr,Yr);var jr=(At+Pt|0)+((It&8191)<<13)|0;return At=(Ct+(It>>>13)|0)+(jr>>>26)|0,jr&=67108863,Rt[0]=tn,Rt[1]=qr,Rt[2]=Vn,Rt[3]=hn,Rt[4]=Tn,Rt[5]=An,Rt[6]=Rn,Rt[7]=Pn,Rt[8]=In,Rt[9]=$n,Rt[10]=Bn,Rt[11]=pn,Rt[12]=wn,Rt[13]=un,Rt[14]=yn,Rt[15]=mn,Rt[16]=cn,Rt[17]=Ur,Rt[18]=jr,At!==0&&(Rt[19]=At,ht.length++),ht};Math.imul||(yt=pt);function $t(qt,Ot,Mt){Mt.negative=Ot.negative^qt.negative,Mt.length=qt.length+Ot.length;for(var ht=0,Et=0,Tt=0;Tt>>26)|0,Et+=Rt>>>26,Rt&=67108863}Mt.words[Tt]=At,ht=Rt,Rt=Et}return ht!==0?Mt.words[Tt]=ht:Mt.length--,Mt.strip()}function mt(qt,Ot,Mt){var ht=new wt;return ht.mulp(qt,Ot,Mt)}st.prototype.mulTo=function(Ot,Mt){var ht,Et=this.length+Ot.length;return this.length===10&&Ot.length===10?ht=yt(this,Ot,Mt):Et<63?ht=pt(this,Ot,Mt):Et<1024?ht=$t(this,Ot,Mt):ht=mt(this,Ot,Mt),ht};function wt(qt,Ot){this.x=qt,this.y=Ot}wt.prototype.makeRBT=function(Ot){for(var Mt=new Array(Ot),ht=st.prototype._countBits(Ot)-1,Et=0;Et>=1;return Et},wt.prototype.permute=function(Ot,Mt,ht,Et,Tt,Rt){for(var At=0;At>>1)Tt++;return 1<>>13,ht[2*Rt+1]=Tt&8191,Tt=Tt>>>13;for(Rt=2*Mt;Rt>=26,Mt+=Et/67108864|0,Mt+=Tt>>>26,this.words[ht]=Tt&67108863}return Mt!==0&&(this.words[ht]=Mt,this.length++),this},st.prototype.muln=function(Ot){return this.clone().imuln(Ot)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(Ot){var Mt=kt(Ot);if(Mt.length===0)return new st(1);for(var ht=this,Et=0;Et=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=67108863>>>26-Mt<<26-Mt,Tt;if(Mt!==0){var Rt=0;for(Tt=0;Tt>>26-Mt}Rt&&(this.words[Tt]=Rt,this.length++)}if(ht!==0){for(Tt=this.length-1;Tt>=0;Tt--)this.words[Tt+ht]=this.words[Tt];for(Tt=0;Tt=0);var Et;Mt?Et=(Mt-Mt%26)/26:Et=0;var Tt=Ot%26,Rt=Math.min((Ot-Tt)/26,this.length),At=67108863^67108863>>>Tt<Rt)for(this.length-=Rt,It=0;It=0&&(Ct!==0||It>=Et);It--){var xt=this.words[It]|0;this.words[It]=Ct<<26-Tt|xt>>>Tt,Ct=xt&At}return Pt&&Ct!==0&&(Pt.words[Pt.length++]=Ct),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},st.prototype.ishrn=function(Ot,Mt,ht){return nt(this.negative===0),this.iushrn(Ot,Mt,ht)},st.prototype.shln=function(Ot){return this.clone().ishln(Ot)},st.prototype.ushln=function(Ot){return this.clone().iushln(Ot)},st.prototype.shrn=function(Ot){return this.clone().ishrn(Ot)},st.prototype.ushrn=function(Ot){return this.clone().iushrn(Ot)},st.prototype.testn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<=0);var Mt=Ot%26,ht=(Ot-Mt)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=ht)return this;if(Mt!==0&&ht++,this.length=Math.min(ht,this.length),Mt!==0){var Et=67108863^67108863>>>Mt<=67108864;Mt++)this.words[Mt]-=67108864,Mt===this.length-1?this.words[Mt+1]=1:this.words[Mt+1]++;return this.length=Math.max(this.length,Mt+1),this},st.prototype.isubn=function(Ot){if(nt(typeof Ot=="number"),nt(Ot<67108864),Ot<0)return this.iaddn(-Ot);if(this.negative!==0)return this.negative=0,this.iaddn(Ot),this.negative=1,this;if(this.words[0]-=Ot,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Mt=0;Mt>26)-(Pt/67108864|0),this.words[Tt+ht]=Rt&67108863}for(;Tt>26,this.words[Tt+ht]=Rt&67108863;if(At===0)return this.strip();for(nt(At===-1),At=0,Tt=0;Tt>26,this.words[Tt]=Rt&67108863;return this.negative=1,this.strip()},st.prototype._wordDiv=function(Ot,Mt){var ht=this.length-Ot.length,Et=this.clone(),Tt=Ot,Rt=Tt.words[Tt.length-1]|0,At=this._countBits(Rt);ht=26-At,ht!==0&&(Tt=Tt.ushln(ht),Et.iushln(ht),Rt=Tt.words[Tt.length-1]|0);var Pt=Et.length-Tt.length,It;if(Mt!=="mod"){It=new st(null),It.length=Pt+1,It.words=new Array(It.length);for(var Ct=0;Ct=0;Lt--){var tr=(Et.words[Tt.length+Lt]|0)*67108864+(Et.words[Tt.length+Lt-1]|0);for(tr=Math.min(tr/Rt|0,67108863),Et._ishlnsubmul(Tt,tr,Lt);Et.negative!==0;)tr--,Et.negative=0,Et._ishlnsubmul(Tt,1,Lt),Et.isZero()||(Et.negative^=1);It&&(It.words[Lt]=tr)}return It&&It.strip(),Et.strip(),Mt!=="div"&&ht!==0&&Et.iushrn(ht),{div:It||null,mod:Et}},st.prototype.divmod=function(Ot,Mt,ht){if(nt(!Ot.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Et,Tt,Rt;return this.negative!==0&&Ot.negative===0?(Rt=this.neg().divmod(Ot,Mt),Mt!=="mod"&&(Et=Rt.div.neg()),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.iadd(Ot)),{div:Et,mod:Tt}):this.negative===0&&Ot.negative!==0?(Rt=this.divmod(Ot.neg(),Mt),Mt!=="mod"&&(Et=Rt.div.neg()),{div:Et,mod:Rt.mod}):this.negative&Ot.negative?(Rt=this.neg().divmod(Ot.neg(),Mt),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.isub(Ot)),{div:Rt.div,mod:Tt}):Ot.length>this.length||this.cmp(Ot)<0?{div:new st(0),mod:this}:Ot.length===1?Mt==="div"?{div:this.divn(Ot.words[0]),mod:null}:Mt==="mod"?{div:null,mod:new st(this.modn(Ot.words[0]))}:{div:this.divn(Ot.words[0]),mod:new st(this.modn(Ot.words[0]))}:this._wordDiv(Ot,Mt)},st.prototype.div=function(Ot){return this.divmod(Ot,"div",!1).div},st.prototype.mod=function(Ot){return this.divmod(Ot,"mod",!1).mod},st.prototype.umod=function(Ot){return this.divmod(Ot,"mod",!0).mod},st.prototype.divRound=function(Ot){var Mt=this.divmod(Ot);if(Mt.mod.isZero())return Mt.div;var ht=Mt.div.negative!==0?Mt.mod.isub(Ot):Mt.mod,Et=Ot.ushrn(1),Tt=Ot.andln(1),Rt=ht.cmp(Et);return Rt<0||Tt===1&&Rt===0?Mt.div:Mt.div.negative!==0?Mt.div.isubn(1):Mt.div.iaddn(1)},st.prototype.modn=function(Ot){nt(Ot<=67108863);for(var Mt=(1<<26)%Ot,ht=0,Et=this.length-1;Et>=0;Et--)ht=(Mt*ht+(this.words[Et]|0))%Ot;return ht},st.prototype.idivn=function(Ot){nt(Ot<=67108863);for(var Mt=0,ht=this.length-1;ht>=0;ht--){var Et=(this.words[ht]|0)+Mt*67108864;this.words[ht]=Et/Ot|0,Mt=Et%Ot}return this.strip()},st.prototype.divn=function(Ot){return this.clone().idivn(Ot)},st.prototype.egcd=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=new st(0),At=new st(1),Pt=0;Mt.isEven()&&ht.isEven();)Mt.iushrn(1),ht.iushrn(1),++Pt;for(var It=ht.clone(),Ct=Mt.clone();!Mt.isZero();){for(var xt=0,Lt=1;!(Mt.words[0]&Lt)&&xt<26;++xt,Lt<<=1);if(xt>0)for(Mt.iushrn(xt);xt-- >0;)(Et.isOdd()||Tt.isOdd())&&(Et.iadd(It),Tt.isub(Ct)),Et.iushrn(1),Tt.iushrn(1);for(var tr=0,pr=1;!(ht.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(ht.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(It),At.isub(Ct)),Rt.iushrn(1),At.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Rt),Tt.isub(At)):(ht.isub(Mt),Rt.isub(Et),At.isub(Tt))}return{a:Rt,b:At,gcd:ht.iushln(Pt)}},st.prototype._invmp=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=ht.clone();Mt.cmpn(1)>0&&ht.cmpn(1)>0;){for(var At=0,Pt=1;!(Mt.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(Mt.iushrn(At);At-- >0;)Et.isOdd()&&Et.iadd(Rt),Et.iushrn(1);for(var It=0,Ct=1;!(ht.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(ht.iushrn(It);It-- >0;)Tt.isOdd()&&Tt.iadd(Rt),Tt.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Tt)):(ht.isub(Mt),Tt.isub(Et))}var xt;return Mt.cmpn(1)===0?xt=Et:xt=Tt,xt.cmpn(0)<0&&xt.iadd(Ot),xt},st.prototype.gcd=function(Ot){if(this.isZero())return Ot.abs();if(Ot.isZero())return this.abs();var Mt=this.clone(),ht=Ot.clone();Mt.negative=0,ht.negative=0;for(var Et=0;Mt.isEven()&&ht.isEven();Et++)Mt.iushrn(1),ht.iushrn(1);do{for(;Mt.isEven();)Mt.iushrn(1);for(;ht.isEven();)ht.iushrn(1);var Tt=Mt.cmp(ht);if(Tt<0){var Rt=Mt;Mt=ht,ht=Rt}else if(Tt===0||ht.cmpn(1)===0)break;Mt.isub(ht)}while(!0);return ht.iushln(Et)},st.prototype.invm=function(Ot){return this.egcd(Ot).a.umod(Ot)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(Ot){return this.words[0]&Ot},st.prototype.bincn=function(Ot){nt(typeof Ot=="number");var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<>>26,At&=67108863,this.words[Rt]=At}return Tt!==0&&(this.words[Rt]=Tt,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(Ot){var Mt=Ot<0;if(this.negative!==0&&!Mt)return-1;if(this.negative===0&&Mt)return 1;this.strip();var ht;if(this.length>1)ht=1;else{Mt&&(Ot=-Ot),nt(Ot<=67108863,"Number is too big");var Et=this.words[0]|0;ht=Et===Ot?0:EtOt.length)return 1;if(this.length=0;ht--){var Et=this.words[ht]|0,Tt=Ot.words[ht]|0;if(Et!==Tt){EtTt&&(Mt=1);break}}return Mt},st.prototype.gtn=function(Ot){return this.cmpn(Ot)===1},st.prototype.gt=function(Ot){return this.cmp(Ot)===1},st.prototype.gten=function(Ot){return this.cmpn(Ot)>=0},st.prototype.gte=function(Ot){return this.cmp(Ot)>=0},st.prototype.ltn=function(Ot){return this.cmpn(Ot)===-1},st.prototype.lt=function(Ot){return this.cmp(Ot)===-1},st.prototype.lten=function(Ot){return this.cmpn(Ot)<=0},st.prototype.lte=function(Ot){return this.cmp(Ot)<=0},st.prototype.eqn=function(Ot){return this.cmpn(Ot)===0},st.prototype.eq=function(Ot){return this.cmp(Ot)===0},st.red=function(Ot){return new Wt(Ot)},st.prototype.toRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Ot.convertTo(this)._forceRed(Ot)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(Ot){return this.red=Ot,this},st.prototype.forceRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Ot)},st.prototype.redAdd=function(Ot){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Ot)},st.prototype.redIAdd=function(Ot){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Ot)},st.prototype.redSub=function(Ot){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Ot)},st.prototype.redISub=function(Ot){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Ot)},st.prototype.redShl=function(Ot){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Ot)},st.prototype.redMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.mul(this,Ot)},st.prototype.redIMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.imul(this,Ot)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(Ot){return nt(this.red&&!Ot.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Ot)};var St={k256:null,p224:null,p192:null,p25519:null};function Bt(qt,Ot){this.name=qt,this.p=new st(Ot,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Bt.prototype._tmp=function(){var Ot=new st(null);return Ot.words=new Array(Math.ceil(this.n/13)),Ot},Bt.prototype.ireduce=function(Ot){var Mt=Ot,ht;do this.split(Mt,this.tmp),Mt=this.imulK(Mt),Mt=Mt.iadd(this.tmp),ht=Mt.bitLength();while(ht>this.n);var Et=ht0?Mt.isub(this.p):Mt.strip!==void 0?Mt.strip():Mt._strip(),Mt},Bt.prototype.split=function(Ot,Mt){Ot.iushrn(this.n,0,Mt)},Bt.prototype.imulK=function(Ot){return Ot.imul(this.k)};function Ft(){Bt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(Ft,Bt),Ft.prototype.split=function(Ot,Mt){for(var ht=4194303,Et=Math.min(Ot.length,9),Tt=0;Tt>>22,Rt=At}Rt>>>=22,Ot.words[Tt-10]=Rt,Rt===0&&Ot.length>10?Ot.length-=10:Ot.length-=9},Ft.prototype.imulK=function(Ot){Ot.words[Ot.length]=0,Ot.words[Ot.length+1]=0,Ot.length+=2;for(var Mt=0,ht=0;ht>>=26,Ot.words[ht]=Tt,Mt=Et}return Mt!==0&&(Ot.words[Ot.length++]=Mt),Ot},st._prime=function(Ot){if(St[Ot])return St[Ot];var Mt;if(Ot==="k256")Mt=new Ft;else if(Ot==="p224")Mt=new Dt;else if(Ot==="p192")Mt=new zt;else if(Ot==="p25519")Mt=new Ht;else throw new Error("Unknown prime "+Ot);return St[Ot]=Mt,Mt};function Wt(qt){if(typeof qt=="string"){var Ot=st._prime(qt);this.m=Ot.p,this.prime=Ot}else nt(qt.gtn(1),"modulus must be greater than 1"),this.m=qt,this.prime=null}Wt.prototype._verify1=function(Ot){nt(Ot.negative===0,"red works only with positives"),nt(Ot.red,"red works only with red numbers")},Wt.prototype._verify2=function(Ot,Mt){nt((Ot.negative|Mt.negative)===0,"red works only with positives"),nt(Ot.red&&Ot.red===Mt.red,"red works only with red numbers")},Wt.prototype.imod=function(Ot){return this.prime?this.prime.ireduce(Ot)._forceRed(this):Ot.umod(this.m)._forceRed(this)},Wt.prototype.neg=function(Ot){return Ot.isZero()?Ot.clone():this.m.sub(Ot)._forceRed(this)},Wt.prototype.add=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.add(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht._forceRed(this)},Wt.prototype.iadd=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.iadd(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht},Wt.prototype.sub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.sub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht._forceRed(this)},Wt.prototype.isub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.isub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht},Wt.prototype.shl=function(Ot,Mt){return this._verify1(Ot),this.imod(Ot.ushln(Mt))},Wt.prototype.imul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.imul(Mt))},Wt.prototype.mul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.mul(Mt))},Wt.prototype.isqr=function(Ot){return this.imul(Ot,Ot.clone())},Wt.prototype.sqr=function(Ot){return this.mul(Ot,Ot)},Wt.prototype.sqrt=function(Ot){if(Ot.isZero())return Ot.clone();var Mt=this.m.andln(3);if(nt(Mt%2===1),Mt===3){var ht=this.m.add(new st(1)).iushrn(2);return this.pow(Ot,ht)}for(var Et=this.m.subn(1),Tt=0;!Et.isZero()&&Et.andln(1)===0;)Tt++,Et.iushrn(1);nt(!Et.isZero());var Rt=new st(1).toRed(this),At=Rt.redNeg(),Pt=this.m.subn(1).iushrn(1),It=this.m.bitLength();for(It=new st(2*It*It).toRed(this);this.pow(It,Pt).cmp(At)!==0;)It.redIAdd(At);for(var Ct=this.pow(It,Et),xt=this.pow(Ot,Et.addn(1).iushrn(1)),Lt=this.pow(Ot,Et),tr=Tt;Lt.cmp(Rt)!==0;){for(var pr=Lt,Kt=0;pr.cmp(Rt)!==0;Kt++)pr=pr.redSqr();nt(Kt=0;Tt--){for(var Ct=Mt.words[Tt],xt=It-1;xt>=0;xt--){var Lt=Ct>>xt&1;if(Rt!==Et[0]&&(Rt=this.sqr(Rt)),Lt===0&&At===0){Pt=0;continue}At<<=1,At|=Lt,Pt++,!(Pt!==ht&&(Tt!==0||xt!==0))&&(Rt=this.mul(Rt,Et[At]),Pt=0,At=0)}It=26}return Rt},Wt.prototype.convertTo=function(Ot){var Mt=Ot.umod(this.m);return Mt===Ot?Mt.clone():Mt},Wt.prototype.convertFrom=function(Ot){var Mt=Ot.clone();return Mt.red=null,Mt},st.mont=function(Ot){return new lr(Ot)};function lr(qt){Wt.call(this,qt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(lr,Wt),lr.prototype.convertTo=function(Ot){return this.imod(Ot.ushln(this.shift))},lr.prototype.convertFrom=function(Ot){var Mt=this.imod(Ot.mul(this.rinv));return Mt.red=null,Mt},lr.prototype.imul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return Ot.words[0]=0,Ot.length=1,Ot;var ht=Ot.imul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.mul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return new st(0)._forceRed(this);var ht=Ot.mul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.invm=function(Ot){var Mt=this.imod(Ot._invmp(this.m).mul(this.r2));return Mt._forceRed(this)}})(et,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var et;brorand.exports=function(it){return et||(et=new tt(null)),et.generate(it)};function tt(nt){this.rand=nt}if(brorand.exports.Rand=tt,tt.prototype.generate=function(it){return this._rand(it)},tt.prototype._rand=function(it){if(this.rand.getBytes)return this.rand.getBytes(it);for(var st=new Uint8Array(it),at=0;at=0);return ot},rt.prototype._randrange=function(it,st){var at=st.sub(it);return it.add(this._randbelow(at))},rt.prototype.test=function(it,st,at){var ot=it.bitLength(),lt=et.mont(it),ut=new et(1).toRed(lt);st||(st=Math.max(1,ot/48|0));for(var dt=it.subn(1),bt=0;!dt.testn(bt);bt++);for(var gt=it.shrn(bt),kt=dt.toRed(lt),pt=!0;st>0;st--){var yt=this._randrange(new et(2),dt);at&&at(yt);var $t=yt.toRed(lt).redPow(gt);if(!($t.cmp(ut)===0||$t.cmp(kt)===0)){for(var mt=1;mt0;st--){var kt=this._randrange(new et(2),ut),pt=it.gcd(kt);if(pt.cmpn(1)!==0)return pt;var yt=kt.toRed(ot).redPow(bt);if(!(yt.cmp(lt)===0||yt.cmp(gt)===0)){for(var $t=1;$tmt;)St.ishrn(1);if(St.isEven()&&St.iadd(st),St.testn(1)||St.iadd(at),wt.cmp(at)){if(!wt.cmp(ot))for(;St.mod(lt).cmp(ut);)St.iadd(bt)}else for(;St.mod(rt).cmp(dt);)St.iadd(bt);if(Bt=St.shrn(1),pt(Bt)&&pt(St)&&yt(Bt)&&yt(St)&&it.test(Bt)&&it.test(St))return St}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var et=bnExports$2,tt=requireMr(),rt=new tt,nt=new et(24),it=new et(11),st=new et(10),at=new et(3),ot=new et(7),lt=requireGeneratePrime(),ut=browserExports;dh=pt;function dt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._pub=new et($t),this}function bt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._priv=new et($t),this}var gt={};function kt($t,mt){var wt=mt.toString("hex"),St=[wt,$t.toString(16)].join("_");if(St in gt)return gt[St];var Bt=0;if($t.isEven()||!lt.simpleSieve||!lt.fermatTest($t)||!rt.test($t))return Bt+=1,wt==="02"||wt==="05"?Bt+=8:Bt+=4,gt[St]=Bt,Bt;rt.test($t.shrn(1))||(Bt+=2);var Ft;switch(wt){case"02":$t.mod(nt).cmp(it)&&(Bt+=8);break;case"05":Ft=$t.mod(st),Ft.cmp(at)&&Ft.cmp(ot)&&(Bt+=8);break;default:Bt+=4}return gt[St]=Bt,Bt}function pt($t,mt,wt){this.setGenerator(mt),this.__prime=new et($t),this._prime=et.mont(this.__prime),this._primeLen=$t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,wt?(this.setPublicKey=dt,this.setPrivateKey=bt):this._primeCode=8}Object.defineProperty(pt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=kt(this.__prime,this.__gen)),this._primeCode}}),pt.prototype.generateKeys=function(){return this._priv||(this._priv=new et(ut(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},pt.prototype.computeSecret=function($t){$t=new et($t),$t=$t.toRed(this._prime);var mt=$t.redPow(this._priv).fromRed(),wt=new Buffer(mt.toArray()),St=this.getPrime();if(wt.length0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Lt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Lt).toString(ht);tr=tr.idivn(Lt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Lt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Lt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Lt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Lt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Lt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Lt=Lt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Lt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Lt=Lt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Lt=Lt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Lt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Lt=Lt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Lt=Lt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Lt=Lt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Lt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Lt=Lt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Lt=Lt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Lt=Lt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Lt=Lt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Lt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Lt=Lt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Lt=Lt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Lt=Lt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Lt=Lt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Lt=Lt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Lt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Lt=Lt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Lt=Lt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Lt=Lt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Lt=Lt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Lt=Lt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Lt=Lt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Lt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Lt=Lt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Lt=Lt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Lt=Lt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Lt=Lt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Lt=Lt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Lt=Lt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Lt=Lt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Lt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Lt=Lt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Lt=Lt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Lt=Lt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Lt=Lt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Lt=Lt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Lt=Lt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Lt=Lt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Lt=Lt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Lt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Lt=Lt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Lt=Lt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Lt=Lt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Lt=Lt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Lt=Lt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Lt=Lt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Lt=Lt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Lt=Lt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Lt=Lt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Lt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Lt=Lt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Lt=Lt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Lt=Lt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Lt=Lt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Lt=Lt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Lt=Lt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Lt=Lt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Lt=Lt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Lt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Lt=Lt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Lt=Lt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Lt=Lt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Lt=Lt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Lt=Lt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Lt=Lt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Lt=Lt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Lt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Lt=Lt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Lt=Lt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Lt=Lt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Lt=Lt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Lt=Lt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Lt=Lt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Lt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Lt=Lt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Lt=Lt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Lt=Lt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Lt=Lt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Lt=Lt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Lt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Lt=Lt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Lt=Lt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Lt=Lt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Lt=Lt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Lt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Lt=Lt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Lt=Lt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Lt=Lt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Lt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Lt=Lt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Lt=Lt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Lt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Lt=Lt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Lt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Lt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Lt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Lt<<26-At|tr>>>At,Lt=tr&It}return Ct&&Lt!==0&&(Ct.words[Ct.length++]=Lt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Lt=0;Lt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Lt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Lt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Lt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Lt=1;!(Tt.words[0]&Lt)&&xt<26;++xt,Lt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Dt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Dt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Dt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Dt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Dt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Dt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Dt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Lt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Lt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Lt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,BN$c=bnExports$1,randomBytes$1=browserExports;function blind(et){var tt=getr(et),rt=tt.toRed(BN$c.mont(et.modulus)).redPow(new BN$c(et.publicExponent)).fromRed();return{blinder:rt,unblinder:tt.invm(et.modulus)}}function getr(et){var tt=et.modulus.byteLength(),rt;do rt=new BN$c(randomBytes$1(tt));while(rt.cmp(et.modulus)>=0||!rt.umod(et.prime1)||!rt.umod(et.prime2));return rt}function crt$2(et,tt){var rt=blind(tt),nt=tt.modulus.byteLength(),it=new BN$c(et).mul(rt.blinder).umod(tt.modulus),st=it.toRed(BN$c.mont(tt.prime1)),at=it.toRed(BN$c.mont(tt.prime2)),ot=tt.coefficient,lt=tt.prime1,ut=tt.prime2,dt=st.redPow(tt.exponent1).fromRed(),bt=at.redPow(tt.exponent2).fromRed(),gt=dt.isub(bt).imul(ot).umod(lt).imul(ut);return bt.iadd(gt).imul(rt.unblinder).umod(tt.modulus).toArrayLike(Buffer,"be",nt)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$2={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$n={},utils$m={};(function(et){var tt=et;function rt(st,at){if(Array.isArray(st))return st.slice();if(!st)return[];var ot=[];if(typeof st!="string"){for(var lt=0;lt>8,bt=ut&255;dt?ot.push(dt,bt):ot.push(bt)}return ot}tt.toArray=rt;function nt(st){return st.length===1?"0"+st:st}tt.zero2=nt;function it(st){for(var at="",ot=0;ot(pt>>1)-1?mt=(pt>>1)-wt:mt=wt,yt.isubn(mt)):mt=0,kt[$t]=mt,yt.iushrn(1)}return kt}tt.getNAF=st;function at(dt,bt){var gt=[[],[]];dt=dt.clone(),bt=bt.clone();for(var kt=0,pt=0,yt;dt.cmpn(-kt)>0||bt.cmpn(-pt)>0;){var $t=dt.andln(3)+kt&3,mt=bt.andln(3)+pt&3;$t===3&&($t=-1),mt===3&&(mt=-1);var wt;$t&1?(yt=dt.andln(7)+kt&7,(yt===3||yt===5)&&mt===2?wt=-$t:wt=$t):wt=0,gt[0].push(wt);var St;mt&1?(yt=bt.andln(7)+pt&7,(yt===3||yt===5)&&$t===2?St=-mt:St=mt):St=0,gt[1].push(St),2*kt===wt+1&&(kt=1-kt),2*pt===St+1&&(pt=1-pt),dt.iushrn(1),bt.iushrn(1)}return gt}tt.getJSF=at;function ot(dt,bt,gt){var kt="_"+bt;dt.prototype[bt]=function(){return this[kt]!==void 0?this[kt]:this[kt]=gt.call(this)}}tt.cachedProperty=ot;function lt(dt){return typeof dt=="string"?tt.toArray(dt,"hex"):dt}tt.parseBytes=lt;function ut(dt){return new rt(dt,"hex","le")}tt.intFromLE=ut})(utils$n);var curve={},BN$b=bnExports$2,utils$l=utils$n,getNAF=utils$l.getNAF,getJSF=utils$l.getJSF,assert$i=utils$l.assert;function BaseCurve(et,tt){this.type=et,this.p=new BN$b(tt.p,16),this.red=tt.prime?BN$b.red(tt.prime):BN$b.mont(this.p),this.zero=new BN$b(0).toRed(this.red),this.one=new BN$b(1).toRed(this.red),this.two=new BN$b(2).toRed(this.red),this.n=tt.n&&new BN$b(tt.n,16),this.g=tt.g&&this.pointFromJSON(tt.g,tt.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var rt=this.n&&this.p.div(this.n);!rt||rt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(tt,rt){assert$i(tt.precomputed);var nt=tt._getDoubles(),it=getNAF(rt,1,this._bitLength),st=(1<=ot;ut--)lt=(lt<<1)+it[ut];at.push(lt)}for(var dt=this.jpoint(null,null,null),bt=this.jpoint(null,null,null),gt=st;gt>0;gt--){for(ot=0;ot=0;lt--){for(var ut=0;lt>=0&&at[lt]===0;lt--)ut++;if(lt>=0&&ut++,ot=ot.dblp(ut),lt<0)break;var dt=at[lt];assert$i(dt!==0),tt.type==="affine"?dt>0?ot=ot.mixedAdd(st[dt-1>>1]):ot=ot.mixedAdd(st[-dt-1>>1].neg()):dt>0?ot=ot.add(st[dt-1>>1]):ot=ot.add(st[-dt-1>>1].neg())}return tt.type==="affine"?ot.toP():ot};BaseCurve.prototype._wnafMulAdd=function(tt,rt,nt,it,st){var at=this._wnafT1,ot=this._wnafT2,lt=this._wnafT3,ut=0,dt,bt,gt;for(dt=0;dt=1;dt-=2){var pt=dt-1,yt=dt;if(at[pt]!==1||at[yt]!==1){lt[pt]=getNAF(nt[pt],at[pt],this._bitLength),lt[yt]=getNAF(nt[yt],at[yt],this._bitLength),ut=Math.max(lt[pt].length,ut),ut=Math.max(lt[yt].length,ut);continue}var $t=[rt[pt],null,null,rt[yt]];rt[pt].y.cmp(rt[yt].y)===0?($t[1]=rt[pt].add(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg())):rt[pt].y.cmp(rt[yt].y.redNeg())===0?($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].add(rt[yt].neg())):($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg()));var mt=[-3,-1,-5,-7,0,7,5,1,3],wt=getJSF(nt[pt],nt[yt]);for(ut=Math.max(wt[0].length,ut),lt[pt]=new Array(ut),lt[yt]=new Array(ut),bt=0;bt=0;dt--){for(var zt=0;dt>=0;){var Ht=!0;for(bt=0;bt=0&&zt++,Ft=Ft.dblp(zt),dt<0)break;for(bt=0;bt0?gt=ot[bt][Wt-1>>1]:Wt<0&&(gt=ot[bt][-Wt-1>>1].neg()),gt.type==="affine"?Ft=Ft.mixedAdd(gt):Ft=Ft.add(gt))}}for(dt=0;dt=Math.ceil((tt.bitLength()+1)/rt.step):!1};BasePoint.prototype._getDoubles=function(tt,rt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var nt=[this],it=this,st=0;st=0&&(kt=ut,pt=dt),bt.negative&&(bt=bt.neg(),gt=gt.neg()),kt.negative&&(kt=kt.neg(),pt=pt.neg()),[{a:bt,b:gt},{a:kt,b:pt}]};ShortCurve.prototype._endoSplit=function(tt){var rt=this.endo.basis,nt=rt[0],it=rt[1],st=it.b.mul(tt).divRound(this.n),at=nt.b.neg().mul(tt).divRound(this.n),ot=st.mul(nt.a),lt=at.mul(it.a),ut=st.mul(nt.b),dt=at.mul(it.b),bt=tt.sub(ot).sub(lt),gt=ut.add(dt).neg();return{k1:bt,k2:gt}};ShortCurve.prototype.pointFromX=function(tt,rt){tt=new BN$a(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),it=nt.redSqrt();if(it.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");var st=it.fromRed().isOdd();return(rt&&!st||!rt&&st)&&(it=it.redNeg()),this.point(tt,it)};ShortCurve.prototype.validate=function(tt){if(tt.inf)return!0;var rt=tt.x,nt=tt.y,it=this.a.redMul(rt),st=rt.redSqr().redMul(rt).redIAdd(it).redIAdd(this.b);return nt.redSqr().redISub(st).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(tt,rt,nt){for(var it=this._endoWnafT1,st=this._endoWnafT2,at=0;at":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(tt){if(this.inf)return tt;if(tt.inf)return this;if(this.eq(tt))return this.dbl();if(this.neg().eq(tt))return this.curve.point(null,null);if(this.x.cmp(tt.x)===0)return this.curve.point(null,null);var rt=this.y.redSub(tt.y);rt.cmpn(0)!==0&&(rt=rt.redMul(this.x.redSub(tt.x).redInvm()));var nt=rt.redSqr().redISub(this.x).redISub(tt.x),it=rt.redMul(this.x.redSub(nt)).redISub(this.y);return this.curve.point(nt,it)};Point$2.prototype.dbl=function(){if(this.inf)return this;var tt=this.y.redAdd(this.y);if(tt.cmpn(0)===0)return this.curve.point(null,null);var rt=this.curve.a,nt=this.x.redSqr(),it=tt.redInvm(),st=nt.redAdd(nt).redIAdd(nt).redIAdd(rt).redMul(it),at=st.redSqr().redISub(this.x.redAdd(this.x)),ot=st.redMul(this.x.redSub(at)).redISub(this.y);return this.curve.point(at,ot)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(tt){return tt=new BN$a(tt,16),this.isInfinity()?this:this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve.endo?this.curve._endoWnafMulAdd([this],[tt]):this.curve._wnafMul(this,tt)};Point$2.prototype.mulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st):this.curve._wnafMulAdd(1,it,st,2)};Point$2.prototype.jmulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st,!0):this.curve._wnafMulAdd(1,it,st,2,!0)};Point$2.prototype.eq=function(tt){return this===tt||this.inf===tt.inf&&(this.inf||this.x.cmp(tt.x)===0&&this.y.cmp(tt.y)===0)};Point$2.prototype.neg=function(tt){if(this.inf)return this;var rt=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var nt=this.precomputed,it=function(st){return st.neg()};rt.precomputed={naf:nt.naf&&{wnd:nt.naf.wnd,points:nt.naf.points.map(it)},doubles:nt.doubles&&{step:nt.doubles.step,points:nt.doubles.points.map(it)}}}return rt};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var tt=this.curve.jpoint(this.x,this.y,this.curve.one);return tt};function JPoint(et,tt,rt,nt){Base$2.BasePoint.call(this,et,"jacobian"),tt===null&&rt===null&&nt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$a(0)):(this.x=new BN$a(tt,16),this.y=new BN$a(rt,16),this.z=new BN$a(nt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$9(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(tt,rt,nt){return new JPoint(this,tt,rt,nt)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),rt=tt.redSqr(),nt=this.x.redMul(rt),it=this.y.redMul(rt).redMul(tt);return this.curve.point(nt,it)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(tt){if(this.isInfinity())return tt;if(tt.isInfinity())return this;var rt=tt.z.redSqr(),nt=this.z.redSqr(),it=this.x.redMul(rt),st=tt.x.redMul(nt),at=this.y.redMul(rt.redMul(tt.z)),ot=tt.y.redMul(nt.redMul(this.z)),lt=it.redSub(st),ut=at.redSub(ot);if(lt.cmpn(0)===0)return ut.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var dt=lt.redSqr(),bt=dt.redMul(lt),gt=it.redMul(dt),kt=ut.redSqr().redIAdd(bt).redISub(gt).redISub(gt),pt=ut.redMul(gt.redISub(kt)).redISub(at.redMul(bt)),yt=this.z.redMul(tt.z).redMul(lt);return this.curve.jpoint(kt,pt,yt)};JPoint.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var rt=this.z.redSqr(),nt=this.x,it=tt.x.redMul(rt),st=this.y,at=tt.y.redMul(rt).redMul(this.z),ot=nt.redSub(it),lt=st.redSub(at);if(ot.cmpn(0)===0)return lt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ut=ot.redSqr(),dt=ut.redMul(ot),bt=nt.redMul(ut),gt=lt.redSqr().redIAdd(dt).redISub(bt).redISub(bt),kt=lt.redMul(bt.redISub(gt)).redISub(st.redMul(dt)),pt=this.z.redMul(ot);return this.curve.jpoint(gt,kt,pt)};JPoint.prototype.dblp=function(tt){if(tt===0)return this;if(this.isInfinity())return this;if(!tt)return this.dbl();var rt;if(this.curve.zeroA||this.curve.threeA){var nt=this;for(rt=0;rt=0)return!1;if(nt.redIAdd(st),this.x.cmp(nt)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$9=bnExports$2,inherits$8=inherits_browserExports,Base$1=base$3,utils$j=utils$n;function MontCurve(et){Base$1.call(this,"mont",et),this.a=new BN$9(et.a,16).toRed(this.red),this.b=new BN$9(et.b,16).toRed(this.red),this.i4=new BN$9(4).toRed(this.red).redInvm(),this.two=new BN$9(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$8(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(tt){var rt=tt.normalize().x,nt=rt.redSqr(),it=nt.redMul(rt).redAdd(nt.redMul(this.a)).redAdd(rt),st=it.redSqrt();return st.redSqr().cmp(it)===0};function Point$1(et,tt,rt){Base$1.BasePoint.call(this,et,"projective"),tt===null&&rt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$9(tt,16),this.z=new BN$9(rt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$8(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(tt,rt){return this.point(utils$j.toArray(tt,rt),1)};MontCurve.prototype.point=function(tt,rt){return new Point$1(this,tt,rt)};MontCurve.prototype.pointFromJSON=function(tt){return Point$1.fromJSON(this,tt)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(tt,rt){return new Point$1(tt,rt[0],rt[1]||tt.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var tt=this.x.redAdd(this.z),rt=tt.redSqr(),nt=this.x.redSub(this.z),it=nt.redSqr(),st=rt.redSub(it),at=rt.redMul(it),ot=st.redMul(it.redAdd(this.curve.a24.redMul(st)));return this.curve.point(at,ot)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(tt,rt){var nt=this.x.redAdd(this.z),it=this.x.redSub(this.z),st=tt.x.redAdd(tt.z),at=tt.x.redSub(tt.z),ot=at.redMul(nt),lt=st.redMul(it),ut=rt.z.redMul(ot.redAdd(lt).redSqr()),dt=rt.x.redMul(ot.redISub(lt).redSqr());return this.curve.point(ut,dt)};Point$1.prototype.mul=function(tt){for(var rt=tt.clone(),nt=this,it=this.curve.point(null,null),st=this,at=[];rt.cmpn(0)!==0;rt.iushrn(1))at.push(rt.andln(1));for(var ot=at.length-1;ot>=0;ot--)at[ot]===0?(nt=nt.diffAdd(it,st),it=it.dbl()):(it=nt.diffAdd(it,st),nt=nt.dbl());return it};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(tt){return this.getX().cmp(tt.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$i=utils$n,BN$8=bnExports$2,inherits$7=inherits_browserExports,Base=base$3,assert$g=utils$i.assert;function EdwardsCurve(et){this.twisted=(et.a|0)!==1,this.mOneA=this.twisted&&(et.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",et),this.a=new BN$8(et.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$8(et.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$8(et.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$g(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(et.c|0)===1}inherits$7(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(tt){return this.mOneA?tt.redNeg():this.a.redMul(tt)};EdwardsCurve.prototype._mulC=function(tt){return this.oneC?tt:this.c.redMul(tt)};EdwardsCurve.prototype.jpoint=function(tt,rt,nt,it){return this.point(tt,rt,nt,it)};EdwardsCurve.prototype.pointFromX=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=this.c2.redSub(this.a.redMul(nt)),st=this.one.redSub(this.c2.redMul(this.d).redMul(nt)),at=it.redMul(st.redInvm()),ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");var lt=ot.fromRed().isOdd();return(rt&&!lt||!rt&<)&&(ot=ot.redNeg()),this.point(tt,ot)};EdwardsCurve.prototype.pointFromY=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=nt.redSub(this.c2),st=nt.redMul(this.d).redMul(this.c2).redSub(this.a),at=it.redMul(st.redInvm());if(at.cmp(this.zero)===0){if(rt)throw new Error("invalid point");return this.point(this.zero,tt)}var ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");return ot.fromRed().isOdd()!==rt&&(ot=ot.redNeg()),this.point(ot,tt)};EdwardsCurve.prototype.validate=function(tt){if(tt.isInfinity())return!0;tt.normalize();var rt=tt.x.redSqr(),nt=tt.y.redSqr(),it=rt.redMul(this.a).redAdd(nt),st=this.c2.redMul(this.one.redAdd(this.d.redMul(rt).redMul(nt)));return it.cmp(st)===0};function Point(et,tt,rt,nt,it){Base.BasePoint.call(this,et,"projective"),tt===null&&rt===null&&nt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$8(tt,16),this.y=new BN$8(rt,16),this.z=nt?new BN$8(nt,16):this.curve.one,this.t=it&&new BN$8(it,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$7(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(tt){return Point.fromJSON(this,tt)};EdwardsCurve.prototype.point=function(tt,rt,nt,it){return new Point(this,tt,rt,nt,it)};Point.fromJSON=function(tt,rt){return new Point(tt,rt[0],rt[1],rt[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var tt=this.x.redSqr(),rt=this.y.redSqr(),nt=this.z.redSqr();nt=nt.redIAdd(nt);var it=this.curve._mulA(tt),st=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(rt),at=it.redAdd(rt),ot=at.redSub(nt),lt=it.redSub(rt),ut=st.redMul(ot),dt=at.redMul(lt),bt=st.redMul(lt),gt=ot.redMul(at);return this.curve.point(ut,dt,gt,bt)};Point.prototype._projDbl=function(){var tt=this.x.redAdd(this.y).redSqr(),rt=this.x.redSqr(),nt=this.y.redSqr(),it,st,at,ot,lt,ut;if(this.curve.twisted){ot=this.curve._mulA(rt);var dt=ot.redAdd(nt);this.zOne?(it=tt.redSub(rt).redSub(nt).redMul(dt.redSub(this.curve.two)),st=dt.redMul(ot.redSub(nt)),at=dt.redSqr().redSub(dt).redSub(dt)):(lt=this.z.redSqr(),ut=dt.redSub(lt).redISub(lt),it=tt.redSub(rt).redISub(nt).redMul(ut),st=dt.redMul(ot.redSub(nt)),at=dt.redMul(ut))}else ot=rt.redAdd(nt),lt=this.curve._mulC(this.z).redSqr(),ut=ot.redSub(lt).redSub(lt),it=this.curve._mulC(tt.redISub(ot)).redMul(ut),st=this.curve._mulC(ot).redMul(rt.redISub(nt)),at=ot.redMul(ut);return this.curve.point(it,st,at)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(tt){var rt=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),nt=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),it=this.t.redMul(this.curve.dd).redMul(tt.t),st=this.z.redMul(tt.z.redAdd(tt.z)),at=nt.redSub(rt),ot=st.redSub(it),lt=st.redAdd(it),ut=nt.redAdd(rt),dt=at.redMul(ot),bt=lt.redMul(ut),gt=at.redMul(ut),kt=ot.redMul(lt);return this.curve.point(dt,bt,kt,gt)};Point.prototype._projAdd=function(tt){var rt=this.z.redMul(tt.z),nt=rt.redSqr(),it=this.x.redMul(tt.x),st=this.y.redMul(tt.y),at=this.curve.d.redMul(it).redMul(st),ot=nt.redSub(at),lt=nt.redAdd(at),ut=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(it).redISub(st),dt=rt.redMul(ot).redMul(ut),bt,gt;return this.curve.twisted?(bt=rt.redMul(lt).redMul(st.redSub(this.curve._mulA(it))),gt=ot.redMul(lt)):(bt=rt.redMul(lt).redMul(st.redSub(it)),gt=this.curve._mulC(ot).redMul(lt)),this.curve.point(dt,bt,gt)};Point.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)};Point.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)};Point.prototype.mulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!1)};Point.prototype.jmulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var tt=this.z.redInvm();return this.x=this.x.redMul(tt),this.y=this.y.redMul(tt),this.t&&(this.t=this.t.redMul(tt)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(tt){return this===tt||this.getX().cmp(tt.getX())===0&&this.getY().cmp(tt.getY())===0};Point.prototype.eqXToP=function(tt){var rt=tt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(rt)===0)return!0;for(var nt=tt.clone(),it=this.curve.redN.redMul(this.z);;){if(nt.iadd(this.curve.n),nt.cmp(this.curve.p)>=0)return!1;if(rt.redIAdd(it),this.x.cmp(rt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(et){var tt=et;tt.base=base$3,tt.short=short,tt.mont=mont,tt.edwards=edwards})(curve);var curves$1={},hash$4={},utils$h={},assert$f=minimalisticAssert,inherits$6=inherits_browserExports;utils$h.inherits=inherits$6;function isSurrogatePair(et,tt){return(et.charCodeAt(tt)&64512)!==55296||tt<0||tt+1>=et.length?!1:(et.charCodeAt(tt+1)&64512)===56320}function toArray$1(et,tt){if(Array.isArray(et))return et.slice();if(!et)return[];var rt=[];if(typeof et=="string")if(tt){if(tt==="hex")for(et=et.replace(/[^a-z0-9]+/ig,""),et.length%2!==0&&(et="0"+et),it=0;it>6|192,rt[nt++]=st&63|128):isSurrogatePair(et,it)?(st=65536+((st&1023)<<10)+(et.charCodeAt(++it)&1023),rt[nt++]=st>>18|240,rt[nt++]=st>>12&63|128,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128):(rt[nt++]=st>>12|224,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128)}else for(it=0;it>>24|et>>>8&65280|et<<8&16711680|(et&255)<<24;return tt>>>0}utils$h.htonl=htonl;function toHex32(et,tt){for(var rt="",nt=0;nt>>0}return st}utils$h.join32=join32;function split32(et,tt){for(var rt=new Array(et.length*4),nt=0,it=0;nt>>24,rt[it+1]=st>>>16&255,rt[it+2]=st>>>8&255,rt[it+3]=st&255):(rt[it+3]=st>>>24,rt[it+2]=st>>>16&255,rt[it+1]=st>>>8&255,rt[it]=st&255)}return rt}utils$h.split32=split32;function rotr32$1(et,tt){return et>>>tt|et<<32-tt}utils$h.rotr32=rotr32$1;function rotl32$2(et,tt){return et<>>32-tt}utils$h.rotl32=rotl32$2;function sum32$3(et,tt){return et+tt>>>0}utils$h.sum32=sum32$3;function sum32_3$1(et,tt,rt){return et+tt+rt>>>0}utils$h.sum32_3=sum32_3$1;function sum32_4$2(et,tt,rt,nt){return et+tt+rt+nt>>>0}utils$h.sum32_4=sum32_4$2;function sum32_5$2(et,tt,rt,nt,it){return et+tt+rt+nt+it>>>0}utils$h.sum32_5=sum32_5$2;function sum64$1(et,tt,rt,nt){var it=et[tt],st=et[tt+1],at=nt+st>>>0,ot=(at>>0,et[tt+1]=at}utils$h.sum64=sum64$1;function sum64_hi$1(et,tt,rt,nt){var it=tt+nt>>>0,st=(it>>0}utils$h.sum64_hi=sum64_hi$1;function sum64_lo$1(et,tt,rt,nt){var it=tt+nt;return it>>>0}utils$h.sum64_lo=sum64_lo$1;function sum64_4_hi$1(et,tt,rt,nt,it,st,at,ot){var lt=0,ut=tt;ut=ut+nt>>>0,lt+=ut>>0,lt+=ut>>0,lt+=ut>>0}utils$h.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(et,tt,rt,nt,it,st,at,ot){var lt=tt+nt+st+ot;return lt>>>0}utils$h.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=0,bt=tt;bt=bt+nt>>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0}utils$h.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=tt+nt+st+ot+ut;return dt>>>0}utils$h.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(et,tt,rt){var nt=tt<<32-rt|et>>>rt;return nt>>>0}utils$h.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.rotr64_lo=rotr64_lo$1;function shr64_hi$1(et,tt,rt){return et>>>rt}utils$h.shr64_hi=shr64_hi$1;function shr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.shr64_lo=shr64_lo$1;var common$7={},utils$g=utils$h,assert$e=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$7.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(tt,rt){if(tt=utils$g.toArray(tt,rt),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){tt=this.pending;var nt=tt.length%this._delta8;this.pending=tt.slice(tt.length-nt,tt.length),this.pending.length===0&&(this.pending=null),tt=utils$g.join32(tt,0,tt.length-nt,this.endian);for(var it=0;it>>24&255,it[st++]=tt>>>16&255,it[st++]=tt>>>8&255,it[st++]=tt&255}else for(it[st++]=tt&255,it[st++]=tt>>>8&255,it[st++]=tt>>>16&255,it[st++]=tt>>>24&255,it[st++]=0,it[st++]=0,it[st++]=0,it[st++]=0,at=8;at>>3}common$6.g0_256=g0_256$1;function g1_256$1(et){return rotr32(et,17)^rotr32(et,19)^et>>>10}common$6.g1_256=g1_256$1;var utils$e=utils$h,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$e.rotl32,sum32$2=utils$e.sum32,sum32_5$1=utils$e.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1$1(){if(!(this instanceof SHA1$1))return new SHA1$1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$e.inherits(SHA1$1,BlockHash$3);var _1=SHA1$1;SHA1$1.blockSize=512;SHA1$1.outSize=160;SHA1$1.hmacStrength=80;SHA1$1.padLength=64;SHA1$1.prototype._update=function(tt,rt){for(var nt=this.W,it=0;it<16;it++)nt[it]=tt[rt+it];for(;itthis.blockSize&&(tt=new this.Hash().update(tt).digest()),assert$b(tt.length<=this.blockSize);for(var rt=tt.length;rt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(tt,rt,nt)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(tt,rt,nt){var it=tt.concat(rt).concat(nt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var st=0;st=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(nt||[])),this._reseed=1};HmacDRBG.prototype.generate=function(tt,rt,nt,it){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof rt!="string"&&(it=nt,nt=rt,rt=null),nt&&(nt=utils$7.toArray(nt,it||"hex"),this._update(nt));for(var st=[];st.length"};var BN$6=bnExports$2,utils$5=utils$n,assert$8=utils$5.assert;function Signature$2(et,tt){if(et instanceof Signature$2)return et;this._importDER(et,tt)||(assert$8(et.r&&et.s,"Signature without r or s"),this.r=new BN$6(et.r,16),this.s=new BN$6(et.s,16),et.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=et.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(et,tt){var rt=et[tt.place++];if(!(rt&128))return rt;var nt=rt&15;if(nt===0||nt>4)return!1;for(var it=0,st=0,at=tt.place;st>>=0;return it<=127?!1:(tt.place=at,it)}function rmPadding(et){for(var tt=0,rt=et.length-1;!et[tt]&&!(et[tt+1]&128)&&tt>>3);for(et.push(rt|128);--rt;)et.push(tt>>>(rt<<3)&255);et.push(tt)}Signature$2.prototype.toDER=function(tt){var rt=this.r.toArray(),nt=this.s.toArray();for(rt[0]&128&&(rt=[0].concat(rt)),nt[0]&128&&(nt=[0].concat(nt)),rt=rmPadding(rt),nt=rmPadding(nt);!nt[0]&&!(nt[1]&128);)nt=nt.slice(1);var it=[2];constructLength(it,rt.length),it=it.concat(rt),it.push(2),constructLength(it,nt.length);var st=it.concat(nt),at=[48];return constructLength(at,st.length),at=at.concat(st),utils$5.encode(at,tt)};var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var et=bnExports$2,tt=hmacDrbg,rt=utils$n,nt=curves$1,it=requireBrorand(),st=rt.assert,at=key$2,ot=signature$1;function lt(ut){if(!(this instanceof lt))return new lt(ut);typeof ut=="string"&&(st(Object.prototype.hasOwnProperty.call(nt,ut),"Unknown curve "+ut),ut=nt[ut]),ut instanceof nt.PresetCurve&&(ut={curve:ut}),this.curve=ut.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=ut.curve.g,this.g.precompute(ut.curve.n.bitLength()+1),this.hash=ut.hash||ut.curve.hash}return ec$1=lt,lt.prototype.keyPair=function(dt){return new at(this,dt)},lt.prototype.keyFromPrivate=function(dt,bt){return at.fromPrivate(this,dt,bt)},lt.prototype.keyFromPublic=function(dt,bt){return at.fromPublic(this,dt,bt)},lt.prototype.genKeyPair=function(dt){dt||(dt={});for(var bt=new tt({hash:this.hash,pers:dt.pers,persEnc:dt.persEnc||"utf8",entropy:dt.entropy||it(this.hash.hmacStrength),entropyEnc:dt.entropy&&dt.entropyEnc||"utf8",nonce:this.n.toArray()}),gt=this.n.byteLength(),kt=this.n.sub(new et(2));;){var pt=new et(bt.generate(gt));if(!(pt.cmp(kt)>0))return pt.iaddn(1),this.keyFromPrivate(pt)}},lt.prototype._truncateToN=function(dt,bt){var gt=dt.byteLength()*8-this.n.bitLength();return gt>0&&(dt=dt.ushrn(gt)),!bt&&dt.cmp(this.n)>=0?dt.sub(this.n):dt},lt.prototype.sign=function(dt,bt,gt,kt){typeof gt=="object"&&(kt=gt,gt=null),kt||(kt={}),bt=this.keyFromPrivate(bt,gt),dt=this._truncateToN(new et(dt,16));for(var pt=this.n.byteLength(),yt=bt.getPrivate().toArray("be",pt),$t=dt.toArray("be",pt),mt=new tt({hash:this.hash,entropy:yt,nonce:$t,pers:kt.pers,persEnc:kt.persEnc||"utf8"}),wt=this.n.sub(new et(1)),St=0;;St++){var Bt=kt.k?kt.k(St):new et(mt.generate(this.n.byteLength()));if(Bt=this._truncateToN(Bt,!0),!(Bt.cmpn(1)<=0||Bt.cmp(wt)>=0)){var Ft=this.g.mul(Bt);if(!Ft.isInfinity()){var Dt=Ft.getX(),zt=Dt.umod(this.n);if(zt.cmpn(0)!==0){var Ht=Bt.invm(this.n).mul(zt.mul(bt.getPrivate()).iadd(dt));if(Ht=Ht.umod(this.n),Ht.cmpn(0)!==0){var Wt=(Ft.getY().isOdd()?1:0)|(Dt.cmp(zt)!==0?2:0);return kt.canonical&&Ht.cmp(this.nh)>0&&(Ht=this.n.sub(Ht),Wt^=1),new ot({r:zt,s:Ht,recoveryParam:Wt})}}}}}},lt.prototype.verify=function(dt,bt,gt,kt){dt=this._truncateToN(new et(dt,16)),gt=this.keyFromPublic(gt,kt),bt=new ot(bt,"hex");var pt=bt.r,yt=bt.s;if(pt.cmpn(1)<0||pt.cmp(this.n)>=0||yt.cmpn(1)<0||yt.cmp(this.n)>=0)return!1;var $t=yt.invm(this.n),mt=$t.mul(dt).umod(this.n),wt=$t.mul(pt).umod(this.n),St;return this.curve._maxwellTrick?(St=this.g.jmulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.eqXToP(pt)):(St=this.g.mulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.getX().umod(this.n).cmp(pt)===0)},lt.prototype.recoverPubKey=function(ut,dt,bt,gt){st((3&bt)===bt,"The recovery param is more than two bits"),dt=new ot(dt,gt);var kt=this.n,pt=new et(ut),yt=dt.r,$t=dt.s,mt=bt&1,wt=bt>>1;if(yt.cmp(this.curve.p.umod(this.curve.n))>=0&&wt)throw new Error("Unable to find sencond key candinate");wt?yt=this.curve.pointFromX(yt.add(this.curve.n),mt):yt=this.curve.pointFromX(yt,mt);var St=dt.r.invm(kt),Bt=kt.sub(pt).mul(St).umod(kt),Ft=$t.mul(St).umod(kt);return this.g.mulAdd(Bt,yt,Ft)},lt.prototype.getKeyRecoveryParam=function(ut,dt,bt,gt){if(dt=new ot(dt,gt),dt.recoveryParam!==null)return dt.recoveryParam;for(var kt=0;kt<4;kt++){var pt;try{pt=this.recoverPubKey(ut,dt,kt)}catch{continue}if(pt.eq(bt))return kt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$4=utils$n,assert$7=utils$4.assert,parseBytes$2=utils$4.parseBytes,cachedProperty$1=utils$4.cachedProperty;function KeyPair$1(et,tt){this.eddsa=et,this._secret=parseBytes$2(tt.secret),et.isPoint(tt.pub)?this._pub=tt.pub:this._pubBytes=parseBytes$2(tt.pub)}KeyPair$1.fromPublic=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{pub:rt})};KeyPair$1.fromSecret=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{secret:rt})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var tt=this.eddsa,rt=this.hash(),nt=tt.encodingLength-1,it=rt.slice(0,tt.encodingLength);return it[0]&=248,it[nt]&=127,it[nt]|=64,it});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(tt){return assert$7(this._secret,"KeyPair can only verify"),this.eddsa.sign(tt,this)};KeyPair$1.prototype.verify=function(tt,rt){return this.eddsa.verify(tt,rt,this)};KeyPair$1.prototype.getSecret=function(tt){return assert$7(this._secret,"KeyPair is public only"),utils$4.encode(this.secret(),tt)};KeyPair$1.prototype.getPublic=function(tt){return utils$4.encode(this.pubBytes(),tt)};var key$1=KeyPair$1,BN$5=bnExports$2,utils$3=utils$n,assert$6=utils$3.assert,cachedProperty=utils$3.cachedProperty,parseBytes$1=utils$3.parseBytes;function Signature$1(et,tt){this.eddsa=et,typeof tt!="object"&&(tt=parseBytes$1(tt)),Array.isArray(tt)&&(tt={R:tt.slice(0,et.encodingLength),S:tt.slice(et.encodingLength)}),assert$6(tt.R&&tt.S,"Signature without R or S"),et.isPoint(tt.R)&&(this._R=tt.R),tt.S instanceof BN$5&&(this._S=tt.S),this._Rencoded=Array.isArray(tt.R)?tt.R:tt.Rencoded,this._Sencoded=Array.isArray(tt.S)?tt.S:tt.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$3.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$1,utils$2=utils$n,assert$5=utils$2.assert,parseBytes=utils$2.parseBytes,KeyPair=key$1,Signature=signature;function EDDSA(et){if(assert$5(et==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(et);et=curves[et].curve,this.curve=et,this.g=et.g,this.g.precompute(et.n.bitLength()+1),this.pointClass=et.point().constructor,this.encodingLength=Math.ceil(et.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(tt,rt){tt=parseBytes(tt);var nt=this.keyFromSecret(rt),it=this.hashInt(nt.messagePrefix(),tt),st=this.g.mul(it),at=this.encodePoint(st),ot=this.hashInt(at,nt.pubBytes(),tt).mul(nt.priv()),lt=it.add(ot).umod(this.curve.n);return this.makeSignature({R:st,S:lt,Rencoded:at})};EDDSA.prototype.verify=function(tt,rt,nt){tt=parseBytes(tt),rt=this.makeSignature(rt);var it=this.keyFromPublic(nt),st=this.hashInt(rt.Rencoded(),it.pubBytes(),tt),at=this.g.mul(rt.S()),ot=rt.R().add(it.pub().mul(st));return ot.eq(at)};EDDSA.prototype.hashInt=function(){for(var tt=this.hash(),rt=0;rt0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Lt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Lt).toString(ht);tr=tr.idivn(Lt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Lt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Lt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Lt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Lt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Lt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Lt=Lt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Lt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Lt=Lt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Lt=Lt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Lt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Lt=Lt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Lt=Lt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Lt=Lt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Lt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Lt=Lt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Lt=Lt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Lt=Lt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Lt=Lt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Lt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Lt=Lt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Lt=Lt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Lt=Lt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Lt=Lt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Lt=Lt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Lt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Lt=Lt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Lt=Lt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Lt=Lt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Lt=Lt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Lt=Lt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Lt=Lt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Lt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Lt=Lt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Lt=Lt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Lt=Lt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Lt=Lt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Lt=Lt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Lt=Lt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Lt=Lt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Lt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Lt=Lt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Lt=Lt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Lt=Lt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Lt=Lt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Lt=Lt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Lt=Lt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Lt=Lt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Lt=Lt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Lt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Lt=Lt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Lt=Lt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Lt=Lt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Lt=Lt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Lt=Lt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Lt=Lt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Lt=Lt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Lt=Lt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Lt=Lt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Lt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Lt=Lt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Lt=Lt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Lt=Lt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Lt=Lt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Lt=Lt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Lt=Lt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Lt=Lt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Lt=Lt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Lt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Lt=Lt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Lt=Lt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Lt=Lt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Lt=Lt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Lt=Lt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Lt=Lt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Lt=Lt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Lt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Lt=Lt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Lt=Lt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Lt=Lt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Lt=Lt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Lt=Lt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Lt=Lt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Lt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Lt=Lt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Lt=Lt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Lt=Lt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Lt=Lt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Lt=Lt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Lt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Lt=Lt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Lt=Lt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Lt=Lt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Lt=Lt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Lt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Lt=Lt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Lt=Lt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Lt=Lt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Lt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Lt=Lt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Lt=Lt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Lt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Lt=Lt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Lt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Lt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Lt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Lt<<26-At|tr>>>At,Lt=tr&It}return Ct&&Lt!==0&&(Ct.words[Ct.length++]=Lt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Lt=0;Lt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Lt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Lt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Lt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Lt=1;!(Tt.words[0]&Lt)&&xt<26;++xt,Lt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Dt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Dt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Dt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Dt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Dt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Dt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Dt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Lt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Lt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Lt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn);var bnExports=bn.exports,asn1$3={},asn1$2={},api={},encoders={},buffer$1=buffer$2,Buffer$d=buffer$1.Buffer,safer={},key;for(key in buffer$1)buffer$1.hasOwnProperty(key)&&(key==="SlowBuffer"||key==="Buffer"||(safer[key]=buffer$1[key]));var Safer=safer.Buffer={};for(key in Buffer$d)Buffer$d.hasOwnProperty(key)&&(key==="allocUnsafe"||key==="allocUnsafeSlow"||(Safer[key]=Buffer$d[key]));safer.Buffer.prototype=Buffer$d.prototype;(!Safer.from||Safer.from===Uint8Array.from)&&(Safer.from=function(et,tt,rt){if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof et);if(et&&typeof et.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);return Buffer$d(et,tt,rt)});Safer.alloc||(Safer.alloc=function(et,tt,rt){if(typeof et!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof et);if(et<0||et>=2*(1<<30))throw new RangeError('The value "'+et+'" is invalid for option "size"');var nt=Buffer$d(et);return!tt||tt.length===0?nt.fill(0):typeof rt=="string"?nt.fill(tt,rt):nt.fill(tt),nt});if(!safer.kStringMaxLength)try{safer.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}safer.constants||(safer.constants={MAX_LENGTH:safer.kMaxLength},safer.kStringMaxLength&&(safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength));var safer_1=safer,reporter={};const inherits$5=inherits_browserExports;function Reporter$2(et){this._reporterState={obj:null,path:[],options:et||{},errors:[]}}reporter.Reporter=Reporter$2;Reporter$2.prototype.isError=function(tt){return tt instanceof ReporterError};Reporter$2.prototype.save=function(){const tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}};Reporter$2.prototype.restore=function(tt){const rt=this._reporterState;rt.obj=tt.obj,rt.path=rt.path.slice(0,tt.pathLen)};Reporter$2.prototype.enterKey=function(tt){return this._reporterState.path.push(tt)};Reporter$2.prototype.exitKey=function(tt){const rt=this._reporterState;rt.path=rt.path.slice(0,tt-1)};Reporter$2.prototype.leaveKey=function(tt,rt,nt){const it=this._reporterState;this.exitKey(tt),it.obj!==null&&(it.obj[rt]=nt)};Reporter$2.prototype.path=function(){return this._reporterState.path.join("/")};Reporter$2.prototype.enterObject=function(){const tt=this._reporterState,rt=tt.obj;return tt.obj={},rt};Reporter$2.prototype.leaveObject=function(tt){const rt=this._reporterState,nt=rt.obj;return rt.obj=tt,nt};Reporter$2.prototype.error=function(tt){let rt;const nt=this._reporterState,it=tt instanceof ReporterError;if(it?rt=tt:rt=new ReporterError(nt.path.map(function(st){return"["+JSON.stringify(st)+"]"}).join(""),tt.message||tt,tt.stack),!nt.options.partial)throw rt;return it||nt.errors.push(rt),rt};Reporter$2.prototype.wrapResult=function(tt){const rt=this._reporterState;return rt.options.partial?{result:this.isError(tt)?null:tt,errors:rt.errors}:tt};function ReporterError(et,tt){this.path=et,this.rethrow(tt)}inherits$5(ReporterError,Error);ReporterError.prototype.rethrow=function(tt){if(this.message=tt+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(rt){this.stack=rt.stack}return this};var buffer={};const inherits$4=inherits_browserExports,Reporter$1=reporter.Reporter,Buffer$c=safer_1.Buffer;function DecoderBuffer$2(et,tt){if(Reporter$1.call(this,tt),!Buffer$c.isBuffer(et)){this.error("Input not Buffer");return}this.base=et,this.offset=0,this.length=et.length}inherits$4(DecoderBuffer$2,Reporter$1);buffer.DecoderBuffer=DecoderBuffer$2;DecoderBuffer$2.isDecoderBuffer=function(tt){return tt instanceof DecoderBuffer$2?!0:typeof tt=="object"&&Buffer$c.isBuffer(tt.base)&&tt.constructor.name==="DecoderBuffer"&&typeof tt.offset=="number"&&typeof tt.length=="number"&&typeof tt.save=="function"&&typeof tt.restore=="function"&&typeof tt.isEmpty=="function"&&typeof tt.readUInt8=="function"&&typeof tt.skip=="function"&&typeof tt.raw=="function"};DecoderBuffer$2.prototype.save=function(){return{offset:this.offset,reporter:Reporter$1.prototype.save.call(this)}};DecoderBuffer$2.prototype.restore=function(tt){const rt=new DecoderBuffer$2(this.base);return rt.offset=tt.offset,rt.length=this.offset,this.offset=tt.offset,Reporter$1.prototype.restore.call(this,tt.reporter),rt};DecoderBuffer$2.prototype.isEmpty=function(){return this.offset===this.length};DecoderBuffer$2.prototype.readUInt8=function(tt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(tt||"DecoderBuffer overrun")};DecoderBuffer$2.prototype.skip=function(tt,rt){if(!(this.offset+tt<=this.length))return this.error(rt||"DecoderBuffer overrun");const nt=new DecoderBuffer$2(this.base);return nt._reporterState=this._reporterState,nt.offset=this.offset,nt.length=this.offset+tt,this.offset+=tt,nt};DecoderBuffer$2.prototype.raw=function(tt){return this.base.slice(tt?tt.offset:this.offset,this.length)};function EncoderBuffer$1(et,tt){if(Array.isArray(et))this.length=0,this.value=et.map(function(rt){return EncoderBuffer$1.isEncoderBuffer(rt)||(rt=new EncoderBuffer$1(rt,tt)),this.length+=rt.length,rt},this);else if(typeof et=="number"){if(!(0<=et&&et<=255))return tt.error("non-byte EncoderBuffer value");this.value=et,this.length=1}else if(typeof et=="string")this.value=et,this.length=Buffer$c.byteLength(et);else if(Buffer$c.isBuffer(et))this.value=et,this.length=et.length;else return tt.error("Unsupported type: "+typeof et)}buffer.EncoderBuffer=EncoderBuffer$1;EncoderBuffer$1.isEncoderBuffer=function(tt){return tt instanceof EncoderBuffer$1?!0:typeof tt=="object"&&tt.constructor.name==="EncoderBuffer"&&typeof tt.length=="number"&&typeof tt.join=="function"};EncoderBuffer$1.prototype.join=function(tt,rt){return tt||(tt=Buffer$c.alloc(this.length)),rt||(rt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(nt){nt.join(tt,rt),rt+=nt.length}):(typeof this.value=="number"?tt[rt]=this.value:typeof this.value=="string"?tt.write(this.value,rt):Buffer$c.isBuffer(this.value)&&this.value.copy(tt,rt),rt+=this.length)),tt};const Reporter=reporter.Reporter,EncoderBuffer=buffer.EncoderBuffer,DecoderBuffer$1=buffer.DecoderBuffer,assert$4=minimalisticAssert,tags$1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],methods=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(tags$1),overrided=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node$2(et,tt,rt){const nt={};this._baseState=nt,nt.name=rt,nt.enc=et,nt.parent=tt||null,nt.children=null,nt.tag=null,nt.args=null,nt.reverseArgs=null,nt.choice=null,nt.optional=!1,nt.any=!1,nt.obj=!1,nt.use=null,nt.useDecoder=null,nt.key=null,nt.default=null,nt.explicit=null,nt.implicit=null,nt.contains=null,nt.parent||(nt.children=[],this._wrap())}var node$1=Node$2;const stateProps=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node$2.prototype.clone=function(){const tt=this._baseState,rt={};stateProps.forEach(function(it){rt[it]=tt[it]});const nt=new this.constructor(rt.parent);return nt._baseState=rt,nt};Node$2.prototype._wrap=function(){const tt=this._baseState;methods.forEach(function(rt){this[rt]=function(){const it=new this.constructor(this);return tt.children.push(it),it[rt].apply(it,arguments)}},this)};Node$2.prototype._init=function(tt){const rt=this._baseState;assert$4(rt.parent===null),tt.call(this),rt.children=rt.children.filter(function(nt){return nt._baseState.parent===this},this),assert$4.equal(rt.children.length,1,"Root node can have only one child")};Node$2.prototype._useArgs=function(tt){const rt=this._baseState,nt=tt.filter(function(it){return it instanceof this.constructor},this);tt=tt.filter(function(it){return!(it instanceof this.constructor)},this),nt.length!==0&&(assert$4(rt.children===null),rt.children=nt,nt.forEach(function(it){it._baseState.parent=this},this)),tt.length!==0&&(assert$4(rt.args===null),rt.args=tt,rt.reverseArgs=tt.map(function(it){if(typeof it!="object"||it.constructor!==Object)return it;const st={};return Object.keys(it).forEach(function(at){at==(at|0)&&(at|=0);const ot=it[at];st[ot]=at}),st}))};overrided.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState;throw new Error(et+" not implemented for encoding: "+rt.enc)}});tags$1.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState,nt=Array.prototype.slice.call(arguments);return assert$4(rt.tag===null),rt.tag=et,this._useArgs(nt),this}});Node$2.prototype.use=function(tt){assert$4(tt);const rt=this._baseState;return assert$4(rt.use===null),rt.use=tt,this};Node$2.prototype.optional=function(){const tt=this._baseState;return tt.optional=!0,this};Node$2.prototype.def=function(tt){const rt=this._baseState;return assert$4(rt.default===null),rt.default=tt,rt.optional=!0,this};Node$2.prototype.explicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.explicit=tt,this};Node$2.prototype.implicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.implicit=tt,this};Node$2.prototype.obj=function(){const tt=this._baseState,rt=Array.prototype.slice.call(arguments);return tt.obj=!0,rt.length!==0&&this._useArgs(rt),this};Node$2.prototype.key=function(tt){const rt=this._baseState;return assert$4(rt.key===null),rt.key=tt,this};Node$2.prototype.any=function(){const tt=this._baseState;return tt.any=!0,this};Node$2.prototype.choice=function(tt){const rt=this._baseState;return assert$4(rt.choice===null),rt.choice=tt,this._useArgs(Object.keys(tt).map(function(nt){return tt[nt]})),this};Node$2.prototype.contains=function(tt){const rt=this._baseState;return assert$4(rt.use===null),rt.contains=tt,this};Node$2.prototype._decode=function(tt,rt){const nt=this._baseState;if(nt.parent===null)return tt.wrapResult(nt.children[0]._decode(tt,rt));let it=nt.default,st=!0,at=null;if(nt.key!==null&&(at=tt.enterKey(nt.key)),nt.optional){let lt=null;if(nt.explicit!==null?lt=nt.explicit:nt.implicit!==null?lt=nt.implicit:nt.tag!==null&&(lt=nt.tag),lt===null&&!nt.any){const ut=tt.save();try{nt.choice===null?this._decodeGeneric(nt.tag,tt,rt):this._decodeChoice(tt,rt),st=!0}catch{st=!1}tt.restore(ut)}else if(st=this._peekTag(tt,lt,nt.any),tt.isError(st))return st}let ot;if(nt.obj&&st&&(ot=tt.enterObject()),st){if(nt.explicit!==null){const ut=this._decodeTag(tt,nt.explicit);if(tt.isError(ut))return ut;tt=ut}const lt=tt.offset;if(nt.use===null&&nt.choice===null){let ut;nt.any&&(ut=tt.save());const dt=this._decodeTag(tt,nt.implicit!==null?nt.implicit:nt.tag,nt.any);if(tt.isError(dt))return dt;nt.any?it=tt.raw(ut):tt=dt}if(rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),lt,tt.length,"tagged"),rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),tt.offset,tt.length,"content"),nt.any||(nt.choice===null?it=this._decodeGeneric(nt.tag,tt,rt):it=this._decodeChoice(tt,rt)),tt.isError(it))return it;if(!nt.any&&nt.choice===null&&nt.children!==null&&nt.children.forEach(function(dt){dt._decode(tt,rt)}),nt.contains&&(nt.tag==="octstr"||nt.tag==="bitstr")){const ut=new DecoderBuffer$1(it);it=this._getUse(nt.contains,tt._reporterState.obj)._decode(ut,rt)}}return nt.obj&&st&&(it=tt.leaveObject(ot)),nt.key!==null&&(it!==null||st===!0)?tt.leaveKey(at,nt.key,it):at!==null&&tt.exitKey(at),it};Node$2.prototype._decodeGeneric=function(tt,rt,nt){const it=this._baseState;return tt==="seq"||tt==="set"?null:tt==="seqof"||tt==="setof"?this._decodeList(rt,tt,it.args[0],nt):/str$/.test(tt)?this._decodeStr(rt,tt,nt):tt==="objid"&&it.args?this._decodeObjid(rt,it.args[0],it.args[1],nt):tt==="objid"?this._decodeObjid(rt,null,null,nt):tt==="gentime"||tt==="utctime"?this._decodeTime(rt,tt,nt):tt==="null_"?this._decodeNull(rt,nt):tt==="bool"?this._decodeBool(rt,nt):tt==="objDesc"?this._decodeStr(rt,tt,nt):tt==="int"||tt==="enum"?this._decodeInt(rt,it.args&&it.args[0],nt):it.use!==null?this._getUse(it.use,rt._reporterState.obj)._decode(rt,nt):rt.error("unknown tag: "+tt)};Node$2.prototype._getUse=function(tt,rt){const nt=this._baseState;return nt.useDecoder=this._use(tt,rt),assert$4(nt.useDecoder._baseState.parent===null),nt.useDecoder=nt.useDecoder._baseState.children[0],nt.implicit!==nt.useDecoder._baseState.implicit&&(nt.useDecoder=nt.useDecoder.clone(),nt.useDecoder._baseState.implicit=nt.implicit),nt.useDecoder};Node$2.prototype._decodeChoice=function(tt,rt){const nt=this._baseState;let it=null,st=!1;return Object.keys(nt.choice).some(function(at){const ot=tt.save(),lt=nt.choice[at];try{const ut=lt._decode(tt,rt);if(tt.isError(ut))return!1;it={type:at,value:ut},st=!0}catch{return tt.restore(ot),!1}return!0},this),st?it:tt.error("Choice not matched")};Node$2.prototype._createEncoderBuffer=function(tt){return new EncoderBuffer(tt,this.reporter)};Node$2.prototype._encode=function(tt,rt,nt){const it=this._baseState;if(it.default!==null&&it.default===tt)return;const st=this._encodeValue(tt,rt,nt);if(st!==void 0&&!this._skipDefault(st,rt,nt))return st};Node$2.prototype._encodeValue=function(tt,rt,nt){const it=this._baseState;if(it.parent===null)return it.children[0]._encode(tt,rt||new Reporter);let st=null;if(this.reporter=rt,it.optional&&tt===void 0)if(it.default!==null)tt=it.default;else return;let at=null,ot=!1;if(it.any)st=this._createEncoderBuffer(tt);else if(it.choice)st=this._encodeChoice(tt,rt);else if(it.contains)at=this._getUse(it.contains,nt)._encode(tt,rt),ot=!0;else if(it.children)at=it.children.map(function(lt){if(lt._baseState.tag==="null_")return lt._encode(null,rt,tt);if(lt._baseState.key===null)return rt.error("Child should have a key");const ut=rt.enterKey(lt._baseState.key);if(typeof tt!="object")return rt.error("Child expected, but input is not object");const dt=lt._encode(tt[lt._baseState.key],rt,tt);return rt.leaveKey(ut),dt},this).filter(function(lt){return lt}),at=this._createEncoderBuffer(at);else if(it.tag==="seqof"||it.tag==="setof"){if(!(it.args&&it.args.length===1))return rt.error("Too many args for : "+it.tag);if(!Array.isArray(tt))return rt.error("seqof/setof, but data is not Array");const lt=this.clone();lt._baseState.implicit=null,at=this._createEncoderBuffer(tt.map(function(ut){const dt=this._baseState;return this._getUse(dt.args[0],tt)._encode(ut,rt)},lt))}else it.use!==null?st=this._getUse(it.use,nt)._encode(tt,rt):(at=this._encodePrimitive(it.tag,tt),ot=!0);if(!it.any&&it.choice===null){const lt=it.implicit!==null?it.implicit:it.tag,ut=it.implicit===null?"universal":"context";lt===null?it.use===null&&rt.error("Tag could be omitted only for .use()"):it.use===null&&(st=this._encodeComposite(lt,ot,ut,at))}return it.explicit!==null&&(st=this._encodeComposite(it.explicit,!1,"context",st)),st};Node$2.prototype._encodeChoice=function(tt,rt){const nt=this._baseState,it=nt.choice[tt.type];return it||assert$4(!1,tt.type+" not found in "+JSON.stringify(Object.keys(nt.choice))),it._encode(tt.value,rt)};Node$2.prototype._encodePrimitive=function(tt,rt){const nt=this._baseState;if(/str$/.test(tt))return this._encodeStr(rt,tt);if(tt==="objid"&&nt.args)return this._encodeObjid(rt,nt.reverseArgs[0],nt.args[1]);if(tt==="objid")return this._encodeObjid(rt,null,null);if(tt==="gentime"||tt==="utctime")return this._encodeTime(rt,tt);if(tt==="null_")return this._encodeNull();if(tt==="int"||tt==="enum")return this._encodeInt(rt,nt.args&&nt.reverseArgs[0]);if(tt==="bool")return this._encodeBool(rt);if(tt==="objDesc")return this._encodeStr(rt,tt);throw new Error("Unsupported tag: "+tt)};Node$2.prototype._isNumstr=function(tt){return/^[0-9 ]*$/.test(tt)};Node$2.prototype._isPrintstr=function(tt){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(tt)};var der$2={};(function(et){function tt(rt){const nt={};return Object.keys(rt).forEach(function(it){(it|0)==it&&(it=it|0);const st=rt[it];nt[st]=it}),nt}et.tagClass={0:"universal",1:"application",2:"context",3:"private"},et.tagClassByName=tt(et.tagClass),et.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},et.tagByName=tt(et.tag)})(der$2);const inherits$3=inherits_browserExports,Buffer$b=safer_1.Buffer,Node$1=node$1,der$1=der$2;function DEREncoder$1(et){this.enc="der",this.name=et.name,this.entity=et,this.tree=new DERNode$1,this.tree._init(et.body)}var der_1$1=DEREncoder$1;DEREncoder$1.prototype.encode=function(tt,rt){return this.tree._encode(tt,rt).join()};function DERNode$1(et){Node$1.call(this,"der",et)}inherits$3(DERNode$1,Node$1);DERNode$1.prototype._encodeComposite=function(tt,rt,nt,it){const st=encodeTag(tt,rt,nt,this.reporter);if(it.length<128){const lt=Buffer$b.alloc(2);return lt[0]=st,lt[1]=it.length,this._createEncoderBuffer([lt,it])}let at=1;for(let lt=it.length;lt>=256;lt>>=8)at++;const ot=Buffer$b.alloc(1+1+at);ot[0]=st,ot[1]=128|at;for(let lt=1+at,ut=it.length;ut>0;lt--,ut>>=8)ot[lt]=ut&255;return this._createEncoderBuffer([ot,it])};DERNode$1.prototype._encodeStr=function(tt,rt){if(rt==="bitstr")return this._createEncoderBuffer([tt.unused|0,tt.data]);if(rt==="bmpstr"){const nt=Buffer$b.alloc(tt.length*2);for(let it=0;it=40)return this.reporter.error("Second objid identifier OOB");tt.splice(0,2,tt[0]*40+tt[1])}let it=0;for(let ot=0;ot=128;lt>>=7)it++}const st=Buffer$b.alloc(it);let at=st.length-1;for(let ot=tt.length-1;ot>=0;ot--){let lt=tt[ot];for(st[at--]=lt&127;(lt>>=7)>0;)st[at--]=128|lt&127}return this._createEncoderBuffer(st)};function two(et){return et<10?"0"+et:et}DERNode$1.prototype._encodeTime=function(tt,rt){let nt;const it=new Date(tt);return rt==="gentime"?nt=[two(it.getUTCFullYear()),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):rt==="utctime"?nt=[two(it.getUTCFullYear()%100),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+rt+" time is not supported yet"),this._encodeStr(nt,"octstr")};DERNode$1.prototype._encodeNull=function(){return this._createEncoderBuffer("")};DERNode$1.prototype._encodeInt=function(tt,rt){if(typeof tt=="string"){if(!rt)return this.reporter.error("String int or enum given, but no values map");if(!rt.hasOwnProperty(tt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(tt));tt=rt[tt]}if(typeof tt!="number"&&!Buffer$b.isBuffer(tt)){const st=tt.toArray();!tt.sign&&st[0]&128&&st.unshift(0),tt=Buffer$b.from(st)}if(Buffer$b.isBuffer(tt)){let st=tt.length;tt.length===0&&st++;const at=Buffer$b.alloc(st);return tt.copy(at),tt.length===0&&(at[0]=0),this._createEncoderBuffer(at)}if(tt<128)return this._createEncoderBuffer(tt);if(tt<256)return this._createEncoderBuffer([0,tt]);let nt=1;for(let st=tt;st>=256;st>>=8)nt++;const it=new Array(nt);for(let st=it.length-1;st>=0;st--)it[st]=tt&255,tt>>=8;return it[0]&128&&it.unshift(0),this._createEncoderBuffer(Buffer$b.from(it))};DERNode$1.prototype._encodeBool=function(tt){return this._createEncoderBuffer(tt?255:0)};DERNode$1.prototype._use=function(tt,rt){return typeof tt=="function"&&(tt=tt(rt)),tt._getEncoder("der").tree};DERNode$1.prototype._skipDefault=function(tt,rt,nt){const it=this._baseState;let st;if(it.default===null)return!1;const at=tt.join();if(it.defaultBuffer===void 0&&(it.defaultBuffer=this._encodeValue(it.default,rt,nt).join()),at.length!==it.defaultBuffer.length)return!1;for(st=0;st=31?nt.error("Multi-octet tag encoding unsupported"):(tt||(it|=32),it|=der$1.tagClassByName[rt||"universal"]<<6,it)}const inherits$2=inherits_browserExports,DEREncoder=der_1$1;function PEMEncoder(et){DEREncoder.call(this,et),this.enc="pem"}inherits$2(PEMEncoder,DEREncoder);var pem$1=PEMEncoder;PEMEncoder.prototype.encode=function(tt,rt){const it=DEREncoder.prototype.encode.call(this,tt).toString("base64"),st=["-----BEGIN "+rt.label+"-----"];for(let at=0;at>6],it=(rt&32)===0;if((rt&31)===31){let at=rt;for(rt=0;(at&128)===128;){if(at=et.readUInt8(tt),et.isError(at))return at;rt<<=7,rt|=at&127}}else rt&=31;const st=der.tag[rt];return{cls:nt,primitive:it,tag:rt,tagStr:st}}function derDecodeLen(et,tt,rt){let nt=et.readUInt8(rt);if(et.isError(nt))return nt;if(!tt&&nt===128)return null;if(!(nt&128))return nt;const it=nt&127;if(it>4)return et.error("length octect is too long");nt=0;for(let st=0;st0&&St.ishrn(Bt),St}function pt(mt,wt){mt=kt(mt,wt),mt=mt.mod(wt);var St=et.from(mt.toArray());if(St.length=0)throw new Error("invalid sig")}return verify_1=st,verify_1}var browser$4,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$4;hasRequiredBrowser$1=1;var et=safeBufferExports.Buffer,tt=browser$a,rt=readableBrowserExports,nt=inherits_browserExports,it=requireSign(),st=requireVerify(),at=require$$6;Object.keys(at).forEach(function(bt){at[bt].id=et.from(at[bt].id,"hex"),at[bt.toLowerCase()]=at[bt]});function ot(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hashType=gt.hash,this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(ot,rt.Writable),ot.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},ot.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},ot.prototype.sign=function(gt,kt){this.end();var pt=this._hash.digest(),yt=it(pt,gt,this._hashType,this._signType,this._tag);return kt?yt.toString(kt):yt};function lt(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(lt,rt.Writable),lt.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},lt.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},lt.prototype.verify=function(gt,kt,pt){var yt=typeof kt=="string"?et.from(kt,pt):kt;this.end();var $t=this._hash.digest();return st(yt,$t,gt,this._signType,this._tag)};function ut(bt){return new ot(bt)}function dt(bt){return new lt(bt)}return browser$4={Sign:ut,Verify:dt,createSign:ut,createVerify:dt},browser$4}var browser$3,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$3;hasRequiredBrowser=1;var et=requireElliptic(),tt=bnExports$2;browser$3=function(at){return new nt(at)};var rt={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};rt.p224=rt.secp224r1,rt.p256=rt.secp256r1=rt.prime256v1,rt.p192=rt.secp192r1=rt.prime192v1,rt.p384=rt.secp384r1,rt.p521=rt.secp521r1;function nt(st){this.curveType=rt[st],this.curveType||(this.curveType={name:st}),this.curve=new et.ec(this.curveType.name),this.keys=void 0}nt.prototype.generateKeys=function(st,at){return this.keys=this.curve.genKeyPair(),this.getPublicKey(st,at)},nt.prototype.computeSecret=function(st,at,ot){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var lt=this.curve.keyFromPublic(st).getPublic(),ut=lt.mul(this.keys.getPrivate()).getX();return it(ut,ot,this.curveType.byteLength)},nt.prototype.getPublicKey=function(st,at){var ot=this.keys.getPublic(at==="compressed",!0);return at==="hybrid"&&(ot[ot.length-1]%2?ot[0]=7:ot[0]=6),it(ot,st)},nt.prototype.getPrivateKey=function(st){return it(this.keys.getPrivate(),st)},nt.prototype.setPublicKey=function(st,at){return at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at)),this.keys._importPublic(st),this},nt.prototype.setPrivateKey=function(st,at){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var ot=new tt(st);return ot=ot.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ot),this};function it(st,at,ot){Array.isArray(st)||(st=st.toArray());var lt=new Buffer(st);if(ot&<.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return nt?crt$1(at,st):withPublic$1(at,st)};function oaep$1(et,tt){var rt=et.modulus.byteLength(),nt=tt.length,it=createHash$2("sha1").update(Buffer$5.alloc(0)).digest(),st=it.length,at=2*st;if(nt>rt-at-2)throw new Error("message too long");var ot=Buffer$5.alloc(rt-nt-at-2),lt=rt-st-1,ut=randomBytes(st),dt=xor$1(Buffer$5.concat([it,ot,Buffer$5.alloc(1,1),tt],lt),mgf$1(ut,lt)),bt=xor$1(ut,mgf$1(dt,st));return new BN$3(Buffer$5.concat([Buffer$5.alloc(1),bt,dt],rt))}function pkcs1$1(et,tt,rt){var nt=tt.length,it=et.modulus.byteLength();if(nt>it-11)throw new Error("message too long");var st;return rt?st=Buffer$5.alloc(it-nt-3,255):st=nonZero(it-nt-3),new BN$3(Buffer$5.concat([Buffer$5.from([0,rt?1:2]),st,Buffer$5.alloc(1),tt],it))}function nonZero(et){for(var tt=Buffer$5.allocUnsafe(et),rt=0,nt=randomBytes(et*2),it=0,st;rtat||new BN$2(rt).cmp(st.modulus)>=0)throw new Error("decryption error");var ot;nt?ot=withPublic(new BN$2(rt),st):ot=crt(rt,st);var lt=Buffer$4.alloc(at-ot.length);if(ot=Buffer$4.concat([lt,ot],at),it===4)return oaep(st,ot);if(it===1)return pkcs1(st,ot,nt);if(it===3)return ot;throw new Error("unknown padding")};function oaep(et,tt){var rt=et.modulus.byteLength(),nt=createHash$1("sha1").update(Buffer$4.alloc(0)).digest(),it=nt.length;if(tt[0]!==0)throw new Error("decryption error");var st=tt.slice(1,it+1),at=tt.slice(it+1),ot=xor(st,mgf(at,it)),lt=xor(at,mgf(ot,rt-it-1));if(compare$1(nt,lt.slice(0,it)))throw new Error("decryption error");for(var ut=it;lt[ut]===0;)ut++;if(lt[ut++]!==1)throw new Error("decryption error");return lt.slice(ut)}function pkcs1(et,tt,rt){for(var nt=tt.slice(0,2),it=2,st=0;tt[it++]!==0;)if(it>=tt.length){st++;break}var at=tt.slice(2,it-1);if((nt.toString("hex")!=="0002"&&!rt||nt.toString("hex")!=="0001"&&rt)&&st++,at.length<8&&st++,st)throw new Error("decryption error");return tt.slice(it)}function compare$1(et,tt){et=Buffer$4.from(et),tt=Buffer$4.from(tt);var rt=0,nt=et.length;et.length!==tt.length&&(rt++,nt=Math.min(et.length,tt.length));for(var it=-1;++itMAX_UINT32)throw new RangeError("requested too many random bytes");var rt=Buffer$H.allocUnsafe(et);if(et>0)if(et>MAX_BYTES)for(var nt=0;nt0&&(at=rt[0]),at instanceof Error)throw at;var ot=new Error("Unhandled error."+(at?" ("+at.message+")":""));throw ot.context=at,ot}var lt=st[tt];if(lt===void 0)return!1;if(typeof lt=="function")ReflectApply(lt,this,rt);else for(var ut=lt.length,dt=arrayClone(lt,ut),nt=0;nt0&&at.length>it&&!at.warned){at.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+at.length+" "+String(tt)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=et,ot.type=tt,ot.count=at.length,ProcessEmitWarning(ot)}return et}EventEmitter.prototype.addListener=function(tt,rt){return _addListener(this,tt,rt,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(tt,rt){return _addListener(this,tt,rt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,tt,rt){var nt={fired:!1,wrapFn:void 0,target:et,type:tt,listener:rt},it=onceWrapper.bind(nt);return it.listener=rt,nt.wrapFn=it,it}EventEmitter.prototype.once=function(tt,rt){return checkListener(rt),this.on(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.prependOnceListener=function(tt,rt){return checkListener(rt),this.prependListener(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.removeListener=function(tt,rt){var nt,it,st,at,ot;if(checkListener(rt),it=this._events,it===void 0)return this;if(nt=it[tt],nt===void 0)return this;if(nt===rt||nt.listener===rt)--this._eventsCount===0?this._events=Object.create(null):(delete it[tt],it.removeListener&&this.emit("removeListener",tt,nt.listener||rt));else if(typeof nt!="function"){for(st=-1,at=nt.length-1;at>=0;at--)if(nt[at]===rt||nt[at].listener===rt){ot=nt[at].listener,st=at;break}if(st<0)return this;st===0?nt.shift():spliceOne(nt,st),nt.length===1&&(it[tt]=nt[0]),it.removeListener!==void 0&&this.emit("removeListener",tt,ot||rt)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(tt){var rt,nt,it;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[tt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[tt]),this;if(arguments.length===0){var st=Object.keys(nt),at;for(it=0;it=0;it--)this.removeListener(tt,rt[it]);return this};function _listeners(et,tt,rt){var nt=et._events;if(nt===void 0)return[];var it=nt[tt];return it===void 0?[]:typeof it=="function"?rt?[it.listener||it]:[it]:rt?unwrapListeners(it):arrayClone(it,it.length)}EventEmitter.prototype.listeners=function(tt){return _listeners(this,tt,!0)};EventEmitter.prototype.rawListeners=function(tt){return _listeners(this,tt,!1)};EventEmitter.listenerCount=function(et,tt){return typeof et.listenerCount=="function"?et.listenerCount(tt):listenerCount.call(et,tt)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(et){var tt=this._events;if(tt!==void 0){var rt=tt[et];if(typeof rt=="function")return 1;if(rt!==void 0)return rt.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(et,tt){for(var rt=new Array(tt),nt=0;nt0?this.tail.next=mt:this.head=mt,this.tail=mt,++this.length}},{key:"unshift",value:function($t){var mt={data:$t,next:this.head};this.length===0&&(this.tail=mt),this.head=mt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var $t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,$t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function($t){if(this.length===0)return"";for(var mt=this.head,wt=""+mt.data;mt=mt.next;)wt+=$t+mt.data;return wt}},{key:"concat",value:function($t){if(this.length===0)return ut.alloc(0);for(var mt=ut.allocUnsafe($t>>>0),wt=this.head,St=0;wt;)kt(wt.data,mt,St),St+=wt.data.length,wt=wt.next;return mt}},{key:"consume",value:function($t,mt){var wt;return $tBt.length?Bt.length:$t;if(Ft===Bt.length?St+=Bt:St+=Bt.slice(0,$t),$t-=Ft,$t===0){Ft===Bt.length?(++wt,mt.next?this.head=mt.next:this.head=this.tail=null):(this.head=mt,mt.data=Bt.slice(Ft));break}++wt}return this.length-=wt,St}},{key:"_getBuffer",value:function($t){var mt=ut.allocUnsafe($t),wt=this.head,St=1;for(wt.data.copy(mt),$t-=wt.data.length;wt=wt.next;){var Bt=wt.data,Ft=$t>Bt.length?Bt.length:$t;if(Bt.copy(mt,mt.length-$t,0,Ft),$t-=Ft,$t===0){Ft===Bt.length?(++St,wt.next?this.head=wt.next:this.head=this.tail=null):(this.head=wt,wt.data=Bt.slice(Ft));break}++St}return this.length-=St,mt}},{key:gt,value:function($t,mt){return bt(this,tt(tt({},mt),{},{depth:0,customInspect:!1}))}}]),pt}(),buffer_list}function destroy(et,tt){var rt=this,nt=this._readableState&&this._readableState.destroyed,it=this._writableState&&this._writableState.destroyed;return nt||it?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,et)):process.nextTick(emitErrorNT,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(st){!tt&&st?rt._writableState?rt._writableState.errorEmitted?process.nextTick(emitCloseNT,rt):(rt._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,rt,st)):process.nextTick(emitErrorAndCloseNT,rt,st):tt?(process.nextTick(emitCloseNT,rt),tt(st)):process.nextTick(emitCloseNT,rt)}),this)}function emitErrorAndCloseNT(et,tt){emitErrorNT(et,tt),emitCloseNT(et)}function emitCloseNT(et){et._writableState&&!et._writableState.emitClose||et._readableState&&!et._readableState.emitClose||et.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,tt){et.emit("error",tt)}function errorOrDestroy(et,tt){var rt=et._readableState,nt=et._writableState;rt&&rt.autoDestroy||nt&&nt.autoDestroy?et.destroy(tt):et.emit("error",tt)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose$1(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,et.__proto__=tt}var codes={};function createErrorType(et,tt,rt){rt||(rt=Error);function nt(st,at,ot){return typeof tt=="string"?tt:tt(st,at,ot)}var it=function(st){_inheritsLoose$1(at,st);function at(ot,lt,ut){return st.call(this,nt(ot,lt,ut))||this}return at}(rt);it.prototype.name=rt.name,it.prototype.code=et,codes[et]=it}function oneOf(et,tt){if(Array.isArray(et)){var rt=et.length;return et=et.map(function(nt){return String(nt)}),rt>2?"one of ".concat(tt," ").concat(et.slice(0,rt-1).join(", "),", or ")+et[rt-1]:rt===2?"one of ".concat(tt," ").concat(et[0]," or ").concat(et[1]):"of ".concat(tt," ").concat(et[0])}else return"of ".concat(tt," ").concat(String(et))}function startsWith(et,tt,rt){return et.substr(!rt||rt<0?0:+rt,tt.length)===tt}function endsWith(et,tt,rt){return(rt===void 0||rt>et.length)&&(rt=et.length),et.substring(rt-tt.length,rt)===tt}function includes(et,tt,rt){return typeof rt!="number"&&(rt=0),rt+tt.length>et.length?!1:et.indexOf(tt,rt)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(et,tt){return'The value "'+tt+'" is invalid for option "'+et+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(et,tt,rt){var nt;typeof tt=="string"&&startsWith(tt,"not ")?(nt="must not be",tt=tt.replace(/^not /,"")):nt="must be";var it;if(endsWith(et," argument"))it="The ".concat(et," ").concat(nt," ").concat(oneOf(tt,"type"));else{var st=includes(et,".")?"property":"argument";it='The "'.concat(et,'" ').concat(st," ").concat(nt," ").concat(oneOf(tt,"type"))}return it+=". Received type ".concat(typeof rt),it},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,tt,rt){return et.highWaterMark!=null?et.highWaterMark:tt?et[rt]:null}function getHighWaterMark(et,tt,rt,nt){var it=highWaterMarkFrom(tt,nt,rt);if(it!=null){if(!(isFinite(it)&&Math.floor(it)===it)||it<0){var st=nt?rt:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(st,it)}return Math.floor(it)}return et.objectMode?16:16*1024}var state={getHighWaterMark},browser$b=deprecate;function deprecate(et,tt){if(config("noDeprecation"))return et;var rt=!1;function nt(){if(!rt){if(config("throwDeprecation"))throw new Error(tt);config("traceDeprecation")?console.trace(tt):console.warn(tt),rt=!0}return et.apply(this,arguments)}return nt}function config(et){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var tt=commonjsGlobal.localStorage[et];return tt==null?!1:String(tt).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=Ht;function et(Kt){var Qt=this;this.next=null,this.entry=null,this.finish=function(){pr(Qt,Kt)}}var tt;Ht.WritableState=Lt;var rt={deprecate:browser$b},nt=streamBrowser,it=buffer$2.Buffer,st=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function at(Kt){return it.from(Kt)}function ot(Kt){return it.isBuffer(Kt)||Kt instanceof st}var lt=destroy_1,ut=state,dt=ut.getHighWaterMark,bt=errorsBrowser.codes,gt=bt.ERR_INVALID_ARG_TYPE,kt=bt.ERR_METHOD_NOT_IMPLEMENTED,pt=bt.ERR_MULTIPLE_CALLBACK,yt=bt.ERR_STREAM_CANNOT_PIPE,$t=bt.ERR_STREAM_DESTROYED,mt=bt.ERR_STREAM_NULL_VALUES,wt=bt.ERR_STREAM_WRITE_AFTER_END,St=bt.ERR_UNKNOWN_ENCODING,Bt=lt.errorOrDestroy;inherits_browserExports(Ht,nt);function Ft(){}function Lt(Kt,Qt,Zt){tt=tt||require_stream_duplex(),Kt=Kt||{},typeof Zt!="boolean"&&(Zt=Qt instanceof tt),this.objectMode=!!Kt.objectMode,Zt&&(this.objectMode=this.objectMode||!!Kt.writableObjectMode),this.highWaterMark=dt(this,Kt,"writableHighWaterMark",Zt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ur=Kt.decodeStrings===!1;this.decodeStrings=!ur,this.defaultEncoding=Kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_r){Tt(Qt,_r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Kt.emitClose!==!1,this.autoDestroy=!!Kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}Lt.prototype.getBuffer=function(){for(var Qt=this.bufferedRequest,Zt=[];Qt;)Zt.push(Qt),Qt=Qt.next;return Zt},function(){try{Object.defineProperty(Lt.prototype,"buffer",{get:rt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var zt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ht,Symbol.hasInstance,{value:function(Qt){return zt.call(this,Qt)?!0:this!==Ht?!1:Qt&&Qt._writableState instanceof Lt}})):zt=function(Qt){return Qt instanceof this};function Ht(Kt){tt=tt||require_stream_duplex();var Qt=this instanceof tt;if(!Qt&&!zt.call(Ht,this))return new Ht(Kt);this._writableState=new Lt(Kt,this,Qt),this.writable=!0,Kt&&(typeof Kt.write=="function"&&(this._write=Kt.write),typeof Kt.writev=="function"&&(this._writev=Kt.writev),typeof Kt.destroy=="function"&&(this._destroy=Kt.destroy),typeof Kt.final=="function"&&(this._final=Kt.final)),nt.call(this)}Ht.prototype.pipe=function(){Bt(this,new yt)};function Wt(Kt,Qt){var Zt=new wt;Bt(Kt,Zt),process.nextTick(Qt,Zt)}function lr(Kt,Qt,Zt,ur){var _r;return Zt===null?_r=new mt:typeof Zt!="string"&&!Qt.objectMode&&(_r=new gt("chunk",["string","Buffer"],Zt)),_r?(Bt(Kt,_r),process.nextTick(ur,_r),!1):!0}Ht.prototype.write=function(Kt,Qt,Zt){var ur=this._writableState,_r=!1,er=!ur.objectMode&&ot(Kt);return er&&!it.isBuffer(Kt)&&(Kt=at(Kt)),typeof Qt=="function"&&(Zt=Qt,Qt=null),er?Qt="buffer":Qt||(Qt=ur.defaultEncoding),typeof Zt!="function"&&(Zt=Ft),ur.ending?Wt(this,Zt):(er||lr(this,ur,Kt,Zt))&&(ur.pendingcb++,_r=Ot(this,ur,er,Kt,Qt,Zt)),_r},Ht.prototype.cork=function(){this._writableState.corked++},Ht.prototype.uncork=function(){var Kt=this._writableState;Kt.corked&&(Kt.corked--,!Kt.writing&&!Kt.corked&&!Kt.bufferProcessing&&Kt.bufferedRequest&&Pt(this,Kt))},Ht.prototype.setDefaultEncoding=function(Qt){if(typeof Qt=="string"&&(Qt=Qt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qt+"").toLowerCase())>-1))throw new St(Qt);return this._writableState.defaultEncoding=Qt,this},Object.defineProperty(Ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qt(Kt,Qt,Zt){return!Kt.objectMode&&Kt.decodeStrings!==!1&&typeof Qt=="string"&&(Qt=it.from(Qt,Zt)),Qt}Object.defineProperty(Ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ot(Kt,Qt,Zt,ur,_r,er){if(!Zt){var Jt=qt(Qt,ur,_r);ur!==Jt&&(Zt=!0,_r="buffer",ur=Jt)}var Ar=Qt.objectMode?1:ur.length;Qt.length+=Ar;var Er=Qt.length>5===6?2:et>>4===14?3:et>>3===30?4:et>>6===2?-1:-2}function utf8CheckIncomplete(et,tt,rt){var nt=tt.length-1;if(nt=0?(it>0&&(et.lastNeed=it-1),it):--nt=0?(it>0&&(et.lastNeed=it-2),it):--nt=0?(it>0&&(it===2?it=0:et.lastNeed=it-3),it):0))}function utf8CheckExtraBytes(et,tt,rt){if((tt[0]&192)!==128)return et.lastNeed=0,"�";if(et.lastNeed>1&&tt.length>1){if((tt[1]&192)!==128)return et.lastNeed=1,"�";if(et.lastNeed>2&&tt.length>2&&(tt[2]&192)!==128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var tt=this.lastTotal-this.lastNeed,rt=utf8CheckExtraBytes(this,et);if(rt!==void 0)return rt;if(this.lastNeed<=et.length)return et.copy(this.lastChar,tt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,tt,0,et.length),this.lastNeed-=et.length}function utf8Text(et,tt){var rt=utf8CheckIncomplete(this,et,tt);if(!this.lastNeed)return et.toString("utf8",tt);this.lastTotal=rt;var nt=et.length-(rt-this.lastNeed);return et.copy(this.lastChar,0,nt),et.toString("utf8",tt,nt)}function utf8End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+"�":tt}function utf16Text(et,tt){if((et.length-tt)%2===0){var rt=et.toString("utf16le",tt);if(rt){var nt=rt.charCodeAt(rt.length-1);if(nt>=55296&&nt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",tt,et.length-1)}function utf16End(et){var tt=et&&et.length?this.write(et):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return tt+this.lastChar.toString("utf16le",0,rt)}return tt}function base64Text(et,tt){var rt=(et.length-tt)%3;return rt===0?et.toString("base64",tt):(this.lastNeed=3-rt,this.lastTotal=3,rt===1?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",tt,et.length-rt))}function base64End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+this.lastChar.toString("base64",0,3-this.lastNeed):tt}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(et){var tt=!1;return function(){if(!tt){tt=!0;for(var rt=arguments.length,nt=new Array(rt),it=0;it0)if(typeof Jt!="string"&&!Xr.objectMode&&Object.getPrototypeOf(Jt)!==nt.prototype&&(Jt=st(Jt)),Er)Xr.endEmitted?Ft(er,new mt):qt(er,Xr,Jt,!0);else if(Xr.ended)Ft(er,new yt);else{if(Xr.destroyed)return!1;Xr.reading=!1,Xr.decoder&&!Ar?(Jt=Xr.decoder.write(Jt),Xr.objectMode||Jt.length!==0?qt(er,Xr,Jt,!1):Pt(er,Xr)):qt(er,Xr,Jt,!1)}else Er||(Xr.reading=!1,Pt(er,Xr))}return!Xr.ended&&(Xr.length=Mt?er=Mt:(er--,er|=er>>>1,er|=er>>>2,er|=er>>>4,er|=er>>>8,er|=er>>>16,er++),er}function Et(er,Jt){return er<=0||Jt.length===0&&Jt.ended?0:Jt.objectMode?1:er!==er?Jt.flowing&&Jt.length?Jt.buffer.head.data.length:Jt.length:(er>Jt.highWaterMark&&(Jt.highWaterMark=ht(er)),er<=Jt.length?er:Jt.ended?Jt.length:(Jt.needReadable=!0,0))}Wt.prototype.read=function(er){lt("read",er),er=parseInt(er,10);var Jt=this._readableState,Ar=er;if(er!==0&&(Jt.emittedReadable=!1),er===0&&Jt.needReadable&&((Jt.highWaterMark!==0?Jt.length>=Jt.highWaterMark:Jt.length>0)||Jt.ended))return lt("read: emitReadable",Jt.length,Jt.ended),Jt.length===0&&Jt.ended?Zt(this):Rt(this),null;if(er=Et(er,Jt),er===0&&Jt.ended)return Jt.length===0&&Zt(this),null;var Er=Jt.needReadable;lt("need readable",Er),(Jt.length===0||Jt.length-er0?Dr=Qt(er,Jt):Dr=null,Dr===null?(Jt.needReadable=Jt.length<=Jt.highWaterMark,er=0):(Jt.length-=er,Jt.awaitDrain=0),Jt.length===0&&(Jt.ended||(Jt.needReadable=!0),Ar!==er&&Jt.ended&&Zt(this)),Dr!==null&&this.emit("data",Dr),Dr};function Tt(er,Jt){if(lt("onEofChunk"),!Jt.ended){if(Jt.decoder){var Ar=Jt.decoder.end();Ar&&Ar.length&&(Jt.buffer.push(Ar),Jt.length+=Jt.objectMode?1:Ar.length)}Jt.ended=!0,Jt.sync?Rt(er):(Jt.needReadable=!1,Jt.emittedReadable||(Jt.emittedReadable=!0,At(er)))}}function Rt(er){var Jt=er._readableState;lt("emitReadable",Jt.needReadable,Jt.emittedReadable),Jt.needReadable=!1,Jt.emittedReadable||(lt("emitReadable",Jt.flowing),Jt.emittedReadable=!0,process.nextTick(At,er))}function At(er){var Jt=er._readableState;lt("emitReadable_",Jt.destroyed,Jt.length,Jt.ended),!Jt.destroyed&&(Jt.length||Jt.ended)&&(er.emit("readable"),Jt.emittedReadable=!1),Jt.needReadable=!Jt.flowing&&!Jt.ended&&Jt.length<=Jt.highWaterMark,Kt(er)}function Pt(er,Jt){Jt.readingMore||(Jt.readingMore=!0,process.nextTick(It,er,Jt))}function It(er,Jt){for(;!Jt.reading&&!Jt.ended&&(Jt.length1&&_r(Er.pipes,er)!==-1)&&!or&&(lt("false write response, pause",Er.awaitDrain),Er.awaitDrain++),Ar.pause())}function Or(Yt){lt("onerror",Yt),Ir(),er.removeListener("error",Or),tt(er,"error")===0&&Ft(er,Yt)}zt(er,"error",Or);function rr(){er.removeListener("finish",gr),Ir()}er.once("close",rr);function gr(){lt("onfinish"),er.removeListener("close",rr),Ir()}er.once("finish",gr);function Ir(){lt("unpipe"),Ar.unpipe(er)}return er.emit("pipe",Ar),Er.flowing||(lt("pipe resume"),Ar.resume()),er};function Ct(er){return function(){var Ar=er._readableState;lt("pipeOnDrain",Ar.awaitDrain),Ar.awaitDrain&&Ar.awaitDrain--,Ar.awaitDrain===0&&tt(er,"data")&&(Ar.flowing=!0,Kt(er))}}Wt.prototype.unpipe=function(er){var Jt=this._readableState,Ar={hasUnpiped:!1};if(Jt.pipesCount===0)return this;if(Jt.pipesCount===1)return er&&er!==Jt.pipes?this:(er||(er=Jt.pipes),Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1,er&&er.emit("unpipe",this,Ar),this);if(!er){var Er=Jt.pipes,Dr=Jt.pipesCount;Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1;for(var Xr=0;Xr0,Er.flowing!==!1&&this.resume()):er==="readable"&&!Er.endEmitted&&!Er.readableListening&&(Er.readableListening=Er.needReadable=!0,Er.flowing=!1,Er.emittedReadable=!1,lt("on readable",Er.length,Er.reading),Er.length?Rt(this):Er.reading||process.nextTick(Dt,this)),Ar},Wt.prototype.addListener=Wt.prototype.on,Wt.prototype.removeListener=function(er,Jt){var Ar=rt.prototype.removeListener.call(this,er,Jt);return er==="readable"&&process.nextTick(xt,this),Ar},Wt.prototype.removeAllListeners=function(er){var Jt=rt.prototype.removeAllListeners.apply(this,arguments);return(er==="readable"||er===void 0)&&process.nextTick(xt,this),Jt};function xt(er){var Jt=er._readableState;Jt.readableListening=er.listenerCount("readable")>0,Jt.resumeScheduled&&!Jt.paused?Jt.flowing=!0:er.listenerCount("data")>0&&er.resume()}function Dt(er){lt("readable nexttick read 0"),er.read(0)}Wt.prototype.resume=function(){var er=this._readableState;return er.flowing||(lt("resume"),er.flowing=!er.readableListening,tr(this,er)),er.paused=!1,this};function tr(er,Jt){Jt.resumeScheduled||(Jt.resumeScheduled=!0,process.nextTick(pr,er,Jt))}function pr(er,Jt){lt("resume",Jt.reading),Jt.reading||er.read(0),Jt.resumeScheduled=!1,er.emit("resume"),Kt(er),Jt.flowing&&!Jt.reading&&er.read(0)}Wt.prototype.pause=function(){return lt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(lt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Kt(er){var Jt=er._readableState;for(lt("flow",Jt.flowing);Jt.flowing&&er.read()!==null;);}Wt.prototype.wrap=function(er){var Jt=this,Ar=this._readableState,Er=!1;er.on("end",function(){if(lt("wrapped end"),Ar.decoder&&!Ar.ended){var Vr=Ar.decoder.end();Vr&&Vr.length&&Jt.push(Vr)}Jt.push(null)}),er.on("data",function(Vr){if(lt("wrapped data"),Ar.decoder&&(Vr=Ar.decoder.write(Vr)),!(Ar.objectMode&&Vr==null)&&!(!Ar.objectMode&&(!Vr||!Vr.length))){var wr=Jt.push(Vr);wr||(Er=!0,er.pause())}});for(var Dr in er)this[Dr]===void 0&&typeof er[Dr]=="function"&&(this[Dr]=function(wr){return function(){return er[wr].apply(er,arguments)}}(Dr));for(var Xr=0;Xr=Jt.length?(Jt.decoder?Ar=Jt.buffer.join(""):Jt.buffer.length===1?Ar=Jt.buffer.first():Ar=Jt.buffer.concat(Jt.length),Jt.buffer.clear()):Ar=Jt.buffer.consume(er,Jt.decoder),Ar}function Zt(er){var Jt=er._readableState;lt("endReadable",Jt.endEmitted),Jt.endEmitted||(Jt.ended=!0,process.nextTick(ur,Jt,er))}function ur(er,Jt){if(lt("endReadableNT",er.endEmitted,er.length),!er.endEmitted&&er.length===0&&(er.endEmitted=!0,Jt.readable=!1,Jt.emit("end"),er.autoDestroy)){var Ar=Jt._writableState;(!Ar||Ar.autoDestroy&&Ar.finished)&&Jt.destroy()}}typeof Symbol=="function"&&(Wt.from=function(er,Jt){return Bt===void 0&&(Bt=requireFromBrowser()),Bt(Wt,er,Jt)});function _r(er,Jt){for(var Ar=0,Er=er.length;Ar0;return destroyer(at,lt,ut,function(dt){it||(it=dt),dt&&st.forEach(call),!lt&&(st.forEach(call),nt(it))})});return tt.reduce(pipe)}var pipeline_1=pipeline;(function(et,tt){tt=et.exports=require_stream_readable(),tt.Stream=tt,tt.Readable=tt,tt.Writable=require_stream_writable(),tt.Duplex=require_stream_duplex(),tt.Transform=_stream_transform,tt.PassThrough=_stream_passthrough,tt.finished=endOfStream,tt.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,Buffer$F=safeBufferExports.Buffer,Transform$5=readableBrowserExports.Transform,inherits$v=inherits_browserExports;function throwIfNotStringOrBuffer(et,tt){if(!Buffer$F.isBuffer(et)&&typeof et!="string")throw new TypeError(tt+" must be a string or a buffer")}function HashBase$2(et){Transform$5.call(this),this._block=Buffer$F.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$v(HashBase$2,Transform$5);HashBase$2.prototype._transform=function(et,tt,rt){var nt=null;try{this.update(et,tt)}catch(it){nt=it}rt(nt)};HashBase$2.prototype._flush=function(et){var tt=null;try{this.push(this.digest())}catch(rt){tt=rt}et(tt)};HashBase$2.prototype.update=function(et,tt){if(throwIfNotStringOrBuffer(et,"Data"),this._finalized)throw new Error("Digest already called");Buffer$F.isBuffer(et)||(et=Buffer$F.from(et,tt));for(var rt=this._block,nt=0;this._blockOffset+et.length-nt>=this._blockSize;){for(var it=this._blockOffset;it0;++st)this._length[st]+=at,at=this._length[st]/4294967296|0,at>0&&(this._length[st]-=4294967296*at);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(et){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var tt=this._digest();et!==void 0&&(tt=tt.toString(et)),this._block.fill(0),this._blockOffset=0;for(var rt=0;rt<4;++rt)this._length[rt]=0;return tt};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$u=inherits_browserExports,HashBase$1=hashBase,Buffer$E=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$u(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var et=ARRAY16$1,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);var rt=this._a,nt=this._b,it=this._c,st=this._d;rt=fnF(rt,nt,it,st,et[0],3614090360,7),st=fnF(st,rt,nt,it,et[1],3905402710,12),it=fnF(it,st,rt,nt,et[2],606105819,17),nt=fnF(nt,it,st,rt,et[3],3250441966,22),rt=fnF(rt,nt,it,st,et[4],4118548399,7),st=fnF(st,rt,nt,it,et[5],1200080426,12),it=fnF(it,st,rt,nt,et[6],2821735955,17),nt=fnF(nt,it,st,rt,et[7],4249261313,22),rt=fnF(rt,nt,it,st,et[8],1770035416,7),st=fnF(st,rt,nt,it,et[9],2336552879,12),it=fnF(it,st,rt,nt,et[10],4294925233,17),nt=fnF(nt,it,st,rt,et[11],2304563134,22),rt=fnF(rt,nt,it,st,et[12],1804603682,7),st=fnF(st,rt,nt,it,et[13],4254626195,12),it=fnF(it,st,rt,nt,et[14],2792965006,17),nt=fnF(nt,it,st,rt,et[15],1236535329,22),rt=fnG(rt,nt,it,st,et[1],4129170786,5),st=fnG(st,rt,nt,it,et[6],3225465664,9),it=fnG(it,st,rt,nt,et[11],643717713,14),nt=fnG(nt,it,st,rt,et[0],3921069994,20),rt=fnG(rt,nt,it,st,et[5],3593408605,5),st=fnG(st,rt,nt,it,et[10],38016083,9),it=fnG(it,st,rt,nt,et[15],3634488961,14),nt=fnG(nt,it,st,rt,et[4],3889429448,20),rt=fnG(rt,nt,it,st,et[9],568446438,5),st=fnG(st,rt,nt,it,et[14],3275163606,9),it=fnG(it,st,rt,nt,et[3],4107603335,14),nt=fnG(nt,it,st,rt,et[8],1163531501,20),rt=fnG(rt,nt,it,st,et[13],2850285829,5),st=fnG(st,rt,nt,it,et[2],4243563512,9),it=fnG(it,st,rt,nt,et[7],1735328473,14),nt=fnG(nt,it,st,rt,et[12],2368359562,20),rt=fnH(rt,nt,it,st,et[5],4294588738,4),st=fnH(st,rt,nt,it,et[8],2272392833,11),it=fnH(it,st,rt,nt,et[11],1839030562,16),nt=fnH(nt,it,st,rt,et[14],4259657740,23),rt=fnH(rt,nt,it,st,et[1],2763975236,4),st=fnH(st,rt,nt,it,et[4],1272893353,11),it=fnH(it,st,rt,nt,et[7],4139469664,16),nt=fnH(nt,it,st,rt,et[10],3200236656,23),rt=fnH(rt,nt,it,st,et[13],681279174,4),st=fnH(st,rt,nt,it,et[0],3936430074,11),it=fnH(it,st,rt,nt,et[3],3572445317,16),nt=fnH(nt,it,st,rt,et[6],76029189,23),rt=fnH(rt,nt,it,st,et[9],3654602809,4),st=fnH(st,rt,nt,it,et[12],3873151461,11),it=fnH(it,st,rt,nt,et[15],530742520,16),nt=fnH(nt,it,st,rt,et[2],3299628645,23),rt=fnI(rt,nt,it,st,et[0],4096336452,6),st=fnI(st,rt,nt,it,et[7],1126891415,10),it=fnI(it,st,rt,nt,et[14],2878612391,15),nt=fnI(nt,it,st,rt,et[5],4237533241,21),rt=fnI(rt,nt,it,st,et[12],1700485571,6),st=fnI(st,rt,nt,it,et[3],2399980690,10),it=fnI(it,st,rt,nt,et[10],4293915773,15),nt=fnI(nt,it,st,rt,et[1],2240044497,21),rt=fnI(rt,nt,it,st,et[8],1873313359,6),st=fnI(st,rt,nt,it,et[15],4264355552,10),it=fnI(it,st,rt,nt,et[6],2734768916,15),nt=fnI(nt,it,st,rt,et[13],1309151649,21),rt=fnI(rt,nt,it,st,et[4],4149444226,6),st=fnI(st,rt,nt,it,et[11],3174756917,10),it=fnI(it,st,rt,nt,et[2],718787259,15),nt=fnI(nt,it,st,rt,et[9],3951481745,21),this._a=this._a+rt|0,this._b=this._b+nt|0,this._c=this._c+it|0,this._d=this._d+st|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$E.allocUnsafe(16);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et};function rotl$3(et,tt){return et<>>32-tt}function fnF(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&rt|~tt&nt)+it+st|0,at)+tt|0}function fnG(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&nt|rt&~nt)+it+st|0,at)+tt|0}function fnH(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt^rt^nt)+it+st|0,at)+tt|0}function fnI(et,tt,rt,nt,it,st,at){return rotl$3(et+(rt^(tt|~nt))+it+st|0,at)+tt|0}var md5_js=MD5$3,Buffer$D=buffer$2.Buffer,inherits$t=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$t(RIPEMD160$5,HashBase);RIPEMD160$5.prototype._update=function(){for(var et=ARRAY16,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);for(var rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._a|0,lt=this._b|0,ut=this._c|0,dt=this._d|0,bt=this._e|0,gt=0;gt<80;gt+=1){var kt,pt;gt<16?(kt=fn1(rt,nt,it,st,at,et[zl[gt]],hl[0],sl[gt]),pt=fn5(ot,lt,ut,dt,bt,et[zr[gt]],hr[0],sr[gt])):gt<32?(kt=fn2(rt,nt,it,st,at,et[zl[gt]],hl[1],sl[gt]),pt=fn4(ot,lt,ut,dt,bt,et[zr[gt]],hr[1],sr[gt])):gt<48?(kt=fn3(rt,nt,it,st,at,et[zl[gt]],hl[2],sl[gt]),pt=fn3(ot,lt,ut,dt,bt,et[zr[gt]],hr[2],sr[gt])):gt<64?(kt=fn4(rt,nt,it,st,at,et[zl[gt]],hl[3],sl[gt]),pt=fn2(ot,lt,ut,dt,bt,et[zr[gt]],hr[3],sr[gt])):(kt=fn5(rt,nt,it,st,at,et[zl[gt]],hl[4],sl[gt]),pt=fn1(ot,lt,ut,dt,bt,et[zr[gt]],hr[4],sr[gt])),rt=at,at=st,st=rotl$2(it,10),it=nt,nt=kt,ot=bt,bt=dt,dt=rotl$2(ut,10),ut=lt,lt=pt}var yt=this._b+it+dt|0;this._b=this._c+st+bt|0,this._c=this._d+at+ot|0,this._d=this._e+rt+lt|0,this._e=this._a+nt+ut|0,this._a=yt};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$D.alloc?Buffer$D.alloc(20):new Buffer$D(20);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et.writeInt32LE(this._e,16),et};function rotl$2(et,tt){return et<>>32-tt}function fn1(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^rt^nt)+st+at|0,ot)+it|0}function fn2(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&rt|~tt&nt)+st+at|0,ot)+it|0}function fn3(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+((tt|~rt)^nt)+st+at|0,ot)+it|0}function fn4(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&nt|rt&~nt)+st+at|0,ot)+it|0}function fn5(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^(rt|~nt))+st+at|0,ot)+it|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},Buffer$C=safeBufferExports.Buffer;function Hash$9(et,tt){this._block=Buffer$C.alloc(et),this._finalSize=tt,this._blockSize=et,this._len=0}Hash$9.prototype.update=function(et,tt){typeof et=="string"&&(tt=tt||"utf8",et=Buffer$C.from(et,tt));for(var rt=this._block,nt=this._blockSize,it=et.length,st=this._len,at=0;at=this._finalSize&&(this._update(this._block),this._block.fill(0));var rt=this._len*8;if(rt<=4294967295)this._block.writeUInt32BE(rt,this._blockSize-4);else{var nt=(rt&4294967295)>>>0,it=(rt-nt)/4294967296;this._block.writeUInt32BE(it,this._blockSize-8),this._block.writeUInt32BE(nt,this._blockSize-4)}this._update(this._block);var st=this._hash();return et?st.toString(et):st};Hash$9.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$5=Hash$9,inherits$s=inherits_browserExports,Hash$8=hash$5,Buffer$B=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$8.call(this,64,56)}inherits$s(Sha,Hash$8);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(et){return et<<5|et>>>27}function rotl30$1(et){return et<<30|et>>>2}function ft$1(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16];for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5$1(rt)+ft$1(ut,nt,it,st)+at+tt[lt]+K$4[ut]|0;at=st,st=it,it=rotl30$1(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha.prototype._hash=function(){var et=Buffer$B.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha$4=Sha,inherits$r=inherits_browserExports,Hash$7=hash$5,Buffer$A=safeBufferExports.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$7.call(this,64,56)}inherits$r(Sha1,Hash$7);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(et){return et<<1|et>>>31}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=rotl1(tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16]);for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5(rt)+ft(ut,nt,it,st)+at+tt[lt]+K$3[ut]|0;at=st,st=it,it=rotl30(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha1.prototype._hash=function(){var et=Buffer$A.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha1$1=Sha1,inherits$q=inherits_browserExports,Hash$6=hash$5,Buffer$z=safeBufferExports.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$6.call(this,64,56)}inherits$q(Sha256$1,Hash$6);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(et,tt,rt){return rt^et&(tt^rt)}function maj$1(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0$1(et){return(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10)}function sigma1$1(et){return(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7)}function gamma0(et){return(et>>>7|et<<25)^(et>>>18|et<<14)^et>>>3}function gamma1(et){return(et>>>17|et<<15)^(et>>>19|et<<13)^et>>>10}Sha256$1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._f|0,lt=this._g|0,ut=this._h|0,dt=0;dt<16;++dt)tt[dt]=et.readInt32BE(dt*4);for(;dt<64;++dt)tt[dt]=gamma1(tt[dt-2])+tt[dt-7]+gamma0(tt[dt-15])+tt[dt-16]|0;for(var bt=0;bt<64;++bt){var gt=ut+sigma1$1(at)+ch(at,ot,lt)+K$2[bt]+tt[bt]|0,kt=sigma0$1(rt)+maj$1(rt,nt,it)|0;ut=lt,lt=ot,ot=at,at=st+gt|0,st=it,it=nt,nt=rt,rt=gt+kt|0}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0,this._f=ot+this._f|0,this._g=lt+this._g|0,this._h=ut+this._h|0};Sha256$1.prototype._hash=function(){var et=Buffer$z.allocUnsafe(32);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et.writeInt32BE(this._h,28),et};var sha256$4=Sha256$1,inherits$p=inherits_browserExports,Sha256=sha256$4,Hash$5=hash$5,Buffer$y=safeBufferExports.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$5.call(this,64,56)}inherits$p(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var et=Buffer$y.allocUnsafe(28);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et};var sha224$1=Sha224,inherits$o=inherits_browserExports,Hash$4=hash$5,Buffer$x=safeBufferExports.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$4.call(this,128,112)}inherits$o(Sha512,Hash$4);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(et,tt,rt){return rt^et&(tt^rt)}function maj(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0(et,tt){return(et>>>28|tt<<4)^(tt>>>2|et<<30)^(tt>>>7|et<<25)}function sigma1(et,tt){return(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23)}function Gamma0(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^et>>>7}function Gamma0l(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^(et>>>7|tt<<25)}function Gamma1(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^et>>>6}function Gamma1l(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^(et>>>6|tt<<26)}function getCarry(et,tt){return et>>>0>>0?1:0}Sha512.prototype._update=function(et){for(var tt=this._w,rt=this._ah|0,nt=this._bh|0,it=this._ch|0,st=this._dh|0,at=this._eh|0,ot=this._fh|0,lt=this._gh|0,ut=this._hh|0,dt=this._al|0,bt=this._bl|0,gt=this._cl|0,kt=this._dl|0,pt=this._el|0,yt=this._fl|0,$t=this._gl|0,mt=this._hl|0,wt=0;wt<32;wt+=2)tt[wt]=et.readInt32BE(wt*4),tt[wt+1]=et.readInt32BE(wt*4+4);for(;wt<160;wt+=2){var St=tt[wt-30],Bt=tt[wt-15*2+1],Ft=Gamma0(St,Bt),Lt=Gamma0l(Bt,St);St=tt[wt-2*2],Bt=tt[wt-2*2+1];var zt=Gamma1(St,Bt),Ht=Gamma1l(Bt,St),Wt=tt[wt-7*2],lr=tt[wt-7*2+1],qt=tt[wt-16*2],Ot=tt[wt-16*2+1],Mt=Lt+lr|0,ht=Ft+Wt+getCarry(Mt,Lt)|0;Mt=Mt+Ht|0,ht=ht+zt+getCarry(Mt,Ht)|0,Mt=Mt+Ot|0,ht=ht+qt+getCarry(Mt,Ot)|0,tt[wt]=ht,tt[wt+1]=Mt}for(var Et=0;Et<160;Et+=2){ht=tt[Et],Mt=tt[Et+1];var Tt=maj(rt,nt,it),Rt=maj(dt,bt,gt),At=sigma0(rt,dt),Pt=sigma0(dt,rt),It=sigma1(at,pt),Ct=sigma1(pt,at),xt=K$1[Et],Dt=K$1[Et+1],tr=Ch(at,ot,lt),pr=Ch(pt,yt,$t),Kt=mt+Ct|0,Qt=ut+It+getCarry(Kt,mt)|0;Kt=Kt+pr|0,Qt=Qt+tr+getCarry(Kt,pr)|0,Kt=Kt+Dt|0,Qt=Qt+xt+getCarry(Kt,Dt)|0,Kt=Kt+Mt|0,Qt=Qt+ht+getCarry(Kt,Mt)|0;var Zt=Pt+Rt|0,ur=At+Tt+getCarry(Zt,Pt)|0;ut=lt,mt=$t,lt=ot,$t=yt,ot=at,yt=pt,pt=kt+Kt|0,at=st+Qt+getCarry(pt,kt)|0,st=it,kt=gt,it=nt,gt=bt,nt=rt,bt=dt,dt=Kt+Zt|0,rt=Qt+ur+getCarry(dt,Kt)|0}this._al=this._al+dt|0,this._bl=this._bl+bt|0,this._cl=this._cl+gt|0,this._dl=this._dl+kt|0,this._el=this._el+pt|0,this._fl=this._fl+yt|0,this._gl=this._gl+$t|0,this._hl=this._hl+mt|0,this._ah=this._ah+rt+getCarry(this._al,dt)|0,this._bh=this._bh+nt+getCarry(this._bl,bt)|0,this._ch=this._ch+it+getCarry(this._cl,gt)|0,this._dh=this._dh+st+getCarry(this._dl,kt)|0,this._eh=this._eh+at+getCarry(this._el,pt)|0,this._fh=this._fh+ot+getCarry(this._fl,yt)|0,this._gh=this._gh+lt+getCarry(this._gl,$t)|0,this._hh=this._hh+ut+getCarry(this._hl,mt)|0};Sha512.prototype._hash=function(){var et=Buffer$x.allocUnsafe(64);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),tt(this._gh,this._gl,48),tt(this._hh,this._hl,56),et};var sha512$1=Sha512,inherits$n=inherits_browserExports,SHA512$2=sha512$1,Hash$3=hash$5,Buffer$w=safeBufferExports.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$3.call(this,128,112)}inherits$n(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var et=Buffer$w.allocUnsafe(48);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),et};var sha384$1=Sha384,exports$1=sha_js.exports=function(tt){tt=tt.toLowerCase();var rt=exports$1[tt];if(!rt)throw new Error(tt+" is not supported (we accept pull requests)");return new rt};exports$1.sha=sha$4;exports$1.sha1=sha1$1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$4;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$m=inherits_browserExports;inherits$m(Stream,EE);Stream.Readable=require_stream_readable();Stream.Writable=require_stream_writable();Stream.Duplex=require_stream_duplex();Stream.Transform=_stream_transform;Stream.PassThrough=_stream_passthrough;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(et,tt){var rt=this;function nt(dt){et.writable&&et.write(dt)===!1&&rt.pause&&rt.pause()}rt.on("data",nt);function it(){rt.readable&&rt.resume&&rt.resume()}et.on("drain",it),!et._isStdio&&(!tt||tt.end!==!1)&&(rt.on("end",at),rt.on("close",ot));var st=!1;function at(){st||(st=!0,et.end())}function ot(){st||(st=!0,typeof et.destroy=="function"&&et.destroy())}function lt(dt){if(ut(),EE.listenerCount(this,"error")===0)throw dt}rt.on("error",lt),et.on("error",lt);function ut(){rt.removeListener("data",nt),et.removeListener("drain",it),rt.removeListener("end",at),rt.removeListener("close",ot),rt.removeListener("error",lt),et.removeListener("error",lt),rt.removeListener("end",ut),rt.removeListener("close",ut),et.removeListener("close",ut)}return rt.on("end",ut),rt.on("close",ut),et.on("close",ut),et.emit("pipe",rt),et};var Buffer$v=safeBufferExports.Buffer,Transform$4=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$l=inherits_browserExports;function CipherBase$1(et){Transform$4.call(this),this.hashMode=typeof et=="string",this.hashMode?this[et]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$l(CipherBase$1,Transform$4);CipherBase$1.prototype.update=function(et,tt,rt){typeof et=="string"&&(et=Buffer$v.from(et,tt));var nt=this._update(et);return this.hashMode?this:(rt&&(nt=this._toString(nt,rt)),nt)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(et,tt,rt){var nt;try{this.hashMode?this._update(et):this.push(this._update(et))}catch(it){nt=it}finally{rt(nt)}};CipherBase$1.prototype._flush=function(et){var tt;try{this.push(this.__final())}catch(rt){tt=rt}et(tt)};CipherBase$1.prototype._finalOrDigest=function(et){var tt=this.__final()||Buffer$v.alloc(0);return et&&(tt=this._toString(tt,et,!0)),tt};CipherBase$1.prototype._toString=function(et,tt,rt){if(this._decoder||(this._decoder=new StringDecoder(tt),this._encoding=tt),this._encoding!==tt)throw new Error("can't switch encodings");var nt=this._decoder.write(et);return rt&&(nt+=this._decoder.end()),nt};var cipherBase=CipherBase$1,inherits$k=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash$2(et){Base$5.call(this,"digest"),this._hash=et}inherits$k(Hash$2,Base$5);Hash$2.prototype._update=function(et){this._hash.update(et)};Hash$2.prototype._final=function(){return this._hash.digest()};var browser$a=function(tt){return tt=tt.toLowerCase(),tt==="md5"?new MD5$2:tt==="rmd160"||tt==="ripemd160"?new RIPEMD160$4:new Hash$2(sha$3(tt))},inherits$j=inherits_browserExports,Buffer$u=safeBufferExports.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$u.alloc(128),blocksize=64;function Hmac$3(et,tt){Base$4.call(this,"digest"),typeof tt=="string"&&(tt=Buffer$u.from(tt)),this._alg=et,this._key=tt,tt.length>blocksize?tt=et(tt):tt.lengthrt){var nt=et==="rmd160"?new RIPEMD160$3:sha$2(et);tt=nt.update(tt).digest()}else tt.lengthMAX_ALLOC||tt!==tt)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$s=safeBufferExports.Buffer,toBuffer$3=function(et,tt,rt){if(Buffer$s.isBuffer(et))return et;if(typeof et=="string")return Buffer$s.from(et,tt);if(ArrayBuffer.isView(et))return Buffer$s.from(et.buffer);throw new TypeError(rt+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$2=ripemd160$1,sha$1=sha_jsExports,Buffer$r=safeBufferExports.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$2=toBuffer$3,ZEROS=Buffer$r.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(et,tt,rt){var nt=getDigest(et),it=et==="sha512"||et==="sha384"?128:64;tt.length>it?tt=nt(tt):tt.length>>0};utils$p.writeUInt32BE=function(tt,rt,nt){tt[0+nt]=rt>>>24,tt[1+nt]=rt>>>16&255,tt[2+nt]=rt>>>8&255,tt[3+nt]=rt&255};utils$p.ip=function(tt,rt,nt,it){for(var st=0,at=0,ot=6;ot>=0;ot-=2){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>>lt+ot&1}for(var ot=6;ot>=0;ot-=2){for(var lt=1;lt<=25;lt+=8)at<<=1,at|=rt>>>lt+ot&1;for(var lt=1;lt<=25;lt+=8)at<<=1,at|=tt>>>lt+ot&1}nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.rip=function(tt,rt,nt,it){for(var st=0,at=0,ot=0;ot<4;ot++)for(var lt=24;lt>=0;lt-=8)st<<=1,st|=rt>>>lt+ot&1,st<<=1,st|=tt>>>lt+ot&1;for(var ot=4;ot<8;ot++)for(var lt=24;lt>=0;lt-=8)at<<=1,at|=rt>>>lt+ot&1,at<<=1,at|=tt>>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.pc1=function(tt,rt,nt,it){for(var st=0,at=0,ot=7;ot>=5;ot--){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var ot=1;ot<=3;ot++){for(var lt=0;lt<=24;lt+=8)at<<=1,at|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.r28shl=function(tt,rt){return tt<>>28-rt};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$p.pc2=function(tt,rt,nt,it){for(var st=0,at=0,ot=pc2table.length>>>1,lt=0;lt>>pc2table[lt]&1;for(var lt=ot;lt>>pc2table[lt]&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.expand=function(tt,rt,nt){var it=0,st=0;it=(tt&1)<<5|tt>>>27;for(var at=23;at>=15;at-=4)it<<=6,it|=tt>>>at&63;for(var at=11;at>=3;at-=4)st|=tt>>>at&63,st<<=6;st|=(tt&31)<<1|tt>>>31,rt[nt+0]=it>>>0,rt[nt+1]=st>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$p.substitute=function(tt,rt){for(var nt=0,it=0;it<4;it++){var st=tt>>>18-it*6&63,at=sTable[it*64+st];nt<<=4,nt|=at}for(var it=0;it<4;it++){var st=rt>>>18-it*6&63,at=sTable[4*64+it*64+st];nt<<=4,nt|=at}return nt>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$p.permute=function(tt){for(var rt=0,nt=0;nt>>permuteTable[nt]&1;return rt>>>0};utils$p.padSplit=function(tt,rt,nt){for(var it=tt.toString(2);it.length0;it--)rt+=this._buffer(tt,rt),nt+=this._flushBuffer(st,nt);return rt+=this._buffer(tt,rt),st};Cipher$3.prototype.final=function(tt){var rt;tt&&(rt=this.update(tt));var nt;return this.type==="encrypt"?nt=this._finalEncrypt():nt=this._finalDecrypt(),rt?rt.concat(nt):nt};Cipher$3.prototype._pad=function(tt,rt){if(rt===0)return!1;for(;rt>>1];nt=utils$o.r28shl(nt,at),it=utils$o.r28shl(it,at),utils$o.pc2(nt,it,tt.keys,st)}};DES$3.prototype._update=function(tt,rt,nt,it){var st=this._desState,at=utils$o.readUInt32BE(tt,rt),ot=utils$o.readUInt32BE(tt,rt+4);utils$o.ip(at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],this.type==="encrypt"?this._encrypt(st,at,ot,st.tmp,0):this._decrypt(st,at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],utils$o.writeUInt32BE(nt,at,it),utils$o.writeUInt32BE(nt,ot,it+4)};DES$3.prototype._pad=function(tt,rt){if(this.padding===!1)return!1;for(var nt=tt.length-rt,it=rt;it>>0,at=kt}utils$o.rip(ot,at,it,st)};DES$3.prototype._decrypt=function(tt,rt,nt,it,st){for(var at=nt,ot=rt,lt=tt.keys.length-2;lt>=0;lt-=2){var ut=tt.keys[lt],dt=tt.keys[lt+1];utils$o.expand(at,tt.tmp,0),ut^=tt.tmp[0],dt^=tt.tmp[1];var bt=utils$o.substitute(ut,dt),gt=utils$o.permute(bt),kt=at;at=(ot^gt)>>>0,ot=kt}utils$o.rip(at,ot,it,st)};var cbc$1={},assert$k=minimalisticAssert,inherits$g=inherits_browserExports,proto={};function CBCState(et){assert$k.equal(et.length,8,"Invalid IV length"),this.iv=new Array(8);for(var tt=0;tt>it%8,et._prev=shiftIn(et._prev,rt?ot:lt);return at}function shiftIn(et,tt){var rt=et.length,nt=-1,it=Buffer$m.allocUnsafe(et.length);for(et=Buffer$m.concat([et,Buffer$m.from([tt])]);++nt>7;return it}cfb1.encrypt=function(et,tt,rt){for(var nt=tt.length,it=Buffer$m.allocUnsafe(nt),st=-1;++st>>24]^at[dt>>>16&255]^ot[bt>>>8&255]^lt[gt&255]^tt[mt++],pt=st[dt>>>24]^at[bt>>>16&255]^ot[gt>>>8&255]^lt[ut&255]^tt[mt++],yt=st[bt>>>24]^at[gt>>>16&255]^ot[ut>>>8&255]^lt[dt&255]^tt[mt++],$t=st[gt>>>24]^at[ut>>>16&255]^ot[dt>>>8&255]^lt[bt&255]^tt[mt++],ut=kt,dt=pt,bt=yt,gt=$t;return kt=(nt[ut>>>24]<<24|nt[dt>>>16&255]<<16|nt[bt>>>8&255]<<8|nt[gt&255])^tt[mt++],pt=(nt[dt>>>24]<<24|nt[bt>>>16&255]<<16|nt[gt>>>8&255]<<8|nt[ut&255])^tt[mt++],yt=(nt[bt>>>24]<<24|nt[gt>>>16&255]<<16|nt[ut>>>8&255]<<8|nt[dt&255])^tt[mt++],$t=(nt[gt>>>24]<<24|nt[ut>>>16&255]<<16|nt[dt>>>8&255]<<8|nt[bt&255])^tt[mt++],kt=kt>>>0,pt=pt>>>0,yt=yt>>>0,$t=$t>>>0,[kt,pt,yt,$t]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var et=new Array(256),tt=0;tt<256;tt++)tt<128?et[tt]=tt<<1:et[tt]=tt<<1^283;for(var rt=[],nt=[],it=[[],[],[],[]],st=[[],[],[],[]],at=0,ot=0,lt=0;lt<256;++lt){var ut=ot^ot<<1^ot<<2^ot<<3^ot<<4;ut=ut>>>8^ut&255^99,rt[at]=ut,nt[ut]=at;var dt=et[at],bt=et[dt],gt=et[bt],kt=et[ut]*257^ut*16843008;it[0][at]=kt<<24|kt>>>8,it[1][at]=kt<<16|kt>>>16,it[2][at]=kt<<8|kt>>>24,it[3][at]=kt,kt=gt*16843009^bt*65537^dt*257^at*16843008,st[0][ut]=kt<<24|kt>>>8,st[1][ut]=kt<<16|kt>>>16,st[2][ut]=kt<<8|kt>>>24,st[3][ut]=kt,at===0?at=ot=1:(at=dt^et[et[et[gt^dt]]],ot^=et[et[ot]])}return{SBOX:rt,INV_SBOX:nt,SUB_MIX:it,INV_SUB_MIX:st}}();function AES(et){this._key=asUInt32Array(et),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var et=this._key,tt=et.length,rt=tt+6,nt=(rt+1)*4,it=[],st=0;st>>24,at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255],at^=RCON[st/tt|0]<<24):tt>6&&st%tt===4&&(at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255]),it[st]=it[st-tt]^at}for(var ot=[],lt=0;lt>>24]]^G.INV_SUB_MIX[1][G.SBOX[dt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[dt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[dt&255]]}this._nRounds=rt,this._keySchedule=it,this._invKeySchedule=ot};AES.prototype.encryptBlockRaw=function(et){return et=asUInt32Array(et),cryptBlock(et,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(et){var tt=this.encryptBlockRaw(et),rt=Buffer$k.allocUnsafe(16);return rt.writeUInt32BE(tt[0],0),rt.writeUInt32BE(tt[1],4),rt.writeUInt32BE(tt[2],8),rt.writeUInt32BE(tt[3],12),rt};AES.prototype.decryptBlock=function(et){et=asUInt32Array(et);var tt=et[1];et[1]=et[3],et[3]=tt;var rt=cryptBlock(et,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),nt=Buffer$k.allocUnsafe(16);return nt.writeUInt32BE(rt[0],0),nt.writeUInt32BE(rt[3],4),nt.writeUInt32BE(rt[2],8),nt.writeUInt32BE(rt[1],12),nt};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$j=safeBufferExports.Buffer,ZEROES=Buffer$j.alloc(16,0);function toArray$2(et){return[et.readUInt32BE(0),et.readUInt32BE(4),et.readUInt32BE(8),et.readUInt32BE(12)]}function fromArray(et){var tt=Buffer$j.allocUnsafe(16);return tt.writeUInt32BE(et[0]>>>0,0),tt.writeUInt32BE(et[1]>>>0,4),tt.writeUInt32BE(et[2]>>>0,8),tt.writeUInt32BE(et[3]>>>0,12),tt}function GHASH$1(et){this.h=et,this.state=Buffer$j.alloc(16,0),this.cache=Buffer$j.allocUnsafe(0)}GHASH$1.prototype.ghash=function(et){for(var tt=-1;++tt0;rt--)et[rt]=et[rt]>>>1|(et[rt-1]&1)<<31;et[0]=et[0]>>>1,it&&(et[0]=et[0]^225<<24)}this.state=fromArray(tt)};GHASH$1.prototype.update=function(et){this.cache=Buffer$j.concat([this.cache,et]);for(var tt;this.cache.length>=16;)tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(tt)};GHASH$1.prototype.final=function(et,tt){return this.cache.length&&this.ghash(Buffer$j.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,et,0,tt])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$i=safeBufferExports.Buffer,Transform$3=cipherBase,inherits$d=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(et,tt){var rt=0;et.length!==tt.length&&rt++;for(var nt=Math.min(et.length,tt.length),it=0;it0||nt>0;){var lt=new MD5;lt.update(ot),lt.update(et),tt&<.update(tt),ot=lt.digest();var ut=0;if(it>0){var dt=st.length-it;ut=Math.min(it,ot.length),ot.copy(st,dt,0,ut),it-=ut}if(ut0){var bt=at.length-nt,gt=Math.min(nt,ot.length-ut);ot.copy(at,bt,ut,ut+gt),nt-=gt}}return ot.fill(0),{key:st,iv:at}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$f=safeBufferExports.Buffer,StreamCipher$1=streamCipher,Transform$1=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$b=inherits_browserExports;function Cipher(et,tt,rt){Transform$1.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(tt),this._prev=Buffer$f.from(rt),this._mode=et,this._autopadding=!0}inherits$b(Cipher,Transform$1);Cipher.prototype._update=function(et){this._cache.add(et);for(var tt,rt,nt=[];tt=this._cache.get();)rt=this._mode.encrypt(this,tt),nt.push(rt);return Buffer$f.concat(nt)};var PADDING=Buffer$f.alloc(16,16);Cipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return et=this._mode.encrypt(this,et),this._cipher.scrub(),et;if(!et.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this};function Splitter$1(){this.cache=Buffer$f.allocUnsafe(0)}Splitter$1.prototype.add=function(et){this.cache=Buffer$f.concat([this.cache,et])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var et=this.cache.slice(0,16);return this.cache=this.cache.slice(16),et}return null};Splitter$1.prototype.flush=function(){for(var et=16-this.cache.length,tt=Buffer$f.allocUnsafe(et),rt=-1;++rt16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt}else if(this.cache.length>=16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(et){var tt=et[15];if(tt<1||tt>16)throw new Error("unable to decrypt data");for(var rt=-1;++rt0?Ot:Mt},st.min=function(Ot,Mt){return Ot.cmp(Mt)<0?Ot:Mt},st.prototype._init=function(Ot,Mt,ht){if(typeof Ot=="number")return this._initNumber(Ot,Mt,ht);if(typeof Ot=="object")return this._initArray(Ot,Mt,ht);Mt==="hex"&&(Mt=16),nt(Mt===(Mt|0)&&Mt>=2&&Mt<=36),Ot=Ot.toString().replace(/\s+/g,"");var Et=0;Ot[0]==="-"&&(Et++,this.negative=1),Et=0;Et-=3)Rt=Ot[Et]|Ot[Et-1]<<8|Ot[Et-2]<<16,this.words[Tt]|=Rt<>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);else if(ht==="le")for(Et=0,Tt=0;Et>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);return this.strip()};function ot(qt,Ot){var Mt=qt.charCodeAt(Ot);return Mt>=65&&Mt<=70?Mt-55:Mt>=97&&Mt<=102?Mt-87:Mt-48&15}function lt(qt,Ot,Mt){var ht=ot(qt,Mt);return Mt-1>=Ot&&(ht|=ot(qt,Mt-1)<<4),ht}st.prototype._parseHex=function(Ot,Mt,ht){this.length=Math.ceil((Ot.length-Mt)/6),this.words=new Array(this.length);for(var Et=0;Et=Mt;Et-=2)At=lt(Ot,Mt,Et)<=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8;else{var Pt=Ot.length-Mt;for(Et=Pt%2===0?Mt+1:Mt;Et=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8}this.strip()};function ut(qt,Ot,Mt,ht){for(var Et=0,Tt=Math.min(qt.length,Mt),Rt=Ot;Rt=49?Et+=At-49+10:At>=17?Et+=At-17+10:Et+=At}return Et}st.prototype._parseBase=function(Ot,Mt,ht){this.words=[0],this.length=1;for(var Et=0,Tt=1;Tt<=67108863;Tt*=Mt)Et++;Et--,Tt=Tt/Mt|0;for(var Rt=Ot.length-ht,At=Rt%Et,Pt=Math.min(Rt,Rt-At)+ht,It=0,Ct=ht;Ct1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},st.prototype.inspect=function(){return(this.red?""};var dt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],bt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(Ot,Mt){Ot=Ot||10,Mt=Mt|0||1;var ht;if(Ot===16||Ot==="hex"){ht="";for(var Et=0,Tt=0,Rt=0;Rt>>24-Et&16777215,Tt!==0||Rt!==this.length-1?ht=dt[6-Pt.length]+Pt+ht:ht=Pt+ht,Et+=2,Et>=26&&(Et-=26,Rt--)}for(Tt!==0&&(ht=Tt.toString(16)+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}if(Ot===(Ot|0)&&Ot>=2&&Ot<=36){var It=bt[Ot],Ct=gt[Ot];ht="";var xt=this.clone();for(xt.negative=0;!xt.isZero();){var Dt=xt.modn(Ct).toString(Ot);xt=xt.idivn(Ct),xt.isZero()?ht=Dt+ht:ht=dt[It-Dt.length]+Dt+ht}for(this.isZero()&&(ht="0"+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var Ot=this.words[0];return this.length===2?Ot+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Ot+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Ot:Ot},st.prototype.toJSON=function(){return this.toString(16)},st.prototype.toBuffer=function(Ot,Mt){return nt(typeof at<"u"),this.toArrayLike(at,Ot,Mt)},st.prototype.toArray=function(Ot,Mt){return this.toArrayLike(Array,Ot,Mt)},st.prototype.toArrayLike=function(Ot,Mt,ht){var Et=this.byteLength(),Tt=ht||Math.max(1,Et);nt(Et<=Tt,"byte array longer than desired length"),nt(Tt>0,"Requested array length <= 0"),this.strip();var Rt=Mt==="le",At=new Ot(Tt),Pt,It,Ct=this.clone();if(Rt){for(It=0;!Ct.isZero();It++)Pt=Ct.andln(255),Ct.iushrn(8),At[It]=Pt;for(;It=4096&&(ht+=13,Mt>>>=13),Mt>=64&&(ht+=7,Mt>>>=7),Mt>=8&&(ht+=4,Mt>>>=4),Mt>=2&&(ht+=2,Mt>>>=2),ht+Mt},st.prototype._zeroBits=function(Ot){if(Ot===0)return 26;var Mt=Ot,ht=0;return Mt&8191||(ht+=13,Mt>>>=13),Mt&127||(ht+=7,Mt>>>=7),Mt&15||(ht+=4,Mt>>>=4),Mt&3||(ht+=2,Mt>>>=2),Mt&1||ht++,ht},st.prototype.bitLength=function(){var Ot=this.words[this.length-1],Mt=this._countBits(Ot);return(this.length-1)*26+Mt};function kt(qt){for(var Ot=new Array(qt.bitLength()),Mt=0;Mt>>Et}return Ot}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Ot=0,Mt=0;MtOt.length?this.clone().ior(Ot):Ot.clone().ior(this)},st.prototype.uor=function(Ot){return this.length>Ot.length?this.clone().iuor(Ot):Ot.clone().iuor(this)},st.prototype.iuand=function(Ot){var Mt;this.length>Ot.length?Mt=Ot:Mt=this;for(var ht=0;htOt.length?this.clone().iand(Ot):Ot.clone().iand(this)},st.prototype.uand=function(Ot){return this.length>Ot.length?this.clone().iuand(Ot):Ot.clone().iuand(this)},st.prototype.iuxor=function(Ot){var Mt,ht;this.length>Ot.length?(Mt=this,ht=Ot):(Mt=Ot,ht=this);for(var Et=0;EtOt.length?this.clone().ixor(Ot):Ot.clone().ixor(this)},st.prototype.uxor=function(Ot){return this.length>Ot.length?this.clone().iuxor(Ot):Ot.clone().iuxor(this)},st.prototype.inotn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Math.ceil(Ot/26)|0,ht=Ot%26;this._expand(Mt),ht>0&&Mt--;for(var Et=0;Et0&&(this.words[Et]=~this.words[Et]&67108863>>26-ht),this.strip()},st.prototype.notn=function(Ot){return this.clone().inotn(Ot)},st.prototype.setn=function(Ot,Mt){nt(typeof Ot=="number"&&Ot>=0);var ht=Ot/26|0,Et=Ot%26;return this._expand(ht+1),Mt?this.words[ht]=this.words[ht]|1<Ot.length?(ht=this,Et=Ot):(ht=Ot,Et=this);for(var Tt=0,Rt=0;Rt>>26;for(;Tt!==0&&Rt>>26;if(this.length=ht.length,Tt!==0)this.words[this.length]=Tt,this.length++;else if(ht!==this)for(;RtOt.length?this.clone().iadd(Ot):Ot.clone().iadd(this)},st.prototype.isub=function(Ot){if(Ot.negative!==0){Ot.negative=0;var Mt=this.iadd(Ot);return Ot.negative=1,Mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Ot),this.negative=1,this._normSign();var ht=this.cmp(Ot);if(ht===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Et,Tt;ht>0?(Et=this,Tt=Ot):(Et=Ot,Tt=this);for(var Rt=0,At=0;At>26,this.words[At]=Mt&67108863;for(;Rt!==0&&At>26,this.words[At]=Mt&67108863;if(Rt===0&&At>>26,xt=Pt&67108863,Dt=Math.min(It,Ot.length-1),tr=Math.max(0,It-qt.length+1);tr<=Dt;tr++){var pr=It-tr|0;Et=qt.words[pr]|0,Tt=Ot.words[tr]|0,Rt=Et*Tt+xt,Ct+=Rt/67108864|0,xt=Rt&67108863}Mt.words[It]=xt|0,Pt=Ct|0}return Pt!==0?Mt.words[It]=Pt|0:Mt.length--,Mt.strip()}var yt=function(Ot,Mt,ht){var Et=Ot.words,Tt=Mt.words,Rt=ht.words,At=0,Pt,It,Ct,xt=Et[0]|0,Dt=xt&8191,tr=xt>>>13,pr=Et[1]|0,Kt=pr&8191,Qt=pr>>>13,Zt=Et[2]|0,ur=Zt&8191,_r=Zt>>>13,er=Et[3]|0,Jt=er&8191,Ar=er>>>13,Er=Et[4]|0,Dr=Er&8191,Xr=Er>>>13,Vr=Et[5]|0,wr=Vr&8191,br=Vr>>>13,or=Et[6]|0,xr=or&8191,Pr=or>>>13,Or=Et[7]|0,rr=Or&8191,gr=Or>>>13,Ir=Et[8]|0,Yt=Ir&8191,Ut=Ir>>>13,Vt=Et[9]|0,ir=Vt&8191,kr=Vt>>>13,$r=Tt[0]|0,Br=$r&8191,an=$r>>>13,ln=Tt[1]|0,rn=ln&8191,kn=ln>>>13,fn=Tt[2]|0,gn=fn&8191,fs=fn>>>13,Ln=Tt[3]|0,En=Ln&8191,hs=Ln>>>13,Cn=Tt[4]|0,xn=Cn&8191,is=Cn>>>13,Fn=Tt[5]|0,_n=Fn&8191,ls=Fn>>>13,jn=Tt[6]|0,dn=jn&8191,cs=jn>>>13,Xt=Tt[7]|0,ar=Xt&8191,cr=Xt>>>13,jt=Tt[8]|0,dr=jt&8191,Rr=jt>>>13,Cr=Tt[9]|0,Nr=Cr&8191,Yr=Cr>>>13;ht.negative=Ot.negative^Mt.negative,ht.length=19,Pt=Math.imul(Dt,Br),It=Math.imul(Dt,an),It=It+Math.imul(tr,Br)|0,Ct=Math.imul(tr,an);var tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(tn>>>26)|0,tn&=67108863,Pt=Math.imul(Kt,Br),It=Math.imul(Kt,an),It=It+Math.imul(Qt,Br)|0,Ct=Math.imul(Qt,an),Pt=Pt+Math.imul(Dt,rn)|0,It=It+Math.imul(Dt,kn)|0,It=It+Math.imul(tr,rn)|0,Ct=Ct+Math.imul(tr,kn)|0;var qr=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(qr>>>26)|0,qr&=67108863,Pt=Math.imul(ur,Br),It=Math.imul(ur,an),It=It+Math.imul(_r,Br)|0,Ct=Math.imul(_r,an),Pt=Pt+Math.imul(Kt,rn)|0,It=It+Math.imul(Kt,kn)|0,It=It+Math.imul(Qt,rn)|0,Ct=Ct+Math.imul(Qt,kn)|0,Pt=Pt+Math.imul(Dt,gn)|0,It=It+Math.imul(Dt,fs)|0,It=It+Math.imul(tr,gn)|0,Ct=Ct+Math.imul(tr,fs)|0;var Vn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Pt=Math.imul(Jt,Br),It=Math.imul(Jt,an),It=It+Math.imul(Ar,Br)|0,Ct=Math.imul(Ar,an),Pt=Pt+Math.imul(ur,rn)|0,It=It+Math.imul(ur,kn)|0,It=It+Math.imul(_r,rn)|0,Ct=Ct+Math.imul(_r,kn)|0,Pt=Pt+Math.imul(Kt,gn)|0,It=It+Math.imul(Kt,fs)|0,It=It+Math.imul(Qt,gn)|0,Ct=Ct+Math.imul(Qt,fs)|0,Pt=Pt+Math.imul(Dt,En)|0,It=It+Math.imul(Dt,hs)|0,It=It+Math.imul(tr,En)|0,Ct=Ct+Math.imul(tr,hs)|0;var hn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(hn>>>26)|0,hn&=67108863,Pt=Math.imul(Dr,Br),It=Math.imul(Dr,an),It=It+Math.imul(Xr,Br)|0,Ct=Math.imul(Xr,an),Pt=Pt+Math.imul(Jt,rn)|0,It=It+Math.imul(Jt,kn)|0,It=It+Math.imul(Ar,rn)|0,Ct=Ct+Math.imul(Ar,kn)|0,Pt=Pt+Math.imul(ur,gn)|0,It=It+Math.imul(ur,fs)|0,It=It+Math.imul(_r,gn)|0,Ct=Ct+Math.imul(_r,fs)|0,Pt=Pt+Math.imul(Kt,En)|0,It=It+Math.imul(Kt,hs)|0,It=It+Math.imul(Qt,En)|0,Ct=Ct+Math.imul(Qt,hs)|0,Pt=Pt+Math.imul(Dt,xn)|0,It=It+Math.imul(Dt,is)|0,It=It+Math.imul(tr,xn)|0,Ct=Ct+Math.imul(tr,is)|0;var Tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Pt=Math.imul(wr,Br),It=Math.imul(wr,an),It=It+Math.imul(br,Br)|0,Ct=Math.imul(br,an),Pt=Pt+Math.imul(Dr,rn)|0,It=It+Math.imul(Dr,kn)|0,It=It+Math.imul(Xr,rn)|0,Ct=Ct+Math.imul(Xr,kn)|0,Pt=Pt+Math.imul(Jt,gn)|0,It=It+Math.imul(Jt,fs)|0,It=It+Math.imul(Ar,gn)|0,Ct=Ct+Math.imul(Ar,fs)|0,Pt=Pt+Math.imul(ur,En)|0,It=It+Math.imul(ur,hs)|0,It=It+Math.imul(_r,En)|0,Ct=Ct+Math.imul(_r,hs)|0,Pt=Pt+Math.imul(Kt,xn)|0,It=It+Math.imul(Kt,is)|0,It=It+Math.imul(Qt,xn)|0,Ct=Ct+Math.imul(Qt,is)|0,Pt=Pt+Math.imul(Dt,_n)|0,It=It+Math.imul(Dt,ls)|0,It=It+Math.imul(tr,_n)|0,Ct=Ct+Math.imul(tr,ls)|0;var An=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(An>>>26)|0,An&=67108863,Pt=Math.imul(xr,Br),It=Math.imul(xr,an),It=It+Math.imul(Pr,Br)|0,Ct=Math.imul(Pr,an),Pt=Pt+Math.imul(wr,rn)|0,It=It+Math.imul(wr,kn)|0,It=It+Math.imul(br,rn)|0,Ct=Ct+Math.imul(br,kn)|0,Pt=Pt+Math.imul(Dr,gn)|0,It=It+Math.imul(Dr,fs)|0,It=It+Math.imul(Xr,gn)|0,Ct=Ct+Math.imul(Xr,fs)|0,Pt=Pt+Math.imul(Jt,En)|0,It=It+Math.imul(Jt,hs)|0,It=It+Math.imul(Ar,En)|0,Ct=Ct+Math.imul(Ar,hs)|0,Pt=Pt+Math.imul(ur,xn)|0,It=It+Math.imul(ur,is)|0,It=It+Math.imul(_r,xn)|0,Ct=Ct+Math.imul(_r,is)|0,Pt=Pt+Math.imul(Kt,_n)|0,It=It+Math.imul(Kt,ls)|0,It=It+Math.imul(Qt,_n)|0,Ct=Ct+Math.imul(Qt,ls)|0,Pt=Pt+Math.imul(Dt,dn)|0,It=It+Math.imul(Dt,cs)|0,It=It+Math.imul(tr,dn)|0,Ct=Ct+Math.imul(tr,cs)|0;var Rn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Pt=Math.imul(rr,Br),It=Math.imul(rr,an),It=It+Math.imul(gr,Br)|0,Ct=Math.imul(gr,an),Pt=Pt+Math.imul(xr,rn)|0,It=It+Math.imul(xr,kn)|0,It=It+Math.imul(Pr,rn)|0,Ct=Ct+Math.imul(Pr,kn)|0,Pt=Pt+Math.imul(wr,gn)|0,It=It+Math.imul(wr,fs)|0,It=It+Math.imul(br,gn)|0,Ct=Ct+Math.imul(br,fs)|0,Pt=Pt+Math.imul(Dr,En)|0,It=It+Math.imul(Dr,hs)|0,It=It+Math.imul(Xr,En)|0,Ct=Ct+Math.imul(Xr,hs)|0,Pt=Pt+Math.imul(Jt,xn)|0,It=It+Math.imul(Jt,is)|0,It=It+Math.imul(Ar,xn)|0,Ct=Ct+Math.imul(Ar,is)|0,Pt=Pt+Math.imul(ur,_n)|0,It=It+Math.imul(ur,ls)|0,It=It+Math.imul(_r,_n)|0,Ct=Ct+Math.imul(_r,ls)|0,Pt=Pt+Math.imul(Kt,dn)|0,It=It+Math.imul(Kt,cs)|0,It=It+Math.imul(Qt,dn)|0,Ct=Ct+Math.imul(Qt,cs)|0,Pt=Pt+Math.imul(Dt,ar)|0,It=It+Math.imul(Dt,cr)|0,It=It+Math.imul(tr,ar)|0,Ct=Ct+Math.imul(tr,cr)|0;var Pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Pt=Math.imul(Yt,Br),It=Math.imul(Yt,an),It=It+Math.imul(Ut,Br)|0,Ct=Math.imul(Ut,an),Pt=Pt+Math.imul(rr,rn)|0,It=It+Math.imul(rr,kn)|0,It=It+Math.imul(gr,rn)|0,Ct=Ct+Math.imul(gr,kn)|0,Pt=Pt+Math.imul(xr,gn)|0,It=It+Math.imul(xr,fs)|0,It=It+Math.imul(Pr,gn)|0,Ct=Ct+Math.imul(Pr,fs)|0,Pt=Pt+Math.imul(wr,En)|0,It=It+Math.imul(wr,hs)|0,It=It+Math.imul(br,En)|0,Ct=Ct+Math.imul(br,hs)|0,Pt=Pt+Math.imul(Dr,xn)|0,It=It+Math.imul(Dr,is)|0,It=It+Math.imul(Xr,xn)|0,Ct=Ct+Math.imul(Xr,is)|0,Pt=Pt+Math.imul(Jt,_n)|0,It=It+Math.imul(Jt,ls)|0,It=It+Math.imul(Ar,_n)|0,Ct=Ct+Math.imul(Ar,ls)|0,Pt=Pt+Math.imul(ur,dn)|0,It=It+Math.imul(ur,cs)|0,It=It+Math.imul(_r,dn)|0,Ct=Ct+Math.imul(_r,cs)|0,Pt=Pt+Math.imul(Kt,ar)|0,It=It+Math.imul(Kt,cr)|0,It=It+Math.imul(Qt,ar)|0,Ct=Ct+Math.imul(Qt,cr)|0,Pt=Pt+Math.imul(Dt,dr)|0,It=It+Math.imul(Dt,Rr)|0,It=It+Math.imul(tr,dr)|0,Ct=Ct+Math.imul(tr,Rr)|0;var In=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(In>>>26)|0,In&=67108863,Pt=Math.imul(ir,Br),It=Math.imul(ir,an),It=It+Math.imul(kr,Br)|0,Ct=Math.imul(kr,an),Pt=Pt+Math.imul(Yt,rn)|0,It=It+Math.imul(Yt,kn)|0,It=It+Math.imul(Ut,rn)|0,Ct=Ct+Math.imul(Ut,kn)|0,Pt=Pt+Math.imul(rr,gn)|0,It=It+Math.imul(rr,fs)|0,It=It+Math.imul(gr,gn)|0,Ct=Ct+Math.imul(gr,fs)|0,Pt=Pt+Math.imul(xr,En)|0,It=It+Math.imul(xr,hs)|0,It=It+Math.imul(Pr,En)|0,Ct=Ct+Math.imul(Pr,hs)|0,Pt=Pt+Math.imul(wr,xn)|0,It=It+Math.imul(wr,is)|0,It=It+Math.imul(br,xn)|0,Ct=Ct+Math.imul(br,is)|0,Pt=Pt+Math.imul(Dr,_n)|0,It=It+Math.imul(Dr,ls)|0,It=It+Math.imul(Xr,_n)|0,Ct=Ct+Math.imul(Xr,ls)|0,Pt=Pt+Math.imul(Jt,dn)|0,It=It+Math.imul(Jt,cs)|0,It=It+Math.imul(Ar,dn)|0,Ct=Ct+Math.imul(Ar,cs)|0,Pt=Pt+Math.imul(ur,ar)|0,It=It+Math.imul(ur,cr)|0,It=It+Math.imul(_r,ar)|0,Ct=Ct+Math.imul(_r,cr)|0,Pt=Pt+Math.imul(Kt,dr)|0,It=It+Math.imul(Kt,Rr)|0,It=It+Math.imul(Qt,dr)|0,Ct=Ct+Math.imul(Qt,Rr)|0,Pt=Pt+Math.imul(Dt,Nr)|0,It=It+Math.imul(Dt,Yr)|0,It=It+Math.imul(tr,Nr)|0,Ct=Ct+Math.imul(tr,Yr)|0;var $n=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+($n>>>26)|0,$n&=67108863,Pt=Math.imul(ir,rn),It=Math.imul(ir,kn),It=It+Math.imul(kr,rn)|0,Ct=Math.imul(kr,kn),Pt=Pt+Math.imul(Yt,gn)|0,It=It+Math.imul(Yt,fs)|0,It=It+Math.imul(Ut,gn)|0,Ct=Ct+Math.imul(Ut,fs)|0,Pt=Pt+Math.imul(rr,En)|0,It=It+Math.imul(rr,hs)|0,It=It+Math.imul(gr,En)|0,Ct=Ct+Math.imul(gr,hs)|0,Pt=Pt+Math.imul(xr,xn)|0,It=It+Math.imul(xr,is)|0,It=It+Math.imul(Pr,xn)|0,Ct=Ct+Math.imul(Pr,is)|0,Pt=Pt+Math.imul(wr,_n)|0,It=It+Math.imul(wr,ls)|0,It=It+Math.imul(br,_n)|0,Ct=Ct+Math.imul(br,ls)|0,Pt=Pt+Math.imul(Dr,dn)|0,It=It+Math.imul(Dr,cs)|0,It=It+Math.imul(Xr,dn)|0,Ct=Ct+Math.imul(Xr,cs)|0,Pt=Pt+Math.imul(Jt,ar)|0,It=It+Math.imul(Jt,cr)|0,It=It+Math.imul(Ar,ar)|0,Ct=Ct+Math.imul(Ar,cr)|0,Pt=Pt+Math.imul(ur,dr)|0,It=It+Math.imul(ur,Rr)|0,It=It+Math.imul(_r,dr)|0,Ct=Ct+Math.imul(_r,Rr)|0,Pt=Pt+Math.imul(Kt,Nr)|0,It=It+Math.imul(Kt,Yr)|0,It=It+Math.imul(Qt,Nr)|0,Ct=Ct+Math.imul(Qt,Yr)|0;var Bn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Pt=Math.imul(ir,gn),It=Math.imul(ir,fs),It=It+Math.imul(kr,gn)|0,Ct=Math.imul(kr,fs),Pt=Pt+Math.imul(Yt,En)|0,It=It+Math.imul(Yt,hs)|0,It=It+Math.imul(Ut,En)|0,Ct=Ct+Math.imul(Ut,hs)|0,Pt=Pt+Math.imul(rr,xn)|0,It=It+Math.imul(rr,is)|0,It=It+Math.imul(gr,xn)|0,Ct=Ct+Math.imul(gr,is)|0,Pt=Pt+Math.imul(xr,_n)|0,It=It+Math.imul(xr,ls)|0,It=It+Math.imul(Pr,_n)|0,Ct=Ct+Math.imul(Pr,ls)|0,Pt=Pt+Math.imul(wr,dn)|0,It=It+Math.imul(wr,cs)|0,It=It+Math.imul(br,dn)|0,Ct=Ct+Math.imul(br,cs)|0,Pt=Pt+Math.imul(Dr,ar)|0,It=It+Math.imul(Dr,cr)|0,It=It+Math.imul(Xr,ar)|0,Ct=Ct+Math.imul(Xr,cr)|0,Pt=Pt+Math.imul(Jt,dr)|0,It=It+Math.imul(Jt,Rr)|0,It=It+Math.imul(Ar,dr)|0,Ct=Ct+Math.imul(Ar,Rr)|0,Pt=Pt+Math.imul(ur,Nr)|0,It=It+Math.imul(ur,Yr)|0,It=It+Math.imul(_r,Nr)|0,Ct=Ct+Math.imul(_r,Yr)|0;var pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(pn>>>26)|0,pn&=67108863,Pt=Math.imul(ir,En),It=Math.imul(ir,hs),It=It+Math.imul(kr,En)|0,Ct=Math.imul(kr,hs),Pt=Pt+Math.imul(Yt,xn)|0,It=It+Math.imul(Yt,is)|0,It=It+Math.imul(Ut,xn)|0,Ct=Ct+Math.imul(Ut,is)|0,Pt=Pt+Math.imul(rr,_n)|0,It=It+Math.imul(rr,ls)|0,It=It+Math.imul(gr,_n)|0,Ct=Ct+Math.imul(gr,ls)|0,Pt=Pt+Math.imul(xr,dn)|0,It=It+Math.imul(xr,cs)|0,It=It+Math.imul(Pr,dn)|0,Ct=Ct+Math.imul(Pr,cs)|0,Pt=Pt+Math.imul(wr,ar)|0,It=It+Math.imul(wr,cr)|0,It=It+Math.imul(br,ar)|0,Ct=Ct+Math.imul(br,cr)|0,Pt=Pt+Math.imul(Dr,dr)|0,It=It+Math.imul(Dr,Rr)|0,It=It+Math.imul(Xr,dr)|0,Ct=Ct+Math.imul(Xr,Rr)|0,Pt=Pt+Math.imul(Jt,Nr)|0,It=It+Math.imul(Jt,Yr)|0,It=It+Math.imul(Ar,Nr)|0,Ct=Ct+Math.imul(Ar,Yr)|0;var wn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(wn>>>26)|0,wn&=67108863,Pt=Math.imul(ir,xn),It=Math.imul(ir,is),It=It+Math.imul(kr,xn)|0,Ct=Math.imul(kr,is),Pt=Pt+Math.imul(Yt,_n)|0,It=It+Math.imul(Yt,ls)|0,It=It+Math.imul(Ut,_n)|0,Ct=Ct+Math.imul(Ut,ls)|0,Pt=Pt+Math.imul(rr,dn)|0,It=It+Math.imul(rr,cs)|0,It=It+Math.imul(gr,dn)|0,Ct=Ct+Math.imul(gr,cs)|0,Pt=Pt+Math.imul(xr,ar)|0,It=It+Math.imul(xr,cr)|0,It=It+Math.imul(Pr,ar)|0,Ct=Ct+Math.imul(Pr,cr)|0,Pt=Pt+Math.imul(wr,dr)|0,It=It+Math.imul(wr,Rr)|0,It=It+Math.imul(br,dr)|0,Ct=Ct+Math.imul(br,Rr)|0,Pt=Pt+Math.imul(Dr,Nr)|0,It=It+Math.imul(Dr,Yr)|0,It=It+Math.imul(Xr,Nr)|0,Ct=Ct+Math.imul(Xr,Yr)|0;var un=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(un>>>26)|0,un&=67108863,Pt=Math.imul(ir,_n),It=Math.imul(ir,ls),It=It+Math.imul(kr,_n)|0,Ct=Math.imul(kr,ls),Pt=Pt+Math.imul(Yt,dn)|0,It=It+Math.imul(Yt,cs)|0,It=It+Math.imul(Ut,dn)|0,Ct=Ct+Math.imul(Ut,cs)|0,Pt=Pt+Math.imul(rr,ar)|0,It=It+Math.imul(rr,cr)|0,It=It+Math.imul(gr,ar)|0,Ct=Ct+Math.imul(gr,cr)|0,Pt=Pt+Math.imul(xr,dr)|0,It=It+Math.imul(xr,Rr)|0,It=It+Math.imul(Pr,dr)|0,Ct=Ct+Math.imul(Pr,Rr)|0,Pt=Pt+Math.imul(wr,Nr)|0,It=It+Math.imul(wr,Yr)|0,It=It+Math.imul(br,Nr)|0,Ct=Ct+Math.imul(br,Yr)|0;var yn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(yn>>>26)|0,yn&=67108863,Pt=Math.imul(ir,dn),It=Math.imul(ir,cs),It=It+Math.imul(kr,dn)|0,Ct=Math.imul(kr,cs),Pt=Pt+Math.imul(Yt,ar)|0,It=It+Math.imul(Yt,cr)|0,It=It+Math.imul(Ut,ar)|0,Ct=Ct+Math.imul(Ut,cr)|0,Pt=Pt+Math.imul(rr,dr)|0,It=It+Math.imul(rr,Rr)|0,It=It+Math.imul(gr,dr)|0,Ct=Ct+Math.imul(gr,Rr)|0,Pt=Pt+Math.imul(xr,Nr)|0,It=It+Math.imul(xr,Yr)|0,It=It+Math.imul(Pr,Nr)|0,Ct=Ct+Math.imul(Pr,Yr)|0;var mn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(mn>>>26)|0,mn&=67108863,Pt=Math.imul(ir,ar),It=Math.imul(ir,cr),It=It+Math.imul(kr,ar)|0,Ct=Math.imul(kr,cr),Pt=Pt+Math.imul(Yt,dr)|0,It=It+Math.imul(Yt,Rr)|0,It=It+Math.imul(Ut,dr)|0,Ct=Ct+Math.imul(Ut,Rr)|0,Pt=Pt+Math.imul(rr,Nr)|0,It=It+Math.imul(rr,Yr)|0,It=It+Math.imul(gr,Nr)|0,Ct=Ct+Math.imul(gr,Yr)|0;var cn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(cn>>>26)|0,cn&=67108863,Pt=Math.imul(ir,dr),It=Math.imul(ir,Rr),It=It+Math.imul(kr,dr)|0,Ct=Math.imul(kr,Rr),Pt=Pt+Math.imul(Yt,Nr)|0,It=It+Math.imul(Yt,Yr)|0,It=It+Math.imul(Ut,Nr)|0,Ct=Ct+Math.imul(Ut,Yr)|0;var Ur=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Pt=Math.imul(ir,Nr),It=Math.imul(ir,Yr),It=It+Math.imul(kr,Nr)|0,Ct=Math.imul(kr,Yr);var jr=(At+Pt|0)+((It&8191)<<13)|0;return At=(Ct+(It>>>13)|0)+(jr>>>26)|0,jr&=67108863,Rt[0]=tn,Rt[1]=qr,Rt[2]=Vn,Rt[3]=hn,Rt[4]=Tn,Rt[5]=An,Rt[6]=Rn,Rt[7]=Pn,Rt[8]=In,Rt[9]=$n,Rt[10]=Bn,Rt[11]=pn,Rt[12]=wn,Rt[13]=un,Rt[14]=yn,Rt[15]=mn,Rt[16]=cn,Rt[17]=Ur,Rt[18]=jr,At!==0&&(Rt[19]=At,ht.length++),ht};Math.imul||(yt=pt);function $t(qt,Ot,Mt){Mt.negative=Ot.negative^qt.negative,Mt.length=qt.length+Ot.length;for(var ht=0,Et=0,Tt=0;Tt>>26)|0,Et+=Rt>>>26,Rt&=67108863}Mt.words[Tt]=At,ht=Rt,Rt=Et}return ht!==0?Mt.words[Tt]=ht:Mt.length--,Mt.strip()}function mt(qt,Ot,Mt){var ht=new wt;return ht.mulp(qt,Ot,Mt)}st.prototype.mulTo=function(Ot,Mt){var ht,Et=this.length+Ot.length;return this.length===10&&Ot.length===10?ht=yt(this,Ot,Mt):Et<63?ht=pt(this,Ot,Mt):Et<1024?ht=$t(this,Ot,Mt):ht=mt(this,Ot,Mt),ht};function wt(qt,Ot){this.x=qt,this.y=Ot}wt.prototype.makeRBT=function(Ot){for(var Mt=new Array(Ot),ht=st.prototype._countBits(Ot)-1,Et=0;Et>=1;return Et},wt.prototype.permute=function(Ot,Mt,ht,Et,Tt,Rt){for(var At=0;At>>1)Tt++;return 1<>>13,ht[2*Rt+1]=Tt&8191,Tt=Tt>>>13;for(Rt=2*Mt;Rt>=26,Mt+=Et/67108864|0,Mt+=Tt>>>26,this.words[ht]=Tt&67108863}return Mt!==0&&(this.words[ht]=Mt,this.length++),this},st.prototype.muln=function(Ot){return this.clone().imuln(Ot)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(Ot){var Mt=kt(Ot);if(Mt.length===0)return new st(1);for(var ht=this,Et=0;Et=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=67108863>>>26-Mt<<26-Mt,Tt;if(Mt!==0){var Rt=0;for(Tt=0;Tt>>26-Mt}Rt&&(this.words[Tt]=Rt,this.length++)}if(ht!==0){for(Tt=this.length-1;Tt>=0;Tt--)this.words[Tt+ht]=this.words[Tt];for(Tt=0;Tt=0);var Et;Mt?Et=(Mt-Mt%26)/26:Et=0;var Tt=Ot%26,Rt=Math.min((Ot-Tt)/26,this.length),At=67108863^67108863>>>Tt<Rt)for(this.length-=Rt,It=0;It=0&&(Ct!==0||It>=Et);It--){var xt=this.words[It]|0;this.words[It]=Ct<<26-Tt|xt>>>Tt,Ct=xt&At}return Pt&&Ct!==0&&(Pt.words[Pt.length++]=Ct),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},st.prototype.ishrn=function(Ot,Mt,ht){return nt(this.negative===0),this.iushrn(Ot,Mt,ht)},st.prototype.shln=function(Ot){return this.clone().ishln(Ot)},st.prototype.ushln=function(Ot){return this.clone().iushln(Ot)},st.prototype.shrn=function(Ot){return this.clone().ishrn(Ot)},st.prototype.ushrn=function(Ot){return this.clone().iushrn(Ot)},st.prototype.testn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<=0);var Mt=Ot%26,ht=(Ot-Mt)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=ht)return this;if(Mt!==0&&ht++,this.length=Math.min(ht,this.length),Mt!==0){var Et=67108863^67108863>>>Mt<=67108864;Mt++)this.words[Mt]-=67108864,Mt===this.length-1?this.words[Mt+1]=1:this.words[Mt+1]++;return this.length=Math.max(this.length,Mt+1),this},st.prototype.isubn=function(Ot){if(nt(typeof Ot=="number"),nt(Ot<67108864),Ot<0)return this.iaddn(-Ot);if(this.negative!==0)return this.negative=0,this.iaddn(Ot),this.negative=1,this;if(this.words[0]-=Ot,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Mt=0;Mt>26)-(Pt/67108864|0),this.words[Tt+ht]=Rt&67108863}for(;Tt>26,this.words[Tt+ht]=Rt&67108863;if(At===0)return this.strip();for(nt(At===-1),At=0,Tt=0;Tt>26,this.words[Tt]=Rt&67108863;return this.negative=1,this.strip()},st.prototype._wordDiv=function(Ot,Mt){var ht=this.length-Ot.length,Et=this.clone(),Tt=Ot,Rt=Tt.words[Tt.length-1]|0,At=this._countBits(Rt);ht=26-At,ht!==0&&(Tt=Tt.ushln(ht),Et.iushln(ht),Rt=Tt.words[Tt.length-1]|0);var Pt=Et.length-Tt.length,It;if(Mt!=="mod"){It=new st(null),It.length=Pt+1,It.words=new Array(It.length);for(var Ct=0;Ct=0;Dt--){var tr=(Et.words[Tt.length+Dt]|0)*67108864+(Et.words[Tt.length+Dt-1]|0);for(tr=Math.min(tr/Rt|0,67108863),Et._ishlnsubmul(Tt,tr,Dt);Et.negative!==0;)tr--,Et.negative=0,Et._ishlnsubmul(Tt,1,Dt),Et.isZero()||(Et.negative^=1);It&&(It.words[Dt]=tr)}return It&&It.strip(),Et.strip(),Mt!=="div"&&ht!==0&&Et.iushrn(ht),{div:It||null,mod:Et}},st.prototype.divmod=function(Ot,Mt,ht){if(nt(!Ot.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Et,Tt,Rt;return this.negative!==0&&Ot.negative===0?(Rt=this.neg().divmod(Ot,Mt),Mt!=="mod"&&(Et=Rt.div.neg()),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.iadd(Ot)),{div:Et,mod:Tt}):this.negative===0&&Ot.negative!==0?(Rt=this.divmod(Ot.neg(),Mt),Mt!=="mod"&&(Et=Rt.div.neg()),{div:Et,mod:Rt.mod}):this.negative&Ot.negative?(Rt=this.neg().divmod(Ot.neg(),Mt),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.isub(Ot)),{div:Rt.div,mod:Tt}):Ot.length>this.length||this.cmp(Ot)<0?{div:new st(0),mod:this}:Ot.length===1?Mt==="div"?{div:this.divn(Ot.words[0]),mod:null}:Mt==="mod"?{div:null,mod:new st(this.modn(Ot.words[0]))}:{div:this.divn(Ot.words[0]),mod:new st(this.modn(Ot.words[0]))}:this._wordDiv(Ot,Mt)},st.prototype.div=function(Ot){return this.divmod(Ot,"div",!1).div},st.prototype.mod=function(Ot){return this.divmod(Ot,"mod",!1).mod},st.prototype.umod=function(Ot){return this.divmod(Ot,"mod",!0).mod},st.prototype.divRound=function(Ot){var Mt=this.divmod(Ot);if(Mt.mod.isZero())return Mt.div;var ht=Mt.div.negative!==0?Mt.mod.isub(Ot):Mt.mod,Et=Ot.ushrn(1),Tt=Ot.andln(1),Rt=ht.cmp(Et);return Rt<0||Tt===1&&Rt===0?Mt.div:Mt.div.negative!==0?Mt.div.isubn(1):Mt.div.iaddn(1)},st.prototype.modn=function(Ot){nt(Ot<=67108863);for(var Mt=(1<<26)%Ot,ht=0,Et=this.length-1;Et>=0;Et--)ht=(Mt*ht+(this.words[Et]|0))%Ot;return ht},st.prototype.idivn=function(Ot){nt(Ot<=67108863);for(var Mt=0,ht=this.length-1;ht>=0;ht--){var Et=(this.words[ht]|0)+Mt*67108864;this.words[ht]=Et/Ot|0,Mt=Et%Ot}return this.strip()},st.prototype.divn=function(Ot){return this.clone().idivn(Ot)},st.prototype.egcd=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=new st(0),At=new st(1),Pt=0;Mt.isEven()&&ht.isEven();)Mt.iushrn(1),ht.iushrn(1),++Pt;for(var It=ht.clone(),Ct=Mt.clone();!Mt.isZero();){for(var xt=0,Dt=1;!(Mt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Mt.iushrn(xt);xt-- >0;)(Et.isOdd()||Tt.isOdd())&&(Et.iadd(It),Tt.isub(Ct)),Et.iushrn(1),Tt.iushrn(1);for(var tr=0,pr=1;!(ht.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(ht.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(It),At.isub(Ct)),Rt.iushrn(1),At.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Rt),Tt.isub(At)):(ht.isub(Mt),Rt.isub(Et),At.isub(Tt))}return{a:Rt,b:At,gcd:ht.iushln(Pt)}},st.prototype._invmp=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=ht.clone();Mt.cmpn(1)>0&&ht.cmpn(1)>0;){for(var At=0,Pt=1;!(Mt.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(Mt.iushrn(At);At-- >0;)Et.isOdd()&&Et.iadd(Rt),Et.iushrn(1);for(var It=0,Ct=1;!(ht.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(ht.iushrn(It);It-- >0;)Tt.isOdd()&&Tt.iadd(Rt),Tt.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Tt)):(ht.isub(Mt),Tt.isub(Et))}var xt;return Mt.cmpn(1)===0?xt=Et:xt=Tt,xt.cmpn(0)<0&&xt.iadd(Ot),xt},st.prototype.gcd=function(Ot){if(this.isZero())return Ot.abs();if(Ot.isZero())return this.abs();var Mt=this.clone(),ht=Ot.clone();Mt.negative=0,ht.negative=0;for(var Et=0;Mt.isEven()&&ht.isEven();Et++)Mt.iushrn(1),ht.iushrn(1);do{for(;Mt.isEven();)Mt.iushrn(1);for(;ht.isEven();)ht.iushrn(1);var Tt=Mt.cmp(ht);if(Tt<0){var Rt=Mt;Mt=ht,ht=Rt}else if(Tt===0||ht.cmpn(1)===0)break;Mt.isub(ht)}while(!0);return ht.iushln(Et)},st.prototype.invm=function(Ot){return this.egcd(Ot).a.umod(Ot)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(Ot){return this.words[0]&Ot},st.prototype.bincn=function(Ot){nt(typeof Ot=="number");var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<>>26,At&=67108863,this.words[Rt]=At}return Tt!==0&&(this.words[Rt]=Tt,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(Ot){var Mt=Ot<0;if(this.negative!==0&&!Mt)return-1;if(this.negative===0&&Mt)return 1;this.strip();var ht;if(this.length>1)ht=1;else{Mt&&(Ot=-Ot),nt(Ot<=67108863,"Number is too big");var Et=this.words[0]|0;ht=Et===Ot?0:EtOt.length)return 1;if(this.length=0;ht--){var Et=this.words[ht]|0,Tt=Ot.words[ht]|0;if(Et!==Tt){EtTt&&(Mt=1);break}}return Mt},st.prototype.gtn=function(Ot){return this.cmpn(Ot)===1},st.prototype.gt=function(Ot){return this.cmp(Ot)===1},st.prototype.gten=function(Ot){return this.cmpn(Ot)>=0},st.prototype.gte=function(Ot){return this.cmp(Ot)>=0},st.prototype.ltn=function(Ot){return this.cmpn(Ot)===-1},st.prototype.lt=function(Ot){return this.cmp(Ot)===-1},st.prototype.lten=function(Ot){return this.cmpn(Ot)<=0},st.prototype.lte=function(Ot){return this.cmp(Ot)<=0},st.prototype.eqn=function(Ot){return this.cmpn(Ot)===0},st.prototype.eq=function(Ot){return this.cmp(Ot)===0},st.red=function(Ot){return new Wt(Ot)},st.prototype.toRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Ot.convertTo(this)._forceRed(Ot)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(Ot){return this.red=Ot,this},st.prototype.forceRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Ot)},st.prototype.redAdd=function(Ot){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Ot)},st.prototype.redIAdd=function(Ot){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Ot)},st.prototype.redSub=function(Ot){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Ot)},st.prototype.redISub=function(Ot){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Ot)},st.prototype.redShl=function(Ot){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Ot)},st.prototype.redMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.mul(this,Ot)},st.prototype.redIMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.imul(this,Ot)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(Ot){return nt(this.red&&!Ot.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Ot)};var St={k256:null,p224:null,p192:null,p25519:null};function Bt(qt,Ot){this.name=qt,this.p=new st(Ot,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Bt.prototype._tmp=function(){var Ot=new st(null);return Ot.words=new Array(Math.ceil(this.n/13)),Ot},Bt.prototype.ireduce=function(Ot){var Mt=Ot,ht;do this.split(Mt,this.tmp),Mt=this.imulK(Mt),Mt=Mt.iadd(this.tmp),ht=Mt.bitLength();while(ht>this.n);var Et=ht0?Mt.isub(this.p):Mt.strip!==void 0?Mt.strip():Mt._strip(),Mt},Bt.prototype.split=function(Ot,Mt){Ot.iushrn(this.n,0,Mt)},Bt.prototype.imulK=function(Ot){return Ot.imul(this.k)};function Ft(){Bt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(Ft,Bt),Ft.prototype.split=function(Ot,Mt){for(var ht=4194303,Et=Math.min(Ot.length,9),Tt=0;Tt>>22,Rt=At}Rt>>>=22,Ot.words[Tt-10]=Rt,Rt===0&&Ot.length>10?Ot.length-=10:Ot.length-=9},Ft.prototype.imulK=function(Ot){Ot.words[Ot.length]=0,Ot.words[Ot.length+1]=0,Ot.length+=2;for(var Mt=0,ht=0;ht>>=26,Ot.words[ht]=Tt,Mt=Et}return Mt!==0&&(Ot.words[Ot.length++]=Mt),Ot},st._prime=function(Ot){if(St[Ot])return St[Ot];var Mt;if(Ot==="k256")Mt=new Ft;else if(Ot==="p224")Mt=new Lt;else if(Ot==="p192")Mt=new zt;else if(Ot==="p25519")Mt=new Ht;else throw new Error("Unknown prime "+Ot);return St[Ot]=Mt,Mt};function Wt(qt){if(typeof qt=="string"){var Ot=st._prime(qt);this.m=Ot.p,this.prime=Ot}else nt(qt.gtn(1),"modulus must be greater than 1"),this.m=qt,this.prime=null}Wt.prototype._verify1=function(Ot){nt(Ot.negative===0,"red works only with positives"),nt(Ot.red,"red works only with red numbers")},Wt.prototype._verify2=function(Ot,Mt){nt((Ot.negative|Mt.negative)===0,"red works only with positives"),nt(Ot.red&&Ot.red===Mt.red,"red works only with red numbers")},Wt.prototype.imod=function(Ot){return this.prime?this.prime.ireduce(Ot)._forceRed(this):Ot.umod(this.m)._forceRed(this)},Wt.prototype.neg=function(Ot){return Ot.isZero()?Ot.clone():this.m.sub(Ot)._forceRed(this)},Wt.prototype.add=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.add(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht._forceRed(this)},Wt.prototype.iadd=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.iadd(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht},Wt.prototype.sub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.sub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht._forceRed(this)},Wt.prototype.isub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.isub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht},Wt.prototype.shl=function(Ot,Mt){return this._verify1(Ot),this.imod(Ot.ushln(Mt))},Wt.prototype.imul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.imul(Mt))},Wt.prototype.mul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.mul(Mt))},Wt.prototype.isqr=function(Ot){return this.imul(Ot,Ot.clone())},Wt.prototype.sqr=function(Ot){return this.mul(Ot,Ot)},Wt.prototype.sqrt=function(Ot){if(Ot.isZero())return Ot.clone();var Mt=this.m.andln(3);if(nt(Mt%2===1),Mt===3){var ht=this.m.add(new st(1)).iushrn(2);return this.pow(Ot,ht)}for(var Et=this.m.subn(1),Tt=0;!Et.isZero()&&Et.andln(1)===0;)Tt++,Et.iushrn(1);nt(!Et.isZero());var Rt=new st(1).toRed(this),At=Rt.redNeg(),Pt=this.m.subn(1).iushrn(1),It=this.m.bitLength();for(It=new st(2*It*It).toRed(this);this.pow(It,Pt).cmp(At)!==0;)It.redIAdd(At);for(var Ct=this.pow(It,Et),xt=this.pow(Ot,Et.addn(1).iushrn(1)),Dt=this.pow(Ot,Et),tr=Tt;Dt.cmp(Rt)!==0;){for(var pr=Dt,Kt=0;pr.cmp(Rt)!==0;Kt++)pr=pr.redSqr();nt(Kt=0;Tt--){for(var Ct=Mt.words[Tt],xt=It-1;xt>=0;xt--){var Dt=Ct>>xt&1;if(Rt!==Et[0]&&(Rt=this.sqr(Rt)),Dt===0&&At===0){Pt=0;continue}At<<=1,At|=Dt,Pt++,!(Pt!==ht&&(Tt!==0||xt!==0))&&(Rt=this.mul(Rt,Et[At]),Pt=0,At=0)}It=26}return Rt},Wt.prototype.convertTo=function(Ot){var Mt=Ot.umod(this.m);return Mt===Ot?Mt.clone():Mt},Wt.prototype.convertFrom=function(Ot){var Mt=Ot.clone();return Mt.red=null,Mt},st.mont=function(Ot){return new lr(Ot)};function lr(qt){Wt.call(this,qt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(lr,Wt),lr.prototype.convertTo=function(Ot){return this.imod(Ot.ushln(this.shift))},lr.prototype.convertFrom=function(Ot){var Mt=this.imod(Ot.mul(this.rinv));return Mt.red=null,Mt},lr.prototype.imul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return Ot.words[0]=0,Ot.length=1,Ot;var ht=Ot.imul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.mul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return new st(0)._forceRed(this);var ht=Ot.mul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.invm=function(Ot){var Mt=this.imod(Ot._invmp(this.m).mul(this.r2));return Mt._forceRed(this)}})(et,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var et;brorand.exports=function(it){return et||(et=new tt(null)),et.generate(it)};function tt(nt){this.rand=nt}if(brorand.exports.Rand=tt,tt.prototype.generate=function(it){return this._rand(it)},tt.prototype._rand=function(it){if(this.rand.getBytes)return this.rand.getBytes(it);for(var st=new Uint8Array(it),at=0;at=0);return ot},rt.prototype._randrange=function(it,st){var at=st.sub(it);return it.add(this._randbelow(at))},rt.prototype.test=function(it,st,at){var ot=it.bitLength(),lt=et.mont(it),ut=new et(1).toRed(lt);st||(st=Math.max(1,ot/48|0));for(var dt=it.subn(1),bt=0;!dt.testn(bt);bt++);for(var gt=it.shrn(bt),kt=dt.toRed(lt),pt=!0;st>0;st--){var yt=this._randrange(new et(2),dt);at&&at(yt);var $t=yt.toRed(lt).redPow(gt);if(!($t.cmp(ut)===0||$t.cmp(kt)===0)){for(var mt=1;mt0;st--){var kt=this._randrange(new et(2),ut),pt=it.gcd(kt);if(pt.cmpn(1)!==0)return pt;var yt=kt.toRed(ot).redPow(bt);if(!(yt.cmp(lt)===0||yt.cmp(gt)===0)){for(var $t=1;$tmt;)St.ishrn(1);if(St.isEven()&&St.iadd(st),St.testn(1)||St.iadd(at),wt.cmp(at)){if(!wt.cmp(ot))for(;St.mod(lt).cmp(ut);)St.iadd(bt)}else for(;St.mod(rt).cmp(dt);)St.iadd(bt);if(Bt=St.shrn(1),pt(Bt)&&pt(St)&&yt(Bt)&&yt(St)&&it.test(Bt)&&it.test(St))return St}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var et=bnExports$2,tt=requireMr(),rt=new tt,nt=new et(24),it=new et(11),st=new et(10),at=new et(3),ot=new et(7),lt=requireGeneratePrime(),ut=browserExports;dh=pt;function dt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._pub=new et($t),this}function bt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._priv=new et($t),this}var gt={};function kt($t,mt){var wt=mt.toString("hex"),St=[wt,$t.toString(16)].join("_");if(St in gt)return gt[St];var Bt=0;if($t.isEven()||!lt.simpleSieve||!lt.fermatTest($t)||!rt.test($t))return Bt+=1,wt==="02"||wt==="05"?Bt+=8:Bt+=4,gt[St]=Bt,Bt;rt.test($t.shrn(1))||(Bt+=2);var Ft;switch(wt){case"02":$t.mod(nt).cmp(it)&&(Bt+=8);break;case"05":Ft=$t.mod(st),Ft.cmp(at)&&Ft.cmp(ot)&&(Bt+=8);break;default:Bt+=4}return gt[St]=Bt,Bt}function pt($t,mt,wt){this.setGenerator(mt),this.__prime=new et($t),this._prime=et.mont(this.__prime),this._primeLen=$t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,wt?(this.setPublicKey=dt,this.setPrivateKey=bt):this._primeCode=8}Object.defineProperty(pt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=kt(this.__prime,this.__gen)),this._primeCode}}),pt.prototype.generateKeys=function(){return this._priv||(this._priv=new et(ut(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},pt.prototype.computeSecret=function($t){$t=new et($t),$t=$t.toRed(this._prime);var mt=$t.redPow(this._priv).fromRed(),wt=new Buffer(mt.toArray()),St=this.getPrime();if(wt.length0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Dt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Dt).toString(ht);tr=tr.idivn(Dt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Dt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Dt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Dt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Dt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Dt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Dt=Dt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Dt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Dt=Dt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Dt=Dt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Dt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Dt=Dt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Dt=Dt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Dt=Dt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Dt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Dt=Dt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Dt=Dt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Dt=Dt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Dt=Dt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Dt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Dt=Dt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Dt=Dt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Dt=Dt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Dt=Dt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Dt=Dt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Dt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Dt=Dt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Dt=Dt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Dt=Dt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Dt=Dt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Dt=Dt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Dt=Dt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Dt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Dt=Dt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Dt=Dt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Dt=Dt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Dt=Dt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Dt=Dt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Dt=Dt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Dt=Dt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Dt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Dt=Dt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Dt=Dt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Dt=Dt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Dt=Dt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Dt=Dt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Dt=Dt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Dt=Dt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Dt=Dt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Dt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Dt=Dt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Dt=Dt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Dt=Dt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Dt=Dt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Dt=Dt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Dt=Dt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Dt=Dt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Dt=Dt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Dt=Dt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Dt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Dt=Dt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Dt=Dt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Dt=Dt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Dt=Dt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Dt=Dt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Dt=Dt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Dt=Dt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Dt=Dt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Dt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Dt=Dt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Dt=Dt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Dt=Dt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Dt=Dt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Dt=Dt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Dt=Dt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Dt=Dt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Dt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Dt=Dt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Dt=Dt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Dt=Dt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Dt=Dt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Dt=Dt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Dt=Dt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Dt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Dt=Dt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Dt=Dt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Dt=Dt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Dt=Dt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Dt=Dt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Dt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Dt=Dt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Dt=Dt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Dt=Dt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Dt=Dt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Dt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Dt=Dt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Dt=Dt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Dt=Dt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Dt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Dt=Dt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Dt=Dt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Dt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Dt=Dt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Dt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Dt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Dt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Dt<<26-At|tr>>>At,Dt=tr&It}return Ct&&Dt!==0&&(Ct.words[Ct.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Dt=0;Dt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Dt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Dt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Dt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Dt=1;!(Tt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Lt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Lt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Lt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Lt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Lt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Dt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Dt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Dt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,BN$c=bnExports$1,randomBytes$1=browserExports;function blind(et){var tt=getr(et),rt=tt.toRed(BN$c.mont(et.modulus)).redPow(new BN$c(et.publicExponent)).fromRed();return{blinder:rt,unblinder:tt.invm(et.modulus)}}function getr(et){var tt=et.modulus.byteLength(),rt;do rt=new BN$c(randomBytes$1(tt));while(rt.cmp(et.modulus)>=0||!rt.umod(et.prime1)||!rt.umod(et.prime2));return rt}function crt$2(et,tt){var rt=blind(tt),nt=tt.modulus.byteLength(),it=new BN$c(et).mul(rt.blinder).umod(tt.modulus),st=it.toRed(BN$c.mont(tt.prime1)),at=it.toRed(BN$c.mont(tt.prime2)),ot=tt.coefficient,lt=tt.prime1,ut=tt.prime2,dt=st.redPow(tt.exponent1).fromRed(),bt=at.redPow(tt.exponent2).fromRed(),gt=dt.isub(bt).imul(ot).umod(lt).imul(ut);return bt.iadd(gt).imul(rt.unblinder).umod(tt.modulus).toArrayLike(Buffer,"be",nt)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$2={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$n={},utils$m={};(function(et){var tt=et;function rt(st,at){if(Array.isArray(st))return st.slice();if(!st)return[];var ot=[];if(typeof st!="string"){for(var lt=0;lt>8,bt=ut&255;dt?ot.push(dt,bt):ot.push(bt)}return ot}tt.toArray=rt;function nt(st){return st.length===1?"0"+st:st}tt.zero2=nt;function it(st){for(var at="",ot=0;ot(pt>>1)-1?mt=(pt>>1)-wt:mt=wt,yt.isubn(mt)):mt=0,kt[$t]=mt,yt.iushrn(1)}return kt}tt.getNAF=st;function at(dt,bt){var gt=[[],[]];dt=dt.clone(),bt=bt.clone();for(var kt=0,pt=0,yt;dt.cmpn(-kt)>0||bt.cmpn(-pt)>0;){var $t=dt.andln(3)+kt&3,mt=bt.andln(3)+pt&3;$t===3&&($t=-1),mt===3&&(mt=-1);var wt;$t&1?(yt=dt.andln(7)+kt&7,(yt===3||yt===5)&&mt===2?wt=-$t:wt=$t):wt=0,gt[0].push(wt);var St;mt&1?(yt=bt.andln(7)+pt&7,(yt===3||yt===5)&&$t===2?St=-mt:St=mt):St=0,gt[1].push(St),2*kt===wt+1&&(kt=1-kt),2*pt===St+1&&(pt=1-pt),dt.iushrn(1),bt.iushrn(1)}return gt}tt.getJSF=at;function ot(dt,bt,gt){var kt="_"+bt;dt.prototype[bt]=function(){return this[kt]!==void 0?this[kt]:this[kt]=gt.call(this)}}tt.cachedProperty=ot;function lt(dt){return typeof dt=="string"?tt.toArray(dt,"hex"):dt}tt.parseBytes=lt;function ut(dt){return new rt(dt,"hex","le")}tt.intFromLE=ut})(utils$n);var curve={},BN$b=bnExports$2,utils$l=utils$n,getNAF=utils$l.getNAF,getJSF=utils$l.getJSF,assert$i=utils$l.assert;function BaseCurve(et,tt){this.type=et,this.p=new BN$b(tt.p,16),this.red=tt.prime?BN$b.red(tt.prime):BN$b.mont(this.p),this.zero=new BN$b(0).toRed(this.red),this.one=new BN$b(1).toRed(this.red),this.two=new BN$b(2).toRed(this.red),this.n=tt.n&&new BN$b(tt.n,16),this.g=tt.g&&this.pointFromJSON(tt.g,tt.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var rt=this.n&&this.p.div(this.n);!rt||rt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(tt,rt){assert$i(tt.precomputed);var nt=tt._getDoubles(),it=getNAF(rt,1,this._bitLength),st=(1<=ot;ut--)lt=(lt<<1)+it[ut];at.push(lt)}for(var dt=this.jpoint(null,null,null),bt=this.jpoint(null,null,null),gt=st;gt>0;gt--){for(ot=0;ot=0;lt--){for(var ut=0;lt>=0&&at[lt]===0;lt--)ut++;if(lt>=0&&ut++,ot=ot.dblp(ut),lt<0)break;var dt=at[lt];assert$i(dt!==0),tt.type==="affine"?dt>0?ot=ot.mixedAdd(st[dt-1>>1]):ot=ot.mixedAdd(st[-dt-1>>1].neg()):dt>0?ot=ot.add(st[dt-1>>1]):ot=ot.add(st[-dt-1>>1].neg())}return tt.type==="affine"?ot.toP():ot};BaseCurve.prototype._wnafMulAdd=function(tt,rt,nt,it,st){var at=this._wnafT1,ot=this._wnafT2,lt=this._wnafT3,ut=0,dt,bt,gt;for(dt=0;dt=1;dt-=2){var pt=dt-1,yt=dt;if(at[pt]!==1||at[yt]!==1){lt[pt]=getNAF(nt[pt],at[pt],this._bitLength),lt[yt]=getNAF(nt[yt],at[yt],this._bitLength),ut=Math.max(lt[pt].length,ut),ut=Math.max(lt[yt].length,ut);continue}var $t=[rt[pt],null,null,rt[yt]];rt[pt].y.cmp(rt[yt].y)===0?($t[1]=rt[pt].add(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg())):rt[pt].y.cmp(rt[yt].y.redNeg())===0?($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].add(rt[yt].neg())):($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg()));var mt=[-3,-1,-5,-7,0,7,5,1,3],wt=getJSF(nt[pt],nt[yt]);for(ut=Math.max(wt[0].length,ut),lt[pt]=new Array(ut),lt[yt]=new Array(ut),bt=0;bt=0;dt--){for(var zt=0;dt>=0;){var Ht=!0;for(bt=0;bt=0&&zt++,Ft=Ft.dblp(zt),dt<0)break;for(bt=0;bt0?gt=ot[bt][Wt-1>>1]:Wt<0&&(gt=ot[bt][-Wt-1>>1].neg()),gt.type==="affine"?Ft=Ft.mixedAdd(gt):Ft=Ft.add(gt))}}for(dt=0;dt=Math.ceil((tt.bitLength()+1)/rt.step):!1};BasePoint.prototype._getDoubles=function(tt,rt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var nt=[this],it=this,st=0;st=0&&(kt=ut,pt=dt),bt.negative&&(bt=bt.neg(),gt=gt.neg()),kt.negative&&(kt=kt.neg(),pt=pt.neg()),[{a:bt,b:gt},{a:kt,b:pt}]};ShortCurve.prototype._endoSplit=function(tt){var rt=this.endo.basis,nt=rt[0],it=rt[1],st=it.b.mul(tt).divRound(this.n),at=nt.b.neg().mul(tt).divRound(this.n),ot=st.mul(nt.a),lt=at.mul(it.a),ut=st.mul(nt.b),dt=at.mul(it.b),bt=tt.sub(ot).sub(lt),gt=ut.add(dt).neg();return{k1:bt,k2:gt}};ShortCurve.prototype.pointFromX=function(tt,rt){tt=new BN$a(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),it=nt.redSqrt();if(it.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");var st=it.fromRed().isOdd();return(rt&&!st||!rt&&st)&&(it=it.redNeg()),this.point(tt,it)};ShortCurve.prototype.validate=function(tt){if(tt.inf)return!0;var rt=tt.x,nt=tt.y,it=this.a.redMul(rt),st=rt.redSqr().redMul(rt).redIAdd(it).redIAdd(this.b);return nt.redSqr().redISub(st).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(tt,rt,nt){for(var it=this._endoWnafT1,st=this._endoWnafT2,at=0;at":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(tt){if(this.inf)return tt;if(tt.inf)return this;if(this.eq(tt))return this.dbl();if(this.neg().eq(tt))return this.curve.point(null,null);if(this.x.cmp(tt.x)===0)return this.curve.point(null,null);var rt=this.y.redSub(tt.y);rt.cmpn(0)!==0&&(rt=rt.redMul(this.x.redSub(tt.x).redInvm()));var nt=rt.redSqr().redISub(this.x).redISub(tt.x),it=rt.redMul(this.x.redSub(nt)).redISub(this.y);return this.curve.point(nt,it)};Point$2.prototype.dbl=function(){if(this.inf)return this;var tt=this.y.redAdd(this.y);if(tt.cmpn(0)===0)return this.curve.point(null,null);var rt=this.curve.a,nt=this.x.redSqr(),it=tt.redInvm(),st=nt.redAdd(nt).redIAdd(nt).redIAdd(rt).redMul(it),at=st.redSqr().redISub(this.x.redAdd(this.x)),ot=st.redMul(this.x.redSub(at)).redISub(this.y);return this.curve.point(at,ot)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(tt){return tt=new BN$a(tt,16),this.isInfinity()?this:this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve.endo?this.curve._endoWnafMulAdd([this],[tt]):this.curve._wnafMul(this,tt)};Point$2.prototype.mulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st):this.curve._wnafMulAdd(1,it,st,2)};Point$2.prototype.jmulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st,!0):this.curve._wnafMulAdd(1,it,st,2,!0)};Point$2.prototype.eq=function(tt){return this===tt||this.inf===tt.inf&&(this.inf||this.x.cmp(tt.x)===0&&this.y.cmp(tt.y)===0)};Point$2.prototype.neg=function(tt){if(this.inf)return this;var rt=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var nt=this.precomputed,it=function(st){return st.neg()};rt.precomputed={naf:nt.naf&&{wnd:nt.naf.wnd,points:nt.naf.points.map(it)},doubles:nt.doubles&&{step:nt.doubles.step,points:nt.doubles.points.map(it)}}}return rt};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var tt=this.curve.jpoint(this.x,this.y,this.curve.one);return tt};function JPoint(et,tt,rt,nt){Base$2.BasePoint.call(this,et,"jacobian"),tt===null&&rt===null&&nt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$a(0)):(this.x=new BN$a(tt,16),this.y=new BN$a(rt,16),this.z=new BN$a(nt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$9(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(tt,rt,nt){return new JPoint(this,tt,rt,nt)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),rt=tt.redSqr(),nt=this.x.redMul(rt),it=this.y.redMul(rt).redMul(tt);return this.curve.point(nt,it)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(tt){if(this.isInfinity())return tt;if(tt.isInfinity())return this;var rt=tt.z.redSqr(),nt=this.z.redSqr(),it=this.x.redMul(rt),st=tt.x.redMul(nt),at=this.y.redMul(rt.redMul(tt.z)),ot=tt.y.redMul(nt.redMul(this.z)),lt=it.redSub(st),ut=at.redSub(ot);if(lt.cmpn(0)===0)return ut.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var dt=lt.redSqr(),bt=dt.redMul(lt),gt=it.redMul(dt),kt=ut.redSqr().redIAdd(bt).redISub(gt).redISub(gt),pt=ut.redMul(gt.redISub(kt)).redISub(at.redMul(bt)),yt=this.z.redMul(tt.z).redMul(lt);return this.curve.jpoint(kt,pt,yt)};JPoint.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var rt=this.z.redSqr(),nt=this.x,it=tt.x.redMul(rt),st=this.y,at=tt.y.redMul(rt).redMul(this.z),ot=nt.redSub(it),lt=st.redSub(at);if(ot.cmpn(0)===0)return lt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ut=ot.redSqr(),dt=ut.redMul(ot),bt=nt.redMul(ut),gt=lt.redSqr().redIAdd(dt).redISub(bt).redISub(bt),kt=lt.redMul(bt.redISub(gt)).redISub(st.redMul(dt)),pt=this.z.redMul(ot);return this.curve.jpoint(gt,kt,pt)};JPoint.prototype.dblp=function(tt){if(tt===0)return this;if(this.isInfinity())return this;if(!tt)return this.dbl();var rt;if(this.curve.zeroA||this.curve.threeA){var nt=this;for(rt=0;rt=0)return!1;if(nt.redIAdd(st),this.x.cmp(nt)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$9=bnExports$2,inherits$8=inherits_browserExports,Base$1=base$3,utils$j=utils$n;function MontCurve(et){Base$1.call(this,"mont",et),this.a=new BN$9(et.a,16).toRed(this.red),this.b=new BN$9(et.b,16).toRed(this.red),this.i4=new BN$9(4).toRed(this.red).redInvm(),this.two=new BN$9(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$8(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(tt){var rt=tt.normalize().x,nt=rt.redSqr(),it=nt.redMul(rt).redAdd(nt.redMul(this.a)).redAdd(rt),st=it.redSqrt();return st.redSqr().cmp(it)===0};function Point$1(et,tt,rt){Base$1.BasePoint.call(this,et,"projective"),tt===null&&rt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$9(tt,16),this.z=new BN$9(rt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$8(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(tt,rt){return this.point(utils$j.toArray(tt,rt),1)};MontCurve.prototype.point=function(tt,rt){return new Point$1(this,tt,rt)};MontCurve.prototype.pointFromJSON=function(tt){return Point$1.fromJSON(this,tt)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(tt,rt){return new Point$1(tt,rt[0],rt[1]||tt.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var tt=this.x.redAdd(this.z),rt=tt.redSqr(),nt=this.x.redSub(this.z),it=nt.redSqr(),st=rt.redSub(it),at=rt.redMul(it),ot=st.redMul(it.redAdd(this.curve.a24.redMul(st)));return this.curve.point(at,ot)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(tt,rt){var nt=this.x.redAdd(this.z),it=this.x.redSub(this.z),st=tt.x.redAdd(tt.z),at=tt.x.redSub(tt.z),ot=at.redMul(nt),lt=st.redMul(it),ut=rt.z.redMul(ot.redAdd(lt).redSqr()),dt=rt.x.redMul(ot.redISub(lt).redSqr());return this.curve.point(ut,dt)};Point$1.prototype.mul=function(tt){for(var rt=tt.clone(),nt=this,it=this.curve.point(null,null),st=this,at=[];rt.cmpn(0)!==0;rt.iushrn(1))at.push(rt.andln(1));for(var ot=at.length-1;ot>=0;ot--)at[ot]===0?(nt=nt.diffAdd(it,st),it=it.dbl()):(it=nt.diffAdd(it,st),nt=nt.dbl());return it};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(tt){return this.getX().cmp(tt.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$i=utils$n,BN$8=bnExports$2,inherits$7=inherits_browserExports,Base=base$3,assert$g=utils$i.assert;function EdwardsCurve(et){this.twisted=(et.a|0)!==1,this.mOneA=this.twisted&&(et.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",et),this.a=new BN$8(et.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$8(et.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$8(et.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$g(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(et.c|0)===1}inherits$7(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(tt){return this.mOneA?tt.redNeg():this.a.redMul(tt)};EdwardsCurve.prototype._mulC=function(tt){return this.oneC?tt:this.c.redMul(tt)};EdwardsCurve.prototype.jpoint=function(tt,rt,nt,it){return this.point(tt,rt,nt,it)};EdwardsCurve.prototype.pointFromX=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=this.c2.redSub(this.a.redMul(nt)),st=this.one.redSub(this.c2.redMul(this.d).redMul(nt)),at=it.redMul(st.redInvm()),ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");var lt=ot.fromRed().isOdd();return(rt&&!lt||!rt&<)&&(ot=ot.redNeg()),this.point(tt,ot)};EdwardsCurve.prototype.pointFromY=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=nt.redSub(this.c2),st=nt.redMul(this.d).redMul(this.c2).redSub(this.a),at=it.redMul(st.redInvm());if(at.cmp(this.zero)===0){if(rt)throw new Error("invalid point");return this.point(this.zero,tt)}var ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");return ot.fromRed().isOdd()!==rt&&(ot=ot.redNeg()),this.point(ot,tt)};EdwardsCurve.prototype.validate=function(tt){if(tt.isInfinity())return!0;tt.normalize();var rt=tt.x.redSqr(),nt=tt.y.redSqr(),it=rt.redMul(this.a).redAdd(nt),st=this.c2.redMul(this.one.redAdd(this.d.redMul(rt).redMul(nt)));return it.cmp(st)===0};function Point(et,tt,rt,nt,it){Base.BasePoint.call(this,et,"projective"),tt===null&&rt===null&&nt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$8(tt,16),this.y=new BN$8(rt,16),this.z=nt?new BN$8(nt,16):this.curve.one,this.t=it&&new BN$8(it,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$7(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(tt){return Point.fromJSON(this,tt)};EdwardsCurve.prototype.point=function(tt,rt,nt,it){return new Point(this,tt,rt,nt,it)};Point.fromJSON=function(tt,rt){return new Point(tt,rt[0],rt[1],rt[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var tt=this.x.redSqr(),rt=this.y.redSqr(),nt=this.z.redSqr();nt=nt.redIAdd(nt);var it=this.curve._mulA(tt),st=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(rt),at=it.redAdd(rt),ot=at.redSub(nt),lt=it.redSub(rt),ut=st.redMul(ot),dt=at.redMul(lt),bt=st.redMul(lt),gt=ot.redMul(at);return this.curve.point(ut,dt,gt,bt)};Point.prototype._projDbl=function(){var tt=this.x.redAdd(this.y).redSqr(),rt=this.x.redSqr(),nt=this.y.redSqr(),it,st,at,ot,lt,ut;if(this.curve.twisted){ot=this.curve._mulA(rt);var dt=ot.redAdd(nt);this.zOne?(it=tt.redSub(rt).redSub(nt).redMul(dt.redSub(this.curve.two)),st=dt.redMul(ot.redSub(nt)),at=dt.redSqr().redSub(dt).redSub(dt)):(lt=this.z.redSqr(),ut=dt.redSub(lt).redISub(lt),it=tt.redSub(rt).redISub(nt).redMul(ut),st=dt.redMul(ot.redSub(nt)),at=dt.redMul(ut))}else ot=rt.redAdd(nt),lt=this.curve._mulC(this.z).redSqr(),ut=ot.redSub(lt).redSub(lt),it=this.curve._mulC(tt.redISub(ot)).redMul(ut),st=this.curve._mulC(ot).redMul(rt.redISub(nt)),at=ot.redMul(ut);return this.curve.point(it,st,at)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(tt){var rt=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),nt=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),it=this.t.redMul(this.curve.dd).redMul(tt.t),st=this.z.redMul(tt.z.redAdd(tt.z)),at=nt.redSub(rt),ot=st.redSub(it),lt=st.redAdd(it),ut=nt.redAdd(rt),dt=at.redMul(ot),bt=lt.redMul(ut),gt=at.redMul(ut),kt=ot.redMul(lt);return this.curve.point(dt,bt,kt,gt)};Point.prototype._projAdd=function(tt){var rt=this.z.redMul(tt.z),nt=rt.redSqr(),it=this.x.redMul(tt.x),st=this.y.redMul(tt.y),at=this.curve.d.redMul(it).redMul(st),ot=nt.redSub(at),lt=nt.redAdd(at),ut=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(it).redISub(st),dt=rt.redMul(ot).redMul(ut),bt,gt;return this.curve.twisted?(bt=rt.redMul(lt).redMul(st.redSub(this.curve._mulA(it))),gt=ot.redMul(lt)):(bt=rt.redMul(lt).redMul(st.redSub(it)),gt=this.curve._mulC(ot).redMul(lt)),this.curve.point(dt,bt,gt)};Point.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)};Point.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)};Point.prototype.mulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!1)};Point.prototype.jmulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var tt=this.z.redInvm();return this.x=this.x.redMul(tt),this.y=this.y.redMul(tt),this.t&&(this.t=this.t.redMul(tt)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(tt){return this===tt||this.getX().cmp(tt.getX())===0&&this.getY().cmp(tt.getY())===0};Point.prototype.eqXToP=function(tt){var rt=tt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(rt)===0)return!0;for(var nt=tt.clone(),it=this.curve.redN.redMul(this.z);;){if(nt.iadd(this.curve.n),nt.cmp(this.curve.p)>=0)return!1;if(rt.redIAdd(it),this.x.cmp(rt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(et){var tt=et;tt.base=base$3,tt.short=short,tt.mont=mont,tt.edwards=edwards})(curve);var curves$1={},hash$4={},utils$h={},assert$f=minimalisticAssert,inherits$6=inherits_browserExports;utils$h.inherits=inherits$6;function isSurrogatePair(et,tt){return(et.charCodeAt(tt)&64512)!==55296||tt<0||tt+1>=et.length?!1:(et.charCodeAt(tt+1)&64512)===56320}function toArray$1(et,tt){if(Array.isArray(et))return et.slice();if(!et)return[];var rt=[];if(typeof et=="string")if(tt){if(tt==="hex")for(et=et.replace(/[^a-z0-9]+/ig,""),et.length%2!==0&&(et="0"+et),it=0;it>6|192,rt[nt++]=st&63|128):isSurrogatePair(et,it)?(st=65536+((st&1023)<<10)+(et.charCodeAt(++it)&1023),rt[nt++]=st>>18|240,rt[nt++]=st>>12&63|128,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128):(rt[nt++]=st>>12|224,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128)}else for(it=0;it>>24|et>>>8&65280|et<<8&16711680|(et&255)<<24;return tt>>>0}utils$h.htonl=htonl;function toHex32(et,tt){for(var rt="",nt=0;nt>>0}return st}utils$h.join32=join32;function split32(et,tt){for(var rt=new Array(et.length*4),nt=0,it=0;nt>>24,rt[it+1]=st>>>16&255,rt[it+2]=st>>>8&255,rt[it+3]=st&255):(rt[it+3]=st>>>24,rt[it+2]=st>>>16&255,rt[it+1]=st>>>8&255,rt[it]=st&255)}return rt}utils$h.split32=split32;function rotr32$1(et,tt){return et>>>tt|et<<32-tt}utils$h.rotr32=rotr32$1;function rotl32$2(et,tt){return et<>>32-tt}utils$h.rotl32=rotl32$2;function sum32$3(et,tt){return et+tt>>>0}utils$h.sum32=sum32$3;function sum32_3$1(et,tt,rt){return et+tt+rt>>>0}utils$h.sum32_3=sum32_3$1;function sum32_4$2(et,tt,rt,nt){return et+tt+rt+nt>>>0}utils$h.sum32_4=sum32_4$2;function sum32_5$2(et,tt,rt,nt,it){return et+tt+rt+nt+it>>>0}utils$h.sum32_5=sum32_5$2;function sum64$1(et,tt,rt,nt){var it=et[tt],st=et[tt+1],at=nt+st>>>0,ot=(at>>0,et[tt+1]=at}utils$h.sum64=sum64$1;function sum64_hi$1(et,tt,rt,nt){var it=tt+nt>>>0,st=(it>>0}utils$h.sum64_hi=sum64_hi$1;function sum64_lo$1(et,tt,rt,nt){var it=tt+nt;return it>>>0}utils$h.sum64_lo=sum64_lo$1;function sum64_4_hi$1(et,tt,rt,nt,it,st,at,ot){var lt=0,ut=tt;ut=ut+nt>>>0,lt+=ut>>0,lt+=ut>>0,lt+=ut>>0}utils$h.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(et,tt,rt,nt,it,st,at,ot){var lt=tt+nt+st+ot;return lt>>>0}utils$h.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=0,bt=tt;bt=bt+nt>>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0}utils$h.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=tt+nt+st+ot+ut;return dt>>>0}utils$h.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(et,tt,rt){var nt=tt<<32-rt|et>>>rt;return nt>>>0}utils$h.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.rotr64_lo=rotr64_lo$1;function shr64_hi$1(et,tt,rt){return et>>>rt}utils$h.shr64_hi=shr64_hi$1;function shr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.shr64_lo=shr64_lo$1;var common$7={},utils$g=utils$h,assert$e=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$7.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(tt,rt){if(tt=utils$g.toArray(tt,rt),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){tt=this.pending;var nt=tt.length%this._delta8;this.pending=tt.slice(tt.length-nt,tt.length),this.pending.length===0&&(this.pending=null),tt=utils$g.join32(tt,0,tt.length-nt,this.endian);for(var it=0;it>>24&255,it[st++]=tt>>>16&255,it[st++]=tt>>>8&255,it[st++]=tt&255}else for(it[st++]=tt&255,it[st++]=tt>>>8&255,it[st++]=tt>>>16&255,it[st++]=tt>>>24&255,it[st++]=0,it[st++]=0,it[st++]=0,it[st++]=0,at=8;at>>3}common$6.g0_256=g0_256$1;function g1_256$1(et){return rotr32(et,17)^rotr32(et,19)^et>>>10}common$6.g1_256=g1_256$1;var utils$e=utils$h,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$e.rotl32,sum32$2=utils$e.sum32,sum32_5$1=utils$e.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1$1(){if(!(this instanceof SHA1$1))return new SHA1$1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$e.inherits(SHA1$1,BlockHash$3);var _1=SHA1$1;SHA1$1.blockSize=512;SHA1$1.outSize=160;SHA1$1.hmacStrength=80;SHA1$1.padLength=64;SHA1$1.prototype._update=function(tt,rt){for(var nt=this.W,it=0;it<16;it++)nt[it]=tt[rt+it];for(;itthis.blockSize&&(tt=new this.Hash().update(tt).digest()),assert$b(tt.length<=this.blockSize);for(var rt=tt.length;rt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(tt,rt,nt)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(tt,rt,nt){var it=tt.concat(rt).concat(nt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var st=0;st=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(nt||[])),this._reseed=1};HmacDRBG.prototype.generate=function(tt,rt,nt,it){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof rt!="string"&&(it=nt,nt=rt,rt=null),nt&&(nt=utils$7.toArray(nt,it||"hex"),this._update(nt));for(var st=[];st.length"};var BN$6=bnExports$2,utils$5=utils$n,assert$8=utils$5.assert;function Signature$2(et,tt){if(et instanceof Signature$2)return et;this._importDER(et,tt)||(assert$8(et.r&&et.s,"Signature without r or s"),this.r=new BN$6(et.r,16),this.s=new BN$6(et.s,16),et.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=et.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(et,tt){var rt=et[tt.place++];if(!(rt&128))return rt;var nt=rt&15;if(nt===0||nt>4)return!1;for(var it=0,st=0,at=tt.place;st>>=0;return it<=127?!1:(tt.place=at,it)}function rmPadding(et){for(var tt=0,rt=et.length-1;!et[tt]&&!(et[tt+1]&128)&&tt>>3);for(et.push(rt|128);--rt;)et.push(tt>>>(rt<<3)&255);et.push(tt)}Signature$2.prototype.toDER=function(tt){var rt=this.r.toArray(),nt=this.s.toArray();for(rt[0]&128&&(rt=[0].concat(rt)),nt[0]&128&&(nt=[0].concat(nt)),rt=rmPadding(rt),nt=rmPadding(nt);!nt[0]&&!(nt[1]&128);)nt=nt.slice(1);var it=[2];constructLength(it,rt.length),it=it.concat(rt),it.push(2),constructLength(it,nt.length);var st=it.concat(nt),at=[48];return constructLength(at,st.length),at=at.concat(st),utils$5.encode(at,tt)};var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var et=bnExports$2,tt=hmacDrbg,rt=utils$n,nt=curves$1,it=requireBrorand(),st=rt.assert,at=key$2,ot=signature$1;function lt(ut){if(!(this instanceof lt))return new lt(ut);typeof ut=="string"&&(st(Object.prototype.hasOwnProperty.call(nt,ut),"Unknown curve "+ut),ut=nt[ut]),ut instanceof nt.PresetCurve&&(ut={curve:ut}),this.curve=ut.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=ut.curve.g,this.g.precompute(ut.curve.n.bitLength()+1),this.hash=ut.hash||ut.curve.hash}return ec$1=lt,lt.prototype.keyPair=function(dt){return new at(this,dt)},lt.prototype.keyFromPrivate=function(dt,bt){return at.fromPrivate(this,dt,bt)},lt.prototype.keyFromPublic=function(dt,bt){return at.fromPublic(this,dt,bt)},lt.prototype.genKeyPair=function(dt){dt||(dt={});for(var bt=new tt({hash:this.hash,pers:dt.pers,persEnc:dt.persEnc||"utf8",entropy:dt.entropy||it(this.hash.hmacStrength),entropyEnc:dt.entropy&&dt.entropyEnc||"utf8",nonce:this.n.toArray()}),gt=this.n.byteLength(),kt=this.n.sub(new et(2));;){var pt=new et(bt.generate(gt));if(!(pt.cmp(kt)>0))return pt.iaddn(1),this.keyFromPrivate(pt)}},lt.prototype._truncateToN=function(dt,bt){var gt=dt.byteLength()*8-this.n.bitLength();return gt>0&&(dt=dt.ushrn(gt)),!bt&&dt.cmp(this.n)>=0?dt.sub(this.n):dt},lt.prototype.sign=function(dt,bt,gt,kt){typeof gt=="object"&&(kt=gt,gt=null),kt||(kt={}),bt=this.keyFromPrivate(bt,gt),dt=this._truncateToN(new et(dt,16));for(var pt=this.n.byteLength(),yt=bt.getPrivate().toArray("be",pt),$t=dt.toArray("be",pt),mt=new tt({hash:this.hash,entropy:yt,nonce:$t,pers:kt.pers,persEnc:kt.persEnc||"utf8"}),wt=this.n.sub(new et(1)),St=0;;St++){var Bt=kt.k?kt.k(St):new et(mt.generate(this.n.byteLength()));if(Bt=this._truncateToN(Bt,!0),!(Bt.cmpn(1)<=0||Bt.cmp(wt)>=0)){var Ft=this.g.mul(Bt);if(!Ft.isInfinity()){var Lt=Ft.getX(),zt=Lt.umod(this.n);if(zt.cmpn(0)!==0){var Ht=Bt.invm(this.n).mul(zt.mul(bt.getPrivate()).iadd(dt));if(Ht=Ht.umod(this.n),Ht.cmpn(0)!==0){var Wt=(Ft.getY().isOdd()?1:0)|(Lt.cmp(zt)!==0?2:0);return kt.canonical&&Ht.cmp(this.nh)>0&&(Ht=this.n.sub(Ht),Wt^=1),new ot({r:zt,s:Ht,recoveryParam:Wt})}}}}}},lt.prototype.verify=function(dt,bt,gt,kt){dt=this._truncateToN(new et(dt,16)),gt=this.keyFromPublic(gt,kt),bt=new ot(bt,"hex");var pt=bt.r,yt=bt.s;if(pt.cmpn(1)<0||pt.cmp(this.n)>=0||yt.cmpn(1)<0||yt.cmp(this.n)>=0)return!1;var $t=yt.invm(this.n),mt=$t.mul(dt).umod(this.n),wt=$t.mul(pt).umod(this.n),St;return this.curve._maxwellTrick?(St=this.g.jmulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.eqXToP(pt)):(St=this.g.mulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.getX().umod(this.n).cmp(pt)===0)},lt.prototype.recoverPubKey=function(ut,dt,bt,gt){st((3&bt)===bt,"The recovery param is more than two bits"),dt=new ot(dt,gt);var kt=this.n,pt=new et(ut),yt=dt.r,$t=dt.s,mt=bt&1,wt=bt>>1;if(yt.cmp(this.curve.p.umod(this.curve.n))>=0&&wt)throw new Error("Unable to find sencond key candinate");wt?yt=this.curve.pointFromX(yt.add(this.curve.n),mt):yt=this.curve.pointFromX(yt,mt);var St=dt.r.invm(kt),Bt=kt.sub(pt).mul(St).umod(kt),Ft=$t.mul(St).umod(kt);return this.g.mulAdd(Bt,yt,Ft)},lt.prototype.getKeyRecoveryParam=function(ut,dt,bt,gt){if(dt=new ot(dt,gt),dt.recoveryParam!==null)return dt.recoveryParam;for(var kt=0;kt<4;kt++){var pt;try{pt=this.recoverPubKey(ut,dt,kt)}catch{continue}if(pt.eq(bt))return kt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$4=utils$n,assert$7=utils$4.assert,parseBytes$2=utils$4.parseBytes,cachedProperty$1=utils$4.cachedProperty;function KeyPair$1(et,tt){this.eddsa=et,this._secret=parseBytes$2(tt.secret),et.isPoint(tt.pub)?this._pub=tt.pub:this._pubBytes=parseBytes$2(tt.pub)}KeyPair$1.fromPublic=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{pub:rt})};KeyPair$1.fromSecret=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{secret:rt})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var tt=this.eddsa,rt=this.hash(),nt=tt.encodingLength-1,it=rt.slice(0,tt.encodingLength);return it[0]&=248,it[nt]&=127,it[nt]|=64,it});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(tt){return assert$7(this._secret,"KeyPair can only verify"),this.eddsa.sign(tt,this)};KeyPair$1.prototype.verify=function(tt,rt){return this.eddsa.verify(tt,rt,this)};KeyPair$1.prototype.getSecret=function(tt){return assert$7(this._secret,"KeyPair is public only"),utils$4.encode(this.secret(),tt)};KeyPair$1.prototype.getPublic=function(tt){return utils$4.encode(this.pubBytes(),tt)};var key$1=KeyPair$1,BN$5=bnExports$2,utils$3=utils$n,assert$6=utils$3.assert,cachedProperty=utils$3.cachedProperty,parseBytes$1=utils$3.parseBytes;function Signature$1(et,tt){this.eddsa=et,typeof tt!="object"&&(tt=parseBytes$1(tt)),Array.isArray(tt)&&(tt={R:tt.slice(0,et.encodingLength),S:tt.slice(et.encodingLength)}),assert$6(tt.R&&tt.S,"Signature without R or S"),et.isPoint(tt.R)&&(this._R=tt.R),tt.S instanceof BN$5&&(this._S=tt.S),this._Rencoded=Array.isArray(tt.R)?tt.R:tt.Rencoded,this._Sencoded=Array.isArray(tt.S)?tt.S:tt.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$3.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$1,utils$2=utils$n,assert$5=utils$2.assert,parseBytes=utils$2.parseBytes,KeyPair=key$1,Signature=signature;function EDDSA(et){if(assert$5(et==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(et);et=curves[et].curve,this.curve=et,this.g=et.g,this.g.precompute(et.n.bitLength()+1),this.pointClass=et.point().constructor,this.encodingLength=Math.ceil(et.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(tt,rt){tt=parseBytes(tt);var nt=this.keyFromSecret(rt),it=this.hashInt(nt.messagePrefix(),tt),st=this.g.mul(it),at=this.encodePoint(st),ot=this.hashInt(at,nt.pubBytes(),tt).mul(nt.priv()),lt=it.add(ot).umod(this.curve.n);return this.makeSignature({R:st,S:lt,Rencoded:at})};EDDSA.prototype.verify=function(tt,rt,nt){tt=parseBytes(tt),rt=this.makeSignature(rt);var it=this.keyFromPublic(nt),st=this.hashInt(rt.Rencoded(),it.pubBytes(),tt),at=this.g.mul(rt.S()),ot=rt.R().add(it.pub().mul(st));return ot.eq(at)};EDDSA.prototype.hashInt=function(){for(var tt=this.hash(),rt=0;rt0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Dt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Dt).toString(ht);tr=tr.idivn(Dt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Dt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Dt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Dt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Dt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Dt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Dt=Dt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Dt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Dt=Dt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Dt=Dt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Dt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Dt=Dt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Dt=Dt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Dt=Dt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Dt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Dt=Dt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Dt=Dt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Dt=Dt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Dt=Dt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Dt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Dt=Dt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Dt=Dt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Dt=Dt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Dt=Dt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Dt=Dt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Dt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Dt=Dt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Dt=Dt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Dt=Dt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Dt=Dt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Dt=Dt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Dt=Dt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Dt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Dt=Dt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Dt=Dt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Dt=Dt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Dt=Dt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Dt=Dt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Dt=Dt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Dt=Dt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Dt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Dt=Dt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Dt=Dt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Dt=Dt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Dt=Dt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Dt=Dt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Dt=Dt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Dt=Dt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Dt=Dt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Dt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Dt=Dt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Dt=Dt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Dt=Dt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Dt=Dt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Dt=Dt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Dt=Dt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Dt=Dt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Dt=Dt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Dt=Dt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Dt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Dt=Dt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Dt=Dt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Dt=Dt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Dt=Dt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Dt=Dt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Dt=Dt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Dt=Dt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Dt=Dt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Dt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Dt=Dt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Dt=Dt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Dt=Dt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Dt=Dt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Dt=Dt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Dt=Dt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Dt=Dt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Dt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Dt=Dt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Dt=Dt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Dt=Dt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Dt=Dt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Dt=Dt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Dt=Dt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Dt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Dt=Dt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Dt=Dt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Dt=Dt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Dt=Dt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Dt=Dt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Dt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Dt=Dt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Dt=Dt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Dt=Dt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Dt=Dt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Dt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Dt=Dt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Dt=Dt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Dt=Dt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Dt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Dt=Dt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Dt=Dt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Dt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Dt=Dt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Dt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Dt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Dt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Dt<<26-At|tr>>>At,Dt=tr&It}return Ct&&Dt!==0&&(Ct.words[Ct.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Dt=0;Dt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Dt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Dt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Dt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Dt=1;!(Tt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Lt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Lt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Lt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Lt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Lt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Dt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Dt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Dt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn);var bnExports=bn.exports,asn1$3={},asn1$2={},api={},encoders={},buffer$1=buffer$2,Buffer$d=buffer$1.Buffer,safer={},key;for(key in buffer$1)buffer$1.hasOwnProperty(key)&&(key==="SlowBuffer"||key==="Buffer"||(safer[key]=buffer$1[key]));var Safer=safer.Buffer={};for(key in Buffer$d)Buffer$d.hasOwnProperty(key)&&(key==="allocUnsafe"||key==="allocUnsafeSlow"||(Safer[key]=Buffer$d[key]));safer.Buffer.prototype=Buffer$d.prototype;(!Safer.from||Safer.from===Uint8Array.from)&&(Safer.from=function(et,tt,rt){if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof et);if(et&&typeof et.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);return Buffer$d(et,tt,rt)});Safer.alloc||(Safer.alloc=function(et,tt,rt){if(typeof et!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof et);if(et<0||et>=2*(1<<30))throw new RangeError('The value "'+et+'" is invalid for option "size"');var nt=Buffer$d(et);return!tt||tt.length===0?nt.fill(0):typeof rt=="string"?nt.fill(tt,rt):nt.fill(tt),nt});if(!safer.kStringMaxLength)try{safer.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}safer.constants||(safer.constants={MAX_LENGTH:safer.kMaxLength},safer.kStringMaxLength&&(safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength));var safer_1=safer,reporter={};const inherits$5=inherits_browserExports;function Reporter$2(et){this._reporterState={obj:null,path:[],options:et||{},errors:[]}}reporter.Reporter=Reporter$2;Reporter$2.prototype.isError=function(tt){return tt instanceof ReporterError};Reporter$2.prototype.save=function(){const tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}};Reporter$2.prototype.restore=function(tt){const rt=this._reporterState;rt.obj=tt.obj,rt.path=rt.path.slice(0,tt.pathLen)};Reporter$2.prototype.enterKey=function(tt){return this._reporterState.path.push(tt)};Reporter$2.prototype.exitKey=function(tt){const rt=this._reporterState;rt.path=rt.path.slice(0,tt-1)};Reporter$2.prototype.leaveKey=function(tt,rt,nt){const it=this._reporterState;this.exitKey(tt),it.obj!==null&&(it.obj[rt]=nt)};Reporter$2.prototype.path=function(){return this._reporterState.path.join("/")};Reporter$2.prototype.enterObject=function(){const tt=this._reporterState,rt=tt.obj;return tt.obj={},rt};Reporter$2.prototype.leaveObject=function(tt){const rt=this._reporterState,nt=rt.obj;return rt.obj=tt,nt};Reporter$2.prototype.error=function(tt){let rt;const nt=this._reporterState,it=tt instanceof ReporterError;if(it?rt=tt:rt=new ReporterError(nt.path.map(function(st){return"["+JSON.stringify(st)+"]"}).join(""),tt.message||tt,tt.stack),!nt.options.partial)throw rt;return it||nt.errors.push(rt),rt};Reporter$2.prototype.wrapResult=function(tt){const rt=this._reporterState;return rt.options.partial?{result:this.isError(tt)?null:tt,errors:rt.errors}:tt};function ReporterError(et,tt){this.path=et,this.rethrow(tt)}inherits$5(ReporterError,Error);ReporterError.prototype.rethrow=function(tt){if(this.message=tt+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(rt){this.stack=rt.stack}return this};var buffer={};const inherits$4=inherits_browserExports,Reporter$1=reporter.Reporter,Buffer$c=safer_1.Buffer;function DecoderBuffer$2(et,tt){if(Reporter$1.call(this,tt),!Buffer$c.isBuffer(et)){this.error("Input not Buffer");return}this.base=et,this.offset=0,this.length=et.length}inherits$4(DecoderBuffer$2,Reporter$1);buffer.DecoderBuffer=DecoderBuffer$2;DecoderBuffer$2.isDecoderBuffer=function(tt){return tt instanceof DecoderBuffer$2?!0:typeof tt=="object"&&Buffer$c.isBuffer(tt.base)&&tt.constructor.name==="DecoderBuffer"&&typeof tt.offset=="number"&&typeof tt.length=="number"&&typeof tt.save=="function"&&typeof tt.restore=="function"&&typeof tt.isEmpty=="function"&&typeof tt.readUInt8=="function"&&typeof tt.skip=="function"&&typeof tt.raw=="function"};DecoderBuffer$2.prototype.save=function(){return{offset:this.offset,reporter:Reporter$1.prototype.save.call(this)}};DecoderBuffer$2.prototype.restore=function(tt){const rt=new DecoderBuffer$2(this.base);return rt.offset=tt.offset,rt.length=this.offset,this.offset=tt.offset,Reporter$1.prototype.restore.call(this,tt.reporter),rt};DecoderBuffer$2.prototype.isEmpty=function(){return this.offset===this.length};DecoderBuffer$2.prototype.readUInt8=function(tt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(tt||"DecoderBuffer overrun")};DecoderBuffer$2.prototype.skip=function(tt,rt){if(!(this.offset+tt<=this.length))return this.error(rt||"DecoderBuffer overrun");const nt=new DecoderBuffer$2(this.base);return nt._reporterState=this._reporterState,nt.offset=this.offset,nt.length=this.offset+tt,this.offset+=tt,nt};DecoderBuffer$2.prototype.raw=function(tt){return this.base.slice(tt?tt.offset:this.offset,this.length)};function EncoderBuffer$1(et,tt){if(Array.isArray(et))this.length=0,this.value=et.map(function(rt){return EncoderBuffer$1.isEncoderBuffer(rt)||(rt=new EncoderBuffer$1(rt,tt)),this.length+=rt.length,rt},this);else if(typeof et=="number"){if(!(0<=et&&et<=255))return tt.error("non-byte EncoderBuffer value");this.value=et,this.length=1}else if(typeof et=="string")this.value=et,this.length=Buffer$c.byteLength(et);else if(Buffer$c.isBuffer(et))this.value=et,this.length=et.length;else return tt.error("Unsupported type: "+typeof et)}buffer.EncoderBuffer=EncoderBuffer$1;EncoderBuffer$1.isEncoderBuffer=function(tt){return tt instanceof EncoderBuffer$1?!0:typeof tt=="object"&&tt.constructor.name==="EncoderBuffer"&&typeof tt.length=="number"&&typeof tt.join=="function"};EncoderBuffer$1.prototype.join=function(tt,rt){return tt||(tt=Buffer$c.alloc(this.length)),rt||(rt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(nt){nt.join(tt,rt),rt+=nt.length}):(typeof this.value=="number"?tt[rt]=this.value:typeof this.value=="string"?tt.write(this.value,rt):Buffer$c.isBuffer(this.value)&&this.value.copy(tt,rt),rt+=this.length)),tt};const Reporter=reporter.Reporter,EncoderBuffer=buffer.EncoderBuffer,DecoderBuffer$1=buffer.DecoderBuffer,assert$4=minimalisticAssert,tags$1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],methods=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(tags$1),overrided=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node$2(et,tt,rt){const nt={};this._baseState=nt,nt.name=rt,nt.enc=et,nt.parent=tt||null,nt.children=null,nt.tag=null,nt.args=null,nt.reverseArgs=null,nt.choice=null,nt.optional=!1,nt.any=!1,nt.obj=!1,nt.use=null,nt.useDecoder=null,nt.key=null,nt.default=null,nt.explicit=null,nt.implicit=null,nt.contains=null,nt.parent||(nt.children=[],this._wrap())}var node$1=Node$2;const stateProps=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node$2.prototype.clone=function(){const tt=this._baseState,rt={};stateProps.forEach(function(it){rt[it]=tt[it]});const nt=new this.constructor(rt.parent);return nt._baseState=rt,nt};Node$2.prototype._wrap=function(){const tt=this._baseState;methods.forEach(function(rt){this[rt]=function(){const it=new this.constructor(this);return tt.children.push(it),it[rt].apply(it,arguments)}},this)};Node$2.prototype._init=function(tt){const rt=this._baseState;assert$4(rt.parent===null),tt.call(this),rt.children=rt.children.filter(function(nt){return nt._baseState.parent===this},this),assert$4.equal(rt.children.length,1,"Root node can have only one child")};Node$2.prototype._useArgs=function(tt){const rt=this._baseState,nt=tt.filter(function(it){return it instanceof this.constructor},this);tt=tt.filter(function(it){return!(it instanceof this.constructor)},this),nt.length!==0&&(assert$4(rt.children===null),rt.children=nt,nt.forEach(function(it){it._baseState.parent=this},this)),tt.length!==0&&(assert$4(rt.args===null),rt.args=tt,rt.reverseArgs=tt.map(function(it){if(typeof it!="object"||it.constructor!==Object)return it;const st={};return Object.keys(it).forEach(function(at){at==(at|0)&&(at|=0);const ot=it[at];st[ot]=at}),st}))};overrided.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState;throw new Error(et+" not implemented for encoding: "+rt.enc)}});tags$1.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState,nt=Array.prototype.slice.call(arguments);return assert$4(rt.tag===null),rt.tag=et,this._useArgs(nt),this}});Node$2.prototype.use=function(tt){assert$4(tt);const rt=this._baseState;return assert$4(rt.use===null),rt.use=tt,this};Node$2.prototype.optional=function(){const tt=this._baseState;return tt.optional=!0,this};Node$2.prototype.def=function(tt){const rt=this._baseState;return assert$4(rt.default===null),rt.default=tt,rt.optional=!0,this};Node$2.prototype.explicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.explicit=tt,this};Node$2.prototype.implicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.implicit=tt,this};Node$2.prototype.obj=function(){const tt=this._baseState,rt=Array.prototype.slice.call(arguments);return tt.obj=!0,rt.length!==0&&this._useArgs(rt),this};Node$2.prototype.key=function(tt){const rt=this._baseState;return assert$4(rt.key===null),rt.key=tt,this};Node$2.prototype.any=function(){const tt=this._baseState;return tt.any=!0,this};Node$2.prototype.choice=function(tt){const rt=this._baseState;return assert$4(rt.choice===null),rt.choice=tt,this._useArgs(Object.keys(tt).map(function(nt){return tt[nt]})),this};Node$2.prototype.contains=function(tt){const rt=this._baseState;return assert$4(rt.use===null),rt.contains=tt,this};Node$2.prototype._decode=function(tt,rt){const nt=this._baseState;if(nt.parent===null)return tt.wrapResult(nt.children[0]._decode(tt,rt));let it=nt.default,st=!0,at=null;if(nt.key!==null&&(at=tt.enterKey(nt.key)),nt.optional){let lt=null;if(nt.explicit!==null?lt=nt.explicit:nt.implicit!==null?lt=nt.implicit:nt.tag!==null&&(lt=nt.tag),lt===null&&!nt.any){const ut=tt.save();try{nt.choice===null?this._decodeGeneric(nt.tag,tt,rt):this._decodeChoice(tt,rt),st=!0}catch{st=!1}tt.restore(ut)}else if(st=this._peekTag(tt,lt,nt.any),tt.isError(st))return st}let ot;if(nt.obj&&st&&(ot=tt.enterObject()),st){if(nt.explicit!==null){const ut=this._decodeTag(tt,nt.explicit);if(tt.isError(ut))return ut;tt=ut}const lt=tt.offset;if(nt.use===null&&nt.choice===null){let ut;nt.any&&(ut=tt.save());const dt=this._decodeTag(tt,nt.implicit!==null?nt.implicit:nt.tag,nt.any);if(tt.isError(dt))return dt;nt.any?it=tt.raw(ut):tt=dt}if(rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),lt,tt.length,"tagged"),rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),tt.offset,tt.length,"content"),nt.any||(nt.choice===null?it=this._decodeGeneric(nt.tag,tt,rt):it=this._decodeChoice(tt,rt)),tt.isError(it))return it;if(!nt.any&&nt.choice===null&&nt.children!==null&&nt.children.forEach(function(dt){dt._decode(tt,rt)}),nt.contains&&(nt.tag==="octstr"||nt.tag==="bitstr")){const ut=new DecoderBuffer$1(it);it=this._getUse(nt.contains,tt._reporterState.obj)._decode(ut,rt)}}return nt.obj&&st&&(it=tt.leaveObject(ot)),nt.key!==null&&(it!==null||st===!0)?tt.leaveKey(at,nt.key,it):at!==null&&tt.exitKey(at),it};Node$2.prototype._decodeGeneric=function(tt,rt,nt){const it=this._baseState;return tt==="seq"||tt==="set"?null:tt==="seqof"||tt==="setof"?this._decodeList(rt,tt,it.args[0],nt):/str$/.test(tt)?this._decodeStr(rt,tt,nt):tt==="objid"&&it.args?this._decodeObjid(rt,it.args[0],it.args[1],nt):tt==="objid"?this._decodeObjid(rt,null,null,nt):tt==="gentime"||tt==="utctime"?this._decodeTime(rt,tt,nt):tt==="null_"?this._decodeNull(rt,nt):tt==="bool"?this._decodeBool(rt,nt):tt==="objDesc"?this._decodeStr(rt,tt,nt):tt==="int"||tt==="enum"?this._decodeInt(rt,it.args&&it.args[0],nt):it.use!==null?this._getUse(it.use,rt._reporterState.obj)._decode(rt,nt):rt.error("unknown tag: "+tt)};Node$2.prototype._getUse=function(tt,rt){const nt=this._baseState;return nt.useDecoder=this._use(tt,rt),assert$4(nt.useDecoder._baseState.parent===null),nt.useDecoder=nt.useDecoder._baseState.children[0],nt.implicit!==nt.useDecoder._baseState.implicit&&(nt.useDecoder=nt.useDecoder.clone(),nt.useDecoder._baseState.implicit=nt.implicit),nt.useDecoder};Node$2.prototype._decodeChoice=function(tt,rt){const nt=this._baseState;let it=null,st=!1;return Object.keys(nt.choice).some(function(at){const ot=tt.save(),lt=nt.choice[at];try{const ut=lt._decode(tt,rt);if(tt.isError(ut))return!1;it={type:at,value:ut},st=!0}catch{return tt.restore(ot),!1}return!0},this),st?it:tt.error("Choice not matched")};Node$2.prototype._createEncoderBuffer=function(tt){return new EncoderBuffer(tt,this.reporter)};Node$2.prototype._encode=function(tt,rt,nt){const it=this._baseState;if(it.default!==null&&it.default===tt)return;const st=this._encodeValue(tt,rt,nt);if(st!==void 0&&!this._skipDefault(st,rt,nt))return st};Node$2.prototype._encodeValue=function(tt,rt,nt){const it=this._baseState;if(it.parent===null)return it.children[0]._encode(tt,rt||new Reporter);let st=null;if(this.reporter=rt,it.optional&&tt===void 0)if(it.default!==null)tt=it.default;else return;let at=null,ot=!1;if(it.any)st=this._createEncoderBuffer(tt);else if(it.choice)st=this._encodeChoice(tt,rt);else if(it.contains)at=this._getUse(it.contains,nt)._encode(tt,rt),ot=!0;else if(it.children)at=it.children.map(function(lt){if(lt._baseState.tag==="null_")return lt._encode(null,rt,tt);if(lt._baseState.key===null)return rt.error("Child should have a key");const ut=rt.enterKey(lt._baseState.key);if(typeof tt!="object")return rt.error("Child expected, but input is not object");const dt=lt._encode(tt[lt._baseState.key],rt,tt);return rt.leaveKey(ut),dt},this).filter(function(lt){return lt}),at=this._createEncoderBuffer(at);else if(it.tag==="seqof"||it.tag==="setof"){if(!(it.args&&it.args.length===1))return rt.error("Too many args for : "+it.tag);if(!Array.isArray(tt))return rt.error("seqof/setof, but data is not Array");const lt=this.clone();lt._baseState.implicit=null,at=this._createEncoderBuffer(tt.map(function(ut){const dt=this._baseState;return this._getUse(dt.args[0],tt)._encode(ut,rt)},lt))}else it.use!==null?st=this._getUse(it.use,nt)._encode(tt,rt):(at=this._encodePrimitive(it.tag,tt),ot=!0);if(!it.any&&it.choice===null){const lt=it.implicit!==null?it.implicit:it.tag,ut=it.implicit===null?"universal":"context";lt===null?it.use===null&&rt.error("Tag could be omitted only for .use()"):it.use===null&&(st=this._encodeComposite(lt,ot,ut,at))}return it.explicit!==null&&(st=this._encodeComposite(it.explicit,!1,"context",st)),st};Node$2.prototype._encodeChoice=function(tt,rt){const nt=this._baseState,it=nt.choice[tt.type];return it||assert$4(!1,tt.type+" not found in "+JSON.stringify(Object.keys(nt.choice))),it._encode(tt.value,rt)};Node$2.prototype._encodePrimitive=function(tt,rt){const nt=this._baseState;if(/str$/.test(tt))return this._encodeStr(rt,tt);if(tt==="objid"&&nt.args)return this._encodeObjid(rt,nt.reverseArgs[0],nt.args[1]);if(tt==="objid")return this._encodeObjid(rt,null,null);if(tt==="gentime"||tt==="utctime")return this._encodeTime(rt,tt);if(tt==="null_")return this._encodeNull();if(tt==="int"||tt==="enum")return this._encodeInt(rt,nt.args&&nt.reverseArgs[0]);if(tt==="bool")return this._encodeBool(rt);if(tt==="objDesc")return this._encodeStr(rt,tt);throw new Error("Unsupported tag: "+tt)};Node$2.prototype._isNumstr=function(tt){return/^[0-9 ]*$/.test(tt)};Node$2.prototype._isPrintstr=function(tt){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(tt)};var der$2={};(function(et){function tt(rt){const nt={};return Object.keys(rt).forEach(function(it){(it|0)==it&&(it=it|0);const st=rt[it];nt[st]=it}),nt}et.tagClass={0:"universal",1:"application",2:"context",3:"private"},et.tagClassByName=tt(et.tagClass),et.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},et.tagByName=tt(et.tag)})(der$2);const inherits$3=inherits_browserExports,Buffer$b=safer_1.Buffer,Node$1=node$1,der$1=der$2;function DEREncoder$1(et){this.enc="der",this.name=et.name,this.entity=et,this.tree=new DERNode$1,this.tree._init(et.body)}var der_1$1=DEREncoder$1;DEREncoder$1.prototype.encode=function(tt,rt){return this.tree._encode(tt,rt).join()};function DERNode$1(et){Node$1.call(this,"der",et)}inherits$3(DERNode$1,Node$1);DERNode$1.prototype._encodeComposite=function(tt,rt,nt,it){const st=encodeTag(tt,rt,nt,this.reporter);if(it.length<128){const lt=Buffer$b.alloc(2);return lt[0]=st,lt[1]=it.length,this._createEncoderBuffer([lt,it])}let at=1;for(let lt=it.length;lt>=256;lt>>=8)at++;const ot=Buffer$b.alloc(1+1+at);ot[0]=st,ot[1]=128|at;for(let lt=1+at,ut=it.length;ut>0;lt--,ut>>=8)ot[lt]=ut&255;return this._createEncoderBuffer([ot,it])};DERNode$1.prototype._encodeStr=function(tt,rt){if(rt==="bitstr")return this._createEncoderBuffer([tt.unused|0,tt.data]);if(rt==="bmpstr"){const nt=Buffer$b.alloc(tt.length*2);for(let it=0;it=40)return this.reporter.error("Second objid identifier OOB");tt.splice(0,2,tt[0]*40+tt[1])}let it=0;for(let ot=0;ot=128;lt>>=7)it++}const st=Buffer$b.alloc(it);let at=st.length-1;for(let ot=tt.length-1;ot>=0;ot--){let lt=tt[ot];for(st[at--]=lt&127;(lt>>=7)>0;)st[at--]=128|lt&127}return this._createEncoderBuffer(st)};function two(et){return et<10?"0"+et:et}DERNode$1.prototype._encodeTime=function(tt,rt){let nt;const it=new Date(tt);return rt==="gentime"?nt=[two(it.getUTCFullYear()),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):rt==="utctime"?nt=[two(it.getUTCFullYear()%100),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+rt+" time is not supported yet"),this._encodeStr(nt,"octstr")};DERNode$1.prototype._encodeNull=function(){return this._createEncoderBuffer("")};DERNode$1.prototype._encodeInt=function(tt,rt){if(typeof tt=="string"){if(!rt)return this.reporter.error("String int or enum given, but no values map");if(!rt.hasOwnProperty(tt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(tt));tt=rt[tt]}if(typeof tt!="number"&&!Buffer$b.isBuffer(tt)){const st=tt.toArray();!tt.sign&&st[0]&128&&st.unshift(0),tt=Buffer$b.from(st)}if(Buffer$b.isBuffer(tt)){let st=tt.length;tt.length===0&&st++;const at=Buffer$b.alloc(st);return tt.copy(at),tt.length===0&&(at[0]=0),this._createEncoderBuffer(at)}if(tt<128)return this._createEncoderBuffer(tt);if(tt<256)return this._createEncoderBuffer([0,tt]);let nt=1;for(let st=tt;st>=256;st>>=8)nt++;const it=new Array(nt);for(let st=it.length-1;st>=0;st--)it[st]=tt&255,tt>>=8;return it[0]&128&&it.unshift(0),this._createEncoderBuffer(Buffer$b.from(it))};DERNode$1.prototype._encodeBool=function(tt){return this._createEncoderBuffer(tt?255:0)};DERNode$1.prototype._use=function(tt,rt){return typeof tt=="function"&&(tt=tt(rt)),tt._getEncoder("der").tree};DERNode$1.prototype._skipDefault=function(tt,rt,nt){const it=this._baseState;let st;if(it.default===null)return!1;const at=tt.join();if(it.defaultBuffer===void 0&&(it.defaultBuffer=this._encodeValue(it.default,rt,nt).join()),at.length!==it.defaultBuffer.length)return!1;for(st=0;st=31?nt.error("Multi-octet tag encoding unsupported"):(tt||(it|=32),it|=der$1.tagClassByName[rt||"universal"]<<6,it)}const inherits$2=inherits_browserExports,DEREncoder=der_1$1;function PEMEncoder(et){DEREncoder.call(this,et),this.enc="pem"}inherits$2(PEMEncoder,DEREncoder);var pem$1=PEMEncoder;PEMEncoder.prototype.encode=function(tt,rt){const it=DEREncoder.prototype.encode.call(this,tt).toString("base64"),st=["-----BEGIN "+rt.label+"-----"];for(let at=0;at>6],it=(rt&32)===0;if((rt&31)===31){let at=rt;for(rt=0;(at&128)===128;){if(at=et.readUInt8(tt),et.isError(at))return at;rt<<=7,rt|=at&127}}else rt&=31;const st=der.tag[rt];return{cls:nt,primitive:it,tag:rt,tagStr:st}}function derDecodeLen(et,tt,rt){let nt=et.readUInt8(rt);if(et.isError(nt))return nt;if(!tt&&nt===128)return null;if(!(nt&128))return nt;const it=nt&127;if(it>4)return et.error("length octect is too long");nt=0;for(let st=0;st0&&St.ishrn(Bt),St}function pt(mt,wt){mt=kt(mt,wt),mt=mt.mod(wt);var St=et.from(mt.toArray());if(St.length=0)throw new Error("invalid sig")}return verify_1=st,verify_1}var browser$4,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$4;hasRequiredBrowser$1=1;var et=safeBufferExports.Buffer,tt=browser$a,rt=readableBrowserExports,nt=inherits_browserExports,it=requireSign(),st=requireVerify(),at=require$$6;Object.keys(at).forEach(function(bt){at[bt].id=et.from(at[bt].id,"hex"),at[bt.toLowerCase()]=at[bt]});function ot(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hashType=gt.hash,this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(ot,rt.Writable),ot.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},ot.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},ot.prototype.sign=function(gt,kt){this.end();var pt=this._hash.digest(),yt=it(pt,gt,this._hashType,this._signType,this._tag);return kt?yt.toString(kt):yt};function lt(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(lt,rt.Writable),lt.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},lt.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},lt.prototype.verify=function(gt,kt,pt){var yt=typeof kt=="string"?et.from(kt,pt):kt;this.end();var $t=this._hash.digest();return st(yt,$t,gt,this._signType,this._tag)};function ut(bt){return new ot(bt)}function dt(bt){return new lt(bt)}return browser$4={Sign:ut,Verify:dt,createSign:ut,createVerify:dt},browser$4}var browser$3,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$3;hasRequiredBrowser=1;var et=requireElliptic(),tt=bnExports$2;browser$3=function(at){return new nt(at)};var rt={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};rt.p224=rt.secp224r1,rt.p256=rt.secp256r1=rt.prime256v1,rt.p192=rt.secp192r1=rt.prime192v1,rt.p384=rt.secp384r1,rt.p521=rt.secp521r1;function nt(st){this.curveType=rt[st],this.curveType||(this.curveType={name:st}),this.curve=new et.ec(this.curveType.name),this.keys=void 0}nt.prototype.generateKeys=function(st,at){return this.keys=this.curve.genKeyPair(),this.getPublicKey(st,at)},nt.prototype.computeSecret=function(st,at,ot){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var lt=this.curve.keyFromPublic(st).getPublic(),ut=lt.mul(this.keys.getPrivate()).getX();return it(ut,ot,this.curveType.byteLength)},nt.prototype.getPublicKey=function(st,at){var ot=this.keys.getPublic(at==="compressed",!0);return at==="hybrid"&&(ot[ot.length-1]%2?ot[0]=7:ot[0]=6),it(ot,st)},nt.prototype.getPrivateKey=function(st){return it(this.keys.getPrivate(),st)},nt.prototype.setPublicKey=function(st,at){return at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at)),this.keys._importPublic(st),this},nt.prototype.setPrivateKey=function(st,at){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var ot=new tt(st);return ot=ot.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ot),this};function it(st,at,ot){Array.isArray(st)||(st=st.toArray());var lt=new Buffer(st);if(ot&<.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return nt?crt$1(at,st):withPublic$1(at,st)};function oaep$1(et,tt){var rt=et.modulus.byteLength(),nt=tt.length,it=createHash$2("sha1").update(Buffer$5.alloc(0)).digest(),st=it.length,at=2*st;if(nt>rt-at-2)throw new Error("message too long");var ot=Buffer$5.alloc(rt-nt-at-2),lt=rt-st-1,ut=randomBytes(st),dt=xor$1(Buffer$5.concat([it,ot,Buffer$5.alloc(1,1),tt],lt),mgf$1(ut,lt)),bt=xor$1(ut,mgf$1(dt,st));return new BN$3(Buffer$5.concat([Buffer$5.alloc(1),bt,dt],rt))}function pkcs1$1(et,tt,rt){var nt=tt.length,it=et.modulus.byteLength();if(nt>it-11)throw new Error("message too long");var st;return rt?st=Buffer$5.alloc(it-nt-3,255):st=nonZero(it-nt-3),new BN$3(Buffer$5.concat([Buffer$5.from([0,rt?1:2]),st,Buffer$5.alloc(1),tt],it))}function nonZero(et){for(var tt=Buffer$5.allocUnsafe(et),rt=0,nt=randomBytes(et*2),it=0,st;rtat||new BN$2(rt).cmp(st.modulus)>=0)throw new Error("decryption error");var ot;nt?ot=withPublic(new BN$2(rt),st):ot=crt(rt,st);var lt=Buffer$4.alloc(at-ot.length);if(ot=Buffer$4.concat([lt,ot],at),it===4)return oaep(st,ot);if(it===1)return pkcs1(st,ot,nt);if(it===3)return ot;throw new Error("unknown padding")};function oaep(et,tt){var rt=et.modulus.byteLength(),nt=createHash$1("sha1").update(Buffer$4.alloc(0)).digest(),it=nt.length;if(tt[0]!==0)throw new Error("decryption error");var st=tt.slice(1,it+1),at=tt.slice(it+1),ot=xor(st,mgf(at,it)),lt=xor(at,mgf(ot,rt-it-1));if(compare$1(nt,lt.slice(0,it)))throw new Error("decryption error");for(var ut=it;lt[ut]===0;)ut++;if(lt[ut++]!==1)throw new Error("decryption error");return lt.slice(ut)}function pkcs1(et,tt,rt){for(var nt=tt.slice(0,2),it=2,st=0;tt[it++]!==0;)if(it>=tt.length){st++;break}var at=tt.slice(2,it-1);if((nt.toString("hex")!=="0002"&&!rt||nt.toString("hex")!=="0001"&&rt)&&st++,at.length<8&&st++,st)throw new Error("decryption error");return tt.slice(it)}function compare$1(et,tt){et=Buffer$4.from(et),tt=Buffer$4.from(tt);var rt=0,nt=et.length;et.length!==tt.length&&(rt++,nt=Math.min(et.length,tt.length));for(var it=-1;++itkMaxUint32||et<0)throw new TypeError("offset must be a uint32");if(et>kBufferMaxLength||et>tt)throw new RangeError("offset out of range")}function assertSize(et,tt,rt){if(typeof et!="number"||et!==et)throw new TypeError("size must be a number");if(et>kMaxUint32||et<0)throw new TypeError("size must be a uint32");if(et+tt>rt||et>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$3&&crypto$3.getRandomValues||!process.browser?(browser$1.randomFill=randomFill,browser$1.randomFillSync=randomFillSync):(browser$1.randomFill=oldBrowser,browser$1.randomFillSync=oldBrowser);function randomFill(et,tt,rt,nt){if(!Buffer$3.isBuffer(et)&&!(et instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof tt=="function")nt=tt,tt=0,rt=et.length;else if(typeof rt=="function")nt=rt,rt=et.length-tt;else if(typeof nt!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(tt,et.length),assertSize(rt,tt,et.length),actualFill(et,tt,rt,nt)}function actualFill(et,tt,rt,nt){if(process.browser){var it=et.buffer,st=new Uint8Array(it,tt,rt);if(crypto$3.getRandomValues(st),nt){process.nextTick(function(){nt(null,et)});return}return et}if(nt){randombytes(rt,function(ot,lt){if(ot)return nt(ot);lt.copy(et,tt),nt(null,et)});return}var at=randombytes(rt);return at.copy(et,tt),et}function randomFillSync(et,tt,rt){if(typeof tt>"u"&&(tt=0),!Buffer$3.isBuffer(et)&&!(et instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(tt,et.length),rt===void 0&&(rt=et.length-tt),assertSize(rt,tt,et.length),actualFill(et,tt,rt)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$a,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$9;var et=algos,tt=Object.keys(et),rt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(tt);cryptoBrowserify.getHashes=function(){return rt};var nt=browser$8;cryptoBrowserify.pbkdf2=nt.pbkdf2,cryptoBrowserify.pbkdf2Sync=nt.pbkdf2Sync;var it=browser$7;cryptoBrowserify.Cipher=it.Cipher,cryptoBrowserify.createCipher=it.createCipher,cryptoBrowserify.Cipheriv=it.Cipheriv,cryptoBrowserify.createCipheriv=it.createCipheriv,cryptoBrowserify.Decipher=it.Decipher,cryptoBrowserify.createDecipher=it.createDecipher,cryptoBrowserify.Decipheriv=it.Decipheriv,cryptoBrowserify.createDecipheriv=it.createDecipheriv,cryptoBrowserify.getCiphers=it.getCiphers,cryptoBrowserify.listCiphers=it.listCiphers;var st=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=st.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=st.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=st.getDiffieHellman,cryptoBrowserify.createDiffieHellman=st.createDiffieHellman,cryptoBrowserify.DiffieHellman=st.DiffieHellman;var at=requireBrowser$1();cryptoBrowserify.createSign=at.createSign,cryptoBrowserify.Sign=at.Sign,cryptoBrowserify.createVerify=at.createVerify,cryptoBrowserify.Verify=at.Verify,cryptoBrowserify.createECDH=requireBrowser();var ot=browser$2;cryptoBrowserify.publicEncrypt=ot.publicEncrypt,cryptoBrowserify.privateEncrypt=ot.privateEncrypt,cryptoBrowserify.publicDecrypt=ot.publicDecrypt,cryptoBrowserify.privateDecrypt=ot.privateDecrypt;var lt=browser$1;return cryptoBrowserify.randomFill=lt.randomFill,cryptoBrowserify.randomFillSync=lt.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var rngBrowser={exports:{}},getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var tt=0,rt;tt<16;tt++)tt&3||(rt=Math.random()*4294967296),rnds[tt]=rt>>>((tt&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex=[];for(var i$2=0;i$2<256;++i$2)byteToHex[i$2]=(i$2+256).toString(16).substr(1);function bytesToUuid$1(et,tt){var rt=tt||0,nt=byteToHex;return[nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]]].join("")}var bytesToUuid_1=bytesToUuid$1,rng=rngBrowserExports,bytesToUuid=bytesToUuid_1;function v4(et,tt,rt){var nt=tt&&rt||0;typeof et=="string"&&(tt=et==="binary"?new Array(16):null,et=null),et=et||{};var it=et.random||(et.rng||rng)();if(it[6]=it[6]&15|64,it[8]=it[8]&63|128,tt)for(var st=0;st<16;++st)tt[nt+st]=it[st];return tt||bytesToUuid(it)}var v4_1=v4,macaroon$1={},sjcl={exports:{}};(function(et){var tt={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(pt){this.toString=function(){return"CORRUPT: "+this.message},this.message=pt},invalid:function(pt){this.toString=function(){return"INVALID: "+this.message},this.message=pt},bug:function(pt){this.toString=function(){return"BUG: "+this.message},this.message=pt},notReady:function(pt){this.toString=function(){return"NOT READY: "+this.message},this.message=pt}}};tt.cipher.aes=function(pt){this.s[0][0][0]||this.O();var yt,$t,mt,wt,St=this.s[0][4],Bt=this.s[1];yt=pt.length;var Ft=1;if(yt!==4&&yt!==6&&yt!==8)throw new tt.exception.invalid("invalid aes key size");for(this.b=[mt=pt.slice(0),wt=[]],pt=yt;pt<4*yt+28;pt++)$t=mt[pt-1],(pt%yt===0||yt===8&&pt%yt===4)&&($t=St[$t>>>24]<<24^St[$t>>16&255]<<16^St[$t>>8&255]<<8^St[$t&255],pt%yt===0&&($t=$t<<8^$t>>>24^Ft<<24,Ft=Ft<<1^283*(Ft>>7))),mt[pt]=mt[pt-yt]^$t;for(yt=0;pt;yt++,pt--)$t=mt[yt&3?pt:pt-4],wt[yt]=4>=pt||4>yt?$t:Bt[0][St[$t>>>24]]^Bt[1][St[$t>>16&255]]^Bt[2][St[$t>>8&255]]^Bt[3][St[$t&255]]},tt.cipher.aes.prototype={encrypt:function(pt){return rt(this,pt,0)},decrypt:function(pt){return rt(this,pt,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var pt=this.s[0],yt=this.s[1],$t=pt[4],mt=yt[4],wt,St,Bt,Ft=[],Dt=[],zt,Ht,Wt,lr;for(wt=0;256>wt;wt++)Dt[(Ft[wt]=wt<<1^283*(wt>>7))^wt]=wt;for(St=Bt=0;!$t[St];St^=zt||1,Bt=Dt[Bt]||1)for(Wt=Bt^Bt<<1^Bt<<2^Bt<<3^Bt<<4,Wt=Wt>>8^Wt&255^99,$t[St]=Wt,mt[Wt]=St,Ht=Ft[wt=Ft[zt=Ft[St]]],lr=16843009*Ht^65537*wt^257*zt^16843008*St,Ht=257*Ft[Wt]^16843008*Wt,wt=0;4>wt;wt++)pt[wt][St]=Ht=Ht<<24^Ht>>>8,yt[wt][Wt]=lr=lr<<24^lr>>>8;for(wt=0;5>wt;wt++)pt[wt]=pt[wt].slice(0),yt[wt]=yt[wt].slice(0)}};function rt(pt,yt,$t){if(yt.length!==4)throw new tt.exception.invalid("invalid aes block size");var mt=pt.b[$t],wt=yt[0]^mt[0],St=yt[$t?3:1]^mt[1],Bt=yt[2]^mt[2];yt=yt[$t?1:3]^mt[3];var Ft,Dt,zt,Ht=mt.length/4-2,Wt,lr=4,qt=[0,0,0,0];Ft=pt.s[$t],pt=Ft[0];var Ot=Ft[1],Mt=Ft[2],ht=Ft[3],Et=Ft[4];for(Wt=0;Wt>>24]^Ot[St>>16&255]^Mt[Bt>>8&255]^ht[yt&255]^mt[lr],Dt=pt[St>>>24]^Ot[Bt>>16&255]^Mt[yt>>8&255]^ht[wt&255]^mt[lr+1],zt=pt[Bt>>>24]^Ot[yt>>16&255]^Mt[wt>>8&255]^ht[St&255]^mt[lr+2],yt=pt[yt>>>24]^Ot[wt>>16&255]^Mt[St>>8&255]^ht[Bt&255]^mt[lr+3],lr+=4,wt=Ft,St=Dt,Bt=zt;for(Wt=0;4>Wt;Wt++)qt[$t?3&-Wt:Wt]=Et[wt>>>24]<<24^Et[St>>16&255]<<16^Et[Bt>>8&255]<<8^Et[yt&255]^mt[lr++],Ft=wt,wt=St,St=Bt,Bt=yt,yt=Ft;return qt}tt.bitArray={bitSlice:function(pt,yt,$t){return pt=tt.bitArray.$(pt.slice(yt/32),32-(yt&31)).slice(1),$t===void 0?pt:tt.bitArray.clamp(pt,$t-yt)},extract:function(pt,yt,$t){var mt=Math.floor(-yt-$t&31);return((yt+$t-1^yt)&-32?pt[yt/32|0]<<32-mt^pt[yt/32+1|0]>>>mt:pt[yt/32|0]>>>mt)&(1<<$t)-1},concat:function(pt,yt){if(pt.length===0||yt.length===0)return pt.concat(yt);var $t=pt[pt.length-1],mt=tt.bitArray.getPartial($t);return mt===32?pt.concat(yt):tt.bitArray.$(yt,mt,$t|0,pt.slice(0,pt.length-1))},bitLength:function(pt){var yt=pt.length;return yt===0?0:32*(yt-1)+tt.bitArray.getPartial(pt[yt-1])},clamp:function(pt,yt){if(32*pt.length>yt-1,1)),pt},partial:function(pt,yt,$t){return pt===32?yt:($t?yt|0:yt<<32-pt)+1099511627776*pt},getPartial:function(pt){return Math.round(pt/1099511627776)||32},equal:function(pt,yt){if(tt.bitArray.bitLength(pt)!==tt.bitArray.bitLength(yt))return!1;var $t=0,mt;for(mt=0;mt>>yt),$t=pt[wt]<<32-yt;return wt=pt.length?pt[pt.length-1]:0,pt=tt.bitArray.getPartial(wt),mt.push(tt.bitArray.partial(yt+pt&31,32>>24|$t>>>8&65280|($t&65280)<<8|$t<<24;return pt}},tt.codec.utf8String={fromBits:function(pt){var yt="",$t=tt.bitArray.bitLength(pt),mt,wt;for(mt=0;mt<$t/8;mt++)!(mt&3)&&(wt=pt[mt/4]),yt+=String.fromCharCode(wt>>>8>>>8>>>8),wt<<=8;return decodeURIComponent(escape(yt))},toBits:function(pt){pt=unescape(encodeURIComponent(pt));var yt=[],$t,mt=0;for($t=0;$t>>Bt)>>>wt),BtHt){if(!yt)try{return tt.codec.base32hex.toBits(pt)}catch{}throw new tt.exception.invalid("this isn't "+Wt+"!")}Ft>wt?(Ft-=wt,St.push(zt^Ht>>>Ft),zt=Ht<<$t-Ft):(Ft+=mt,zt^=Ht<<$t-Ft)}return Ft&56&&St.push(tt.bitArray.partial(Ft&56,zt,1)),St}},tt.codec.base32hex={fromBits:function(pt,yt){return tt.codec.base32.fromBits(pt,yt,1)},toBits:function(pt){return tt.codec.base32.toBits(pt,1)}},tt.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(pt,yt,$t){var mt="",wt=0,St=tt.codec.base64.B,Bt=0,Ft=tt.bitArray.bitLength(pt);for($t&&(St=St.substr(0,62)+"-_"),$t=0;6*mt.length>>wt)>>>26),6>wt?(Bt=pt[$t]<<6-wt,wt+=26,$t++):(Bt<<=6,wt-=6);for(;mt.length&3&&!yt;)mt+="=";return mt},toBits:function(pt,yt){pt=pt.replace(/\s|=/g,"");var $t=[],mt,wt=0,St=tt.codec.base64.B,Bt=0,Ft;for(yt&&(St=St.substr(0,62)+"-_"),mt=0;mtFt)throw new tt.exception.invalid("this isn't base64!");26>>wt),Bt=Ft<<32-wt):(wt+=6,Bt^=Ft<<32-wt)}return wt&56&&$t.push(tt.bitArray.partial(wt&56,Bt,1)),$t}},tt.codec.base64url={fromBits:function(pt){return tt.codec.base64.fromBits(pt,1,1)},toBits:function(pt){return tt.codec.base64.toBits(pt,1)}},tt.hash.sha256=function(pt){this.b[0]||this.O(),pt?(this.F=pt.F.slice(0),this.A=pt.A.slice(0),this.l=pt.l):this.reset()},tt.hash.sha256.hash=function(pt){return new tt.hash.sha256().update(pt).finalize()},tt.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(pt){typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt));var yt,$t=this.A=tt.bitArray.concat(this.A,pt);if(yt=this.l,pt=this.l=yt+tt.bitArray.bitLength(pt),9007199254740991yt;$t++){for(wt=!0,mt=2;mt*mt<=$t;mt++)if($t%mt===0){wt=!1;break}wt&&(8>yt&&(this.Y[yt]=pt(Math.pow($t,.5))),this.b[yt]=pt(Math.pow($t,1/3)),yt++)}}};function nt(pt,yt){var $t,mt,wt,St=pt.F,Bt=pt.b,Ft=St[0],Dt=St[1],zt=St[2],Ht=St[3],Wt=St[4],lr=St[5],qt=St[6],Ot=St[7];for($t=0;64>$t;$t++)16>$t?mt=yt[$t]:(mt=yt[$t+1&15],wt=yt[$t+14&15],mt=yt[$t&15]=(mt>>>7^mt>>>18^mt>>>3^mt<<25^mt<<14)+(wt>>>17^wt>>>19^wt>>>10^wt<<15^wt<<13)+yt[$t&15]+yt[$t+9&15]|0),mt=mt+Ot+(Wt>>>6^Wt>>>11^Wt>>>25^Wt<<26^Wt<<21^Wt<<7)+(qt^Wt&(lr^qt))+Bt[$t],Ot=qt,qt=lr,lr=Wt,Wt=Ht+mt|0,Ht=zt,zt=Dt,Dt=Ft,Ft=mt+(Dt&zt^Ht&(Dt^zt))+(Dt>>>2^Dt>>>13^Dt>>>22^Dt<<30^Dt<<19^Dt<<10)|0;St[0]=St[0]+Ft|0,St[1]=St[1]+Dt|0,St[2]=St[2]+zt|0,St[3]=St[3]+Ht|0,St[4]=St[4]+Wt|0,St[5]=St[5]+lr|0,St[6]=St[6]+qt|0,St[7]=St[7]+Ot|0}tt.mode.ccm={name:"ccm",G:[],listenProgress:function(pt){tt.mode.ccm.G.push(pt)},unListenProgress:function(pt){pt=tt.mode.ccm.G.indexOf(pt),-1Dt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(St=2;4>St&&zt>>>8*St;St++);return St<15-Dt&&(St=15-Dt),$t=Ft.clamp($t,8*(15-St)),yt=tt.mode.ccm.V(pt,yt,$t,mt,wt,St),Bt=tt.mode.ccm.C(pt,Bt,$t,yt,wt,St),Ft.concat(Bt.data,Bt.tag)},decrypt:function(pt,yt,$t,mt,wt){wt=wt||64,mt=mt||[];var St=tt.bitArray,Bt=St.bitLength($t)/8,zt=St.bitLength(yt),Ft=St.clamp(yt,zt-wt),Dt=St.bitSlice(yt,zt-wt),zt=(zt-wt)/8;if(7>Bt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(yt=2;4>yt&&zt>>>8*yt;yt++);if(yt<15-Bt&&(yt=15-Bt),$t=St.clamp($t,8*(15-yt)),Ft=tt.mode.ccm.C(pt,Ft,$t,Dt,wt,yt),pt=tt.mode.ccm.V(pt,Ft.data,$t,mt,wt,yt),!St.equal(Ft.tag,pt))throw new tt.exception.corrupt("ccm: tag doesn't match");return Ft.data},na:function(pt,yt,$t,mt,wt,St){var Bt=[],Ft=tt.bitArray,Dt=Ft.i;if(mt=[Ft.partial(8,(yt.length?64:0)|mt-2<<2|St-1)],mt=Ft.concat(mt,$t),mt[3]|=wt,mt=pt.encrypt(mt),yt.length)for($t=Ft.bitLength(yt)/8,65279>=$t?Bt=[Ft.partial(16,$t)]:4294967295>=$t&&(Bt=Ft.concat([Ft.partial(16,65534)],[$t])),Bt=Ft.concat(Bt,yt),yt=0;ytwt||16Ht&&(tt.mode.ccm.fa(Bt/Dt),Ht+=Wt),$t[3]++,wt=pt.encrypt($t),yt[Bt]^=wt[0],yt[Bt+1]^=wt[1],yt[Bt+2]^=wt[2],yt[Bt+3]^=wt[3];return{tag:mt,data:Ft.clamp(yt,zt)}}},tt.mode.ocb2={name:"ocb2",encrypt:function(pt,yt,$t,mt,wt,St){if(tt.bitArray.bitLength($t)!==128)throw new tt.exception.invalid("ocb iv must be 128 bits");var Bt,Ft=tt.mode.ocb2.S,Dt=tt.bitArray,zt=Dt.i,Ht=[0,0,0,0];$t=Ft(pt.encrypt($t));var Wt,lr=[];for(mt=mt||[],wt=wt||64,Bt=0;Bt+4wt.bitLength($t)&&(Ft=St(Ft,mt(Ft)),$t=wt.concat($t,[-2147483648,0,0,0])),Bt=St(Bt,$t),pt.encrypt(St(mt(St(Ft,mt(Ft))),Bt))},S:function(pt){return[pt[0]<<1^pt[1]>>>31,pt[1]<<1^pt[2]>>>31,pt[2]<<1^pt[3]>>>31,pt[3]<<1^135*(pt[0]>>>31)]}},tt.mode.gcm={name:"gcm",encrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0);return yt=tt.bitArray,mt=mt||[],pt=tt.mode.gcm.C(!0,pt,St,mt,$t,wt||128),yt.concat(pt.data,pt.tag)},decrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0),Bt=tt.bitArray,Ft=Bt.bitLength(St);if(wt=wt||128,mt=mt||[],wt<=Ft?(yt=Bt.bitSlice(St,Ft-wt),St=Bt.bitSlice(St,0,Ft-wt)):(yt=St,St=[]),pt=tt.mode.gcm.C(!1,pt,St,mt,$t,wt),!Bt.equal(pt.tag,yt))throw new tt.exception.corrupt("gcm: tag doesn't match");return pt.data},ka:function(pt,yt){var $t,mt,wt,St,Bt,Ft=tt.bitArray.i;for(wt=[0,0,0,0],St=yt.slice(0),$t=0;128>$t;$t++){for((mt=(pt[Math.floor($t/32)]&1<<31-$t%32)!==0)&&(wt=Ft(wt,St)),Bt=(St[3]&1)!==0,mt=3;0>>1|(St[mt-1]&1)<<31;St[0]>>>=1,Bt&&(St[0]^=-520093696)}return wt},j:function(pt,yt,$t){var mt,wt=$t.length;for(yt=yt.slice(0),mt=0;mtwt&&(pt=yt.hash(pt)),mt=0;mtmt||0>$t)throw new tt.exception.invalid("invalid params to pbkdf2");typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt)),typeof yt=="string"&&(yt=tt.codec.utf8String.toBits(yt)),wt=wt||tt.misc.hmac,pt=new wt(pt);var St,Bt,Ft,Dt,zt=[],Ht=tt.bitArray;for(Dt=1;32*zt.length<(mt||1);Dt++){for(wt=St=pt.encrypt(Ht.concat(yt,[Dt])),Bt=1;Bt<$t;Bt++)for(St=pt.encrypt(St),Ft=0;FtBt;Bt++)wt.push(4294967296*Math.random()|0);for(Bt=0;Bt=1<this.o&&(this.o=St),this.P++,this.b=tt.hash.sha256.hash(this.b.concat(wt)),this.L=new tt.cipher.aes(this.b),mt=0;4>mt&&(this.h[mt]=this.h[mt]+1|0,!this.h[mt]);mt++);}for(mt=0;mt>>1;this.c[Bt].update([mt,this.N++,2,yt,St,pt.length].concat(pt))}break;case"string":yt===void 0&&(yt=pt.length),this.c[Bt].update([mt,this.N++,3,yt,St,pt.length]),this.c[Bt].update(pt);break;default:Dt=1}if(Dt)throw new tt.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[Bt]+=yt,this.f+=yt,Ft===this.u&&(this.isReady()!==this.u&&it("seeded",Math.max(this.o,this.f)),it("progress",this.getProgress()))},isReady:function(pt){return pt=this.T[pt!==void 0?pt:this.M],this.o&&this.o>=pt?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=pt?this.J|this.u:this.u},getProgress:function(pt){return pt=this.T[pt||this.M],this.o>=pt||this.f>pt?1:this.f/pt},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:lt(this,this.ma),mouseCollector:lt(this,this.oa),keyboardCollector:lt(this,this.la),accelerometerCollector:lt(this,this.ea),touchCollector:lt(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new tt.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(pt,yt){this.K[pt][this.ga++]=yt},removeEventListener:function(pt,yt){var $t,mt,wt=this.K[pt],St=[];for(mt in wt)wt.hasOwnProperty(mt)&&wt[mt]===yt&&St.push(mt);for($t=0;$tyt&&(pt.h[yt]=pt.h[yt]+1|0,!pt.h[yt]);yt++);return pt.L.encrypt(pt.h)}function lt(pt,yt){return function(){yt.apply(pt,arguments)}}tt.random=new tt.prng(6);e:try{var ut,dt,bt,gt;if(gt=et.exports){var kt;try{kt=requireCryptoBrowserify()}catch{kt=null}gt=dt=kt}if(gt&&dt.randomBytes)ut=dt.randomBytes(128),ut=new Uint32Array(new Uint8Array(ut).buffer),tt.random.addEntropy(ut,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(bt=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(bt);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(bt);else break e;tt.random.addEntropy(bt,1024,"crypto['getRandomValues']")}}catch(pt){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(pt))}tt.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(pt,yt,$t,mt){$t=$t||{},mt=mt||{};var wt=tt.json,St=wt.g({iv:tt.random.randomWords(4,0)},wt.defaults),Bt;if(wt.g(St,$t),$t=St.adata,typeof St.salt=="string"&&(St.salt=tt.codec.base64.toBits(St.salt)),typeof St.iv=="string"&&(St.iv=tt.codec.base64.toBits(St.iv)),!tt.mode[St.mode]||!tt.cipher[St.cipher]||typeof pt=="string"&&100>=St.iter||St.ts!==64&&St.ts!==96&&St.ts!==128||St.ks!==128&&St.ks!==192&&St.ks!==256||2>St.iv.length||4=yt.iter||yt.ts!==64&&yt.ts!==96&&yt.ts!==128||yt.ks!==128&&yt.ks!==192&&yt.ks!==256||!yt.iv||2>yt.iv.length||4>24&255,Xt[ar+1]=cr>>16&255,Xt[ar+2]=cr>>8&255,Xt[ar+3]=cr&255,Xt[ar+4]=jt>>24&255,Xt[ar+5]=jt>>16&255,Xt[ar+6]=jt>>8&255,Xt[ar+7]=jt&255}function yt(Xt,ar,cr,jt,dr){var Rr,Cr=0;for(Rr=0;Rr>>8)-1}function $t(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,16)}function mt(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,32)}function wt(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;pn=pn+dr|0,wn=wn+Rr|0,un=un+Cr|0,yn=yn+Nr|0,mn=mn+Yr|0,cn=cn+tn|0,Ur=Ur+qr|0,jr=jr+Vn|0,en=en+hn|0,Gr=Gr+Tn|0,Zr=Zr+An|0,sn=sn+Rn|0,On=On+Pn|0,zn=zn+In|0,Gn=Gn+$n|0,Hn=Hn+Bn|0,Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=wn>>>0&255,Xt[5]=wn>>>8&255,Xt[6]=wn>>>16&255,Xt[7]=wn>>>24&255,Xt[8]=un>>>0&255,Xt[9]=un>>>8&255,Xt[10]=un>>>16&255,Xt[11]=un>>>24&255,Xt[12]=yn>>>0&255,Xt[13]=yn>>>8&255,Xt[14]=yn>>>16&255,Xt[15]=yn>>>24&255,Xt[16]=mn>>>0&255,Xt[17]=mn>>>8&255,Xt[18]=mn>>>16&255,Xt[19]=mn>>>24&255,Xt[20]=cn>>>0&255,Xt[21]=cn>>>8&255,Xt[22]=cn>>>16&255,Xt[23]=cn>>>24&255,Xt[24]=Ur>>>0&255,Xt[25]=Ur>>>8&255,Xt[26]=Ur>>>16&255,Xt[27]=Ur>>>24&255,Xt[28]=jr>>>0&255,Xt[29]=jr>>>8&255,Xt[30]=jr>>>16&255,Xt[31]=jr>>>24&255,Xt[32]=en>>>0&255,Xt[33]=en>>>8&255,Xt[34]=en>>>16&255,Xt[35]=en>>>24&255,Xt[36]=Gr>>>0&255,Xt[37]=Gr>>>8&255,Xt[38]=Gr>>>16&255,Xt[39]=Gr>>>24&255,Xt[40]=Zr>>>0&255,Xt[41]=Zr>>>8&255,Xt[42]=Zr>>>16&255,Xt[43]=Zr>>>24&255,Xt[44]=sn>>>0&255,Xt[45]=sn>>>8&255,Xt[46]=sn>>>16&255,Xt[47]=sn>>>24&255,Xt[48]=On>>>0&255,Xt[49]=On>>>8&255,Xt[50]=On>>>16&255,Xt[51]=On>>>24&255,Xt[52]=zn>>>0&255,Xt[53]=zn>>>8&255,Xt[54]=zn>>>16&255,Xt[55]=zn>>>24&255,Xt[56]=Gn>>>0&255,Xt[57]=Gn>>>8&255,Xt[58]=Gn>>>16&255,Xt[59]=Gn>>>24&255,Xt[60]=Hn>>>0&255,Xt[61]=Hn>>>8&255,Xt[62]=Hn>>>16&255,Xt[63]=Hn>>>24&255}function St(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=cn>>>0&255,Xt[5]=cn>>>8&255,Xt[6]=cn>>>16&255,Xt[7]=cn>>>24&255,Xt[8]=Zr>>>0&255,Xt[9]=Zr>>>8&255,Xt[10]=Zr>>>16&255,Xt[11]=Zr>>>24&255,Xt[12]=Hn>>>0&255,Xt[13]=Hn>>>8&255,Xt[14]=Hn>>>16&255,Xt[15]=Hn>>>24&255,Xt[16]=Ur>>>0&255,Xt[17]=Ur>>>8&255,Xt[18]=Ur>>>16&255,Xt[19]=Ur>>>24&255,Xt[20]=jr>>>0&255,Xt[21]=jr>>>8&255,Xt[22]=jr>>>16&255,Xt[23]=jr>>>24&255,Xt[24]=en>>>0&255,Xt[25]=en>>>8&255,Xt[26]=en>>>16&255,Xt[27]=en>>>24&255,Xt[28]=Gr>>>0&255,Xt[29]=Gr>>>8&255,Xt[30]=Gr>>>16&255,Xt[31]=Gr>>>24&255}function Bt(Xt,ar,cr,jt){wt(Xt,ar,cr,jt)}function Ft(Xt,ar,cr,jt){St(Xt,ar,cr,jt)}var Dt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function zt(Xt,ar,cr,jt,dr,Rr,Cr){var Nr=new Uint8Array(16),Yr=new Uint8Array(64),tn,qr;for(qr=0;qr<16;qr++)Nr[qr]=0;for(qr=0;qr<8;qr++)Nr[qr]=Rr[qr];for(;dr>=64;){for(Bt(Yr,Nr,Cr,Dt),qr=0;qr<64;qr++)Xt[ar+qr]=cr[jt+qr]^Yr[qr];for(tn=1,qr=8;qr<16;qr++)tn=tn+(Nr[qr]&255)|0,Nr[qr]=tn&255,tn>>>=8;dr-=64,ar+=64,jt+=64}if(dr>0)for(Bt(Yr,Nr,Cr,Dt),qr=0;qr=64;){for(Bt(Cr,Rr,dr,Dt),Yr=0;Yr<64;Yr++)Xt[ar+Yr]=Cr[Yr];for(Nr=1,Yr=8;Yr<16;Yr++)Nr=Nr+(Rr[Yr]&255)|0,Rr[Yr]=Nr&255,Nr>>>=8;cr-=64,ar+=64}if(cr>0)for(Bt(Cr,Rr,dr,Dt),Yr=0;Yr>>13|cr<<3)&8191,jt=Xt[4]&255|(Xt[5]&255)<<8,this.r[2]=(cr>>>10|jt<<6)&7939,dr=Xt[6]&255|(Xt[7]&255)<<8,this.r[3]=(jt>>>7|dr<<9)&8191,Rr=Xt[8]&255|(Xt[9]&255)<<8,this.r[4]=(dr>>>4|Rr<<12)&255,this.r[5]=Rr>>>1&8190,Cr=Xt[10]&255|(Xt[11]&255)<<8,this.r[6]=(Rr>>>14|Cr<<2)&8191,Nr=Xt[12]&255|(Xt[13]&255)<<8,this.r[7]=(Cr>>>11|Nr<<5)&8065,Yr=Xt[14]&255|(Xt[15]&255)<<8,this.r[8]=(Nr>>>8|Yr<<8)&8191,this.r[9]=Yr>>>5&127,this.pad[0]=Xt[16]&255|(Xt[17]&255)<<8,this.pad[1]=Xt[18]&255|(Xt[19]&255)<<8,this.pad[2]=Xt[20]&255|(Xt[21]&255)<<8,this.pad[3]=Xt[22]&255|(Xt[23]&255)<<8,this.pad[4]=Xt[24]&255|(Xt[25]&255)<<8,this.pad[5]=Xt[26]&255|(Xt[27]&255)<<8,this.pad[6]=Xt[28]&255|(Xt[29]&255)<<8,this.pad[7]=Xt[30]&255|(Xt[31]&255)<<8};qt.prototype.blocks=function(Xt,ar,cr){for(var jt=this.fin?0:2048,dr,Rr,Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn=this.h[0],mn=this.h[1],cn=this.h[2],Ur=this.h[3],jr=this.h[4],en=this.h[5],Gr=this.h[6],Zr=this.h[7],sn=this.h[8],On=this.h[9],zn=this.r[0],Gn=this.r[1],Hn=this.r[2],Tr=this.r[3],Yn=this.r[4],es=this.r[5],ts=this.r[6],Wn=this.r[7],rs=this.r[8],Qn=this.r[9];cr>=16;)dr=Xt[ar+0]&255|(Xt[ar+1]&255)<<8,yn+=dr&8191,Rr=Xt[ar+2]&255|(Xt[ar+3]&255)<<8,mn+=(dr>>>13|Rr<<3)&8191,Cr=Xt[ar+4]&255|(Xt[ar+5]&255)<<8,cn+=(Rr>>>10|Cr<<6)&8191,Nr=Xt[ar+6]&255|(Xt[ar+7]&255)<<8,Ur+=(Cr>>>7|Nr<<9)&8191,Yr=Xt[ar+8]&255|(Xt[ar+9]&255)<<8,jr+=(Nr>>>4|Yr<<12)&8191,en+=Yr>>>1&8191,tn=Xt[ar+10]&255|(Xt[ar+11]&255)<<8,Gr+=(Yr>>>14|tn<<2)&8191,qr=Xt[ar+12]&255|(Xt[ar+13]&255)<<8,Zr+=(tn>>>11|qr<<5)&8191,Vn=Xt[ar+14]&255|(Xt[ar+15]&255)<<8,sn+=(qr>>>8|Vn<<8)&8191,On+=Vn>>>5|jt,hn=0,Tn=hn,Tn+=yn*zn,Tn+=mn*(5*Qn),Tn+=cn*(5*rs),Tn+=Ur*(5*Wn),Tn+=jr*(5*ts),hn=Tn>>>13,Tn&=8191,Tn+=en*(5*es),Tn+=Gr*(5*Yn),Tn+=Zr*(5*Tr),Tn+=sn*(5*Hn),Tn+=On*(5*Gn),hn+=Tn>>>13,Tn&=8191,An=hn,An+=yn*Gn,An+=mn*zn,An+=cn*(5*Qn),An+=Ur*(5*rs),An+=jr*(5*Wn),hn=An>>>13,An&=8191,An+=en*(5*ts),An+=Gr*(5*es),An+=Zr*(5*Yn),An+=sn*(5*Tr),An+=On*(5*Hn),hn+=An>>>13,An&=8191,Rn=hn,Rn+=yn*Hn,Rn+=mn*Gn,Rn+=cn*zn,Rn+=Ur*(5*Qn),Rn+=jr*(5*rs),hn=Rn>>>13,Rn&=8191,Rn+=en*(5*Wn),Rn+=Gr*(5*ts),Rn+=Zr*(5*es),Rn+=sn*(5*Yn),Rn+=On*(5*Tr),hn+=Rn>>>13,Rn&=8191,Pn=hn,Pn+=yn*Tr,Pn+=mn*Hn,Pn+=cn*Gn,Pn+=Ur*zn,Pn+=jr*(5*Qn),hn=Pn>>>13,Pn&=8191,Pn+=en*(5*rs),Pn+=Gr*(5*Wn),Pn+=Zr*(5*ts),Pn+=sn*(5*es),Pn+=On*(5*Yn),hn+=Pn>>>13,Pn&=8191,In=hn,In+=yn*Yn,In+=mn*Tr,In+=cn*Hn,In+=Ur*Gn,In+=jr*zn,hn=In>>>13,In&=8191,In+=en*(5*Qn),In+=Gr*(5*rs),In+=Zr*(5*Wn),In+=sn*(5*ts),In+=On*(5*es),hn+=In>>>13,In&=8191,$n=hn,$n+=yn*es,$n+=mn*Yn,$n+=cn*Tr,$n+=Ur*Hn,$n+=jr*Gn,hn=$n>>>13,$n&=8191,$n+=en*zn,$n+=Gr*(5*Qn),$n+=Zr*(5*rs),$n+=sn*(5*Wn),$n+=On*(5*ts),hn+=$n>>>13,$n&=8191,Bn=hn,Bn+=yn*ts,Bn+=mn*es,Bn+=cn*Yn,Bn+=Ur*Tr,Bn+=jr*Hn,hn=Bn>>>13,Bn&=8191,Bn+=en*Gn,Bn+=Gr*zn,Bn+=Zr*(5*Qn),Bn+=sn*(5*rs),Bn+=On*(5*Wn),hn+=Bn>>>13,Bn&=8191,pn=hn,pn+=yn*Wn,pn+=mn*ts,pn+=cn*es,pn+=Ur*Yn,pn+=jr*Tr,hn=pn>>>13,pn&=8191,pn+=en*Hn,pn+=Gr*Gn,pn+=Zr*zn,pn+=sn*(5*Qn),pn+=On*(5*rs),hn+=pn>>>13,pn&=8191,wn=hn,wn+=yn*rs,wn+=mn*Wn,wn+=cn*ts,wn+=Ur*es,wn+=jr*Yn,hn=wn>>>13,wn&=8191,wn+=en*Tr,wn+=Gr*Hn,wn+=Zr*Gn,wn+=sn*zn,wn+=On*(5*Qn),hn+=wn>>>13,wn&=8191,un=hn,un+=yn*Qn,un+=mn*rs,un+=cn*Wn,un+=Ur*ts,un+=jr*es,hn=un>>>13,un&=8191,un+=en*Yn,un+=Gr*Tr,un+=Zr*Hn,un+=sn*Gn,un+=On*zn,hn+=un>>>13,un&=8191,hn=(hn<<2)+hn|0,hn=hn+Tn|0,Tn=hn&8191,hn=hn>>>13,An+=hn,yn=Tn,mn=An,cn=Rn,Ur=Pn,jr=In,en=$n,Gr=Bn,Zr=pn,sn=wn,On=un,ar+=16,cr-=16;this.h[0]=yn,this.h[1]=mn,this.h[2]=cn,this.h[3]=Ur,this.h[4]=jr,this.h[5]=en,this.h[6]=Gr,this.h[7]=Zr,this.h[8]=sn,this.h[9]=On},qt.prototype.finish=function(Xt,ar){var cr=new Uint16Array(10),jt,dr,Rr,Cr;if(this.leftover){for(Cr=this.leftover,this.buffer[Cr++]=1;Cr<16;Cr++)this.buffer[Cr]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(jt=this.h[1]>>>13,this.h[1]&=8191,Cr=2;Cr<10;Cr++)this.h[Cr]+=jt,jt=this.h[Cr]>>>13,this.h[Cr]&=8191;for(this.h[0]+=jt*5,jt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=jt,jt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=jt,cr[0]=this.h[0]+5,jt=cr[0]>>>13,cr[0]&=8191,Cr=1;Cr<10;Cr++)cr[Cr]=this.h[Cr]+jt,jt=cr[Cr]>>>13,cr[Cr]&=8191;for(cr[9]-=8192,dr=(jt^1)-1,Cr=0;Cr<10;Cr++)cr[Cr]&=dr;for(dr=~dr,Cr=0;Cr<10;Cr++)this.h[Cr]=this.h[Cr]&dr|cr[Cr];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Rr=this.h[0]+this.pad[0],this.h[0]=Rr&65535,Cr=1;Cr<8;Cr++)Rr=(this.h[Cr]+this.pad[Cr]|0)+(Rr>>>16)|0,this.h[Cr]=Rr&65535;Xt[ar+0]=this.h[0]>>>0&255,Xt[ar+1]=this.h[0]>>>8&255,Xt[ar+2]=this.h[1]>>>0&255,Xt[ar+3]=this.h[1]>>>8&255,Xt[ar+4]=this.h[2]>>>0&255,Xt[ar+5]=this.h[2]>>>8&255,Xt[ar+6]=this.h[3]>>>0&255,Xt[ar+7]=this.h[3]>>>8&255,Xt[ar+8]=this.h[4]>>>0&255,Xt[ar+9]=this.h[4]>>>8&255,Xt[ar+10]=this.h[5]>>>0&255,Xt[ar+11]=this.h[5]>>>8&255,Xt[ar+12]=this.h[6]>>>0&255,Xt[ar+13]=this.h[6]>>>8&255,Xt[ar+14]=this.h[7]>>>0&255,Xt[ar+15]=this.h[7]>>>8&255},qt.prototype.update=function(Xt,ar,cr){var jt,dr;if(this.leftover){for(dr=16-this.leftover,dr>cr&&(dr=cr),jt=0;jt=16&&(dr=cr-cr%16,this.blocks(Xt,ar,dr),ar+=dr,cr-=dr),cr){for(jt=0;jt>16&1),Rr[cr-1]&=65535;Rr[15]=Cr[15]-32767-(Rr[14]>>16&1),dr=Rr[15]>>16&1,Rr[14]&=65535,At(Cr,Rr,1-dr)}for(cr=0;cr<16;cr++)Xt[2*cr]=Cr[cr]&255,Xt[2*cr+1]=Cr[cr]>>8}function It(Xt,ar){var cr=new Uint8Array(32),jt=new Uint8Array(32);return Pt(cr,Xt),Pt(jt,ar),mt(cr,0,jt,0)}function Ct(Xt){var ar=new Uint8Array(32);return Pt(ar,Xt),ar[0]&1}function xt(Xt,ar){var cr;for(cr=0;cr<16;cr++)Xt[cr]=ar[2*cr]+(ar[2*cr+1]<<8);Xt[15]&=32767}function Lt(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]+cr[jt]}function tr(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]-cr[jt]}function pr(Xt,ar,cr){var jt,dr,Rr=0,Cr=0,Nr=0,Yr=0,tn=0,qr=0,Vn=0,hn=0,Tn=0,An=0,Rn=0,Pn=0,In=0,$n=0,Bn=0,pn=0,wn=0,un=0,yn=0,mn=0,cn=0,Ur=0,jr=0,en=0,Gr=0,Zr=0,sn=0,On=0,zn=0,Gn=0,Hn=0,Tr=cr[0],Yn=cr[1],es=cr[2],ts=cr[3],Wn=cr[4],rs=cr[5],Qn=cr[6],vs=cr[7],os=cr[8],ps=cr[9],bs=cr[10],xs=cr[11],Ss=cr[12],As=cr[13],Ps=cr[14],Is=cr[15];jt=ar[0],Rr+=jt*Tr,Cr+=jt*Yn,Nr+=jt*es,Yr+=jt*ts,tn+=jt*Wn,qr+=jt*rs,Vn+=jt*Qn,hn+=jt*vs,Tn+=jt*os,An+=jt*ps,Rn+=jt*bs,Pn+=jt*xs,In+=jt*Ss,$n+=jt*As,Bn+=jt*Ps,pn+=jt*Is,jt=ar[1],Cr+=jt*Tr,Nr+=jt*Yn,Yr+=jt*es,tn+=jt*ts,qr+=jt*Wn,Vn+=jt*rs,hn+=jt*Qn,Tn+=jt*vs,An+=jt*os,Rn+=jt*ps,Pn+=jt*bs,In+=jt*xs,$n+=jt*Ss,Bn+=jt*As,pn+=jt*Ps,wn+=jt*Is,jt=ar[2],Nr+=jt*Tr,Yr+=jt*Yn,tn+=jt*es,qr+=jt*ts,Vn+=jt*Wn,hn+=jt*rs,Tn+=jt*Qn,An+=jt*vs,Rn+=jt*os,Pn+=jt*ps,In+=jt*bs,$n+=jt*xs,Bn+=jt*Ss,pn+=jt*As,wn+=jt*Ps,un+=jt*Is,jt=ar[3],Yr+=jt*Tr,tn+=jt*Yn,qr+=jt*es,Vn+=jt*ts,hn+=jt*Wn,Tn+=jt*rs,An+=jt*Qn,Rn+=jt*vs,Pn+=jt*os,In+=jt*ps,$n+=jt*bs,Bn+=jt*xs,pn+=jt*Ss,wn+=jt*As,un+=jt*Ps,yn+=jt*Is,jt=ar[4],tn+=jt*Tr,qr+=jt*Yn,Vn+=jt*es,hn+=jt*ts,Tn+=jt*Wn,An+=jt*rs,Rn+=jt*Qn,Pn+=jt*vs,In+=jt*os,$n+=jt*ps,Bn+=jt*bs,pn+=jt*xs,wn+=jt*Ss,un+=jt*As,yn+=jt*Ps,mn+=jt*Is,jt=ar[5],qr+=jt*Tr,Vn+=jt*Yn,hn+=jt*es,Tn+=jt*ts,An+=jt*Wn,Rn+=jt*rs,Pn+=jt*Qn,In+=jt*vs,$n+=jt*os,Bn+=jt*ps,pn+=jt*bs,wn+=jt*xs,un+=jt*Ss,yn+=jt*As,mn+=jt*Ps,cn+=jt*Is,jt=ar[6],Vn+=jt*Tr,hn+=jt*Yn,Tn+=jt*es,An+=jt*ts,Rn+=jt*Wn,Pn+=jt*rs,In+=jt*Qn,$n+=jt*vs,Bn+=jt*os,pn+=jt*ps,wn+=jt*bs,un+=jt*xs,yn+=jt*Ss,mn+=jt*As,cn+=jt*Ps,Ur+=jt*Is,jt=ar[7],hn+=jt*Tr,Tn+=jt*Yn,An+=jt*es,Rn+=jt*ts,Pn+=jt*Wn,In+=jt*rs,$n+=jt*Qn,Bn+=jt*vs,pn+=jt*os,wn+=jt*ps,un+=jt*bs,yn+=jt*xs,mn+=jt*Ss,cn+=jt*As,Ur+=jt*Ps,jr+=jt*Is,jt=ar[8],Tn+=jt*Tr,An+=jt*Yn,Rn+=jt*es,Pn+=jt*ts,In+=jt*Wn,$n+=jt*rs,Bn+=jt*Qn,pn+=jt*vs,wn+=jt*os,un+=jt*ps,yn+=jt*bs,mn+=jt*xs,cn+=jt*Ss,Ur+=jt*As,jr+=jt*Ps,en+=jt*Is,jt=ar[9],An+=jt*Tr,Rn+=jt*Yn,Pn+=jt*es,In+=jt*ts,$n+=jt*Wn,Bn+=jt*rs,pn+=jt*Qn,wn+=jt*vs,un+=jt*os,yn+=jt*ps,mn+=jt*bs,cn+=jt*xs,Ur+=jt*Ss,jr+=jt*As,en+=jt*Ps,Gr+=jt*Is,jt=ar[10],Rn+=jt*Tr,Pn+=jt*Yn,In+=jt*es,$n+=jt*ts,Bn+=jt*Wn,pn+=jt*rs,wn+=jt*Qn,un+=jt*vs,yn+=jt*os,mn+=jt*ps,cn+=jt*bs,Ur+=jt*xs,jr+=jt*Ss,en+=jt*As,Gr+=jt*Ps,Zr+=jt*Is,jt=ar[11],Pn+=jt*Tr,In+=jt*Yn,$n+=jt*es,Bn+=jt*ts,pn+=jt*Wn,wn+=jt*rs,un+=jt*Qn,yn+=jt*vs,mn+=jt*os,cn+=jt*ps,Ur+=jt*bs,jr+=jt*xs,en+=jt*Ss,Gr+=jt*As,Zr+=jt*Ps,sn+=jt*Is,jt=ar[12],In+=jt*Tr,$n+=jt*Yn,Bn+=jt*es,pn+=jt*ts,wn+=jt*Wn,un+=jt*rs,yn+=jt*Qn,mn+=jt*vs,cn+=jt*os,Ur+=jt*ps,jr+=jt*bs,en+=jt*xs,Gr+=jt*Ss,Zr+=jt*As,sn+=jt*Ps,On+=jt*Is,jt=ar[13],$n+=jt*Tr,Bn+=jt*Yn,pn+=jt*es,wn+=jt*ts,un+=jt*Wn,yn+=jt*rs,mn+=jt*Qn,cn+=jt*vs,Ur+=jt*os,jr+=jt*ps,en+=jt*bs,Gr+=jt*xs,Zr+=jt*Ss,sn+=jt*As,On+=jt*Ps,zn+=jt*Is,jt=ar[14],Bn+=jt*Tr,pn+=jt*Yn,wn+=jt*es,un+=jt*ts,yn+=jt*Wn,mn+=jt*rs,cn+=jt*Qn,Ur+=jt*vs,jr+=jt*os,en+=jt*ps,Gr+=jt*bs,Zr+=jt*xs,sn+=jt*Ss,On+=jt*As,zn+=jt*Ps,Gn+=jt*Is,jt=ar[15],pn+=jt*Tr,wn+=jt*Yn,un+=jt*es,yn+=jt*ts,mn+=jt*Wn,cn+=jt*rs,Ur+=jt*Qn,jr+=jt*vs,en+=jt*os,Gr+=jt*ps,Zr+=jt*bs,sn+=jt*xs,On+=jt*Ss,zn+=jt*As,Gn+=jt*Ps,Hn+=jt*Is,Rr+=38*wn,Cr+=38*un,Nr+=38*yn,Yr+=38*mn,tn+=38*cn,qr+=38*Ur,Vn+=38*jr,hn+=38*en,Tn+=38*Gr,An+=38*Zr,Rn+=38*sn,Pn+=38*On,In+=38*zn,$n+=38*Gn,Bn+=38*Hn,dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),Xt[0]=Rr,Xt[1]=Cr,Xt[2]=Nr,Xt[3]=Yr,Xt[4]=tn,Xt[5]=qr,Xt[6]=Vn,Xt[7]=hn,Xt[8]=Tn,Xt[9]=An,Xt[10]=Rn,Xt[11]=Pn,Xt[12]=In,Xt[13]=$n,Xt[14]=Bn,Xt[15]=pn}function Kt(Xt,ar){pr(Xt,ar,ar)}function Qt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=253;jt>=0;jt--)Kt(cr,cr),jt!==2&&jt!==4&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function Zt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=250;jt>=0;jt--)Kt(cr,cr),jt!==1&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function ur(Xt,ar,cr){var jt=new Uint8Array(32),dr=new Float64Array(80),Rr,Cr,Nr=rt(),Yr=rt(),tn=rt(),qr=rt(),Vn=rt(),hn=rt();for(Cr=0;Cr<31;Cr++)jt[Cr]=ar[Cr];for(jt[31]=ar[31]&127|64,jt[0]&=248,xt(dr,cr),Cr=0;Cr<16;Cr++)Yr[Cr]=dr[Cr],qr[Cr]=Nr[Cr]=tn[Cr]=0;for(Nr[0]=qr[0]=1,Cr=254;Cr>=0;--Cr)Rr=jt[Cr>>>3]>>>(Cr&7)&1,At(Nr,Yr,Rr),At(tn,qr,Rr),Lt(Vn,Nr,tn),tr(Nr,Nr,tn),Lt(tn,Yr,qr),tr(Yr,Yr,qr),Kt(qr,Vn),Kt(hn,Nr),pr(Nr,tn,Nr),pr(tn,Yr,Vn),Lt(Vn,Nr,tn),tr(Nr,Nr,tn),Kt(Yr,Nr),tr(tn,qr,hn),pr(Nr,tn,lt),Lt(Nr,Nr,qr),pr(tn,tn,Nr),pr(Nr,qr,hn),pr(qr,Yr,dr),Kt(Yr,Vn),At(Nr,Yr,Rr),At(tn,qr,Rr);for(Cr=0;Cr<16;Cr++)dr[Cr+16]=Nr[Cr],dr[Cr+32]=tn[Cr],dr[Cr+48]=Yr[Cr],dr[Cr+64]=qr[Cr];var Tn=dr.subarray(32),An=dr.subarray(16);return Qt(Tn,Tn),pr(An,An,Tn),Pt(Xt,An),0}function _r(Xt,ar){return ur(Xt,ar,st)}function er(Xt,ar){return nt(ar,32),_r(Xt,ar)}function Jt(Xt,ar,cr){var jt=new Uint8Array(32);return ur(jt,cr,ar),Ft(Xt,it,jt,Dt)}var Ar=ht,Er=Et;function Dr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Ar(Xt,ar,cr,jt,Cr)}function Xr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Er(Xt,ar,cr,jt,Cr)}var Vr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function wr(Xt,ar,cr,jt){for(var dr=new Int32Array(16),Rr=new Int32Array(16),Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn,mn,cn,Ur,jr,en,Gr,Zr,sn,On=Xt[0],zn=Xt[1],Gn=Xt[2],Hn=Xt[3],Tr=Xt[4],Yn=Xt[5],es=Xt[6],ts=Xt[7],Wn=ar[0],rs=ar[1],Qn=ar[2],vs=ar[3],os=ar[4],ps=ar[5],bs=ar[6],xs=ar[7],Ss=0;jt>=128;){for(mn=0;mn<16;mn++)cn=8*mn+Ss,dr[mn]=cr[cn+0]<<24|cr[cn+1]<<16|cr[cn+2]<<8|cr[cn+3],Rr[mn]=cr[cn+4]<<24|cr[cn+5]<<16|cr[cn+6]<<8|cr[cn+7];for(mn=0;mn<80;mn++)if(Cr=On,Nr=zn,Yr=Gn,tn=Hn,qr=Tr,Vn=Yn,hn=es,Tn=ts,An=Wn,Rn=rs,Pn=Qn,In=vs,$n=os,Bn=ps,pn=bs,wn=xs,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(Tr>>>14|os<<32-14)^(Tr>>>18|os<<32-18)^(os>>>41-32|Tr<<32-(41-32)),jr=(os>>>14|Tr<<32-14)^(os>>>18|Tr<<32-18)^(Tr>>>41-32|os<<32-(41-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Tr&Yn^~Tr&es,jr=os&ps^~os&bs,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Vr[mn*2],jr=Vr[mn*2+1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=dr[mn%16],jr=Rr[mn%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,un=Zr&65535|sn<<16,yn=en&65535|Gr<<16,Ur=un,jr=yn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(On>>>28|Wn<<32-28)^(Wn>>>34-32|On<<32-(34-32))^(Wn>>>39-32|On<<32-(39-32)),jr=(Wn>>>28|On<<32-28)^(On>>>34-32|Wn<<32-(34-32))^(On>>>39-32|Wn<<32-(39-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=On&zn^On&Gn^zn&Gn,jr=Wn&rs^Wn&Qn^rs&Qn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Tn=Zr&65535|sn<<16,wn=en&65535|Gr<<16,Ur=tn,jr=In,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=un,jr=yn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,tn=Zr&65535|sn<<16,In=en&65535|Gr<<16,zn=Cr,Gn=Nr,Hn=Yr,Tr=tn,Yn=qr,es=Vn,ts=hn,On=Tn,rs=An,Qn=Rn,vs=Pn,os=In,ps=$n,bs=Bn,xs=pn,Wn=wn,mn%16===15)for(cn=0;cn<16;cn++)Ur=dr[cn],jr=Rr[cn],en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=dr[(cn+9)%16],jr=Rr[(cn+9)%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+1)%16],yn=Rr[(cn+1)%16],Ur=(un>>>1|yn<<32-1)^(un>>>8|yn<<32-8)^un>>>7,jr=(yn>>>1|un<<32-1)^(yn>>>8|un<<32-8)^(yn>>>7|un<<32-7),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+14)%16],yn=Rr[(cn+14)%16],Ur=(un>>>19|yn<<32-19)^(yn>>>61-32|un<<32-(61-32))^un>>>6,jr=(yn>>>19|un<<32-19)^(un>>>61-32|yn<<32-(61-32))^(yn>>>6|un<<32-6),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,dr[cn]=Zr&65535|sn<<16,Rr[cn]=en&65535|Gr<<16;Ur=On,jr=Wn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[0],jr=ar[0],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[0]=On=Zr&65535|sn<<16,ar[0]=Wn=en&65535|Gr<<16,Ur=zn,jr=rs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[1],jr=ar[1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[1]=zn=Zr&65535|sn<<16,ar[1]=rs=en&65535|Gr<<16,Ur=Gn,jr=Qn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[2],jr=ar[2],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[2]=Gn=Zr&65535|sn<<16,ar[2]=Qn=en&65535|Gr<<16,Ur=Hn,jr=vs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[3],jr=ar[3],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[3]=Hn=Zr&65535|sn<<16,ar[3]=vs=en&65535|Gr<<16,Ur=Tr,jr=os,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[4],jr=ar[4],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[4]=Tr=Zr&65535|sn<<16,ar[4]=os=en&65535|Gr<<16,Ur=Yn,jr=ps,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[5],jr=ar[5],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[5]=Yn=Zr&65535|sn<<16,ar[5]=ps=en&65535|Gr<<16,Ur=es,jr=bs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[6],jr=ar[6],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[6]=es=Zr&65535|sn<<16,ar[6]=bs=en&65535|Gr<<16,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[7],jr=ar[7],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[7]=ts=Zr&65535|sn<<16,ar[7]=xs=en&65535|Gr<<16,Ss+=128,jt-=128}return jt}function br(Xt,ar,cr){var jt=new Int32Array(8),dr=new Int32Array(8),Rr=new Uint8Array(256),Cr,Nr=cr;for(jt[0]=1779033703,jt[1]=3144134277,jt[2]=1013904242,jt[3]=2773480762,jt[4]=1359893119,jt[5]=2600822924,jt[6]=528734635,jt[7]=1541459225,dr[0]=4089235720,dr[1]=2227873595,dr[2]=4271175723,dr[3]=1595750129,dr[4]=2917565137,dr[5]=725511199,dr[6]=4215389547,dr[7]=327033209,wr(jt,dr,ar,cr),cr%=128,Cr=0;Cr=0;--dr)jt=cr[dr/8|0]>>(dr&7)&1,xr(Xt,ar,jt),or(ar,Xt),or(Xt,Xt),xr(Xt,ar,jt)}function rr(Xt,ar){var cr=[rt(),rt(),rt(),rt()];Tt(cr[0],bt),Tt(cr[1],gt),Tt(cr[2],ot),pr(cr[3],bt,gt),Or(Xt,cr,ar)}function gr(Xt,ar,cr){var jt=new Uint8Array(64),dr=[rt(),rt(),rt(),rt()],Rr;for(cr||nt(ar,32),br(jt,ar,32),jt[0]&=248,jt[31]&=127,jt[31]|=64,rr(dr,jt),Pr(Xt,dr),Rr=0;Rr<32;Rr++)ar[Rr+32]=Xt[Rr];return 0}var Ir=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Yt(Xt,ar){var cr,jt,dr,Rr;for(jt=63;jt>=32;--jt){for(cr=0,dr=jt-32,Rr=jt-12;dr>4)*Ir[dr],cr=ar[dr]>>8,ar[dr]&=255;for(dr=0;dr<32;dr++)ar[dr]-=cr*Ir[dr];for(jt=0;jt<32;jt++)ar[jt+1]+=ar[jt]>>8,Xt[jt]=ar[jt]&255}function Ut(Xt){var ar=new Float64Array(64),cr;for(cr=0;cr<64;cr++)ar[cr]=Xt[cr];for(cr=0;cr<64;cr++)Xt[cr]=0;Yt(Xt,ar)}function Vt(Xt,ar,cr,jt){var dr=new Uint8Array(64),Rr=new Uint8Array(64),Cr=new Uint8Array(64),Nr,Yr,tn=new Float64Array(64),qr=[rt(),rt(),rt(),rt()];br(dr,jt,32),dr[0]&=248,dr[31]&=127,dr[31]|=64;var Vn=cr+64;for(Nr=0;Nr>7&&tr(Xt[0],at,Xt[0]),pr(Xt[3],Xt[0],Xt[1]),0)}function kr(Xt,ar,cr,jt){var dr,Rr=new Uint8Array(32),Cr=new Uint8Array(64),Nr=[rt(),rt(),rt(),rt()],Yr=[rt(),rt(),rt(),rt()];if(cr<64||ir(Yr,jt))return-1;for(dr=0;dr=0},tt.sign.keyPair=function(){var Xt=new Uint8Array(xn),ar=new Uint8Array(is);return gr(Xt,ar),{publicKey:Xt,secretKey:ar}},tt.sign.keyPair.fromSecretKey=function(Xt){if(dn(Xt),Xt.length!==is)throw new Error("bad secret key size");for(var ar=new Uint8Array(xn),cr=0;cr"u"?typeof Buffer.from<"u"?(tt.encodeBase64=function(nt){return Buffer.from(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(Buffer.from(nt,"base64"),0))}):(tt.encodeBase64=function(nt){return new Buffer(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(new Buffer(nt,"base64"),0))}):(tt.encodeBase64=function(nt){var it,st=[],at=nt.length;for(it=0;ityt||br<0)throw new RangeError(`varint ${br} out of range`);this._grow(this._length+wt);let or=this._length;for(;br>=128;)this._buf[or++]=br&255|128,br>>>=7;this._buf[or++]=br|0,this._length=or}get bytes(){return this._buf.subarray(0,this._length)}_grow(br){const or=this._buf.length;if(br<=or)return;const xr=or*2,Pr=br>xr?br:xr,Or=new Uint8Array(Pr);Or.set(this._buf.subarray(0,this._length)),this._buf=Or}}const wt=5;class St{constructor(br){this._buf=br,this._index=0}readByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index++]}peekByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index]}readN(br){if(this.lengthwt||rr===wt&&Or>1)throw new RangeError("Overflow error decoding varint");return(or|Or<>>0}or|=(Or&127)<wr!=null,Ft=wr=>Bt(wr)?ot.encode(wr):wr,Dt=wr=>Bt(wr)?lt.decode(wr):wr,zt=wr=>rt.default.codec.utf8String.fromBits(wr);et.base64ToBytes=function(wr){return wr=wr.replace(/-/g,"+").replace(/_/g,"/"),wr.length%4!==0&&!wr.match(/=$/)&&(wr+="=".repeat(4-wr.length%4)),it.default.decodeBase64(wr)},et.bytesToBase64=function(wr){return it.default.encodeBase64(wr).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")};const Ht=function(wr){return rt.default.codec.base64.toBits(it.default.encodeBase64(wr))},Wt=function(wr){return it.default.decodeBase64(rt.default.codec.base64.fromBits(wr))},lr=function(wr){const br=new Uint8Array(Math.ceil(wr.length/2));for(let or=0;orBt(wr)?Ot(wr,br):"",ht=function(wr,br){if(wr instanceof Uint8Array)return wr;if(typeof wr=="string")return Ft(wr);throw new TypeError(`${br} has the wrong type; want string or Uint8Array, got ${typeof wr}.`)},Et=new Uint8Array,Tt=function(wr,br){const or=wr.readByte();if(or!==br)throw new Error(`Unexpected field type, got ${or} want ${br}`);return or===dt?Et:wr.readN(wr.readUvarint())},Rt=function(wr,br,or){wr.appendByte(br),br!==dt&&(wr.appendUvarint(or.length),wr.appendBytes(or))},At=function(wr,br){return wr.peekByte()!==br?null:Tt(wr,br)},Pt=function(wr,br,or){qt(or)?wr[br]=Dt(or):wr[br+"64"]=et.bytesToBase64(or)},It=function(wr,br){const or=new rt.default.misc.hmac(wr,rt.default.hash.sha256);return or.update(br),or.digest()},Ct=function(wr,br,or){const xr=It(wr,br),Pr=It(wr,or);return It(wr,rt.default.bitArray.concat(xr,Pr))},xt=Ht(Ft("macaroons-key-generator")),Lt=function(wr){return It(xt,wr)},tr=function(){return nt.default.randomBytes(ut)},pr=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=tr(),Or=nt.default.secretbox(xr,Pr,or),rr=new Uint8Array(Pr.length+Or.length);return rr.set(Pr,0),rr.set(Or,Pr.length),Ht(rr)},Kt=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=xr.slice(0,ut),Or=xr.slice(ut);let rr=nt.default.secretbox.open(Or,Pr,or);if(!rr)throw new Error("decryption failed");return Ht(rr)},Qt=Ht(Ft("\0".repeat(32))),Zt=function(wr,br){return rt.default.bitArray.equal(wr,br)?wr:Ct(Qt,wr,br)};class ur{constructor(br){if(!br)return;let{version:or,identifierBytes:xr,locationStr:Pr,caveats:Or,signatureBytes:rr}=br;if(or!==1&&or!==2)throw new Error(`Unexpected version ${or}`);if(this._version=or,this._locationStr=Pr,xr=ht(xr,"Identifier"),or===1&&!qt(xr))throw new Error("Version 1 macaroon identifier must be well-formed UTF-8");this._identifierBits=xr&&Ht(xr),this._signatureBits=rr&&Ht(ht(rr,"Signature")),this._caveats=Or?Or.map(gr=>{const Ir=ht(gr.identifierBytes,"Caveat identifier");if(or===1&&!qt(Ir))throw new Error("Version 1 caveat identifier must be well-formed UTF-8");return{_locationStr:Mt(gr.locationStr),_identifierBits:Ht(Ir),_vidBits:gr.vidBytes&&Ht(ht(gr.vidBytes,"Verification ID"))}}):[]}get caveats(){return this._caveats.map(br=>Bt(br._vidBits)?{identifier:Wt(br._identifierBits),location:br._locationStr,vid:Wt(br._vidBits)}:{identifier:Wt(br._identifierBits)})}get location(){return this._locationStr}get identifier(){return Wt(this._identifierBits)}get signature(){return Wt(this._signatureBits)}addThirdPartyCaveat(br,or,xr){const Pr={_identifierBits:Ht(ht(or,"Caveat id")),_vidBits:pr(this._signatureBits,Lt(Ht(ht(br,"Caveat root key")))),_locationStr:Mt(xr)};this._signatureBits=Ct(this._signatureBits,Pr._vidBits,Pr._identifierBits),this._caveats.push(Pr)}addFirstPartyCaveat(br){const or=Ht(ht(br,"Condition"));this._caveats.push({_identifierBits:or}),this._signatureBits=It(this._signatureBits,or)}bindToRoot(br){const or=Ht(ht(br,"Primary macaroon signature"));this._signatureBits=Zt(or,this._signatureBits)}clone(){const br=new ur;return br._version=this._version,br._signatureBits=this._signatureBits,br._identifierBits=this._identifierBits,br._locationStr=this._locationStr,br._caveats=this._caveats.slice(),br}verify(br,or,xr=[]){const Pr=Lt(Ht(ht(br,"Root key"))),Or=xr.map(rr=>0);this._verify(this._signatureBits,Pr,or,xr,Or),xr.forEach((rr,gr)=>{if(Or[gr]===0)throw new Error(`discharge macaroon ${$t(rr.identifier)} was not used`);if(Or[gr]!==1)throw new Error(`discharge macaroon ${$t(rr.identifier)} was used more than once`)})}_verify(br,or,xr,Pr,Or){let rr=It(or,this._identifierBits);this._caveats.forEach(Ir=>{if(Ir._vidBits){const Yt=Kt(rr,Ir._vidBits);let Ut=!1,Vt,ir;for(Vt=0;Vt1)throw new Error(`discharge macaroon ${$t(ir.identifier)} was used more than once`);ir._verify(br,Yt,xr,Pr,Or);break}if(!Ut)throw new Error(`cannot find discharge macaroon for caveat ${$t(Ir._identifierBits)}`);rr=Ct(rr,Ir._vidBits,Ir._identifierBits)}else{const Yt=zt(Ir._identifierBits),Ut=xr(Yt);if(Ut)throw new Error(`caveat check failed (${Yt}): ${Ut}`);rr=It(rr,Ir._identifierBits)}});const gr=Zt(br,rr);if(!rt.default.bitArray.equal(gr,this._signatureBits))throw new Error("signature mismatch after caveat verification")}exportJSON(){switch(this._version){case 1:return this._exportAsJSONObjectV1();case 2:return this._exportAsJSONObjectV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}_exportAsJSONObjectV1(){const br={identifier:zt(this._identifierBits),signature:rt.default.codec.hex.fromBits(this._signatureBits)};return this._locationStr&&(br.location=this._locationStr),this._caveats.length>0&&(br.caveats=this._caveats.map(or=>{const xr={cid:zt(or._identifierBits)};return or._vidBits&&(xr.vid=rt.default.codec.base64.fromBits(or._vidBits,!0,!0),xr.cl=or._locationStr),xr})),br}_exportAsJSONObjectV2(){const br={v:2};return Pt(br,"s",Wt(this._signatureBits)),Pt(br,"i",Wt(this._identifierBits)),this._locationStr&&(br.l=this._locationStr),this._caveats&&this._caveats.length>0&&(br.c=this._caveats.map(or=>{const xr={};return Pt(xr,"i",Wt(or._identifierBits)),or._vidBits&&(Pt(xr,"v",Wt(or._vidBits)),xr.l=or._locationStr),xr})),br}_exportBinaryV1(){throw new Error("V1 binary export not supported")}_exportBinaryV2(){const br=new mt(200);return br.appendByte(2),this._locationStr&&Rt(br,bt,Ft(this._locationStr)),Rt(br,gt,Wt(this._identifierBits)),Rt(br,dt),this._caveats.forEach(function(or){or._locationStr&&Rt(br,bt,Ft(or._locationStr)),Rt(br,gt,Wt(or._identifierBits)),or._vidBits&&Rt(br,kt,Wt(or._vidBits)),Rt(br,dt)}),Rt(br,dt),Rt(br,pt,Wt(this._signatureBits)),br.bytes}exportBinary(){switch(this._version){case 1:return this._exportBinaryV1();case 2:return this._exportBinaryV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}}et.importMacaroon=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){const br=new St(wr),or=Vr(br);if(br.length!==0)throw new TypeError("extra data found at end of serialized macaroon");return or}if(Array.isArray(wr))throw new TypeError("cannot import an array of macaroons as a single macaroon");return _r(wr)},et.importMacaroons=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){if(wr.length===0)throw new TypeError("empty macaroon data");const br=new St(wr),or=[];do or.push(Vr(br));while(br.length>0);return or}return Array.isArray(wr)?wr.map(br=>_r(br)):[_r(wr)]};const _r=function(wr){return er(wr)?Jt(wr):Ar(wr)};function er(wr){return Bt(wr.signature)}const Jt=function(wr){const br=wr.caveats&&wr.caveats.map(or=>{const xr={identifierBytes:Ft(Ot(or.cid,"Caveat id")),locationStr:Mt(or.cl,"Caveat location")};return or.vid&&(xr.vidBytes=et.base64ToBytes(Ot(or.vid,"Caveat verification id"))),xr});return new ur({version:1,locationStr:Mt(wr.location,"Macaroon location"),identifierBytes:Ft(Ot(wr.identifier,"Macaroon identifier")),caveats:br,signatureBytes:lr(wr.signature)})},Ar=function(wr){if(wr.v!==2&&wr.v!==void 0)throw new Error(`Unsupported macaroon version ${wr.v}`);const br={version:2,signatureBytes:Er(wr,"s",!0),locationStr:Dt(Er(wr,"l",!1)),identifierBytes:Er(wr,"i",!0)};if(wr.c){if(!Array.isArray(wr.c))throw new Error("caveats field does not hold an array");br.caveats=wr.c.map(or=>({identifierBytes:Er(or,"i",!0),locationStr:Dt(Er(or,"l")),vidBytes:Er(or,"v",!1)}))}return new ur(br)};function Er(wr,br,or){if(wr.hasOwnProperty(br))return Ft(wr[br]);const xr=br+"64";if(wr.hasOwnProperty(xr))return et.base64ToBytes(wr[xr]);if(or)throw new Error("Expected key: "+br);return null}const Dr=function(wr){const br=wr.readByte();if(br!==2)throw new Error(`Only version 2 is supported, found version ${br}`);const or=Dt(At(wr,bt)),xr=Tt(wr,gt),Pr=[];for(Tt(wr,dt);!At(wr,dt);){const rr={locationStr:Dt(At(wr,bt)),identifierBytes:Tt(wr,gt),vidBytes:At(wr,kt)};Tt(wr,dt),Pr.push(rr)}const Or=Tt(wr,pt);if(wr.length!==0)throw new Error("unexpected extra data at end of macaroon");return new ur({version:br,locationStr:or,identifierBytes:xr,signatureBytes:Or,caveats:Pr})},Xr=function(wr){return 48<=wr&&wr<=58||97<=wr&&wr<=102},Vr=function(wr){if(wr.length===0)throw new Error("Empty macaroon data");const br=wr.peekByte();if(br===2)return Dr(wr);throw Xr(br)?new Error("Version 1 binary format not supported"):new Error("Cannot determine data format of binary-encoded macaroon")};et.newMacaroon=function({identifier:wr,location:br,rootKey:or,version:xr}){const Pr=ht(wr,"Macaroon identifier"),Or=ht(or,"Macaroon root key");return new ur({version:xr===void 0?2:xr,identifierBytes:Pr,locationStr:Mt(br,"Macaroon location"),signatureBytes:Wt(It(Lt(Ht(Or)),Ht(Pr)))})},et.dischargeMacaroon=function(wr,br,or,xr){const Pr=wr.signature,Or=[wr];let rr=0,gr=!1;const Ir=wr.location,Yt=ir=>{gr||(ir.bindToRoot(Pr),Or.push(ir),rr--,Vt(ir))},Ut=ir=>{gr||(xr(ir),gr=!0)},Vt=ir=>{let kr,$r;for($r=0;$ret.LATEST_VERSION)throw new dt(pt.version);if(pt.version&&(this.version=pt.version),st(typeof this.version=="number","Identifier version must be a number"),st(pt.paymentHash.length===32,`Expected 32-byte hash, instead got ${pt.paymentHash.length}`),this.paymentHash=pt.paymentHash,pt.tokenId)this.tokenId=pt.tokenId;else{const yt=(0,lt.default)();this.tokenId=ot.default.createHash("sha256").update(Buffer.from(yt)).digest()}return st(this.tokenId.length===et.TOKEN_ID_SIZE,"Token Id of unexpected size"),this}toString(){return this.toHex()}static fromString(pt){try{return new this().fromHex(pt)}catch{return new this().fromBase64(pt)}}write(pt){switch(pt.writeU16BE(this.version),this.version){case 0:return pt.writeHash(this.paymentHash),st(Buffer.isBuffer(this.tokenId)&&this.tokenId.length===et.TOKEN_ID_SIZE,`Token ID must be ${et.TOKEN_ID_SIZE}-byte hash`),pt.writeBytes(this.tokenId),this;default:throw new dt(this.version)}}read(pt){switch(this.version=pt.readU16BE(),this.version){case 0:return this.paymentHash=pt.readHash(),this.tokenId=pt.readBytes(et.TOKEN_ID_SIZE),this;default:throw new dt(this.version)}}}et.Identifier=bt;const gt=kt=>{const pt=ut.importMacaroon(kt);let yt=pt._exportAsJSONObjectV2().i;if(yt==null&&(yt=pt._exportAsJSONObjectV2().i64,yt==null))throw new Error("Problem parsing macaroon identifier");return yt};et.decodeIdentifierFromMacaroon=gt})(identifier$1);var caveat={};/*! +`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var rngBrowser={exports:{}},getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var tt=0,rt;tt<16;tt++)tt&3||(rt=Math.random()*4294967296),rnds[tt]=rt>>>((tt&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex=[];for(var i$2=0;i$2<256;++i$2)byteToHex[i$2]=(i$2+256).toString(16).substr(1);function bytesToUuid$1(et,tt){var rt=tt||0,nt=byteToHex;return[nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]]].join("")}var bytesToUuid_1=bytesToUuid$1,rng=rngBrowserExports,bytesToUuid=bytesToUuid_1;function v4(et,tt,rt){var nt=tt&&rt||0;typeof et=="string"&&(tt=et==="binary"?new Array(16):null,et=null),et=et||{};var it=et.random||(et.rng||rng)();if(it[6]=it[6]&15|64,it[8]=it[8]&63|128,tt)for(var st=0;st<16;++st)tt[nt+st]=it[st];return tt||bytesToUuid(it)}var v4_1=v4,macaroon$1={},sjcl={exports:{}};(function(et){var tt={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(pt){this.toString=function(){return"CORRUPT: "+this.message},this.message=pt},invalid:function(pt){this.toString=function(){return"INVALID: "+this.message},this.message=pt},bug:function(pt){this.toString=function(){return"BUG: "+this.message},this.message=pt},notReady:function(pt){this.toString=function(){return"NOT READY: "+this.message},this.message=pt}}};tt.cipher.aes=function(pt){this.s[0][0][0]||this.O();var yt,$t,mt,wt,St=this.s[0][4],Bt=this.s[1];yt=pt.length;var Ft=1;if(yt!==4&&yt!==6&&yt!==8)throw new tt.exception.invalid("invalid aes key size");for(this.b=[mt=pt.slice(0),wt=[]],pt=yt;pt<4*yt+28;pt++)$t=mt[pt-1],(pt%yt===0||yt===8&&pt%yt===4)&&($t=St[$t>>>24]<<24^St[$t>>16&255]<<16^St[$t>>8&255]<<8^St[$t&255],pt%yt===0&&($t=$t<<8^$t>>>24^Ft<<24,Ft=Ft<<1^283*(Ft>>7))),mt[pt]=mt[pt-yt]^$t;for(yt=0;pt;yt++,pt--)$t=mt[yt&3?pt:pt-4],wt[yt]=4>=pt||4>yt?$t:Bt[0][St[$t>>>24]]^Bt[1][St[$t>>16&255]]^Bt[2][St[$t>>8&255]]^Bt[3][St[$t&255]]},tt.cipher.aes.prototype={encrypt:function(pt){return rt(this,pt,0)},decrypt:function(pt){return rt(this,pt,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var pt=this.s[0],yt=this.s[1],$t=pt[4],mt=yt[4],wt,St,Bt,Ft=[],Lt=[],zt,Ht,Wt,lr;for(wt=0;256>wt;wt++)Lt[(Ft[wt]=wt<<1^283*(wt>>7))^wt]=wt;for(St=Bt=0;!$t[St];St^=zt||1,Bt=Lt[Bt]||1)for(Wt=Bt^Bt<<1^Bt<<2^Bt<<3^Bt<<4,Wt=Wt>>8^Wt&255^99,$t[St]=Wt,mt[Wt]=St,Ht=Ft[wt=Ft[zt=Ft[St]]],lr=16843009*Ht^65537*wt^257*zt^16843008*St,Ht=257*Ft[Wt]^16843008*Wt,wt=0;4>wt;wt++)pt[wt][St]=Ht=Ht<<24^Ht>>>8,yt[wt][Wt]=lr=lr<<24^lr>>>8;for(wt=0;5>wt;wt++)pt[wt]=pt[wt].slice(0),yt[wt]=yt[wt].slice(0)}};function rt(pt,yt,$t){if(yt.length!==4)throw new tt.exception.invalid("invalid aes block size");var mt=pt.b[$t],wt=yt[0]^mt[0],St=yt[$t?3:1]^mt[1],Bt=yt[2]^mt[2];yt=yt[$t?1:3]^mt[3];var Ft,Lt,zt,Ht=mt.length/4-2,Wt,lr=4,qt=[0,0,0,0];Ft=pt.s[$t],pt=Ft[0];var Ot=Ft[1],Mt=Ft[2],ht=Ft[3],Et=Ft[4];for(Wt=0;Wt>>24]^Ot[St>>16&255]^Mt[Bt>>8&255]^ht[yt&255]^mt[lr],Lt=pt[St>>>24]^Ot[Bt>>16&255]^Mt[yt>>8&255]^ht[wt&255]^mt[lr+1],zt=pt[Bt>>>24]^Ot[yt>>16&255]^Mt[wt>>8&255]^ht[St&255]^mt[lr+2],yt=pt[yt>>>24]^Ot[wt>>16&255]^Mt[St>>8&255]^ht[Bt&255]^mt[lr+3],lr+=4,wt=Ft,St=Lt,Bt=zt;for(Wt=0;4>Wt;Wt++)qt[$t?3&-Wt:Wt]=Et[wt>>>24]<<24^Et[St>>16&255]<<16^Et[Bt>>8&255]<<8^Et[yt&255]^mt[lr++],Ft=wt,wt=St,St=Bt,Bt=yt,yt=Ft;return qt}tt.bitArray={bitSlice:function(pt,yt,$t){return pt=tt.bitArray.$(pt.slice(yt/32),32-(yt&31)).slice(1),$t===void 0?pt:tt.bitArray.clamp(pt,$t-yt)},extract:function(pt,yt,$t){var mt=Math.floor(-yt-$t&31);return((yt+$t-1^yt)&-32?pt[yt/32|0]<<32-mt^pt[yt/32+1|0]>>>mt:pt[yt/32|0]>>>mt)&(1<<$t)-1},concat:function(pt,yt){if(pt.length===0||yt.length===0)return pt.concat(yt);var $t=pt[pt.length-1],mt=tt.bitArray.getPartial($t);return mt===32?pt.concat(yt):tt.bitArray.$(yt,mt,$t|0,pt.slice(0,pt.length-1))},bitLength:function(pt){var yt=pt.length;return yt===0?0:32*(yt-1)+tt.bitArray.getPartial(pt[yt-1])},clamp:function(pt,yt){if(32*pt.length>yt-1,1)),pt},partial:function(pt,yt,$t){return pt===32?yt:($t?yt|0:yt<<32-pt)+1099511627776*pt},getPartial:function(pt){return Math.round(pt/1099511627776)||32},equal:function(pt,yt){if(tt.bitArray.bitLength(pt)!==tt.bitArray.bitLength(yt))return!1;var $t=0,mt;for(mt=0;mt>>yt),$t=pt[wt]<<32-yt;return wt=pt.length?pt[pt.length-1]:0,pt=tt.bitArray.getPartial(wt),mt.push(tt.bitArray.partial(yt+pt&31,32>>24|$t>>>8&65280|($t&65280)<<8|$t<<24;return pt}},tt.codec.utf8String={fromBits:function(pt){var yt="",$t=tt.bitArray.bitLength(pt),mt,wt;for(mt=0;mt<$t/8;mt++)!(mt&3)&&(wt=pt[mt/4]),yt+=String.fromCharCode(wt>>>8>>>8>>>8),wt<<=8;return decodeURIComponent(escape(yt))},toBits:function(pt){pt=unescape(encodeURIComponent(pt));var yt=[],$t,mt=0;for($t=0;$t>>Bt)>>>wt),BtHt){if(!yt)try{return tt.codec.base32hex.toBits(pt)}catch{}throw new tt.exception.invalid("this isn't "+Wt+"!")}Ft>wt?(Ft-=wt,St.push(zt^Ht>>>Ft),zt=Ht<<$t-Ft):(Ft+=mt,zt^=Ht<<$t-Ft)}return Ft&56&&St.push(tt.bitArray.partial(Ft&56,zt,1)),St}},tt.codec.base32hex={fromBits:function(pt,yt){return tt.codec.base32.fromBits(pt,yt,1)},toBits:function(pt){return tt.codec.base32.toBits(pt,1)}},tt.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(pt,yt,$t){var mt="",wt=0,St=tt.codec.base64.B,Bt=0,Ft=tt.bitArray.bitLength(pt);for($t&&(St=St.substr(0,62)+"-_"),$t=0;6*mt.length>>wt)>>>26),6>wt?(Bt=pt[$t]<<6-wt,wt+=26,$t++):(Bt<<=6,wt-=6);for(;mt.length&3&&!yt;)mt+="=";return mt},toBits:function(pt,yt){pt=pt.replace(/\s|=/g,"");var $t=[],mt,wt=0,St=tt.codec.base64.B,Bt=0,Ft;for(yt&&(St=St.substr(0,62)+"-_"),mt=0;mtFt)throw new tt.exception.invalid("this isn't base64!");26>>wt),Bt=Ft<<32-wt):(wt+=6,Bt^=Ft<<32-wt)}return wt&56&&$t.push(tt.bitArray.partial(wt&56,Bt,1)),$t}},tt.codec.base64url={fromBits:function(pt){return tt.codec.base64.fromBits(pt,1,1)},toBits:function(pt){return tt.codec.base64.toBits(pt,1)}},tt.hash.sha256=function(pt){this.b[0]||this.O(),pt?(this.F=pt.F.slice(0),this.A=pt.A.slice(0),this.l=pt.l):this.reset()},tt.hash.sha256.hash=function(pt){return new tt.hash.sha256().update(pt).finalize()},tt.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(pt){typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt));var yt,$t=this.A=tt.bitArray.concat(this.A,pt);if(yt=this.l,pt=this.l=yt+tt.bitArray.bitLength(pt),9007199254740991yt;$t++){for(wt=!0,mt=2;mt*mt<=$t;mt++)if($t%mt===0){wt=!1;break}wt&&(8>yt&&(this.Y[yt]=pt(Math.pow($t,.5))),this.b[yt]=pt(Math.pow($t,1/3)),yt++)}}};function nt(pt,yt){var $t,mt,wt,St=pt.F,Bt=pt.b,Ft=St[0],Lt=St[1],zt=St[2],Ht=St[3],Wt=St[4],lr=St[5],qt=St[6],Ot=St[7];for($t=0;64>$t;$t++)16>$t?mt=yt[$t]:(mt=yt[$t+1&15],wt=yt[$t+14&15],mt=yt[$t&15]=(mt>>>7^mt>>>18^mt>>>3^mt<<25^mt<<14)+(wt>>>17^wt>>>19^wt>>>10^wt<<15^wt<<13)+yt[$t&15]+yt[$t+9&15]|0),mt=mt+Ot+(Wt>>>6^Wt>>>11^Wt>>>25^Wt<<26^Wt<<21^Wt<<7)+(qt^Wt&(lr^qt))+Bt[$t],Ot=qt,qt=lr,lr=Wt,Wt=Ht+mt|0,Ht=zt,zt=Lt,Lt=Ft,Ft=mt+(Lt&zt^Ht&(Lt^zt))+(Lt>>>2^Lt>>>13^Lt>>>22^Lt<<30^Lt<<19^Lt<<10)|0;St[0]=St[0]+Ft|0,St[1]=St[1]+Lt|0,St[2]=St[2]+zt|0,St[3]=St[3]+Ht|0,St[4]=St[4]+Wt|0,St[5]=St[5]+lr|0,St[6]=St[6]+qt|0,St[7]=St[7]+Ot|0}tt.mode.ccm={name:"ccm",G:[],listenProgress:function(pt){tt.mode.ccm.G.push(pt)},unListenProgress:function(pt){pt=tt.mode.ccm.G.indexOf(pt),-1Lt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(St=2;4>St&&zt>>>8*St;St++);return St<15-Lt&&(St=15-Lt),$t=Ft.clamp($t,8*(15-St)),yt=tt.mode.ccm.V(pt,yt,$t,mt,wt,St),Bt=tt.mode.ccm.C(pt,Bt,$t,yt,wt,St),Ft.concat(Bt.data,Bt.tag)},decrypt:function(pt,yt,$t,mt,wt){wt=wt||64,mt=mt||[];var St=tt.bitArray,Bt=St.bitLength($t)/8,zt=St.bitLength(yt),Ft=St.clamp(yt,zt-wt),Lt=St.bitSlice(yt,zt-wt),zt=(zt-wt)/8;if(7>Bt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(yt=2;4>yt&&zt>>>8*yt;yt++);if(yt<15-Bt&&(yt=15-Bt),$t=St.clamp($t,8*(15-yt)),Ft=tt.mode.ccm.C(pt,Ft,$t,Lt,wt,yt),pt=tt.mode.ccm.V(pt,Ft.data,$t,mt,wt,yt),!St.equal(Ft.tag,pt))throw new tt.exception.corrupt("ccm: tag doesn't match");return Ft.data},na:function(pt,yt,$t,mt,wt,St){var Bt=[],Ft=tt.bitArray,Lt=Ft.i;if(mt=[Ft.partial(8,(yt.length?64:0)|mt-2<<2|St-1)],mt=Ft.concat(mt,$t),mt[3]|=wt,mt=pt.encrypt(mt),yt.length)for($t=Ft.bitLength(yt)/8,65279>=$t?Bt=[Ft.partial(16,$t)]:4294967295>=$t&&(Bt=Ft.concat([Ft.partial(16,65534)],[$t])),Bt=Ft.concat(Bt,yt),yt=0;ytwt||16Ht&&(tt.mode.ccm.fa(Bt/Lt),Ht+=Wt),$t[3]++,wt=pt.encrypt($t),yt[Bt]^=wt[0],yt[Bt+1]^=wt[1],yt[Bt+2]^=wt[2],yt[Bt+3]^=wt[3];return{tag:mt,data:Ft.clamp(yt,zt)}}},tt.mode.ocb2={name:"ocb2",encrypt:function(pt,yt,$t,mt,wt,St){if(tt.bitArray.bitLength($t)!==128)throw new tt.exception.invalid("ocb iv must be 128 bits");var Bt,Ft=tt.mode.ocb2.S,Lt=tt.bitArray,zt=Lt.i,Ht=[0,0,0,0];$t=Ft(pt.encrypt($t));var Wt,lr=[];for(mt=mt||[],wt=wt||64,Bt=0;Bt+4wt.bitLength($t)&&(Ft=St(Ft,mt(Ft)),$t=wt.concat($t,[-2147483648,0,0,0])),Bt=St(Bt,$t),pt.encrypt(St(mt(St(Ft,mt(Ft))),Bt))},S:function(pt){return[pt[0]<<1^pt[1]>>>31,pt[1]<<1^pt[2]>>>31,pt[2]<<1^pt[3]>>>31,pt[3]<<1^135*(pt[0]>>>31)]}},tt.mode.gcm={name:"gcm",encrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0);return yt=tt.bitArray,mt=mt||[],pt=tt.mode.gcm.C(!0,pt,St,mt,$t,wt||128),yt.concat(pt.data,pt.tag)},decrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0),Bt=tt.bitArray,Ft=Bt.bitLength(St);if(wt=wt||128,mt=mt||[],wt<=Ft?(yt=Bt.bitSlice(St,Ft-wt),St=Bt.bitSlice(St,0,Ft-wt)):(yt=St,St=[]),pt=tt.mode.gcm.C(!1,pt,St,mt,$t,wt),!Bt.equal(pt.tag,yt))throw new tt.exception.corrupt("gcm: tag doesn't match");return pt.data},ka:function(pt,yt){var $t,mt,wt,St,Bt,Ft=tt.bitArray.i;for(wt=[0,0,0,0],St=yt.slice(0),$t=0;128>$t;$t++){for((mt=(pt[Math.floor($t/32)]&1<<31-$t%32)!==0)&&(wt=Ft(wt,St)),Bt=(St[3]&1)!==0,mt=3;0>>1|(St[mt-1]&1)<<31;St[0]>>>=1,Bt&&(St[0]^=-520093696)}return wt},j:function(pt,yt,$t){var mt,wt=$t.length;for(yt=yt.slice(0),mt=0;mtwt&&(pt=yt.hash(pt)),mt=0;mtmt||0>$t)throw new tt.exception.invalid("invalid params to pbkdf2");typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt)),typeof yt=="string"&&(yt=tt.codec.utf8String.toBits(yt)),wt=wt||tt.misc.hmac,pt=new wt(pt);var St,Bt,Ft,Lt,zt=[],Ht=tt.bitArray;for(Lt=1;32*zt.length<(mt||1);Lt++){for(wt=St=pt.encrypt(Ht.concat(yt,[Lt])),Bt=1;Bt<$t;Bt++)for(St=pt.encrypt(St),Ft=0;FtBt;Bt++)wt.push(4294967296*Math.random()|0);for(Bt=0;Bt=1<this.o&&(this.o=St),this.P++,this.b=tt.hash.sha256.hash(this.b.concat(wt)),this.L=new tt.cipher.aes(this.b),mt=0;4>mt&&(this.h[mt]=this.h[mt]+1|0,!this.h[mt]);mt++);}for(mt=0;mt>>1;this.c[Bt].update([mt,this.N++,2,yt,St,pt.length].concat(pt))}break;case"string":yt===void 0&&(yt=pt.length),this.c[Bt].update([mt,this.N++,3,yt,St,pt.length]),this.c[Bt].update(pt);break;default:Lt=1}if(Lt)throw new tt.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[Bt]+=yt,this.f+=yt,Ft===this.u&&(this.isReady()!==this.u&&it("seeded",Math.max(this.o,this.f)),it("progress",this.getProgress()))},isReady:function(pt){return pt=this.T[pt!==void 0?pt:this.M],this.o&&this.o>=pt?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=pt?this.J|this.u:this.u},getProgress:function(pt){return pt=this.T[pt||this.M],this.o>=pt||this.f>pt?1:this.f/pt},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:lt(this,this.ma),mouseCollector:lt(this,this.oa),keyboardCollector:lt(this,this.la),accelerometerCollector:lt(this,this.ea),touchCollector:lt(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new tt.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(pt,yt){this.K[pt][this.ga++]=yt},removeEventListener:function(pt,yt){var $t,mt,wt=this.K[pt],St=[];for(mt in wt)wt.hasOwnProperty(mt)&&wt[mt]===yt&&St.push(mt);for($t=0;$tyt&&(pt.h[yt]=pt.h[yt]+1|0,!pt.h[yt]);yt++);return pt.L.encrypt(pt.h)}function lt(pt,yt){return function(){yt.apply(pt,arguments)}}tt.random=new tt.prng(6);e:try{var ut,dt,bt,gt;if(gt=et.exports){var kt;try{kt=requireCryptoBrowserify()}catch{kt=null}gt=dt=kt}if(gt&&dt.randomBytes)ut=dt.randomBytes(128),ut=new Uint32Array(new Uint8Array(ut).buffer),tt.random.addEntropy(ut,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(bt=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(bt);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(bt);else break e;tt.random.addEntropy(bt,1024,"crypto['getRandomValues']")}}catch(pt){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(pt))}tt.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(pt,yt,$t,mt){$t=$t||{},mt=mt||{};var wt=tt.json,St=wt.g({iv:tt.random.randomWords(4,0)},wt.defaults),Bt;if(wt.g(St,$t),$t=St.adata,typeof St.salt=="string"&&(St.salt=tt.codec.base64.toBits(St.salt)),typeof St.iv=="string"&&(St.iv=tt.codec.base64.toBits(St.iv)),!tt.mode[St.mode]||!tt.cipher[St.cipher]||typeof pt=="string"&&100>=St.iter||St.ts!==64&&St.ts!==96&&St.ts!==128||St.ks!==128&&St.ks!==192&&St.ks!==256||2>St.iv.length||4=yt.iter||yt.ts!==64&&yt.ts!==96&&yt.ts!==128||yt.ks!==128&&yt.ks!==192&&yt.ks!==256||!yt.iv||2>yt.iv.length||4>24&255,Xt[ar+1]=cr>>16&255,Xt[ar+2]=cr>>8&255,Xt[ar+3]=cr&255,Xt[ar+4]=jt>>24&255,Xt[ar+5]=jt>>16&255,Xt[ar+6]=jt>>8&255,Xt[ar+7]=jt&255}function yt(Xt,ar,cr,jt,dr){var Rr,Cr=0;for(Rr=0;Rr>>8)-1}function $t(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,16)}function mt(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,32)}function wt(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;pn=pn+dr|0,wn=wn+Rr|0,un=un+Cr|0,yn=yn+Nr|0,mn=mn+Yr|0,cn=cn+tn|0,Ur=Ur+qr|0,jr=jr+Vn|0,en=en+hn|0,Gr=Gr+Tn|0,Zr=Zr+An|0,sn=sn+Rn|0,On=On+Pn|0,zn=zn+In|0,Gn=Gn+$n|0,Hn=Hn+Bn|0,Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=wn>>>0&255,Xt[5]=wn>>>8&255,Xt[6]=wn>>>16&255,Xt[7]=wn>>>24&255,Xt[8]=un>>>0&255,Xt[9]=un>>>8&255,Xt[10]=un>>>16&255,Xt[11]=un>>>24&255,Xt[12]=yn>>>0&255,Xt[13]=yn>>>8&255,Xt[14]=yn>>>16&255,Xt[15]=yn>>>24&255,Xt[16]=mn>>>0&255,Xt[17]=mn>>>8&255,Xt[18]=mn>>>16&255,Xt[19]=mn>>>24&255,Xt[20]=cn>>>0&255,Xt[21]=cn>>>8&255,Xt[22]=cn>>>16&255,Xt[23]=cn>>>24&255,Xt[24]=Ur>>>0&255,Xt[25]=Ur>>>8&255,Xt[26]=Ur>>>16&255,Xt[27]=Ur>>>24&255,Xt[28]=jr>>>0&255,Xt[29]=jr>>>8&255,Xt[30]=jr>>>16&255,Xt[31]=jr>>>24&255,Xt[32]=en>>>0&255,Xt[33]=en>>>8&255,Xt[34]=en>>>16&255,Xt[35]=en>>>24&255,Xt[36]=Gr>>>0&255,Xt[37]=Gr>>>8&255,Xt[38]=Gr>>>16&255,Xt[39]=Gr>>>24&255,Xt[40]=Zr>>>0&255,Xt[41]=Zr>>>8&255,Xt[42]=Zr>>>16&255,Xt[43]=Zr>>>24&255,Xt[44]=sn>>>0&255,Xt[45]=sn>>>8&255,Xt[46]=sn>>>16&255,Xt[47]=sn>>>24&255,Xt[48]=On>>>0&255,Xt[49]=On>>>8&255,Xt[50]=On>>>16&255,Xt[51]=On>>>24&255,Xt[52]=zn>>>0&255,Xt[53]=zn>>>8&255,Xt[54]=zn>>>16&255,Xt[55]=zn>>>24&255,Xt[56]=Gn>>>0&255,Xt[57]=Gn>>>8&255,Xt[58]=Gn>>>16&255,Xt[59]=Gn>>>24&255,Xt[60]=Hn>>>0&255,Xt[61]=Hn>>>8&255,Xt[62]=Hn>>>16&255,Xt[63]=Hn>>>24&255}function St(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=cn>>>0&255,Xt[5]=cn>>>8&255,Xt[6]=cn>>>16&255,Xt[7]=cn>>>24&255,Xt[8]=Zr>>>0&255,Xt[9]=Zr>>>8&255,Xt[10]=Zr>>>16&255,Xt[11]=Zr>>>24&255,Xt[12]=Hn>>>0&255,Xt[13]=Hn>>>8&255,Xt[14]=Hn>>>16&255,Xt[15]=Hn>>>24&255,Xt[16]=Ur>>>0&255,Xt[17]=Ur>>>8&255,Xt[18]=Ur>>>16&255,Xt[19]=Ur>>>24&255,Xt[20]=jr>>>0&255,Xt[21]=jr>>>8&255,Xt[22]=jr>>>16&255,Xt[23]=jr>>>24&255,Xt[24]=en>>>0&255,Xt[25]=en>>>8&255,Xt[26]=en>>>16&255,Xt[27]=en>>>24&255,Xt[28]=Gr>>>0&255,Xt[29]=Gr>>>8&255,Xt[30]=Gr>>>16&255,Xt[31]=Gr>>>24&255}function Bt(Xt,ar,cr,jt){wt(Xt,ar,cr,jt)}function Ft(Xt,ar,cr,jt){St(Xt,ar,cr,jt)}var Lt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function zt(Xt,ar,cr,jt,dr,Rr,Cr){var Nr=new Uint8Array(16),Yr=new Uint8Array(64),tn,qr;for(qr=0;qr<16;qr++)Nr[qr]=0;for(qr=0;qr<8;qr++)Nr[qr]=Rr[qr];for(;dr>=64;){for(Bt(Yr,Nr,Cr,Lt),qr=0;qr<64;qr++)Xt[ar+qr]=cr[jt+qr]^Yr[qr];for(tn=1,qr=8;qr<16;qr++)tn=tn+(Nr[qr]&255)|0,Nr[qr]=tn&255,tn>>>=8;dr-=64,ar+=64,jt+=64}if(dr>0)for(Bt(Yr,Nr,Cr,Lt),qr=0;qr=64;){for(Bt(Cr,Rr,dr,Lt),Yr=0;Yr<64;Yr++)Xt[ar+Yr]=Cr[Yr];for(Nr=1,Yr=8;Yr<16;Yr++)Nr=Nr+(Rr[Yr]&255)|0,Rr[Yr]=Nr&255,Nr>>>=8;cr-=64,ar+=64}if(cr>0)for(Bt(Cr,Rr,dr,Lt),Yr=0;Yr>>13|cr<<3)&8191,jt=Xt[4]&255|(Xt[5]&255)<<8,this.r[2]=(cr>>>10|jt<<6)&7939,dr=Xt[6]&255|(Xt[7]&255)<<8,this.r[3]=(jt>>>7|dr<<9)&8191,Rr=Xt[8]&255|(Xt[9]&255)<<8,this.r[4]=(dr>>>4|Rr<<12)&255,this.r[5]=Rr>>>1&8190,Cr=Xt[10]&255|(Xt[11]&255)<<8,this.r[6]=(Rr>>>14|Cr<<2)&8191,Nr=Xt[12]&255|(Xt[13]&255)<<8,this.r[7]=(Cr>>>11|Nr<<5)&8065,Yr=Xt[14]&255|(Xt[15]&255)<<8,this.r[8]=(Nr>>>8|Yr<<8)&8191,this.r[9]=Yr>>>5&127,this.pad[0]=Xt[16]&255|(Xt[17]&255)<<8,this.pad[1]=Xt[18]&255|(Xt[19]&255)<<8,this.pad[2]=Xt[20]&255|(Xt[21]&255)<<8,this.pad[3]=Xt[22]&255|(Xt[23]&255)<<8,this.pad[4]=Xt[24]&255|(Xt[25]&255)<<8,this.pad[5]=Xt[26]&255|(Xt[27]&255)<<8,this.pad[6]=Xt[28]&255|(Xt[29]&255)<<8,this.pad[7]=Xt[30]&255|(Xt[31]&255)<<8};qt.prototype.blocks=function(Xt,ar,cr){for(var jt=this.fin?0:2048,dr,Rr,Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn=this.h[0],mn=this.h[1],cn=this.h[2],Ur=this.h[3],jr=this.h[4],en=this.h[5],Gr=this.h[6],Zr=this.h[7],sn=this.h[8],On=this.h[9],zn=this.r[0],Gn=this.r[1],Hn=this.r[2],Tr=this.r[3],Yn=this.r[4],es=this.r[5],ts=this.r[6],Wn=this.r[7],rs=this.r[8],Qn=this.r[9];cr>=16;)dr=Xt[ar+0]&255|(Xt[ar+1]&255)<<8,yn+=dr&8191,Rr=Xt[ar+2]&255|(Xt[ar+3]&255)<<8,mn+=(dr>>>13|Rr<<3)&8191,Cr=Xt[ar+4]&255|(Xt[ar+5]&255)<<8,cn+=(Rr>>>10|Cr<<6)&8191,Nr=Xt[ar+6]&255|(Xt[ar+7]&255)<<8,Ur+=(Cr>>>7|Nr<<9)&8191,Yr=Xt[ar+8]&255|(Xt[ar+9]&255)<<8,jr+=(Nr>>>4|Yr<<12)&8191,en+=Yr>>>1&8191,tn=Xt[ar+10]&255|(Xt[ar+11]&255)<<8,Gr+=(Yr>>>14|tn<<2)&8191,qr=Xt[ar+12]&255|(Xt[ar+13]&255)<<8,Zr+=(tn>>>11|qr<<5)&8191,Vn=Xt[ar+14]&255|(Xt[ar+15]&255)<<8,sn+=(qr>>>8|Vn<<8)&8191,On+=Vn>>>5|jt,hn=0,Tn=hn,Tn+=yn*zn,Tn+=mn*(5*Qn),Tn+=cn*(5*rs),Tn+=Ur*(5*Wn),Tn+=jr*(5*ts),hn=Tn>>>13,Tn&=8191,Tn+=en*(5*es),Tn+=Gr*(5*Yn),Tn+=Zr*(5*Tr),Tn+=sn*(5*Hn),Tn+=On*(5*Gn),hn+=Tn>>>13,Tn&=8191,An=hn,An+=yn*Gn,An+=mn*zn,An+=cn*(5*Qn),An+=Ur*(5*rs),An+=jr*(5*Wn),hn=An>>>13,An&=8191,An+=en*(5*ts),An+=Gr*(5*es),An+=Zr*(5*Yn),An+=sn*(5*Tr),An+=On*(5*Hn),hn+=An>>>13,An&=8191,Rn=hn,Rn+=yn*Hn,Rn+=mn*Gn,Rn+=cn*zn,Rn+=Ur*(5*Qn),Rn+=jr*(5*rs),hn=Rn>>>13,Rn&=8191,Rn+=en*(5*Wn),Rn+=Gr*(5*ts),Rn+=Zr*(5*es),Rn+=sn*(5*Yn),Rn+=On*(5*Tr),hn+=Rn>>>13,Rn&=8191,Pn=hn,Pn+=yn*Tr,Pn+=mn*Hn,Pn+=cn*Gn,Pn+=Ur*zn,Pn+=jr*(5*Qn),hn=Pn>>>13,Pn&=8191,Pn+=en*(5*rs),Pn+=Gr*(5*Wn),Pn+=Zr*(5*ts),Pn+=sn*(5*es),Pn+=On*(5*Yn),hn+=Pn>>>13,Pn&=8191,In=hn,In+=yn*Yn,In+=mn*Tr,In+=cn*Hn,In+=Ur*Gn,In+=jr*zn,hn=In>>>13,In&=8191,In+=en*(5*Qn),In+=Gr*(5*rs),In+=Zr*(5*Wn),In+=sn*(5*ts),In+=On*(5*es),hn+=In>>>13,In&=8191,$n=hn,$n+=yn*es,$n+=mn*Yn,$n+=cn*Tr,$n+=Ur*Hn,$n+=jr*Gn,hn=$n>>>13,$n&=8191,$n+=en*zn,$n+=Gr*(5*Qn),$n+=Zr*(5*rs),$n+=sn*(5*Wn),$n+=On*(5*ts),hn+=$n>>>13,$n&=8191,Bn=hn,Bn+=yn*ts,Bn+=mn*es,Bn+=cn*Yn,Bn+=Ur*Tr,Bn+=jr*Hn,hn=Bn>>>13,Bn&=8191,Bn+=en*Gn,Bn+=Gr*zn,Bn+=Zr*(5*Qn),Bn+=sn*(5*rs),Bn+=On*(5*Wn),hn+=Bn>>>13,Bn&=8191,pn=hn,pn+=yn*Wn,pn+=mn*ts,pn+=cn*es,pn+=Ur*Yn,pn+=jr*Tr,hn=pn>>>13,pn&=8191,pn+=en*Hn,pn+=Gr*Gn,pn+=Zr*zn,pn+=sn*(5*Qn),pn+=On*(5*rs),hn+=pn>>>13,pn&=8191,wn=hn,wn+=yn*rs,wn+=mn*Wn,wn+=cn*ts,wn+=Ur*es,wn+=jr*Yn,hn=wn>>>13,wn&=8191,wn+=en*Tr,wn+=Gr*Hn,wn+=Zr*Gn,wn+=sn*zn,wn+=On*(5*Qn),hn+=wn>>>13,wn&=8191,un=hn,un+=yn*Qn,un+=mn*rs,un+=cn*Wn,un+=Ur*ts,un+=jr*es,hn=un>>>13,un&=8191,un+=en*Yn,un+=Gr*Tr,un+=Zr*Hn,un+=sn*Gn,un+=On*zn,hn+=un>>>13,un&=8191,hn=(hn<<2)+hn|0,hn=hn+Tn|0,Tn=hn&8191,hn=hn>>>13,An+=hn,yn=Tn,mn=An,cn=Rn,Ur=Pn,jr=In,en=$n,Gr=Bn,Zr=pn,sn=wn,On=un,ar+=16,cr-=16;this.h[0]=yn,this.h[1]=mn,this.h[2]=cn,this.h[3]=Ur,this.h[4]=jr,this.h[5]=en,this.h[6]=Gr,this.h[7]=Zr,this.h[8]=sn,this.h[9]=On},qt.prototype.finish=function(Xt,ar){var cr=new Uint16Array(10),jt,dr,Rr,Cr;if(this.leftover){for(Cr=this.leftover,this.buffer[Cr++]=1;Cr<16;Cr++)this.buffer[Cr]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(jt=this.h[1]>>>13,this.h[1]&=8191,Cr=2;Cr<10;Cr++)this.h[Cr]+=jt,jt=this.h[Cr]>>>13,this.h[Cr]&=8191;for(this.h[0]+=jt*5,jt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=jt,jt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=jt,cr[0]=this.h[0]+5,jt=cr[0]>>>13,cr[0]&=8191,Cr=1;Cr<10;Cr++)cr[Cr]=this.h[Cr]+jt,jt=cr[Cr]>>>13,cr[Cr]&=8191;for(cr[9]-=8192,dr=(jt^1)-1,Cr=0;Cr<10;Cr++)cr[Cr]&=dr;for(dr=~dr,Cr=0;Cr<10;Cr++)this.h[Cr]=this.h[Cr]&dr|cr[Cr];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Rr=this.h[0]+this.pad[0],this.h[0]=Rr&65535,Cr=1;Cr<8;Cr++)Rr=(this.h[Cr]+this.pad[Cr]|0)+(Rr>>>16)|0,this.h[Cr]=Rr&65535;Xt[ar+0]=this.h[0]>>>0&255,Xt[ar+1]=this.h[0]>>>8&255,Xt[ar+2]=this.h[1]>>>0&255,Xt[ar+3]=this.h[1]>>>8&255,Xt[ar+4]=this.h[2]>>>0&255,Xt[ar+5]=this.h[2]>>>8&255,Xt[ar+6]=this.h[3]>>>0&255,Xt[ar+7]=this.h[3]>>>8&255,Xt[ar+8]=this.h[4]>>>0&255,Xt[ar+9]=this.h[4]>>>8&255,Xt[ar+10]=this.h[5]>>>0&255,Xt[ar+11]=this.h[5]>>>8&255,Xt[ar+12]=this.h[6]>>>0&255,Xt[ar+13]=this.h[6]>>>8&255,Xt[ar+14]=this.h[7]>>>0&255,Xt[ar+15]=this.h[7]>>>8&255},qt.prototype.update=function(Xt,ar,cr){var jt,dr;if(this.leftover){for(dr=16-this.leftover,dr>cr&&(dr=cr),jt=0;jt=16&&(dr=cr-cr%16,this.blocks(Xt,ar,dr),ar+=dr,cr-=dr),cr){for(jt=0;jt>16&1),Rr[cr-1]&=65535;Rr[15]=Cr[15]-32767-(Rr[14]>>16&1),dr=Rr[15]>>16&1,Rr[14]&=65535,At(Cr,Rr,1-dr)}for(cr=0;cr<16;cr++)Xt[2*cr]=Cr[cr]&255,Xt[2*cr+1]=Cr[cr]>>8}function It(Xt,ar){var cr=new Uint8Array(32),jt=new Uint8Array(32);return Pt(cr,Xt),Pt(jt,ar),mt(cr,0,jt,0)}function Ct(Xt){var ar=new Uint8Array(32);return Pt(ar,Xt),ar[0]&1}function xt(Xt,ar){var cr;for(cr=0;cr<16;cr++)Xt[cr]=ar[2*cr]+(ar[2*cr+1]<<8);Xt[15]&=32767}function Dt(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]+cr[jt]}function tr(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]-cr[jt]}function pr(Xt,ar,cr){var jt,dr,Rr=0,Cr=0,Nr=0,Yr=0,tn=0,qr=0,Vn=0,hn=0,Tn=0,An=0,Rn=0,Pn=0,In=0,$n=0,Bn=0,pn=0,wn=0,un=0,yn=0,mn=0,cn=0,Ur=0,jr=0,en=0,Gr=0,Zr=0,sn=0,On=0,zn=0,Gn=0,Hn=0,Tr=cr[0],Yn=cr[1],es=cr[2],ts=cr[3],Wn=cr[4],rs=cr[5],Qn=cr[6],vs=cr[7],os=cr[8],ps=cr[9],bs=cr[10],xs=cr[11],Ss=cr[12],As=cr[13],Ps=cr[14],Is=cr[15];jt=ar[0],Rr+=jt*Tr,Cr+=jt*Yn,Nr+=jt*es,Yr+=jt*ts,tn+=jt*Wn,qr+=jt*rs,Vn+=jt*Qn,hn+=jt*vs,Tn+=jt*os,An+=jt*ps,Rn+=jt*bs,Pn+=jt*xs,In+=jt*Ss,$n+=jt*As,Bn+=jt*Ps,pn+=jt*Is,jt=ar[1],Cr+=jt*Tr,Nr+=jt*Yn,Yr+=jt*es,tn+=jt*ts,qr+=jt*Wn,Vn+=jt*rs,hn+=jt*Qn,Tn+=jt*vs,An+=jt*os,Rn+=jt*ps,Pn+=jt*bs,In+=jt*xs,$n+=jt*Ss,Bn+=jt*As,pn+=jt*Ps,wn+=jt*Is,jt=ar[2],Nr+=jt*Tr,Yr+=jt*Yn,tn+=jt*es,qr+=jt*ts,Vn+=jt*Wn,hn+=jt*rs,Tn+=jt*Qn,An+=jt*vs,Rn+=jt*os,Pn+=jt*ps,In+=jt*bs,$n+=jt*xs,Bn+=jt*Ss,pn+=jt*As,wn+=jt*Ps,un+=jt*Is,jt=ar[3],Yr+=jt*Tr,tn+=jt*Yn,qr+=jt*es,Vn+=jt*ts,hn+=jt*Wn,Tn+=jt*rs,An+=jt*Qn,Rn+=jt*vs,Pn+=jt*os,In+=jt*ps,$n+=jt*bs,Bn+=jt*xs,pn+=jt*Ss,wn+=jt*As,un+=jt*Ps,yn+=jt*Is,jt=ar[4],tn+=jt*Tr,qr+=jt*Yn,Vn+=jt*es,hn+=jt*ts,Tn+=jt*Wn,An+=jt*rs,Rn+=jt*Qn,Pn+=jt*vs,In+=jt*os,$n+=jt*ps,Bn+=jt*bs,pn+=jt*xs,wn+=jt*Ss,un+=jt*As,yn+=jt*Ps,mn+=jt*Is,jt=ar[5],qr+=jt*Tr,Vn+=jt*Yn,hn+=jt*es,Tn+=jt*ts,An+=jt*Wn,Rn+=jt*rs,Pn+=jt*Qn,In+=jt*vs,$n+=jt*os,Bn+=jt*ps,pn+=jt*bs,wn+=jt*xs,un+=jt*Ss,yn+=jt*As,mn+=jt*Ps,cn+=jt*Is,jt=ar[6],Vn+=jt*Tr,hn+=jt*Yn,Tn+=jt*es,An+=jt*ts,Rn+=jt*Wn,Pn+=jt*rs,In+=jt*Qn,$n+=jt*vs,Bn+=jt*os,pn+=jt*ps,wn+=jt*bs,un+=jt*xs,yn+=jt*Ss,mn+=jt*As,cn+=jt*Ps,Ur+=jt*Is,jt=ar[7],hn+=jt*Tr,Tn+=jt*Yn,An+=jt*es,Rn+=jt*ts,Pn+=jt*Wn,In+=jt*rs,$n+=jt*Qn,Bn+=jt*vs,pn+=jt*os,wn+=jt*ps,un+=jt*bs,yn+=jt*xs,mn+=jt*Ss,cn+=jt*As,Ur+=jt*Ps,jr+=jt*Is,jt=ar[8],Tn+=jt*Tr,An+=jt*Yn,Rn+=jt*es,Pn+=jt*ts,In+=jt*Wn,$n+=jt*rs,Bn+=jt*Qn,pn+=jt*vs,wn+=jt*os,un+=jt*ps,yn+=jt*bs,mn+=jt*xs,cn+=jt*Ss,Ur+=jt*As,jr+=jt*Ps,en+=jt*Is,jt=ar[9],An+=jt*Tr,Rn+=jt*Yn,Pn+=jt*es,In+=jt*ts,$n+=jt*Wn,Bn+=jt*rs,pn+=jt*Qn,wn+=jt*vs,un+=jt*os,yn+=jt*ps,mn+=jt*bs,cn+=jt*xs,Ur+=jt*Ss,jr+=jt*As,en+=jt*Ps,Gr+=jt*Is,jt=ar[10],Rn+=jt*Tr,Pn+=jt*Yn,In+=jt*es,$n+=jt*ts,Bn+=jt*Wn,pn+=jt*rs,wn+=jt*Qn,un+=jt*vs,yn+=jt*os,mn+=jt*ps,cn+=jt*bs,Ur+=jt*xs,jr+=jt*Ss,en+=jt*As,Gr+=jt*Ps,Zr+=jt*Is,jt=ar[11],Pn+=jt*Tr,In+=jt*Yn,$n+=jt*es,Bn+=jt*ts,pn+=jt*Wn,wn+=jt*rs,un+=jt*Qn,yn+=jt*vs,mn+=jt*os,cn+=jt*ps,Ur+=jt*bs,jr+=jt*xs,en+=jt*Ss,Gr+=jt*As,Zr+=jt*Ps,sn+=jt*Is,jt=ar[12],In+=jt*Tr,$n+=jt*Yn,Bn+=jt*es,pn+=jt*ts,wn+=jt*Wn,un+=jt*rs,yn+=jt*Qn,mn+=jt*vs,cn+=jt*os,Ur+=jt*ps,jr+=jt*bs,en+=jt*xs,Gr+=jt*Ss,Zr+=jt*As,sn+=jt*Ps,On+=jt*Is,jt=ar[13],$n+=jt*Tr,Bn+=jt*Yn,pn+=jt*es,wn+=jt*ts,un+=jt*Wn,yn+=jt*rs,mn+=jt*Qn,cn+=jt*vs,Ur+=jt*os,jr+=jt*ps,en+=jt*bs,Gr+=jt*xs,Zr+=jt*Ss,sn+=jt*As,On+=jt*Ps,zn+=jt*Is,jt=ar[14],Bn+=jt*Tr,pn+=jt*Yn,wn+=jt*es,un+=jt*ts,yn+=jt*Wn,mn+=jt*rs,cn+=jt*Qn,Ur+=jt*vs,jr+=jt*os,en+=jt*ps,Gr+=jt*bs,Zr+=jt*xs,sn+=jt*Ss,On+=jt*As,zn+=jt*Ps,Gn+=jt*Is,jt=ar[15],pn+=jt*Tr,wn+=jt*Yn,un+=jt*es,yn+=jt*ts,mn+=jt*Wn,cn+=jt*rs,Ur+=jt*Qn,jr+=jt*vs,en+=jt*os,Gr+=jt*ps,Zr+=jt*bs,sn+=jt*xs,On+=jt*Ss,zn+=jt*As,Gn+=jt*Ps,Hn+=jt*Is,Rr+=38*wn,Cr+=38*un,Nr+=38*yn,Yr+=38*mn,tn+=38*cn,qr+=38*Ur,Vn+=38*jr,hn+=38*en,Tn+=38*Gr,An+=38*Zr,Rn+=38*sn,Pn+=38*On,In+=38*zn,$n+=38*Gn,Bn+=38*Hn,dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),Xt[0]=Rr,Xt[1]=Cr,Xt[2]=Nr,Xt[3]=Yr,Xt[4]=tn,Xt[5]=qr,Xt[6]=Vn,Xt[7]=hn,Xt[8]=Tn,Xt[9]=An,Xt[10]=Rn,Xt[11]=Pn,Xt[12]=In,Xt[13]=$n,Xt[14]=Bn,Xt[15]=pn}function Kt(Xt,ar){pr(Xt,ar,ar)}function Qt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=253;jt>=0;jt--)Kt(cr,cr),jt!==2&&jt!==4&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function Zt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=250;jt>=0;jt--)Kt(cr,cr),jt!==1&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function ur(Xt,ar,cr){var jt=new Uint8Array(32),dr=new Float64Array(80),Rr,Cr,Nr=rt(),Yr=rt(),tn=rt(),qr=rt(),Vn=rt(),hn=rt();for(Cr=0;Cr<31;Cr++)jt[Cr]=ar[Cr];for(jt[31]=ar[31]&127|64,jt[0]&=248,xt(dr,cr),Cr=0;Cr<16;Cr++)Yr[Cr]=dr[Cr],qr[Cr]=Nr[Cr]=tn[Cr]=0;for(Nr[0]=qr[0]=1,Cr=254;Cr>=0;--Cr)Rr=jt[Cr>>>3]>>>(Cr&7)&1,At(Nr,Yr,Rr),At(tn,qr,Rr),Dt(Vn,Nr,tn),tr(Nr,Nr,tn),Dt(tn,Yr,qr),tr(Yr,Yr,qr),Kt(qr,Vn),Kt(hn,Nr),pr(Nr,tn,Nr),pr(tn,Yr,Vn),Dt(Vn,Nr,tn),tr(Nr,Nr,tn),Kt(Yr,Nr),tr(tn,qr,hn),pr(Nr,tn,lt),Dt(Nr,Nr,qr),pr(tn,tn,Nr),pr(Nr,qr,hn),pr(qr,Yr,dr),Kt(Yr,Vn),At(Nr,Yr,Rr),At(tn,qr,Rr);for(Cr=0;Cr<16;Cr++)dr[Cr+16]=Nr[Cr],dr[Cr+32]=tn[Cr],dr[Cr+48]=Yr[Cr],dr[Cr+64]=qr[Cr];var Tn=dr.subarray(32),An=dr.subarray(16);return Qt(Tn,Tn),pr(An,An,Tn),Pt(Xt,An),0}function _r(Xt,ar){return ur(Xt,ar,st)}function er(Xt,ar){return nt(ar,32),_r(Xt,ar)}function Jt(Xt,ar,cr){var jt=new Uint8Array(32);return ur(jt,cr,ar),Ft(Xt,it,jt,Lt)}var Ar=ht,Er=Et;function Dr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Ar(Xt,ar,cr,jt,Cr)}function Xr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Er(Xt,ar,cr,jt,Cr)}var Vr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function wr(Xt,ar,cr,jt){for(var dr=new Int32Array(16),Rr=new Int32Array(16),Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn,mn,cn,Ur,jr,en,Gr,Zr,sn,On=Xt[0],zn=Xt[1],Gn=Xt[2],Hn=Xt[3],Tr=Xt[4],Yn=Xt[5],es=Xt[6],ts=Xt[7],Wn=ar[0],rs=ar[1],Qn=ar[2],vs=ar[3],os=ar[4],ps=ar[5],bs=ar[6],xs=ar[7],Ss=0;jt>=128;){for(mn=0;mn<16;mn++)cn=8*mn+Ss,dr[mn]=cr[cn+0]<<24|cr[cn+1]<<16|cr[cn+2]<<8|cr[cn+3],Rr[mn]=cr[cn+4]<<24|cr[cn+5]<<16|cr[cn+6]<<8|cr[cn+7];for(mn=0;mn<80;mn++)if(Cr=On,Nr=zn,Yr=Gn,tn=Hn,qr=Tr,Vn=Yn,hn=es,Tn=ts,An=Wn,Rn=rs,Pn=Qn,In=vs,$n=os,Bn=ps,pn=bs,wn=xs,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(Tr>>>14|os<<32-14)^(Tr>>>18|os<<32-18)^(os>>>41-32|Tr<<32-(41-32)),jr=(os>>>14|Tr<<32-14)^(os>>>18|Tr<<32-18)^(Tr>>>41-32|os<<32-(41-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Tr&Yn^~Tr&es,jr=os&ps^~os&bs,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Vr[mn*2],jr=Vr[mn*2+1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=dr[mn%16],jr=Rr[mn%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,un=Zr&65535|sn<<16,yn=en&65535|Gr<<16,Ur=un,jr=yn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(On>>>28|Wn<<32-28)^(Wn>>>34-32|On<<32-(34-32))^(Wn>>>39-32|On<<32-(39-32)),jr=(Wn>>>28|On<<32-28)^(On>>>34-32|Wn<<32-(34-32))^(On>>>39-32|Wn<<32-(39-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=On&zn^On&Gn^zn&Gn,jr=Wn&rs^Wn&Qn^rs&Qn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Tn=Zr&65535|sn<<16,wn=en&65535|Gr<<16,Ur=tn,jr=In,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=un,jr=yn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,tn=Zr&65535|sn<<16,In=en&65535|Gr<<16,zn=Cr,Gn=Nr,Hn=Yr,Tr=tn,Yn=qr,es=Vn,ts=hn,On=Tn,rs=An,Qn=Rn,vs=Pn,os=In,ps=$n,bs=Bn,xs=pn,Wn=wn,mn%16===15)for(cn=0;cn<16;cn++)Ur=dr[cn],jr=Rr[cn],en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=dr[(cn+9)%16],jr=Rr[(cn+9)%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+1)%16],yn=Rr[(cn+1)%16],Ur=(un>>>1|yn<<32-1)^(un>>>8|yn<<32-8)^un>>>7,jr=(yn>>>1|un<<32-1)^(yn>>>8|un<<32-8)^(yn>>>7|un<<32-7),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+14)%16],yn=Rr[(cn+14)%16],Ur=(un>>>19|yn<<32-19)^(yn>>>61-32|un<<32-(61-32))^un>>>6,jr=(yn>>>19|un<<32-19)^(un>>>61-32|yn<<32-(61-32))^(yn>>>6|un<<32-6),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,dr[cn]=Zr&65535|sn<<16,Rr[cn]=en&65535|Gr<<16;Ur=On,jr=Wn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[0],jr=ar[0],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[0]=On=Zr&65535|sn<<16,ar[0]=Wn=en&65535|Gr<<16,Ur=zn,jr=rs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[1],jr=ar[1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[1]=zn=Zr&65535|sn<<16,ar[1]=rs=en&65535|Gr<<16,Ur=Gn,jr=Qn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[2],jr=ar[2],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[2]=Gn=Zr&65535|sn<<16,ar[2]=Qn=en&65535|Gr<<16,Ur=Hn,jr=vs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[3],jr=ar[3],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[3]=Hn=Zr&65535|sn<<16,ar[3]=vs=en&65535|Gr<<16,Ur=Tr,jr=os,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[4],jr=ar[4],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[4]=Tr=Zr&65535|sn<<16,ar[4]=os=en&65535|Gr<<16,Ur=Yn,jr=ps,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[5],jr=ar[5],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[5]=Yn=Zr&65535|sn<<16,ar[5]=ps=en&65535|Gr<<16,Ur=es,jr=bs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[6],jr=ar[6],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[6]=es=Zr&65535|sn<<16,ar[6]=bs=en&65535|Gr<<16,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[7],jr=ar[7],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[7]=ts=Zr&65535|sn<<16,ar[7]=xs=en&65535|Gr<<16,Ss+=128,jt-=128}return jt}function br(Xt,ar,cr){var jt=new Int32Array(8),dr=new Int32Array(8),Rr=new Uint8Array(256),Cr,Nr=cr;for(jt[0]=1779033703,jt[1]=3144134277,jt[2]=1013904242,jt[3]=2773480762,jt[4]=1359893119,jt[5]=2600822924,jt[6]=528734635,jt[7]=1541459225,dr[0]=4089235720,dr[1]=2227873595,dr[2]=4271175723,dr[3]=1595750129,dr[4]=2917565137,dr[5]=725511199,dr[6]=4215389547,dr[7]=327033209,wr(jt,dr,ar,cr),cr%=128,Cr=0;Cr=0;--dr)jt=cr[dr/8|0]>>(dr&7)&1,xr(Xt,ar,jt),or(ar,Xt),or(Xt,Xt),xr(Xt,ar,jt)}function rr(Xt,ar){var cr=[rt(),rt(),rt(),rt()];Tt(cr[0],bt),Tt(cr[1],gt),Tt(cr[2],ot),pr(cr[3],bt,gt),Or(Xt,cr,ar)}function gr(Xt,ar,cr){var jt=new Uint8Array(64),dr=[rt(),rt(),rt(),rt()],Rr;for(cr||nt(ar,32),br(jt,ar,32),jt[0]&=248,jt[31]&=127,jt[31]|=64,rr(dr,jt),Pr(Xt,dr),Rr=0;Rr<32;Rr++)ar[Rr+32]=Xt[Rr];return 0}var Ir=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Yt(Xt,ar){var cr,jt,dr,Rr;for(jt=63;jt>=32;--jt){for(cr=0,dr=jt-32,Rr=jt-12;dr>4)*Ir[dr],cr=ar[dr]>>8,ar[dr]&=255;for(dr=0;dr<32;dr++)ar[dr]-=cr*Ir[dr];for(jt=0;jt<32;jt++)ar[jt+1]+=ar[jt]>>8,Xt[jt]=ar[jt]&255}function Ut(Xt){var ar=new Float64Array(64),cr;for(cr=0;cr<64;cr++)ar[cr]=Xt[cr];for(cr=0;cr<64;cr++)Xt[cr]=0;Yt(Xt,ar)}function Vt(Xt,ar,cr,jt){var dr=new Uint8Array(64),Rr=new Uint8Array(64),Cr=new Uint8Array(64),Nr,Yr,tn=new Float64Array(64),qr=[rt(),rt(),rt(),rt()];br(dr,jt,32),dr[0]&=248,dr[31]&=127,dr[31]|=64;var Vn=cr+64;for(Nr=0;Nr>7&&tr(Xt[0],at,Xt[0]),pr(Xt[3],Xt[0],Xt[1]),0)}function kr(Xt,ar,cr,jt){var dr,Rr=new Uint8Array(32),Cr=new Uint8Array(64),Nr=[rt(),rt(),rt(),rt()],Yr=[rt(),rt(),rt(),rt()];if(cr<64||ir(Yr,jt))return-1;for(dr=0;dr=0},tt.sign.keyPair=function(){var Xt=new Uint8Array(xn),ar=new Uint8Array(is);return gr(Xt,ar),{publicKey:Xt,secretKey:ar}},tt.sign.keyPair.fromSecretKey=function(Xt){if(dn(Xt),Xt.length!==is)throw new Error("bad secret key size");for(var ar=new Uint8Array(xn),cr=0;cr"u"?typeof Buffer.from<"u"?(tt.encodeBase64=function(nt){return Buffer.from(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(Buffer.from(nt,"base64"),0))}):(tt.encodeBase64=function(nt){return new Buffer(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(new Buffer(nt,"base64"),0))}):(tt.encodeBase64=function(nt){var it,st=[],at=nt.length;for(it=0;ityt||br<0)throw new RangeError(`varint ${br} out of range`);this._grow(this._length+wt);let or=this._length;for(;br>=128;)this._buf[or++]=br&255|128,br>>>=7;this._buf[or++]=br|0,this._length=or}get bytes(){return this._buf.subarray(0,this._length)}_grow(br){const or=this._buf.length;if(br<=or)return;const xr=or*2,Pr=br>xr?br:xr,Or=new Uint8Array(Pr);Or.set(this._buf.subarray(0,this._length)),this._buf=Or}}const wt=5;class St{constructor(br){this._buf=br,this._index=0}readByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index++]}peekByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index]}readN(br){if(this.lengthwt||rr===wt&&Or>1)throw new RangeError("Overflow error decoding varint");return(or|Or<>>0}or|=(Or&127)<wr!=null,Ft=wr=>Bt(wr)?ot.encode(wr):wr,Lt=wr=>Bt(wr)?lt.decode(wr):wr,zt=wr=>rt.default.codec.utf8String.fromBits(wr);et.base64ToBytes=function(wr){return wr=wr.replace(/-/g,"+").replace(/_/g,"/"),wr.length%4!==0&&!wr.match(/=$/)&&(wr+="=".repeat(4-wr.length%4)),it.default.decodeBase64(wr)},et.bytesToBase64=function(wr){return it.default.encodeBase64(wr).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")};const Ht=function(wr){return rt.default.codec.base64.toBits(it.default.encodeBase64(wr))},Wt=function(wr){return it.default.decodeBase64(rt.default.codec.base64.fromBits(wr))},lr=function(wr){const br=new Uint8Array(Math.ceil(wr.length/2));for(let or=0;orBt(wr)?Ot(wr,br):"",ht=function(wr,br){if(wr instanceof Uint8Array)return wr;if(typeof wr=="string")return Ft(wr);throw new TypeError(`${br} has the wrong type; want string or Uint8Array, got ${typeof wr}.`)},Et=new Uint8Array,Tt=function(wr,br){const or=wr.readByte();if(or!==br)throw new Error(`Unexpected field type, got ${or} want ${br}`);return or===dt?Et:wr.readN(wr.readUvarint())},Rt=function(wr,br,or){wr.appendByte(br),br!==dt&&(wr.appendUvarint(or.length),wr.appendBytes(or))},At=function(wr,br){return wr.peekByte()!==br?null:Tt(wr,br)},Pt=function(wr,br,or){qt(or)?wr[br]=Lt(or):wr[br+"64"]=et.bytesToBase64(or)},It=function(wr,br){const or=new rt.default.misc.hmac(wr,rt.default.hash.sha256);return or.update(br),or.digest()},Ct=function(wr,br,or){const xr=It(wr,br),Pr=It(wr,or);return It(wr,rt.default.bitArray.concat(xr,Pr))},xt=Ht(Ft("macaroons-key-generator")),Dt=function(wr){return It(xt,wr)},tr=function(){return nt.default.randomBytes(ut)},pr=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=tr(),Or=nt.default.secretbox(xr,Pr,or),rr=new Uint8Array(Pr.length+Or.length);return rr.set(Pr,0),rr.set(Or,Pr.length),Ht(rr)},Kt=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=xr.slice(0,ut),Or=xr.slice(ut);let rr=nt.default.secretbox.open(Or,Pr,or);if(!rr)throw new Error("decryption failed");return Ht(rr)},Qt=Ht(Ft("\0".repeat(32))),Zt=function(wr,br){return rt.default.bitArray.equal(wr,br)?wr:Ct(Qt,wr,br)};class ur{constructor(br){if(!br)return;let{version:or,identifierBytes:xr,locationStr:Pr,caveats:Or,signatureBytes:rr}=br;if(or!==1&&or!==2)throw new Error(`Unexpected version ${or}`);if(this._version=or,this._locationStr=Pr,xr=ht(xr,"Identifier"),or===1&&!qt(xr))throw new Error("Version 1 macaroon identifier must be well-formed UTF-8");this._identifierBits=xr&&Ht(xr),this._signatureBits=rr&&Ht(ht(rr,"Signature")),this._caveats=Or?Or.map(gr=>{const Ir=ht(gr.identifierBytes,"Caveat identifier");if(or===1&&!qt(Ir))throw new Error("Version 1 caveat identifier must be well-formed UTF-8");return{_locationStr:Mt(gr.locationStr),_identifierBits:Ht(Ir),_vidBits:gr.vidBytes&&Ht(ht(gr.vidBytes,"Verification ID"))}}):[]}get caveats(){return this._caveats.map(br=>Bt(br._vidBits)?{identifier:Wt(br._identifierBits),location:br._locationStr,vid:Wt(br._vidBits)}:{identifier:Wt(br._identifierBits)})}get location(){return this._locationStr}get identifier(){return Wt(this._identifierBits)}get signature(){return Wt(this._signatureBits)}addThirdPartyCaveat(br,or,xr){const Pr={_identifierBits:Ht(ht(or,"Caveat id")),_vidBits:pr(this._signatureBits,Dt(Ht(ht(br,"Caveat root key")))),_locationStr:Mt(xr)};this._signatureBits=Ct(this._signatureBits,Pr._vidBits,Pr._identifierBits),this._caveats.push(Pr)}addFirstPartyCaveat(br){const or=Ht(ht(br,"Condition"));this._caveats.push({_identifierBits:or}),this._signatureBits=It(this._signatureBits,or)}bindToRoot(br){const or=Ht(ht(br,"Primary macaroon signature"));this._signatureBits=Zt(or,this._signatureBits)}clone(){const br=new ur;return br._version=this._version,br._signatureBits=this._signatureBits,br._identifierBits=this._identifierBits,br._locationStr=this._locationStr,br._caveats=this._caveats.slice(),br}verify(br,or,xr=[]){const Pr=Dt(Ht(ht(br,"Root key"))),Or=xr.map(rr=>0);this._verify(this._signatureBits,Pr,or,xr,Or),xr.forEach((rr,gr)=>{if(Or[gr]===0)throw new Error(`discharge macaroon ${$t(rr.identifier)} was not used`);if(Or[gr]!==1)throw new Error(`discharge macaroon ${$t(rr.identifier)} was used more than once`)})}_verify(br,or,xr,Pr,Or){let rr=It(or,this._identifierBits);this._caveats.forEach(Ir=>{if(Ir._vidBits){const Yt=Kt(rr,Ir._vidBits);let Ut=!1,Vt,ir;for(Vt=0;Vt1)throw new Error(`discharge macaroon ${$t(ir.identifier)} was used more than once`);ir._verify(br,Yt,xr,Pr,Or);break}if(!Ut)throw new Error(`cannot find discharge macaroon for caveat ${$t(Ir._identifierBits)}`);rr=Ct(rr,Ir._vidBits,Ir._identifierBits)}else{const Yt=zt(Ir._identifierBits),Ut=xr(Yt);if(Ut)throw new Error(`caveat check failed (${Yt}): ${Ut}`);rr=It(rr,Ir._identifierBits)}});const gr=Zt(br,rr);if(!rt.default.bitArray.equal(gr,this._signatureBits))throw new Error("signature mismatch after caveat verification")}exportJSON(){switch(this._version){case 1:return this._exportAsJSONObjectV1();case 2:return this._exportAsJSONObjectV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}_exportAsJSONObjectV1(){const br={identifier:zt(this._identifierBits),signature:rt.default.codec.hex.fromBits(this._signatureBits)};return this._locationStr&&(br.location=this._locationStr),this._caveats.length>0&&(br.caveats=this._caveats.map(or=>{const xr={cid:zt(or._identifierBits)};return or._vidBits&&(xr.vid=rt.default.codec.base64.fromBits(or._vidBits,!0,!0),xr.cl=or._locationStr),xr})),br}_exportAsJSONObjectV2(){const br={v:2};return Pt(br,"s",Wt(this._signatureBits)),Pt(br,"i",Wt(this._identifierBits)),this._locationStr&&(br.l=this._locationStr),this._caveats&&this._caveats.length>0&&(br.c=this._caveats.map(or=>{const xr={};return Pt(xr,"i",Wt(or._identifierBits)),or._vidBits&&(Pt(xr,"v",Wt(or._vidBits)),xr.l=or._locationStr),xr})),br}_exportBinaryV1(){throw new Error("V1 binary export not supported")}_exportBinaryV2(){const br=new mt(200);return br.appendByte(2),this._locationStr&&Rt(br,bt,Ft(this._locationStr)),Rt(br,gt,Wt(this._identifierBits)),Rt(br,dt),this._caveats.forEach(function(or){or._locationStr&&Rt(br,bt,Ft(or._locationStr)),Rt(br,gt,Wt(or._identifierBits)),or._vidBits&&Rt(br,kt,Wt(or._vidBits)),Rt(br,dt)}),Rt(br,dt),Rt(br,pt,Wt(this._signatureBits)),br.bytes}exportBinary(){switch(this._version){case 1:return this._exportBinaryV1();case 2:return this._exportBinaryV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}}et.importMacaroon=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){const br=new St(wr),or=Vr(br);if(br.length!==0)throw new TypeError("extra data found at end of serialized macaroon");return or}if(Array.isArray(wr))throw new TypeError("cannot import an array of macaroons as a single macaroon");return _r(wr)},et.importMacaroons=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){if(wr.length===0)throw new TypeError("empty macaroon data");const br=new St(wr),or=[];do or.push(Vr(br));while(br.length>0);return or}return Array.isArray(wr)?wr.map(br=>_r(br)):[_r(wr)]};const _r=function(wr){return er(wr)?Jt(wr):Ar(wr)};function er(wr){return Bt(wr.signature)}const Jt=function(wr){const br=wr.caveats&&wr.caveats.map(or=>{const xr={identifierBytes:Ft(Ot(or.cid,"Caveat id")),locationStr:Mt(or.cl,"Caveat location")};return or.vid&&(xr.vidBytes=et.base64ToBytes(Ot(or.vid,"Caveat verification id"))),xr});return new ur({version:1,locationStr:Mt(wr.location,"Macaroon location"),identifierBytes:Ft(Ot(wr.identifier,"Macaroon identifier")),caveats:br,signatureBytes:lr(wr.signature)})},Ar=function(wr){if(wr.v!==2&&wr.v!==void 0)throw new Error(`Unsupported macaroon version ${wr.v}`);const br={version:2,signatureBytes:Er(wr,"s",!0),locationStr:Lt(Er(wr,"l",!1)),identifierBytes:Er(wr,"i",!0)};if(wr.c){if(!Array.isArray(wr.c))throw new Error("caveats field does not hold an array");br.caveats=wr.c.map(or=>({identifierBytes:Er(or,"i",!0),locationStr:Lt(Er(or,"l")),vidBytes:Er(or,"v",!1)}))}return new ur(br)};function Er(wr,br,or){if(wr.hasOwnProperty(br))return Ft(wr[br]);const xr=br+"64";if(wr.hasOwnProperty(xr))return et.base64ToBytes(wr[xr]);if(or)throw new Error("Expected key: "+br);return null}const Dr=function(wr){const br=wr.readByte();if(br!==2)throw new Error(`Only version 2 is supported, found version ${br}`);const or=Lt(At(wr,bt)),xr=Tt(wr,gt),Pr=[];for(Tt(wr,dt);!At(wr,dt);){const rr={locationStr:Lt(At(wr,bt)),identifierBytes:Tt(wr,gt),vidBytes:At(wr,kt)};Tt(wr,dt),Pr.push(rr)}const Or=Tt(wr,pt);if(wr.length!==0)throw new Error("unexpected extra data at end of macaroon");return new ur({version:br,locationStr:or,identifierBytes:xr,signatureBytes:Or,caveats:Pr})},Xr=function(wr){return 48<=wr&&wr<=58||97<=wr&&wr<=102},Vr=function(wr){if(wr.length===0)throw new Error("Empty macaroon data");const br=wr.peekByte();if(br===2)return Dr(wr);throw Xr(br)?new Error("Version 1 binary format not supported"):new Error("Cannot determine data format of binary-encoded macaroon")};et.newMacaroon=function({identifier:wr,location:br,rootKey:or,version:xr}){const Pr=ht(wr,"Macaroon identifier"),Or=ht(or,"Macaroon root key");return new ur({version:xr===void 0?2:xr,identifierBytes:Pr,locationStr:Mt(br,"Macaroon location"),signatureBytes:Wt(It(Dt(Ht(Or)),Ht(Pr)))})},et.dischargeMacaroon=function(wr,br,or,xr){const Pr=wr.signature,Or=[wr];let rr=0,gr=!1;const Ir=wr.location,Yt=ir=>{gr||(ir.bindToRoot(Pr),Or.push(ir),rr--,Vt(ir))},Ut=ir=>{gr||(xr(ir),gr=!0)},Vt=ir=>{let kr,$r;for($r=0;$ret.LATEST_VERSION)throw new dt(pt.version);if(pt.version&&(this.version=pt.version),st(typeof this.version=="number","Identifier version must be a number"),st(pt.paymentHash.length===32,`Expected 32-byte hash, instead got ${pt.paymentHash.length}`),this.paymentHash=pt.paymentHash,pt.tokenId)this.tokenId=pt.tokenId;else{const yt=(0,lt.default)();this.tokenId=ot.default.createHash("sha256").update(Buffer.from(yt)).digest()}return st(this.tokenId.length===et.TOKEN_ID_SIZE,"Token Id of unexpected size"),this}toString(){return this.toHex()}static fromString(pt){try{return new this().fromHex(pt)}catch{return new this().fromBase64(pt)}}write(pt){switch(pt.writeU16BE(this.version),this.version){case 0:return pt.writeHash(this.paymentHash),st(Buffer.isBuffer(this.tokenId)&&this.tokenId.length===et.TOKEN_ID_SIZE,`Token ID must be ${et.TOKEN_ID_SIZE}-byte hash`),pt.writeBytes(this.tokenId),this;default:throw new dt(this.version)}}read(pt){switch(this.version=pt.readU16BE(),this.version){case 0:return this.paymentHash=pt.readHash(),this.tokenId=pt.readBytes(et.TOKEN_ID_SIZE),this;default:throw new dt(this.version)}}}et.Identifier=bt;const gt=kt=>{const pt=ut.importMacaroon(kt);let yt=pt._exportAsJSONObjectV2().i;if(yt==null&&(yt=pt._exportAsJSONObjectV2().i64,yt==null))throw new Error("Problem parsing macaroon identifier");return yt};et.decodeIdentifierFromMacaroon=gt})(identifier$1);var caveat={};/*! * assert.js - assertions for javascript * Copyright (c) 2018, Christopher Jeffrey (MIT License). * https://github.com/chjj/bsert */class AssertionError extends Error{constructor(tt){typeof tt=="string"&&(tt={message:tt}),(tt===null||typeof tt!="object")&&(tt={});let rt=null,nt="fail",it=!!tt.generatedMessage;if(tt.message!=null&&(rt=toString$1(tt.message)),typeof tt.operator=="string"&&(nt=tt.operator),rt==null){if(nt==="fail")rt="Assertion failed.";else{const at=stringify$1(tt.actual),ot=stringify$1(tt.expected);rt=`${at} ${nt} ${ot}`}it=!0}super(rt);let st=this.constructor;typeof tt.stackStartFunction=="function"?st=tt.stackStartFunction:typeof tt.stackStartFn=="function"&&(st=tt.stackStartFn),this.type="AssertionError",this.name="AssertionError [ERR_ASSERTION]",this.code="ERR_ASSERTION",this.generatedMessage=it,this.actual=tt.actual,this.expected=tt.expected,this.operator=nt,Error.captureStackTrace&&Error.captureStackTrace(this,st)}}function assert$3(et,tt){if(!et){let rt=!1;if(arguments.length===0)tt="No value argument passed to `assert()`.",rt=!0;else if(tt==null)tt="Assertion failed.",rt=!0;else if(isError(tt))throw tt;throw new AssertionError({message:tt,actual:et,expected:!0,operator:"==",generatedMessage:rt,stackStartFn:assert$3})}}function equal(et,tt,rt){if(!Object.is(et,tt))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"strictEqual",stackStartFn:equal})}function notEqual(et,tt,rt){if(Object.is(et,tt))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"notStrictEqual",stackStartFn:notEqual})}function fail(et){let tt=!1;throw isError(et)?et:(et==null&&(et="Assertion failed.",tt=!0),new AssertionError({message:et,actual:!1,expected:!0,operator:"fail",generatedMessage:tt,stackStartFn:fail}))}function throws(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;enforce(typeof et=="function","func","function");try{et()}catch(st){nt=!0,it=st}if(!nt){let st=!1;throw rt==null&&(rt="Missing expected exception.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"throws",generatedMessage:st,stackStartFn:throws})}if(!testError(it,tt,rt,throws))throw it}function doesNotThrow(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;enforce(typeof et=="function","func","function");try{et()}catch(st){nt=!0,it=st}if(nt){if(testError(it,tt,rt,doesNotThrow)){let st=!1;throw rt==null&&(rt="Got unwanted exception.",st=!0),new AssertionError({message:rt,actual:it,expected:tt,operator:"doesNotThrow",generatedMessage:st,stackStartFn:doesNotThrow})}throw it}}async function rejects(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;typeof et!="function"&&enforce(isPromise(et),"func","promise");try{isPromise(et)?await et:await et()}catch(st){nt=!0,it=st}if(!nt){let st=!1;throw rt==null&&(rt="Missing expected rejection.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"rejects",generatedMessage:st,stackStartFn:rejects})}if(!testError(it,tt,rt,rejects))throw it}async function doesNotReject(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;typeof et!="function"&&enforce(isPromise(et),"func","promise");try{isPromise(et)?await et:await et()}catch(st){nt=!0,it=st}if(nt){if(testError(it,tt,rt,doesNotReject)){let st=!1;throw rt==null&&(rt="Got unwanted rejection.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"doesNotReject",generatedMessage:st,stackStartFn:doesNotReject})}throw it}}function ifError(et){if(et!=null){let tt="ifError got unwanted exception: ";throw typeof et=="object"&&typeof et.message=="string"?et.message.length===0&&et.constructor?tt+=et.constructor.name:tt+=et.message:tt+=stringify$1(et),new AssertionError({message:tt,actual:et,expected:null,operator:"ifError",generatedMessage:!0,stackStartFn:ifError})}}function deepEqual$1(et,tt,rt){if(!isDeepEqual(et,tt,!1))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"deepStrictEqual",stackStartFn:deepEqual$1})}function notDeepEqual(et,tt,rt){if(isDeepEqual(et,tt,!0))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"notDeepStrictEqual",stackStartFn:notDeepEqual})}function bufferEqual(et,tt,rt,nt){if(isEncoding(rt)||(nt=rt,rt=null),rt==null&&(rt="hex"),tt=bufferize(et,tt,rt),enforce(isBuffer$3(et),"actual","buffer"),enforce(isBuffer$3(tt),"expected","buffer"),et!==tt&&!et.equals(tt))throw isError(nt)?nt:new AssertionError({message:nt,actual:et.toString(rt),expected:tt.toString(rt),operator:"bufferEqual",stackStartFn:bufferEqual})}function notBufferEqual(et,tt,rt,nt){if(isEncoding(rt)||(nt=rt,rt=null),rt==null&&(rt="hex"),tt=bufferize(et,tt,rt),enforce(isBuffer$3(et),"actual","buffer"),enforce(isBuffer$3(tt),"expected","buffer"),et===tt||et.equals(tt))throw isError(nt)?nt:new AssertionError({message:nt,actual:et.toString(rt),expected:tt.toString(rt),operator:"notBufferEqual",stackStartFn:notBufferEqual})}function enforce(et,tt,rt){if(!et){let nt;tt==null?nt="Invalid type for parameter.":rt==null?nt=`Invalid type for "${tt}".`:nt=`"${tt}" must be a(n) ${rt}.`;const it=new TypeError(nt);throw Error.captureStackTrace&&Error.captureStackTrace(it,enforce),it}}function range$3(et,tt){if(!et){const rt=tt!=null?`"${tt}" is out of range.`:"Parameter is out of range.",nt=new RangeError(rt);throw Error.captureStackTrace&&Error.captureStackTrace(nt,range$3),nt}}function stringify$1(et){switch(typeof et){case"undefined":return"undefined";case"object":return et===null?"null":`[${objectName(et)}]`;case"boolean":return`${et}`;case"number":return`${et}`;case"string":return et.length>80&&(et=`${et.substring(0,77)}...`),JSON.stringify(et);case"symbol":return tryString(et);case"function":return`[${funcName(et)}]`;case"bigint":return`${et}n`;default:return`[${typeof et}]`}}function toString$1(et){return typeof et=="string"?et:isError(et)?tryString(et):stringify$1(et)}function tryString(et){try{return String(et)}catch{return"Object"}}function testError(et,tt,rt,nt){if(tt==null)return!0;if(isRegExp(tt))return tt.test(et);if(typeof tt!="function"){if(nt===doesNotThrow||nt===doesNotReject)throw new TypeError('"expected" must not be an object.');if(typeof tt!="object")throw new TypeError('"expected" must be an object.');let it=!1;if(rt==null&&(rt=`Missing expected ${nt===rejects?"rejection":"exception"}.`,it=!0),et==null||typeof et!="object")throw new AssertionError({actual:et,expected:tt,message:rt,operator:nt.name,generatedMessage:it,stackStartFn:nt});const st=Object.keys(tt);if(isError(tt)&&st.push("name","message"),st.length===0)throw new TypeError('"expected" may not be an empty object.');for(const at of st){const ot=tt[at],lt=et[at];if(!(typeof lt=="string"&&isRegExp(ot)&&ot.test(lt))&&!(at in et&&isDeepEqual(lt,ot,!1)))throw new AssertionError({actual:et,expected:tt,message:rt,operator:nt.name,generatedMessage:it,stackStartFn:nt})}return!0}return tt.prototype!==void 0&&et instanceof tt?!0:Error.isPrototypeOf(tt)?!1:tt.call({},et)===!0}function isDeepEqual(et,tt,rt){try{return compare(et,tt,null)}catch{return rt}}function compare(et,tt,rt){if(Object.is(et,tt))return!0;if(!isObject$9(et)||!isObject$9(tt)||objectString(et)!==objectString(tt)||Object.getPrototypeOf(et)!==Object.getPrototypeOf(tt))return!1;if(isBuffer$3(et)&&isBuffer$3(tt))return et.equals(tt);if(isDate(et))return Object.is(et.getTime(),tt.getTime());if(isRegExp(et))return et.source===tt.source&&et.global===tt.global&&et.multiline===tt.multiline&&et.lastIndex===tt.lastIndex&&et.ignoreCase===tt.ignoreCase;if(isError(et)&&et.message!==tt.message)return!1;if(isArrayBuffer(et)&&(et=new Uint8Array(et),tt=new Uint8Array(tt)),isView$2(et)&&!isBuffer$3(et)){if(isBuffer$3(tt))return!1;const it=new Uint8Array(et.buffer),st=new Uint8Array(tt.buffer);if(it.length!==st.length)return!1;for(let at=0;at>>1?null:it}return tt}assert$3.AssertionError=AssertionError;assert$3.assert=assert$3;assert$3.strict=assert$3;assert$3.ok=assert$3;assert$3.equal=equal;assert$3.notEqual=notEqual;assert$3.strictEqual=equal;assert$3.notStrictEqual=notEqual;assert$3.fail=fail;assert$3.throws=throws;assert$3.doesNotThrow=doesNotThrow;assert$3.rejects=rejects;assert$3.doesNotReject=doesNotReject;assert$3.ifError=ifError;assert$3.deepEqual=deepEqual$1;assert$3.notDeepEqual=notDeepEqual;assert$3.deepStrictEqual=deepEqual$1;assert$3.notDeepStrictEqual=notDeepEqual;assert$3.bufferEqual=bufferEqual;assert$3.notBufferEqual=notBufferEqual;assert$3.enforce=enforce;assert$3.range=range$3;var assert_1=assert$3,__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding$1(tt,et,rt);return __setModuleDefault$1(tt,et),tt},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(caveat,"__esModule",{value:!0});caveat.verifyCaveats=caveat.hasCaveat=caveat.Caveat=caveat.ErrInvalidCaveat=void 0;const bsert_1=__importDefault(assert_1),Macaroon$1=__importStar$1(macaroon$1);class ErrInvalidCaveat extends Error{constructor(...tt){super(...tt),Error.captureStackTrace&&Error.captureStackTrace(this,ErrInvalidCaveat),this.name="ErrInvalidCaveat",this.message='Caveat must be of the form "condition[<,=,>]value"'}}caveat.ErrInvalidCaveat=ErrInvalidCaveat;const validComp=new Set(["<",">","="]);class Caveat{constructor(tt){this.condition="",this.value="",this.comp="=",tt&&this.fromOptions(tt)}fromOptions(tt){if((0,bsert_1.default)(tt,"Data required to create new caveat"),(0,bsert_1.default)(typeof tt.condition=="string"&&tt.condition.length,"Require a condition"),this.condition=tt.condition,tt.value.toString(),this.value=tt.value,tt.comp){if(!validComp.has(tt.comp))throw new ErrInvalidCaveat;this.comp=tt.comp}return this}encode(){return`${this.condition}${this.comp}${this.value}`}static decode(tt){let rt;for(let at=0;at{try{if(at.i!=null){const ot=Caveat.decode(at.i);it===ot.condition&&(st=ot.value)}}catch{}}),st||!1}caveat.hasCaveat=hasCaveat;function verifyCaveats(et,tt,rt={}){if(tt)Array.isArray(tt)||(tt=[tt]);else return!0;const nt=new Map;for(const st of tt)nt.set(st.condition,st);const it=new Map;for(const st of et){const at=st.condition;if(!nt.has(at))continue;it.has(at)||it.set(at,[]);const ot=it.get(at);ot.push(st),it.set(at,ot)}for(const[st,at]of it){const ot=nt.get(st);for(let lt=0;lt>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk$1(et){for(var tt=1,rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep$1(tt)^nt>>5}for(tt=polymodStep$1(tt),rt=0;rtrt)throw new TypeError("Exceeds length limit");et=et.toLowerCase();var nt=prefixChk$1(et);if(typeof nt=="string")throw new Error(nt);for(var it=et+"1",st=0;st>5)throw new Error("Non 5-bit word");nt=polymodStep$1(nt)^at,it+=ALPHABET$2.charAt(at)}for(st=0;st<6;++st)nt=polymodStep$1(nt);for(nt^=1,st=0;st<6;++st){var ot=nt>>(5-st)*5&31;it+=ALPHABET$2.charAt(ot)}return it}function __decode(et,tt){if(tt=tt||90,et.length<8)return et+" too short";if(et.length>tt)return"Exceeds length limit";var rt=et.toLowerCase(),nt=et.toUpperCase();if(et!==rt&&et!==nt)return"Mixed-case string "+et;et=rt;var it=et.lastIndexOf("1");if(it===-1)return"No separator character for "+et;if(it===0)return"Missing prefix for "+et;var st=et.slice(0,it),at=et.slice(it+1);if(at.length<6)return"Data too short";var ot=prefixChk$1(st);if(typeof ot=="string")return ot;for(var lt=[],ut=0;ut=at.length)&<.push(bt)}return ot!==1?"Invalid checksum for "+et:{prefix:st,words:lt}}function decodeUnsafe(){var et=__decode.apply(null,arguments);if(typeof et=="object")return et}function decode$n(et){var tt=__decode.apply(null,arguments);if(typeof tt=="object")return tt;throw new Error(tt)}function convert$4(et,tt,rt,nt){for(var it=0,st=0,at=(1<=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<new Uint8Array(rt),tt){return typeof et=="function"&&(et=et(tt)),isUint8Array("output",et,tt),et}function toTypeString(et){return Object.prototype.toString.call(et).slice(8,-1)}var lib$1=et=>({contextRandomize(tt){switch(assert$2(tt===null||tt instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),tt!==null&&isUint8Array("seed",tt,32),et.contextRandomize(tt)){case 1:throw new Error(errors$2.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(tt){return isUint8Array("private key",tt,32),et.privateKeyVerify(tt)===0},privateKeyNegate(tt){switch(isUint8Array("private key",tt,32),et.privateKeyNegate(tt)){case 0:return tt;case 1:throw new Error(errors$2.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(tt,rt){switch(isUint8Array("private key",tt,32),isUint8Array("tweak",rt,32),et.privateKeyTweakAdd(tt,rt)){case 0:return tt;case 1:throw new Error(errors$2.TWEAK_ADD)}},privateKeyTweakMul(tt,rt){switch(isUint8Array("private key",tt,32),isUint8Array("tweak",rt,32),et.privateKeyTweakMul(tt,rt)){case 0:return tt;case 1:throw new Error(errors$2.TWEAK_MUL)}},publicKeyVerify(tt){return isUint8Array("public key",tt,[33,65]),et.publicKeyVerify(tt)===0},publicKeyCreate(tt,rt=!0,nt){switch(isUint8Array("private key",tt,32),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyCreate(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.SECKEY_INVALID);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyConvert(tt,rt=!0,nt){switch(isUint8Array("public key",tt,[33,65]),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyConvert(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyNegate(tt,rt=!0,nt){switch(isUint8Array("public key",tt,[33,65]),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyNegate(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyCombine(tt,rt=!0,nt){assert$2(Array.isArray(tt),"Expected public keys to be an Array"),assert$2(tt.length>0,"Expected public keys array will have more than zero items");for(const it of tt)isUint8Array("public key",it,[33,65]);switch(isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyCombine(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_COMBINE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(tt,rt,nt=!0,it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("tweak",rt,32),isCompressed(nt),it=getAssertedOutput(it,nt?33:65),et.publicKeyTweakAdd(it,tt,rt)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_ADD)}},publicKeyTweakMul(tt,rt,nt=!0,it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("tweak",rt,32),isCompressed(nt),it=getAssertedOutput(it,nt?33:65),et.publicKeyTweakMul(it,tt,rt)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_MUL)}},signatureNormalize(tt){switch(isUint8Array("signature",tt,64),et.signatureNormalize(tt)){case 0:return tt;case 1:throw new Error(errors$2.SIG_PARSE)}},signatureExport(tt,rt){isUint8Array("signature",tt,64),rt=getAssertedOutput(rt,72);const nt={output:rt,outputlen:72};switch(et.signatureExport(nt,tt)){case 0:return rt.slice(0,nt.outputlen);case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},signatureImport(tt,rt){switch(isUint8Array("signature",tt),rt=getAssertedOutput(rt,64),et.signatureImport(rt,tt)){case 0:return rt;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaSign(tt,rt,nt={},it){isUint8Array("message",tt,32),isUint8Array("private key",rt,32),assert$2(toTypeString(nt)==="Object","Expected options to be an Object"),nt.data!==void 0&&isUint8Array("options.data",nt.data),nt.noncefn!==void 0&&assert$2(toTypeString(nt.noncefn)==="Function","Expected options.noncefn to be a Function"),it=getAssertedOutput(it,64);const st={signature:it,recid:null};switch(et.ecdsaSign(st,tt,rt,nt.data,nt.noncefn)){case 0:return st;case 1:throw new Error(errors$2.SIGN);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaVerify(tt,rt,nt){switch(isUint8Array("signature",tt,64),isUint8Array("message",rt,32),isUint8Array("public key",nt,[33,65]),et.ecdsaVerify(tt,rt,nt)){case 0:return!0;case 3:return!1;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.PUBKEY_PARSE)}},ecdsaRecover(tt,rt,nt,it=!0,st){switch(isUint8Array("signature",tt,64),assert$2(toTypeString(rt)==="Number"&&rt>=0&&rt<=3,"Expected recovery id to be a Number within interval [0, 3]"),isUint8Array("message",nt,32),isCompressed(it),st=getAssertedOutput(st,it?33:65),et.ecdsaRecover(st,tt,rt,nt)){case 0:return st;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.RECOVER);case 3:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdh(tt,rt,nt={},it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("private key",rt,32),assert$2(toTypeString(nt)==="Object","Expected options to be an Object"),nt.data!==void 0&&isUint8Array("options.data",nt.data),nt.hashfn!==void 0?(assert$2(toTypeString(nt.hashfn)==="Function","Expected options.hashfn to be a Function"),nt.xbuf!==void 0&&isUint8Array("options.xbuf",nt.xbuf,32),nt.ybuf!==void 0&&isUint8Array("options.ybuf",nt.ybuf,32),isUint8Array("output",it)):it=getAssertedOutput(it,32),et.ecdh(it,tt,rt,nt.data,nt.hashfn,nt.xbuf,nt.ybuf)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.ECDH)}}});const EC=requireElliptic().ec,ec=new EC("secp256k1"),ecparams=ec.curve,BN$1=ecparams.n.constructor;function loadCompressedPublicKey(et,tt){let rt=new BN$1(tt);if(rt.cmp(ecparams.p)>=0)return null;rt=rt.toRed(ecparams.red);let nt=rt.redSqr().redIMul(rt).redIAdd(ecparams.b).redSqrt();return et===3!==nt.isOdd()&&(nt=nt.redNeg()),ec.keyPair({pub:{x:rt,y:nt}})}function loadUncompressedPublicKey(et,tt,rt){let nt=new BN$1(tt),it=new BN$1(rt);if(nt.cmp(ecparams.p)>=0||it.cmp(ecparams.p)>=0||(nt=nt.toRed(ecparams.red),it=it.toRed(ecparams.red),(et===6||et===7)&&it.isOdd()!==(et===7)))return null;const st=nt.redSqr().redIMul(nt);return it.redSqr().redISub(st.redIAdd(ecparams.b)).isZero()?ec.keyPair({pub:{x:nt,y:it}}):null}function loadPublicKey(et){const tt=et[0];switch(tt){case 2:case 3:return et.length!==33?null:loadCompressedPublicKey(tt,et.subarray(1,33));case 4:case 6:case 7:return et.length!==65?null:loadUncompressedPublicKey(tt,et.subarray(1,33),et.subarray(33,65));default:return null}}function savePublicKey(et,tt){const rt=tt.encode(null,et.length===33);for(let nt=0;nt=0||(rt.iadd(new BN$1(et)),rt.cmp(ecparams.n)>=0&&rt.isub(ecparams.n),rt.isZero()))return 1;const nt=rt.toArrayLike(Uint8Array,"be",32);return et.set(nt),0},privateKeyTweakMul(et,tt){let rt=new BN$1(tt);if(rt.cmp(ecparams.n)>=0||rt.isZero())return 1;rt.imul(new BN$1(et)),rt.cmp(ecparams.n)>=0&&(rt=rt.umod(ecparams.n));const nt=rt.toArrayLike(Uint8Array,"be",32);return et.set(nt),0},publicKeyVerify(et){return loadPublicKey(et)===null?1:0},publicKeyCreate(et,tt){const rt=new BN$1(tt);if(rt.cmp(ecparams.n)>=0||rt.isZero())return 1;const nt=ec.keyFromPrivate(tt).getPublic();return savePublicKey(et,nt),0},publicKeyConvert(et,tt){const rt=loadPublicKey(tt);if(rt===null)return 1;const nt=rt.getPublic();return savePublicKey(et,nt),0},publicKeyNegate(et,tt){const rt=loadPublicKey(tt);if(rt===null)return 1;const nt=rt.getPublic();return nt.y=nt.y.redNeg(),savePublicKey(et,nt),0},publicKeyCombine(et,tt){const rt=new Array(tt.length);for(let it=0;it=0)return 2;const it=nt.getPublic().add(ecparams.g.mul(rt));return it.isInfinity()?2:(savePublicKey(et,it),0)},publicKeyTweakMul(et,tt,rt){const nt=loadPublicKey(tt);if(nt===null)return 1;if(rt=new BN$1(rt),rt.cmp(ecparams.n)>=0||rt.isZero())return 2;const it=nt.getPublic().mul(rt);return savePublicKey(et,it),0},signatureNormalize(et){const tt=new BN$1(et.subarray(0,32)),rt=new BN$1(et.subarray(32,64));return tt.cmp(ecparams.n)>=0||rt.cmp(ecparams.n)>=0?1:(rt.cmp(ec.nh)===1&&et.set(ecparams.n.sub(rt).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(et,tt){const rt=tt.subarray(0,32),nt=tt.subarray(32,64);if(new BN$1(rt).cmp(ecparams.n)>=0||new BN$1(nt).cmp(ecparams.n)>=0)return 1;const{output:it}=et;let st=it.subarray(4,4+33);st[0]=0,st.set(rt,1);let at=33,ot=0;for(;at>1&&st[ot]===0&&!(st[ot+1]&128);--at,++ot);if(st=st.subarray(ot),st[0]&128||at>1&&st[0]===0&&!(st[1]&128))return 1;let lt=it.subarray(6+33,6+33+33);lt[0]=0,lt.set(nt,1);let ut=33,dt=0;for(;ut>1&<[dt]===0&&!(lt[dt+1]&128);--ut,++dt);return lt=lt.subarray(dt),lt[0]&128||ut>1&<[0]===0&&!(lt[1]&128)?1:(et.outputlen=6+at+ut,it[0]=48,it[1]=et.outputlen-2,it[2]=2,it[3]=st.length,it.set(st,4),it[4+at]=2,it[5+at]=lt.length,it.set(lt,6+at),0)},signatureImport(et,tt){if(tt.length<8||tt.length>72||tt[0]!==48||tt[1]!==tt.length-2||tt[2]!==2)return 1;const rt=tt[3];if(rt===0||5+rt>=tt.length||tt[4+rt]!==2)return 1;const nt=tt[5+rt];if(nt===0||6+rt+nt!==tt.length||tt[4]&128||rt>1&&tt[4]===0&&!(tt[5]&128)||tt[rt+6]&128||nt>1&&tt[rt+6]===0&&!(tt[rt+7]&128))return 1;let it=tt.subarray(4,4+rt);if(it.length===33&&it[0]===0&&(it=it.subarray(1)),it.length>32)return 1;let st=tt.subarray(6+rt);if(st.length===33&&st[0]===0&&(st=st.slice(1)),st.length>32)throw new Error("S length is too long");let at=new BN$1(it);at.cmp(ecparams.n)>=0&&(at=new BN$1(0));let ot=new BN$1(tt.subarray(6+rt));return ot.cmp(ecparams.n)>=0&&(ot=new BN$1(0)),et.set(at.toArrayLike(Uint8Array,"be",32),0),et.set(ot.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(et,tt,rt,nt,it){if(it){const ot=it;it=lt=>{const ut=ot(tt,rt,null,nt,lt);if(!(ut instanceof Uint8Array&&ut.length===32))throw new Error("This is the way");return new BN$1(ut)}}const st=new BN$1(rt);if(st.cmp(ecparams.n)>=0||st.isZero())return 1;let at;try{at=ec.sign(tt,rt,{canonical:!0,k:it,pers:nt})}catch{return 1}return et.signature.set(at.r.toArrayLike(Uint8Array,"be",32),0),et.signature.set(at.s.toArrayLike(Uint8Array,"be",32),32),et.recid=at.recoveryParam,0},ecdsaVerify(et,tt,rt){const nt={r:et.subarray(0,32),s:et.subarray(32,64)},it=new BN$1(nt.r),st=new BN$1(nt.s);if(it.cmp(ecparams.n)>=0||st.cmp(ecparams.n)>=0)return 1;if(st.cmp(ec.nh)===1||it.isZero()||st.isZero())return 3;const at=loadPublicKey(rt);if(at===null)return 2;const ot=at.getPublic();return ec.verify(tt,nt,ot)?0:3},ecdsaRecover(et,tt,rt,nt){const it={r:tt.slice(0,32),s:tt.slice(32,64)},st=new BN$1(it.r),at=new BN$1(it.s);if(st.cmp(ecparams.n)>=0||at.cmp(ecparams.n)>=0)return 1;if(st.isZero()||at.isZero())return 2;let ot;try{ot=ec.recoverPubKey(nt,it,rt)}catch{return 2}return savePublicKey(et,ot),0},ecdh(et,tt,rt,nt,it,st,at){const ot=loadPublicKey(tt);if(ot===null)return 1;const lt=new BN$1(rt);if(lt.cmp(ecparams.n)>=0||lt.isZero())return 2;const ut=ot.getPublic().mul(lt);if(it===void 0){const dt=ut.encode(null,!0),bt=ec.hash().update(dt).digest();for(let gt=0;gt<32;++gt)et[gt]=bt[gt]}else{st||(st=new Uint8Array(32));const dt=ut.getX().toArray("be",32);for(let pt=0;pt<32;++pt)st[pt]=dt[pt];at||(at=new Uint8Array(32));const bt=ut.getY().toArray("be",32);for(let pt=0;pt<32;++pt)at[pt]=bt[pt];const gt=it(st,at,nt);if(!(gt instanceof Uint8Array&>.length===et.length))return 2;et.set(gt)}return 0}},elliptic=lib$1(elliptic$1),src$1={},address={},networks$1={};Object.defineProperty(networks$1,"__esModule",{value:!0});networks$1.testnet=networks$1.regtest=networks$1.bitcoin=void 0;networks$1.bitcoin={messagePrefix:`Bitcoin Signed Message: `,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128};networks$1.regtest={messagePrefix:`Bitcoin Signed Message: `,bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};networks$1.testnet={messagePrefix:`Bitcoin Signed Message: -`,bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};var payments$3={},embed={},script={},bip66$1={};Object.defineProperty(bip66$1,"__esModule",{value:!0});bip66$1.encode=bip66$1.decode=bip66$1.check=void 0;function check$d(et){if(et.length<8||et.length>72||et[0]!==48||et[1]!==et.length-2||et[2]!==2)return!1;const tt=et[3];if(tt===0||5+tt>=et.length||et[4+tt]!==2)return!1;const rt=et[5+tt];return!(rt===0||6+tt+rt!==et.length||et[4]&128||tt>1&&et[4]===0&&!(et[5]&128)||et[tt+6]&128||rt>1&&et[tt+6]===0&&!(et[tt+7]&128))}bip66$1.check=check$d;function decode$m(et){if(et.length<8)throw new Error("DER sequence length is too short");if(et.length>72)throw new Error("DER sequence length is too long");if(et[0]!==48)throw new Error("Expected DER sequence");if(et[1]!==et.length-2)throw new Error("DER sequence length is invalid");if(et[2]!==2)throw new Error("Expected DER integer");const tt=et[3];if(tt===0)throw new Error("R length is zero");if(5+tt>=et.length)throw new Error("R length is too long");if(et[4+tt]!==2)throw new Error("Expected DER integer (2)");const rt=et[5+tt];if(rt===0)throw new Error("S length is zero");if(6+tt+rt!==et.length)throw new Error("S length is invalid");if(et[4]&128)throw new Error("R value is negative");if(tt>1&&et[4]===0&&!(et[5]&128))throw new Error("R value excessively padded");if(et[tt+6]&128)throw new Error("S value is negative");if(rt>1&&et[tt+6]===0&&!(et[tt+7]&128))throw new Error("S value excessively padded");return{r:et.slice(4,4+tt),s:et.slice(6+tt)}}bip66$1.decode=decode$m;function encode$n(et,tt){const rt=et.length,nt=tt.length;if(rt===0)throw new Error("R length is zero");if(nt===0)throw new Error("S length is zero");if(rt>33)throw new Error("R length is too long");if(nt>33)throw new Error("S length is too long");if(et[0]&128)throw new Error("R value is negative");if(tt[0]&128)throw new Error("S value is negative");if(rt>1&&et[0]===0&&!(et[1]&128))throw new Error("R value excessively padded");if(nt>1&&tt[0]===0&&!(tt[1]&128))throw new Error("S value excessively padded");const it=Buffer.allocUnsafe(6+rt+nt);return it[0]=48,it[1]=it.length-2,it[2]=2,it[3]=et.length,et.copy(it,4),it[4+rt]=2,it[5+rt]=tt.length,tt.copy(it,6+rt),it}bip66$1.encode=encode$n;var ops={};Object.defineProperty(ops,"__esModule",{value:!0});ops.REVERSE_OPS=ops.OPS=void 0;const OPS$8={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_CHECKSIGADD:186,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};ops.OPS=OPS$8;const REVERSE_OPS={};ops.REVERSE_OPS=REVERSE_OPS;for(const et of Object.keys(OPS$8)){const tt=OPS$8[et];REVERSE_OPS[tt]=et}var push_data={};Object.defineProperty(push_data,"__esModule",{value:!0});push_data.decode=push_data.encode=push_data.encodingLength=void 0;const ops_1=ops;function encodingLength$2(et){return etet.length)return null;nt=et.readUInt8(tt+1),it=2}else if(rt===ops_1.OPS.OP_PUSHDATA2){if(tt+3>et.length)return null;nt=et.readUInt16LE(tt+1),it=3}else{if(tt+5>et.length)return null;if(rt!==ops_1.OPS.OP_PUSHDATA4)throw new Error("Unexpected opcode");nt=et.readUInt32LE(tt+1),it=5}return{opcode:rt,number:nt,size:it}}push_data.decode=decode$l;var script_number={};Object.defineProperty(script_number,"__esModule",{value:!0});script_number.encode=script_number.decode=void 0;function decode$k(et,tt,rt){tt=tt||4,rt=rt===void 0?!0:rt;const nt=et.length;if(nt===0)return 0;if(nt>tt)throw new TypeError("Script number overflow");if(rt&&!(et[nt-1]&127)&&(nt<=1||!(et[nt-2]&128)))throw new Error("Non-minimally encoded script number");if(nt===5){const st=et.readUInt32LE(0),at=et.readUInt8(4);return at&128?-((at&-129)*4294967296+st):at*4294967296+st}let it=0;for(let st=0;st2147483647?5:et>8388607?4:et>32767?3:et>127?2:et>0?1:0}function encode$l(et){let tt=Math.abs(et);const rt=scriptNumSize(tt),nt=Buffer.allocUnsafe(rt),it=et<0;for(let st=0;st>=8;return nt[rt-1]&128?nt.writeUInt8(it?128:0,rt-1):it&&(nt[rt-1]|=128),nt}script_number.encode=encode$l;var script_signature={},types$6={},types$5={Array:function(et){return et!=null&&et.constructor===Array},Boolean:function(et){return typeof et=="boolean"},Function:function(et){return typeof et=="function"},Nil:function(et){return et==null},Number:function(et){return typeof et=="number"},Object:function(et){return typeof et=="object"},String:function(et){return typeof et=="string"},"":function(){return!0}};types$5.Null=types$5.Nil;for(var typeName$1 in types$5)types$5[typeName$1].toJSON=(function(et){return et}).bind(null,typeName$1);var native$1=types$5,native=native$1;function getTypeName(et){return et.name||et.toString().match(/function (.*?)\s*\(/)[1]}function getValueTypeName$1(et){return native.Nil(et)?"":getTypeName(et.constructor)}function getValue$3(et){return native.Function(et)?"":native.String(et)?JSON.stringify(et):et&&native.Object(et)?"":et}function captureStackTrace(et,tt){Error.captureStackTrace&&Error.captureStackTrace(et,tt)}function tfJSON$1(et){return native.Function(et)?et.toJSON?et.toJSON():getTypeName(et):native.Array(et)?"Array":et&&native.Object(et)?"Object":et!==void 0?et:""}function tfErrorString(et,tt,rt){var nt=getValue$3(tt);return"Expected "+tfJSON$1(et)+", got"+(rt!==""?" "+rt:"")+(nt!==""?" "+nt:"")}function TfTypeError$1(et,tt,rt){rt=rt||getValueTypeName$1(tt),this.message=tfErrorString(et,tt,rt),captureStackTrace(this,TfTypeError$1),this.__type=et,this.__value=tt,this.__valueTypeName=rt}TfTypeError$1.prototype=Object.create(Error.prototype);TfTypeError$1.prototype.constructor=TfTypeError$1;function tfPropertyErrorString(et,tt,rt,nt,it){var st='" of type ';return tt==="key"&&(st='" with key type '),tfErrorString('property "'+tfJSON$1(rt)+st+tfJSON$1(et),nt,it)}function TfPropertyTypeError$1(et,tt,rt,nt,it){et?(it=it||getValueTypeName$1(nt),this.message=tfPropertyErrorString(et,rt,tt,nt,it)):this.message='Unexpected property "'+tt+'"',captureStackTrace(this,TfTypeError$1),this.__label=rt,this.__property=tt,this.__type=et,this.__value=nt,this.__valueTypeName=it}TfPropertyTypeError$1.prototype=Object.create(Error.prototype);TfPropertyTypeError$1.prototype.constructor=TfTypeError$1;function tfCustomError(et,tt){return new TfTypeError$1(et,{},tt)}function tfSubError$1(et,tt,rt){return et instanceof TfPropertyTypeError$1?(tt=tt+"."+et.__property,et=new TfPropertyTypeError$1(et.__type,tt,et.__label,et.__value,et.__valueTypeName)):et instanceof TfTypeError$1&&(et=new TfPropertyTypeError$1(et.__type,tt,rt,et.__value,et.__valueTypeName)),captureStackTrace(et),et}var errors$1={TfTypeError:TfTypeError$1,TfPropertyTypeError:TfPropertyTypeError$1,tfCustomError,tfSubError:tfSubError$1,tfJSON:tfJSON$1,getValueTypeName:getValueTypeName$1},extra,hasRequiredExtra;function requireExtra(){if(hasRequiredExtra)return extra;hasRequiredExtra=1;var et=native$1,tt=errors$1;function rt(Dt){return Buffer.isBuffer(Dt)}function nt(Dt){return typeof Dt=="string"&&/^([0-9a-f]{2})+$/i.test(Dt)}function it(Dt,zt){var Ht=Dt.toJSON();function Wt(lr){if(!Dt(lr))return!1;if(lr.length===zt)return!0;throw tt.tfCustomError(Ht+"(Length: "+zt+")",Ht+"(Length: "+lr.length+")")}return Wt.toJSON=function(){return Ht},Wt}var st=it.bind(null,et.Array),at=it.bind(null,rt),ot=it.bind(null,nt),lt=it.bind(null,et.String);function ut(Dt,zt,Ht){Ht=Ht||et.Number;function Wt(lr,qt){return Ht(lr,qt)&&lr>Dt&&lr>24===Dt}function kt(Dt){return Dt<<16>>16===Dt}function pt(Dt){return(Dt|0)===Dt}function yt(Dt){return typeof Dt=="number"&&Dt>=-dt&&Dt<=dt&&Math.floor(Dt)===Dt}function $t(Dt){return(Dt&255)===Dt}function mt(Dt){return(Dt&65535)===Dt}function wt(Dt){return Dt>>>0===Dt}function St(Dt){return typeof Dt=="number"&&Dt>=0&&Dt<=dt&&Math.floor(Dt)===Dt}var Bt={ArrayN:st,Buffer:rt,BufferN:at,Finite:bt,Hex:nt,HexN:ot,Int8:gt,Int16:kt,Int32:pt,Int53:yt,Range:ut,StringN:lt,UInt8:$t,UInt16:mt,UInt32:wt,UInt53:St};for(var Ft in Bt)Bt[Ft].toJSON=(function(Dt){return Dt}).bind(null,Ft);return extra=Bt,extra}var ERRORS=errors$1,NATIVE=native$1,tfJSON=ERRORS.tfJSON,TfTypeError=ERRORS.TfTypeError,TfPropertyTypeError=ERRORS.TfPropertyTypeError,tfSubError=ERRORS.tfSubError,getValueTypeName=ERRORS.getValueTypeName,TYPES={arrayOf:function(tt,rt){tt=compile$1(tt),rt=rt||{};function nt(it,st){return!NATIVE.Array(it)||NATIVE.Nil(it)||rt.minLength!==void 0&&it.lengthrt.maxLength||rt.length!==void 0&&it.length!==rt.length?!1:it.every(function(at,ot){try{return typeforce$4(tt,at,st)}catch(lt){throw tfSubError(lt,ot)}})}return nt.toJSON=function(){var it="["+tfJSON(tt)+"]";return rt.length!==void 0?it+="{"+rt.length+"}":(rt.minLength!==void 0||rt.maxLength!==void 0)&&(it+="{"+(rt.minLength===void 0?0:rt.minLength)+","+(rt.maxLength===void 0?1/0:rt.maxLength)+"}"),it},nt},maybe:function et(tt){tt=compile$1(tt);function rt(nt,it){return NATIVE.Nil(nt)||tt(nt,it,et)}return rt.toJSON=function(){return"?"+tfJSON(tt)},rt},map:function(tt,rt){tt=compile$1(tt),rt&&(rt=compile$1(rt));function nt(it,st){if(!NATIVE.Object(it)||NATIVE.Nil(it))return!1;for(var at in it){try{rt&&typeforce$4(rt,at,st)}catch(lt){throw tfSubError(lt,at,"key")}try{var ot=it[at];typeforce$4(tt,ot,st)}catch(lt){throw tfSubError(lt,at)}}return!0}return rt?nt.toJSON=function(){return"{"+tfJSON(rt)+": "+tfJSON(tt)+"}"}:nt.toJSON=function(){return"{"+tfJSON(tt)+"}"},nt},object:function(tt){var rt={};for(var nt in tt)rt[nt]=compile$1(tt[nt]);function it(st,at){if(!NATIVE.Object(st)||NATIVE.Nil(st))return!1;var ot;try{for(ot in rt){var lt=rt[ot],ut=st[ot];typeforce$4(lt,ut,at)}}catch(dt){throw tfSubError(dt,ot)}if(at){for(ot in st)if(!rt[ot])throw new TfPropertyTypeError(void 0,ot)}return!0}return it.toJSON=function(){return tfJSON(rt)},it},anyOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.some(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join("|")},rt},allOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.every(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join(" & ")},rt},quacksLike:function(tt){function rt(nt){return tt===getValueTypeName(nt)}return rt.toJSON=function(){return tt},rt},tuple:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return NATIVE.Nil(nt)||NATIVE.Nil(nt.length)||it&&nt.length!==tt.length?!1:tt.every(function(st,at){try{return typeforce$4(st,nt[at],it)}catch(ot){throw tfSubError(ot,at)}})}return rt.toJSON=function(){return"("+tt.map(tfJSON).join(", ")+")"},rt},value:function(tt){function rt(nt){return nt===tt}return rt.toJSON=function(){return tt},rt}};TYPES.oneOf=TYPES.anyOf;function compile$1(et){if(NATIVE.String(et))return et[0]==="?"?TYPES.maybe(et.slice(1)):NATIVE[et]||TYPES.quacksLike(et);if(et&&NATIVE.Object(et)){if(NATIVE.Array(et)){if(et.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return TYPES.arrayOf(et[0])}return TYPES.object(et)}else if(NATIVE.Function(et))return et;return TYPES.value(et)}function typeforce$4(et,tt,rt,nt){if(NATIVE.Function(et)){if(et(tt,rt))return!0;throw new TfTypeError(nt||et,tt)}return typeforce$4(compile$1(et),tt,rt)}for(var typeName in NATIVE)typeforce$4[typeName]=NATIVE[typeName];for(typeName in TYPES)typeforce$4[typeName]=TYPES[typeName];var EXTRA=requireExtra();for(typeName in EXTRA)typeforce$4[typeName]=EXTRA[typeName];typeforce$4.compile=compile$1;typeforce$4.TfTypeError=TfTypeError;typeforce$4.TfPropertyTypeError=TfPropertyTypeError;var typeforce_1=typeforce$4;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.oneOf=et.Null=et.BufferN=et.Function=et.UInt32=et.UInt8=et.tuple=et.maybe=et.Hex=et.Buffer=et.String=et.Boolean=et.Array=et.Number=et.Hash256bit=et.Hash160bit=et.Buffer256bit=et.isTaptree=et.isTapleaf=et.TAPLEAF_VERSION_MASK=et.Network=et.ECPoint=et.Satoshi=et.Signer=et.BIP32Path=et.UInt31=et.isPoint=et.typeforce=void 0;const tt=buffer$2;et.typeforce=typeforce_1;const rt=tt.Buffer.alloc(32,0),nt=tt.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");function it(kt){if(!tt.Buffer.isBuffer(kt)||kt.length<33)return!1;const pt=kt[0],yt=kt.slice(1,33);if(yt.compare(rt)===0||yt.compare(nt)>=0)return!1;if((pt===2||pt===3)&&kt.length===33)return!0;const $t=kt.slice(33);return $t.compare(rt)===0||$t.compare(nt)>=0?!1:pt===4&&kt.length===65}et.isPoint=it;const st=Math.pow(2,31)-1;function at(kt){return et.typeforce.UInt32(kt)&&kt<=st}et.UInt31=at;function ot(kt){return et.typeforce.String(kt)&&!!kt.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}et.BIP32Path=ot,ot.toJSON=()=>"BIP32 derivation path";function lt(kt){return(et.typeforce.Buffer(kt.publicKey)||typeof kt.getPublicKey=="function")&&typeof kt.sign=="function"}et.Signer=lt;const ut=21*1e14;function dt(kt){return et.typeforce.UInt53(kt)&&kt<=ut}et.Satoshi=dt,et.ECPoint=et.typeforce.quacksLike("Point"),et.Network=et.typeforce.compile({messagePrefix:et.typeforce.oneOf(et.typeforce.Buffer,et.typeforce.String),bip32:{public:et.typeforce.UInt32,private:et.typeforce.UInt32},pubKeyHash:et.typeforce.UInt8,scriptHash:et.typeforce.UInt8,wif:et.typeforce.UInt8}),et.TAPLEAF_VERSION_MASK=254;function bt(kt){return!kt||!("output"in kt)||!tt.Buffer.isBuffer(kt.output)?!1:kt.version!==void 0?(kt.version&et.TAPLEAF_VERSION_MASK)===kt.version:!0}et.isTapleaf=bt;function gt(kt){return(0,et.Array)(kt)?kt.length!==2?!1:kt.every(pt=>gt(pt)):bt(kt)}et.isTaptree=gt,et.Buffer256bit=et.typeforce.BufferN(32),et.Hash160bit=et.typeforce.BufferN(20),et.Hash256bit=et.typeforce.BufferN(32),et.Number=et.typeforce.Number,et.Array=et.typeforce.Array,et.Boolean=et.typeforce.Boolean,et.String=et.typeforce.String,et.Buffer=et.typeforce.Buffer,et.Hex=et.typeforce.Hex,et.maybe=et.typeforce.maybe,et.tuple=et.typeforce.tuple,et.UInt8=et.typeforce.UInt8,et.UInt32=et.typeforce.UInt32,et.Function=et.typeforce.Function,et.BufferN=et.typeforce.BufferN,et.Null=et.typeforce.Null,et.oneOf=et.typeforce.oneOf})(types$6);Object.defineProperty(script_signature,"__esModule",{value:!0});script_signature.encode=script_signature.decode=void 0;const bip66=bip66$1,types$4=types$6,{typeforce:typeforce$3}=types$4,ZERO$1=Buffer.alloc(1,0);function toDER(et){let tt=0;for(;et[tt]===0;)++tt;return tt===et.length?ZERO$1:(et=et.slice(tt),et[0]&128?Buffer.concat([ZERO$1,et],1+et.length):et)}function fromDER(et){et[0]===0&&(et=et.slice(1));const tt=Buffer.alloc(32,0),rt=Math.max(0,32-et.length);return et.copy(tt,rt),tt}function decode$j(et){const tt=et.readUInt8(et.length-1),rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=bip66.decode(et.slice(0,-1)),it=fromDER(nt.r),st=fromDER(nt.s);return{signature:Buffer.concat([it,st],64),hashType:tt}}script_signature.decode=decode$j;function encode$k(et,tt){typeforce$3({signature:types$4.BufferN(64),hashType:types$4.UInt8},{signature:et,hashType:tt});const rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=Buffer.allocUnsafe(1);nt.writeUInt8(tt,0);const it=toDER(et.slice(0,32)),st=toDER(et.slice(32,64));return Buffer.concat([bip66.encode(it,st),nt])}script_signature.encode=encode$k;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.signature=et.number=et.isCanonicalScriptSignature=et.isDefinedHashType=et.isCanonicalPubKey=et.toStack=et.fromASM=et.toASM=et.decompile=et.compile=et.countNonPushOnlyOPs=et.isPushOnly=et.OPS=void 0;const tt=bip66$1,rt=ops;Object.defineProperty(et,"OPS",{enumerable:!0,get:function(){return rt.OPS}});const nt=push_data,it=script_number,st=script_signature,at=types$6,{typeforce:ot}=at,lt=rt.OPS.OP_RESERVED;function ut(Wt){return at.Number(Wt)&&(Wt===rt.OPS.OP_0||Wt>=rt.OPS.OP_1&&Wt<=rt.OPS.OP_16||Wt===rt.OPS.OP_1NEGATE)}function dt(Wt){return at.Buffer(Wt)||ut(Wt)}function bt(Wt){return at.Array(Wt)&&Wt.every(dt)}et.isPushOnly=bt;function gt(Wt){return Wt.length-Wt.filter(dt).length}et.countNonPushOnlyOPs=gt;function kt(Wt){if(Wt.length===0)return rt.OPS.OP_0;if(Wt.length===1){if(Wt[0]>=1&&Wt[0]<=16)return lt+Wt[0];if(Wt[0]===129)return rt.OPS.OP_1NEGATE}}function pt(Wt){return Buffer.isBuffer(Wt)}function yt(Wt){return at.Array(Wt)}function $t(Wt){return Buffer.isBuffer(Wt)}function mt(Wt){if(pt(Wt))return Wt;ot(at.Array,Wt);const lr=Wt.reduce((Mt,ht)=>$t(ht)?ht.length===1&&kt(ht)!==void 0?Mt+1:Mt+nt.encodingLength(ht.length)+ht.length:Mt+1,0),qt=Buffer.allocUnsafe(lr);let Ot=0;if(Wt.forEach(Mt=>{if($t(Mt)){const ht=kt(Mt);if(ht!==void 0){qt.writeUInt8(ht,Ot),Ot+=1;return}Ot+=nt.encode(qt,Mt.length,Ot),Mt.copy(qt,Ot),Ot+=Mt.length}else qt.writeUInt8(Mt,Ot),Ot+=1}),Ot!==qt.length)throw new Error("Could not decode chunks");return qt}et.compile=mt;function wt(Wt){if(yt(Wt))return Wt;ot(at.Buffer,Wt);const lr=[];let qt=0;for(;qtrt.OPS.OP_0&&Ot<=rt.OPS.OP_PUSHDATA4){const Mt=nt.decode(Wt,qt);if(Mt===null||(qt+=Mt.size,qt+Mt.number>Wt.length))return null;const ht=Wt.slice(qt,qt+Mt.number);qt+=Mt.number;const Et=kt(ht);Et!==void 0?lr.push(Et):lr.push(ht)}else lr.push(Ot),qt+=1}return lr}et.decompile=wt;function St(Wt){return pt(Wt)&&(Wt=wt(Wt)),Wt.map(lr=>{if($t(lr)){const qt=kt(lr);if(qt===void 0)return lr.toString("hex");lr=qt}return rt.REVERSE_OPS[lr]}).join(" ")}et.toASM=St;function Bt(Wt){return ot(at.String,Wt),mt(Wt.split(" ").map(lr=>rt.OPS[lr]!==void 0?rt.OPS[lr]:(ot(at.Hex,lr),Buffer.from(lr,"hex"))))}et.fromASM=Bt;function Ft(Wt){return Wt=wt(Wt),ot(bt,Wt),Wt.map(lr=>$t(lr)?lr:lr===rt.OPS.OP_0?Buffer.allocUnsafe(0):it.encode(lr-lt))}et.toStack=Ft;function Dt(Wt){return at.isPoint(Wt)}et.isCanonicalPubKey=Dt;function zt(Wt){const lr=Wt&-129;return lr>0&&lr<4}et.isDefinedHashType=zt;function Ht(Wt){return!Buffer.isBuffer(Wt)||!zt(Wt[Wt.length-1])?!1:tt.check(Wt.slice(0,-1))}et.isCanonicalScriptSignature=Ht,et.number=it,et.signature=st})(script);var lazy$8={};Object.defineProperty(lazy$8,"__esModule",{value:!0});lazy$8.value=lazy$8.prop=void 0;function prop(et,tt,rt){Object.defineProperty(et,tt,{configurable:!0,enumerable:!0,get(){const nt=rt.call(this);return this[tt]=nt,nt},set(nt){Object.defineProperty(this,tt,{configurable:!0,enumerable:!0,value:nt,writable:!0})}})}lazy$8.prop=prop;function value$1(et){let tt;return()=>(tt!==void 0||(tt=et()),tt)}lazy$8.value=value$1;Object.defineProperty(embed,"__esModule",{value:!0});embed.p2data=void 0;const networks_1$8=networks$1,bscript$b=script,types_1$9=types$6,lazy$7=lazy$8,OPS$7=bscript$b.OPS;function stacksEqual$4(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2data(et,tt){if(!et.data&&!et.output)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$9.typeforce)({network:types_1$9.typeforce.maybe(types_1$9.typeforce.Object),output:types_1$9.typeforce.maybe(types_1$9.typeforce.Buffer),data:types_1$9.typeforce.maybe(types_1$9.typeforce.arrayOf(types_1$9.typeforce.Buffer))},et);const nt={name:"embed",network:et.network||networks_1$8.bitcoin};if(lazy$7.prop(nt,"output",()=>{if(et.data)return bscript$b.compile([OPS$7.OP_RETURN].concat(et.data))}),lazy$7.prop(nt,"data",()=>{if(et.output)return bscript$b.decompile(et.output).slice(1)}),tt.validate&&et.output){const it=bscript$b.decompile(et.output);if(it[0]!==OPS$7.OP_RETURN)throw new TypeError("Output is invalid");if(!it.slice(1).every(types_1$9.typeforce.Buffer))throw new TypeError("Output is invalid");if(et.data&&!stacksEqual$4(et.data,nt.data))throw new TypeError("Data mismatch")}return Object.assign(nt,et)}embed.p2data=p2data;var p2ms$1={};Object.defineProperty(p2ms$1,"__esModule",{value:!0});p2ms$1.p2ms=void 0;const networks_1$7=networks$1,bscript$a=script,types_1$8=types$6,lazy$6=lazy$8,OPS$6=bscript$a.OPS,OP_INT_BASE=OPS$6.OP_RESERVED;function stacksEqual$3(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2ms(et,tt){if(!et.input&&!et.output&&!(et.pubkeys&&et.m!==void 0)&&!et.signatures)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{});function rt(lt){return bscript$a.isCanonicalScriptSignature(lt)||(tt.allowIncomplete&<===OPS$6.OP_0)!==void 0}(0,types_1$8.typeforce)({network:types_1$8.typeforce.maybe(types_1$8.typeforce.Object),m:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),n:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),output:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer),pubkeys:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(types_1$8.isPoint)),signatures:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(rt)),input:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer)},et);const it={network:et.network||networks_1$7.bitcoin};let st=[],at=!1;function ot(lt){at||(at=!0,st=bscript$a.decompile(lt),it.m=st[0]-OP_INT_BASE,it.n=st[st.length-2]-OP_INT_BASE,it.pubkeys=st.slice(1,-2))}if(lazy$6.prop(it,"output",()=>{if(et.m&&it.n&&et.pubkeys)return bscript$a.compile([].concat(OP_INT_BASE+et.m,et.pubkeys,OP_INT_BASE+it.n,OPS$6.OP_CHECKMULTISIG))}),lazy$6.prop(it,"m",()=>{if(it.output)return ot(it.output),it.m}),lazy$6.prop(it,"n",()=>{if(it.pubkeys)return it.pubkeys.length}),lazy$6.prop(it,"pubkeys",()=>{if(et.output)return ot(et.output),it.pubkeys}),lazy$6.prop(it,"signatures",()=>{if(et.input)return bscript$a.decompile(et.input).slice(1)}),lazy$6.prop(it,"input",()=>{if(et.signatures)return bscript$a.compile([OPS$6.OP_0].concat(et.signatures))}),lazy$6.prop(it,"witness",()=>{if(it.input)return[]}),lazy$6.prop(it,"name",()=>{if(!(!it.m||!it.n))return`p2ms(${it.m} of ${it.n})`}),tt.validate){if(et.output){if(ot(et.output),!types_1$8.typeforce.Number(st[0]))throw new TypeError("Output is invalid");if(!types_1$8.typeforce.Number(st[st.length-2]))throw new TypeError("Output is invalid");if(st[st.length-1]!==OPS$6.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(it.m<=0||it.n>16||it.m>it.n||it.n!==st.length-3)throw new TypeError("Output is invalid");if(!it.pubkeys.every(lt=>(0,types_1$8.isPoint)(lt)))throw new TypeError("Output is invalid");if(et.m!==void 0&&et.m!==it.m)throw new TypeError("m mismatch");if(et.n!==void 0&&et.n!==it.n)throw new TypeError("n mismatch");if(et.pubkeys&&!stacksEqual$3(et.pubkeys,it.pubkeys))throw new TypeError("Pubkeys mismatch")}if(et.pubkeys){if(et.n!==void 0&&et.n!==et.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(it.n=et.pubkeys.length,it.nit.m)throw new TypeError("Too many signatures provided")}if(et.input){if(et.input[0]!==OPS$6.OP_0)throw new TypeError("Input is invalid");if(it.signatures.length===0||!it.signatures.every(rt))throw new TypeError("Input has invalid signature(s)");if(et.signatures&&!stacksEqual$3(et.signatures,it.signatures))throw new TypeError("Signature mismatch");if(et.m!==void 0&&et.m!==et.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(it,et)}p2ms$1.p2ms=p2ms;var p2pk$1={};Object.defineProperty(p2pk$1,"__esModule",{value:!0});p2pk$1.p2pk=void 0;const networks_1$6=networks$1,bscript$9=script,types_1$7=types$6,lazy$5=lazy$8,OPS$5=bscript$9.OPS;function p2pk(et,tt){if(!et.input&&!et.output&&!et.pubkey&&!et.input&&!et.signature)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$7.typeforce)({network:types_1$7.typeforce.maybe(types_1$7.typeforce.Object),output:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer),pubkey:types_1$7.typeforce.maybe(types_1$7.isPoint),signature:types_1$7.typeforce.maybe(bscript$9.isCanonicalScriptSignature),input:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer)},et);const rt=lazy$5.value(()=>bscript$9.decompile(et.input)),it={name:"p2pk",network:et.network||networks_1$6.bitcoin};if(lazy$5.prop(it,"output",()=>{if(et.pubkey)return bscript$9.compile([et.pubkey,OPS$5.OP_CHECKSIG])}),lazy$5.prop(it,"pubkey",()=>{if(et.output)return et.output.slice(1,-1)}),lazy$5.prop(it,"signature",()=>{if(et.input)return rt()[0]}),lazy$5.prop(it,"input",()=>{if(et.signature)return bscript$9.compile([et.signature])}),lazy$5.prop(it,"witness",()=>{if(it.input)return[]}),tt.validate){if(et.output){if(et.output[et.output.length-1]!==OPS$5.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!(0,types_1$7.isPoint)(it.pubkey))throw new TypeError("Output pubkey is invalid");if(et.pubkey&&!et.pubkey.equals(it.pubkey))throw new TypeError("Pubkey mismatch")}if(et.signature&&et.input&&!et.input.equals(it.input))throw new TypeError("Signature mismatch");if(et.input){if(rt().length!==1)throw new TypeError("Input is invalid");if(!bscript$9.isCanonicalScriptSignature(it.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(it,et)}p2pk$1.p2pk=p2pk;var p2pkh$1={},crypto$2={},ripemd160={},_sha2={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=void 0;function number(et){if(!Number.isSafeInteger(et)||et<0)throw new Error(`Wrong positive integer: ${et}`)}_assert.number=number;function bool(et){if(typeof et!="boolean")throw new Error(`Expected boolean, not ${et}`)}_assert.bool=bool;function isBytes(et){return et instanceof Uint8Array||et!=null&&typeof et=="object"&&et.constructor.name==="Uint8Array"}function bytes(et,...tt){if(!isBytes(et))throw new Error("Expected Uint8Array");if(tt.length>0&&!tt.includes(et.length))throw new Error(`Expected Uint8Array of length ${tt}, not of length=${et.length}`)}_assert.bytes=bytes;function hash$1(et){if(typeof et!="function"||typeof et.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(et.outputLen),number(et.blockLen)}_assert.hash=hash$1;function exists(et,tt=!0){if(et.destroyed)throw new Error("Hash instance has been destroyed");if(tt&&et.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(et,tt){bytes(et);const rt=tt.outputLen;if(et.lengthnew Uint8Array(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.u8=rt;const nt=Ht=>new Uint32Array(Ht.buffer,Ht.byteOffset,Math.floor(Ht.byteLength/4));et.u32=nt;function it(Ht){return Ht instanceof Uint8Array||Ht!=null&&typeof Ht=="object"&&Ht.constructor.name==="Uint8Array"}const st=Ht=>new DataView(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.createView=st;const at=(Ht,Wt)=>Ht<<32-Wt|Ht>>>Wt;if(et.rotr=at,et.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!et.isLE)throw new Error("Non little-endian hardware is not supported");const ot=Array.from({length:256},(Ht,Wt)=>Wt.toString(16).padStart(2,"0"));function lt(Ht){if(!it(Ht))throw new Error("Uint8Array expected");let Wt="";for(let lr=0;lr=ut._0&&Ht<=ut._9)return Ht-ut._0;if(Ht>=ut._A&&Ht<=ut._F)return Ht-(ut._A-10);if(Ht>=ut._a&&Ht<=ut._f)return Ht-(ut._a-10)}function bt(Ht){if(typeof Ht!="string")throw new Error("hex string expected, got "+typeof Ht);const Wt=Ht.length,lr=Wt/2;if(Wt%2)throw new Error("padded hex string expected, got unpadded hex of length "+Wt);const qt=new Uint8Array(lr);for(let Ot=0,Mt=0;Ot{};et.nextTick=gt;async function kt(Ht,Wt,lr){let qt=Date.now();for(let Ot=0;Ot=0&&MtHt().update(yt(qt)).digest(),lr=Ht();return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=()=>Ht(),Wt}et.wrapConstructor=Bt;function Ft(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapConstructorWithOpts=Ft;function Dt(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapXOFConstructorWithOpts=Dt;function zt(Ht=32){if(tt.crypto&&typeof tt.crypto.getRandomValues=="function")return tt.crypto.getRandomValues(new Uint8Array(Ht));throw new Error("crypto.getRandomValues must be defined")}et.randomBytes=zt})(utils$1);Object.defineProperty(_sha2,"__esModule",{value:!0});_sha2.SHA2=void 0;const _assert_js_1=_assert,utils_js_1$3=utils$1;function setBigUint64(et,tt,rt,nt){if(typeof et.setBigUint64=="function")return et.setBigUint64(tt,rt,nt);const it=BigInt(32),st=BigInt(4294967295),at=Number(rt>>it&st),ot=Number(rt&st),lt=nt?4:0,ut=nt?0:4;et.setUint32(tt+lt,at,nt),et.setUint32(tt+ut,ot,nt)}class SHA2 extends utils_js_1$3.Hash{constructor(tt,rt,nt,it){super(),this.blockLen=tt,this.outputLen=rt,this.padOffset=nt,this.isLE=it,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(tt),this.view=(0,utils_js_1$3.createView)(this.buffer)}update(tt){(0,_assert_js_1.exists)(this);const{view:rt,buffer:nt,blockLen:it}=this;tt=(0,utils_js_1$3.toBytes)(tt);const st=tt.length;for(let at=0;atit-at&&(this.process(nt,0),at=0);for(let bt=at;btdt.length)throw new Error("_sha2: outputLen bigger than state");for(let bt=0;bttt),Pi=Id.map(et=>(9*et+5)%16);let idxL=[Id],idxR=[Pi];for(let et=0;et<4;et++)for(let tt of[idxL,idxR])tt.push(tt[et].map(rt=>Rho[rt]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(et=>new Uint8Array(et)),shiftsL=idxL.map((et,tt)=>et.map(rt=>shifts[tt][rt])),shiftsR=idxR.map((et,tt)=>et.map(rt=>shifts[tt][rt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(et,tt)=>et<>>32-tt;function f$2(et,tt,rt,nt){return et===0?tt^rt^nt:et===1?tt&rt|~tt&nt:et===2?(tt|~rt)^nt:et===3?tt&nt|rt&~nt:tt^(rt|~nt)}const BUF=new Uint32Array(16);class RIPEMD160 extends _sha2_js_1$2.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:tt,h1:rt,h2:nt,h3:it,h4:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.h0=tt|0,this.h1=rt|0,this.h2=nt|0,this.h3=it|0,this.h4=st|0}process(tt,rt){for(let kt=0;kt<16;kt++,rt+=4)BUF[kt]=tt.getUint32(rt,!0);let nt=this.h0|0,it=nt,st=this.h1|0,at=st,ot=this.h2|0,lt=ot,ut=this.h3|0,dt=ut,bt=this.h4|0,gt=bt;for(let kt=0;kt<5;kt++){const pt=4-kt,yt=Kl[kt],$t=Kr[kt],mt=idxL[kt],wt=idxR[kt],St=shiftsL[kt],Bt=shiftsR[kt];for(let Ft=0;Ft<16;Ft++){const Dt=rotl$1(nt+f$2(kt,st,ot,ut)+BUF[mt[Ft]]+yt,St[Ft])+bt|0;nt=bt,bt=ut,ut=rotl$1(ot,10)|0,ot=st,st=Dt}for(let Ft=0;Ft<16;Ft++){const Dt=rotl$1(it+f$2(pt,at,lt,dt)+BUF[wt[Ft]]+$t,Bt[Ft])+gt|0;it=gt,gt=dt,dt=rotl$1(lt,10)|0,lt=at,at=Dt}}this.set(this.h1+ot+dt|0,this.h2+ut+gt|0,this.h3+bt+it|0,this.h4+nt+at|0,this.h0+st+lt|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}ripemd160.RIPEMD160=RIPEMD160;ripemd160.ripemd160=(0,utils_js_1$2.wrapConstructor)(()=>new RIPEMD160);var sha1={};Object.defineProperty(sha1,"__esModule",{value:!0});sha1.sha1=void 0;const _sha2_js_1$1=_sha2,utils_js_1$1=utils$1,rotl=(et,tt)=>et<>>32-tt>>>0,Chi$1=(et,tt,rt)=>et&tt^~et&rt,Maj$1=(et,tt,rt)=>et&tt^et&rt^tt&rt,IV$1=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),SHA1_W=new Uint32Array(80);class SHA1 extends _sha2_js_1$1.SHA2{constructor(){super(64,20,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0}process(tt,rt){for(let lt=0;lt<16;lt++,rt+=4)SHA1_W[lt]=tt.getUint32(rt,!1);for(let lt=16;lt<80;lt++)SHA1_W[lt]=rotl(SHA1_W[lt-3]^SHA1_W[lt-8]^SHA1_W[lt-14]^SHA1_W[lt-16],1);let{A:nt,B:it,C:st,D:at,E:ot}=this;for(let lt=0;lt<80;lt++){let ut,dt;lt<20?(ut=Chi$1(it,st,at),dt=1518500249):lt<40?(ut=it^st^at,dt=1859775393):lt<60?(ut=Maj$1(it,st,at),dt=2400959708):(ut=it^st^at,dt=3395469782);const bt=rotl(nt,5)+ut+ot+dt+SHA1_W[lt]|0;ot=at,at=st,st=rotl(it,30),it=nt,nt=bt}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,this.set(nt,it,st,at,ot)}roundClean(){SHA1_W.fill(0)}destroy(){this.set(0,0,0,0,0),this.buffer.fill(0)}}sha1.sha1=(0,utils_js_1$1.wrapConstructor)(()=>new SHA1);var sha256$2={};Object.defineProperty(sha256$2,"__esModule",{value:!0});sha256$2.sha224=sha256$2.sha256=void 0;const _sha2_js_1=_sha2,utils_js_1=utils$1,Chi=(et,tt,rt)=>et&tt^~et&rt,Maj=(et,tt,rt)=>et&tt^et&rt^tt&rt,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends _sha2_js_1.SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st,F:at,G:ot,H:lt}=this;return[tt,rt,nt,it,st,at,ot,lt]}set(tt,rt,nt,it,st,at,ot,lt){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0,this.F=at|0,this.G=ot|0,this.H=lt|0}process(tt,rt){for(let bt=0;bt<16;bt++,rt+=4)SHA256_W[bt]=tt.getUint32(rt,!1);for(let bt=16;bt<64;bt++){const gt=SHA256_W[bt-15],kt=SHA256_W[bt-2],pt=(0,utils_js_1.rotr)(gt,7)^(0,utils_js_1.rotr)(gt,18)^gt>>>3,yt=(0,utils_js_1.rotr)(kt,17)^(0,utils_js_1.rotr)(kt,19)^kt>>>10;SHA256_W[bt]=yt+SHA256_W[bt-7]+pt+SHA256_W[bt-16]|0}let{A:nt,B:it,C:st,D:at,E:ot,F:lt,G:ut,H:dt}=this;for(let bt=0;bt<64;bt++){const gt=(0,utils_js_1.rotr)(ot,6)^(0,utils_js_1.rotr)(ot,11)^(0,utils_js_1.rotr)(ot,25),kt=dt+gt+Chi(ot,lt,ut)+SHA256_K[bt]+SHA256_W[bt]|0,yt=((0,utils_js_1.rotr)(nt,2)^(0,utils_js_1.rotr)(nt,13)^(0,utils_js_1.rotr)(nt,22))+Maj(nt,it,st)|0;dt=ut,ut=lt,lt=ot,ot=at+kt|0,at=st,st=it,it=nt,nt=kt+yt|0}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,lt=lt+this.F|0,ut=ut+this.G|0,dt=dt+this.H|0,this.set(nt,it,st,at,ot,lt,ut,dt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}sha256$2.sha256=(0,utils_js_1.wrapConstructor)(()=>new SHA256);sha256$2.sha224=(0,utils_js_1.wrapConstructor)(()=>new SHA224);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.taggedHash=et.TAGGED_HASH_PREFIXES=et.TAGS=et.hash256=et.hash160=et.sha256=et.sha1=et.ripemd160=void 0;const tt=ripemd160,rt=sha1,nt=sha256$2;function it(dt){return Buffer.from((0,tt.ripemd160)(Uint8Array.from(dt)))}et.ripemd160=it;function st(dt){return Buffer.from((0,rt.sha1)(Uint8Array.from(dt)))}et.sha1=st;function at(dt){return Buffer.from((0,nt.sha256)(Uint8Array.from(dt)))}et.sha256=at;function ot(dt){return Buffer.from((0,tt.ripemd160)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash160=ot;function lt(dt){return Buffer.from((0,nt.sha256)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash256=lt,et.TAGS=["BIP0340/challenge","BIP0340/aux","BIP0340/nonce","TapLeaf","TapBranch","TapSighash","TapTweak","KeyAgg list","KeyAgg coefficient"],et.TAGGED_HASH_PREFIXES={"BIP0340/challenge":Buffer.from([123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124,123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124]),"BIP0340/aux":Buffer.from([241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144,241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144]),"BIP0340/nonce":Buffer.from([7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47,7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47]),TapLeaf:Buffer.from([174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238,174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238]),TapBranch:Buffer.from([25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21,25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21]),TapSighash:Buffer.from([244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49,244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49]),TapTweak:Buffer.from([232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233,232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233]),"KeyAgg list":Buffer.from([72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240,72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240]),"KeyAgg coefficient":Buffer.from([191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129,191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129])};function ut(dt,bt){return at(Buffer.concat([et.TAGGED_HASH_PREFIXES[dt],bt]))}et.taggedHash=ut})(crypto$2);function base$1(et){if(et.length>=255)throw new TypeError("Alphabet too long");for(var tt=new Uint8Array(256),rt=0;rt>>0,St=new Uint8Array(wt);$t!==mt;){for(var Bt=kt[$t],Ft=0,Dt=wt-1;(Bt!==0||Ft>>0,St[Dt]=Bt%at>>>0,Bt=Bt/at>>>0;if(Bt!==0)throw new Error("Non-zero carry");yt=Ft,$t++}for(var zt=wt-yt;zt!==wt&&St[zt]===0;)zt++;for(var Ht=ot.repeat(pt);zt>>0,wt=new Uint8Array(mt);kt[pt];){var St=tt[kt.charCodeAt(pt)];if(St===255)return;for(var Bt=0,Ft=mt-1;(St!==0||Bt<$t)&&Ft!==-1;Ft--,Bt++)St+=at*wt[Ft]>>>0,wt[Ft]=St%256>>>0,St=St/256>>>0;if(St!==0)throw new Error("Non-zero carry");$t=Bt,pt++}for(var Dt=mt-$t;Dt!==mt&&wt[Dt]===0;)Dt++;for(var zt=new Uint8Array(yt+(mt-Dt)),Ht=yt;Dt!==mt;)zt[Ht++]=wt[Dt++];return zt}function gt(kt){var pt=bt(kt);if(pt)return pt;throw new Error("Non-base"+at+" character")}return{encode:dt,decodeUnsafe:bt,decode:gt}}var src=base$1;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1),base58=bs58,base=function(et){function tt(st){var at=Uint8Array.from(st),ot=et(at),lt=at.length+4,ut=new Uint8Array(lt);return ut.set(at,0),ut.set(ot.subarray(0,4),at.length),base58.encode(ut,lt)}function rt(st){var at=st.slice(0,-4),ot=st.slice(-4),lt=et(at);if(!(ot[0]^lt[0]|ot[1]^lt[1]|ot[2]^lt[2]|ot[3]^lt[3]))return at}function nt(st){var at=base58.decodeUnsafe(st);if(at)return rt(at)}function it(st){var at=base58.decode(st),ot=rt(at);if(!ot)throw new Error("Invalid checksum");return ot}return{encode:tt,decode:it,decodeUnsafe:nt}},{sha256:sha256$1}=sha256$2,bs58checkBase=base;function sha256x2(et){return sha256$1(sha256$1(et))}var bs58check$3=bs58checkBase(sha256x2);Object.defineProperty(p2pkh$1,"__esModule",{value:!0});p2pkh$1.p2pkh=void 0;const bcrypto$5=crypto$2,networks_1$5=networks$1,bscript$8=script,types_1$6=types$6,lazy$4=lazy$8,bs58check$2=bs58check$3,OPS$4=bscript$8.OPS;function p2pkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$6.typeforce)({network:types_1$6.typeforce.maybe(types_1$6.typeforce.Object),address:types_1$6.typeforce.maybe(types_1$6.typeforce.String),hash:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(20)),output:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(25)),pubkey:types_1$6.typeforce.maybe(types_1$6.isPoint),signature:types_1$6.typeforce.maybe(bscript$8.isCanonicalScriptSignature),input:types_1$6.typeforce.maybe(types_1$6.typeforce.Buffer)},et);const rt=lazy$4.value(()=>{const at=Buffer.from(bs58check$2.decode(et.address)),ot=at.readUInt8(0),lt=at.slice(1);return{version:ot,hash:lt}}),nt=lazy$4.value(()=>bscript$8.decompile(et.input)),it=et.network||networks_1$5.bitcoin,st={name:"p2pkh",network:it};if(lazy$4.prop(st,"address",()=>{if(!st.hash)return;const at=Buffer.allocUnsafe(21);return at.writeUInt8(it.pubKeyHash,0),st.hash.copy(at,1),bs58check$2.encode(at)}),lazy$4.prop(st,"hash",()=>{if(et.output)return et.output.slice(3,23);if(et.address)return rt().hash;if(et.pubkey||st.pubkey)return bcrypto$5.hash160(et.pubkey||st.pubkey)}),lazy$4.prop(st,"output",()=>{if(st.hash)return bscript$8.compile([OPS$4.OP_DUP,OPS$4.OP_HASH160,st.hash,OPS$4.OP_EQUALVERIFY,OPS$4.OP_CHECKSIG])}),lazy$4.prop(st,"pubkey",()=>{if(et.input)return nt()[1]}),lazy$4.prop(st,"signature",()=>{if(et.input)return nt()[0]}),lazy$4.prop(st,"input",()=>{if(et.pubkey&&et.signature)return bscript$8.compile([et.signature,et.pubkey])}),lazy$4.prop(st,"witness",()=>{if(st.input)return[]}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().version!==it.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(rt().hash.length!==20)throw new TypeError("Invalid address");at=rt().hash}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==25||et.output[0]!==OPS$4.OP_DUP||et.output[1]!==OPS$4.OP_HASH160||et.output[2]!==20||et.output[23]!==OPS$4.OP_EQUALVERIFY||et.output[24]!==OPS$4.OP_CHECKSIG)throw new TypeError("Output is invalid");const ot=et.output.slice(3,23);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.pubkey){const ot=bcrypto$5.hash160(et.pubkey);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.input){const ot=nt();if(ot.length!==2)throw new TypeError("Input is invalid");if(!bscript$8.isCanonicalScriptSignature(ot[0]))throw new TypeError("Input has invalid signature");if(!(0,types_1$6.isPoint)(ot[1]))throw new TypeError("Input has invalid pubkey");if(et.signature&&!et.signature.equals(ot[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(ot[1]))throw new TypeError("Pubkey mismatch");const lt=bcrypto$5.hash160(ot[1]);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch")}}return Object.assign(st,et)}p2pkh$1.p2pkh=p2pkh;var p2sh$1={};Object.defineProperty(p2sh$1,"__esModule",{value:!0});p2sh$1.p2sh=void 0;const bcrypto$4=crypto$2,networks_1$4=networks$1,bscript$7=script,types_1$5=types$6,lazy$3=lazy$8,bs58check$1=bs58check$3,OPS$3=bscript$7.OPS;function stacksEqual$2(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2sh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$5.typeforce)({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),address:types_1$5.typeforce.maybe(types_1$5.typeforce.String),hash:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(20)),output:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(23)),redeem:types_1$5.typeforce.maybe({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),output:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))}),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))},et);let rt=et.network;rt||(rt=et.redeem&&et.redeem.network||networks_1$4.bitcoin);const nt={network:rt},it=lazy$3.value(()=>{const ot=Buffer.from(bs58check$1.decode(et.address)),lt=ot.readUInt8(0),ut=ot.slice(1);return{version:lt,hash:ut}}),st=lazy$3.value(()=>bscript$7.decompile(et.input)),at=lazy$3.value(()=>{const ot=st(),lt=ot[ot.length-1];return{network:rt,output:lt===OPS$3.OP_FALSE?Buffer.from([]):lt,input:bscript$7.compile(ot.slice(0,-1)),witness:et.witness||[]}});if(lazy$3.prop(nt,"address",()=>{if(!nt.hash)return;const ot=Buffer.allocUnsafe(21);return ot.writeUInt8(nt.network.scriptHash,0),nt.hash.copy(ot,1),bs58check$1.encode(ot)}),lazy$3.prop(nt,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return it().hash;if(nt.redeem&&nt.redeem.output)return bcrypto$4.hash160(nt.redeem.output)}),lazy$3.prop(nt,"output",()=>{if(nt.hash)return bscript$7.compile([OPS$3.OP_HASH160,nt.hash,OPS$3.OP_EQUAL])}),lazy$3.prop(nt,"redeem",()=>{if(et.input)return at()}),lazy$3.prop(nt,"input",()=>{if(!(!et.redeem||!et.redeem.input||!et.redeem.output))return bscript$7.compile([].concat(bscript$7.decompile(et.redeem.input),et.redeem.output))}),lazy$3.prop(nt,"witness",()=>{if(nt.redeem&&nt.redeem.witness)return nt.redeem.witness;if(nt.input)return[]}),lazy$3.prop(nt,"name",()=>{const ot=["p2sh"];return nt.redeem!==void 0&&nt.redeem.name!==void 0&&ot.push(nt.redeem.name),ot.join("-")}),tt.validate){let ot=Buffer.from([]);if(et.address){if(it().version!==rt.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(it().hash.length!==20)throw new TypeError("Invalid address");ot=it().hash}if(et.hash){if(ot.length>0&&!ot.equals(et.hash))throw new TypeError("Hash mismatch");ot=et.hash}if(et.output){if(et.output.length!==23||et.output[0]!==OPS$3.OP_HASH160||et.output[1]!==20||et.output[22]!==OPS$3.OP_EQUAL)throw new TypeError("Output is invalid");const ut=et.output.slice(2,22);if(ot.length>0&&!ot.equals(ut))throw new TypeError("Hash mismatch");ot=ut}const lt=ut=>{if(ut.output){const dt=bscript$7.decompile(ut.output);if(!dt||dt.length<1)throw new TypeError("Redeem.output too short");if(ut.output.byteLength>520)throw new TypeError("Redeem.output unspendable if larger than 520 bytes");if(bscript$7.countNonPushOnlyOPs(dt)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const bt=bcrypto$4.hash160(ut.output);if(ot.length>0&&!ot.equals(bt))throw new TypeError("Hash mismatch");ot=bt}if(ut.input){const dt=ut.input.length>0,bt=ut.witness&&ut.witness.length>0;if(!dt&&!bt)throw new TypeError("Empty input");if(dt&&bt)throw new TypeError("Input and witness provided");if(dt){const gt=bscript$7.decompile(ut.input);if(!bscript$7.isPushOnly(gt))throw new TypeError("Non push-only scriptSig")}}};if(et.input){const ut=st();if(!ut||ut.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(at().output))throw new TypeError("Input is invalid");lt(at())}if(et.redeem){if(et.redeem.network&&et.redeem.network!==rt)throw new TypeError("Network mismatch");if(et.input){const ut=at();if(et.redeem.output&&!et.redeem.output.equals(ut.output))throw new TypeError("Redeem.output mismatch");if(et.redeem.input&&!et.redeem.input.equals(ut.input))throw new TypeError("Redeem.input mismatch")}lt(et.redeem)}if(et.witness&&et.redeem&&et.redeem.witness&&!stacksEqual$2(et.redeem.witness,et.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(nt,et)}p2sh$1.p2sh=p2sh;var p2wpkh$1={},dist={};Object.defineProperty(dist,"__esModule",{value:!0});dist.bech32m=dist.bech32=void 0;const ALPHABET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ALPHABET_MAP={};for(let et=0;et>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk(et){let tt=1;for(let rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep(tt)^nt>>5}tt=polymodStep(tt);for(let rt=0;rt=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<lt)throw new TypeError("Exceeds length limit");at=at.toLowerCase();let ut=prefixChk(at);if(typeof ut=="string")throw new Error(ut);let dt=at+"1";for(let bt=0;bt>5)throw new Error("Non 5-bit word");ut=polymodStep(ut)^gt,dt+=ALPHABET.charAt(gt)}for(let bt=0;bt<6;++bt)ut=polymodStep(ut);ut^=tt;for(let bt=0;bt<6;++bt){const gt=ut>>(5-bt)*5&31;dt+=ALPHABET.charAt(gt)}return dt}function nt(at,ot){if(ot=ot||90,at.length<8)return at+" too short";if(at.length>ot)return"Exceeds length limit";const lt=at.toLowerCase(),ut=at.toUpperCase();if(at!==lt&&at!==ut)return"Mixed-case string "+at;at=lt;const dt=at.lastIndexOf("1");if(dt===-1)return"No separator character for "+at;if(dt===0)return"Missing prefix for "+at;const bt=at.slice(0,dt),gt=at.slice(dt+1);if(gt.length<6)return"Data too short";let kt=prefixChk(bt);if(typeof kt=="string")return kt;const pt=[];for(let yt=0;yt=gt.length)&&pt.push(mt)}return kt!==tt?"Invalid checksum for "+at:{prefix:bt,words:pt}}function it(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt}function st(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt;throw new Error(lt)}return{decodeUnsafe:it,decode:st,encode:rt,toWords,fromWordsUnsafe,fromWords}}dist.bech32=getLibraryFromEncoding("bech32");dist.bech32m=getLibraryFromEncoding("bech32m");Object.defineProperty(p2wpkh$1,"__esModule",{value:!0});p2wpkh$1.p2wpkh=void 0;const bcrypto$3=crypto$2,networks_1$3=networks$1,bscript$6=script,types_1$4=types$6,lazy$2=lazy$8,bech32_1$3=dist,OPS$2=bscript$6.OPS,EMPTY_BUFFER$2=Buffer.alloc(0);function p2wpkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$4.typeforce)({address:types_1$4.typeforce.maybe(types_1$4.typeforce.String),hash:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(20)),input:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(0)),network:types_1$4.typeforce.maybe(types_1$4.typeforce.Object),output:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(22)),pubkey:types_1$4.typeforce.maybe(types_1$4.isPoint),signature:types_1$4.typeforce.maybe(bscript$6.isCanonicalScriptSignature),witness:types_1$4.typeforce.maybe(types_1$4.typeforce.arrayOf(types_1$4.typeforce.Buffer))},et);const rt=lazy$2.value(()=>{const st=bech32_1$3.bech32.decode(et.address),at=st.words.shift(),ot=bech32_1$3.bech32.fromWords(st.words);return{version:at,prefix:st.prefix,data:Buffer.from(ot)}}),nt=et.network||networks_1$3.bitcoin,it={name:"p2wpkh",network:nt};if(lazy$2.prop(it,"address",()=>{if(!it.hash)return;const st=bech32_1$3.bech32.toWords(it.hash);return st.unshift(0),bech32_1$3.bech32.encode(nt.bech32,st)}),lazy$2.prop(it,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return rt().data;if(et.pubkey||it.pubkey)return bcrypto$3.hash160(et.pubkey||it.pubkey)}),lazy$2.prop(it,"output",()=>{if(it.hash)return bscript$6.compile([OPS$2.OP_0,it.hash])}),lazy$2.prop(it,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.witness)return et.witness[1]}),lazy$2.prop(it,"signature",()=>{if(et.witness)return et.witness[0]}),lazy$2.prop(it,"input",()=>{if(it.witness)return EMPTY_BUFFER$2}),lazy$2.prop(it,"witness",()=>{if(et.pubkey&&et.signature)return[et.signature,et.pubkey]}),tt.validate){let st=Buffer.from([]);if(et.address){if(nt&&nt.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==20)throw new TypeError("Invalid address data");st=rt().data}if(et.hash){if(st.length>0&&!st.equals(et.hash))throw new TypeError("Hash mismatch");st=et.hash}if(et.output){if(et.output.length!==22||et.output[0]!==OPS$2.OP_0||et.output[1]!==20)throw new TypeError("Output is invalid");if(st.length>0&&!st.equals(et.output.slice(2)))throw new TypeError("Hash mismatch");st=et.output.slice(2)}if(et.pubkey){const at=bcrypto$3.hash160(et.pubkey);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch");if(st=at,!(0,types_1$4.isPoint)(et.pubkey)||et.pubkey.length!==33)throw new TypeError("Invalid pubkey for p2wpkh")}if(et.witness){if(et.witness.length!==2)throw new TypeError("Witness is invalid");if(!bscript$6.isCanonicalScriptSignature(et.witness[0]))throw new TypeError("Witness has invalid signature");if(!(0,types_1$4.isPoint)(et.witness[1])||et.witness[1].length!==33)throw new TypeError("Witness has invalid pubkey");if(et.signature&&!et.signature.equals(et.witness[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(et.witness[1]))throw new TypeError("Pubkey mismatch");const at=bcrypto$3.hash160(et.witness[1]);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch")}}return Object.assign(it,et)}p2wpkh$1.p2wpkh=p2wpkh;var p2wsh$1={};Object.defineProperty(p2wsh$1,"__esModule",{value:!0});p2wsh$1.p2wsh=void 0;const bcrypto$2=crypto$2,networks_1$2=networks$1,bscript$5=script,types_1$3=types$6,lazy$1=lazy$8,bech32_1$2=dist,OPS$1=bscript$5.OPS,EMPTY_BUFFER$1=Buffer.alloc(0);function stacksEqual$1(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function chunkHasUncompressedPubkey(et){return!!(Buffer.isBuffer(et)&&et.length===65&&et[0]===4&&(0,types_1$3.isPoint)(et))}function p2wsh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$3.typeforce)({network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),address:types_1$3.typeforce.maybe(types_1$3.typeforce.String),hash:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(32)),output:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(34)),redeem:types_1$3.typeforce.maybe({input:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),output:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))}),input:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(0)),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))},et);const rt=lazy$1.value(()=>{const at=bech32_1$2.bech32.decode(et.address),ot=at.words.shift(),lt=bech32_1$2.bech32.fromWords(at.words);return{version:ot,prefix:at.prefix,data:Buffer.from(lt)}}),nt=lazy$1.value(()=>bscript$5.decompile(et.redeem.input));let it=et.network;it||(it=et.redeem&&et.redeem.network||networks_1$2.bitcoin);const st={network:it};if(lazy$1.prop(st,"address",()=>{if(!st.hash)return;const at=bech32_1$2.bech32.toWords(st.hash);return at.unshift(0),bech32_1$2.bech32.encode(it.bech32,at)}),lazy$1.prop(st,"hash",()=>{if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(st.redeem&&st.redeem.output)return bcrypto$2.sha256(st.redeem.output)}),lazy$1.prop(st,"output",()=>{if(st.hash)return bscript$5.compile([OPS$1.OP_0,st.hash])}),lazy$1.prop(st,"redeem",()=>{if(et.witness)return{output:et.witness[et.witness.length-1],input:EMPTY_BUFFER$1,witness:et.witness.slice(0,-1)}}),lazy$1.prop(st,"input",()=>{if(st.witness)return EMPTY_BUFFER$1}),lazy$1.prop(st,"witness",()=>{if(et.redeem&&et.redeem.input&&et.redeem.input.length>0&&et.redeem.output&&et.redeem.output.length>0){const at=bscript$5.toStack(nt());return st.redeem=Object.assign({witness:at},et.redeem),st.redeem.input=EMPTY_BUFFER$1,[].concat(at,et.redeem.output)}if(et.redeem&&et.redeem.output&&et.redeem.witness)return[].concat(et.redeem.witness,et.redeem.output)}),lazy$1.prop(st,"name",()=>{const at=["p2wsh"];return st.redeem!==void 0&&st.redeem.name!==void 0&&at.push(st.redeem.name),at.join("-")}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().prefix!==it.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");at=rt().data}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==34||et.output[0]!==OPS$1.OP_0||et.output[1]!==32)throw new TypeError("Output is invalid");const ot=et.output.slice(2);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.redeem){if(et.redeem.network&&et.redeem.network!==it)throw new TypeError("Network mismatch");if(et.redeem.input&&et.redeem.input.length>0&&et.redeem.witness&&et.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(et.redeem.output){const ot=bscript$5.decompile(et.redeem.output);if(!ot||ot.length<1)throw new TypeError("Redeem.output is invalid");if(et.redeem.output.byteLength>3600)throw new TypeError("Redeem.output unspendable if larger than 3600 bytes");if(bscript$5.countNonPushOnlyOPs(ot)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const lt=bcrypto$2.sha256(et.redeem.output);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch");at=lt}if(et.redeem.input&&!bscript$5.isPushOnly(nt()))throw new TypeError("Non push-only scriptSig");if(et.witness&&et.redeem.witness&&!stacksEqual$1(et.witness,et.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch");if(et.redeem.input&&nt().some(chunkHasUncompressedPubkey)||et.redeem.output&&(bscript$5.decompile(et.redeem.output)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("redeem.input or redeem.output contains uncompressed pubkey")}if(et.witness&&et.witness.length>0){const ot=et.witness[et.witness.length-1];if(et.redeem&&et.redeem.output&&!et.redeem.output.equals(ot))throw new TypeError("Witness and redeem.output mismatch");if(et.witness.some(chunkHasUncompressedPubkey)||(bscript$5.decompile(ot)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("Witness contains uncompressed pubkey")}}return Object.assign(st,et)}p2wsh$1.p2wsh=p2wsh;var p2tr$1={},ecc_lib={};Object.defineProperty(ecc_lib,"__esModule",{value:!0});ecc_lib.getEccLib=ecc_lib.initEccLib=void 0;const _ECCLIB_CACHE={};function initEccLib(et){et?et!==_ECCLIB_CACHE.eccLib&&(verifyEcc(et),_ECCLIB_CACHE.eccLib=et):_ECCLIB_CACHE.eccLib=et}ecc_lib.initEccLib=initEccLib;function getEccLib(){if(!_ECCLIB_CACHE.eccLib)throw new Error("No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance");return _ECCLIB_CACHE.eccLib}ecc_lib.getEccLib=getEccLib;const h$5=et=>Buffer.from(et,"hex");function verifyEcc(et){assert(typeof et.isXOnlyPoint=="function"),assert(et.isXOnlyPoint(h$5("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),assert(et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffeeffffc2e"))),assert(et.isXOnlyPoint(h$5("f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9"))),assert(et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000001"))),assert(!et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000000"))),assert(!et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"))),assert(typeof et.xOnlyPointAddTweak=="function"),tweakAddVectors.forEach(tt=>{const rt=et.xOnlyPointAddTweak(h$5(tt.pubkey),h$5(tt.tweak));tt.result===null?assert(rt===null):(assert(rt!==null),assert(rt.parity===tt.parity),assert(Buffer.from(rt.xOnlyPubkey).equals(h$5(tt.result))))})}function assert(et){if(!et)throw new Error("ecc library invalid")}const tweakAddVectors=[{pubkey:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",tweak:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140",parity:-1,result:null},{pubkey:"1617d38ed8d8657da4d4761e8057bc396ea9e4b9d29776d4be096016dbd2509b",tweak:"a8397a935f0dfceba6ba9618f6451ef4d80637abf4e6af2669fbc9de6a8fd2ac",parity:1,result:"e478f99dab91052ab39a33ea35fd5e6e4933f4d28023cd597c9a1f6760346adf"},{pubkey:"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",tweak:"823c3cd2142744b075a87eade7e1b8678ba308d566226a0056ca2b7a76f86b47",parity:0,result:"9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"}];var bip341={},bufferutils={},Buffer$2=safeBufferExports.Buffer,MAX_SAFE_INTEGER$3=9007199254740991;function checkUInt53$1(et){if(et<0||et>MAX_SAFE_INTEGER$3||et%1!==0)throw new RangeError("value out of range")}function encode$j(et,tt,rt){if(checkUInt53$1(et),tt||(tt=Buffer$2.allocUnsafe(encodingLength$1(et))),!Buffer$2.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),encode$j.bytes=1):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),encode$j.bytes=3):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),encode$j.bytes=5):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),encode$j.bytes=9),tt}function decode$i(et,tt){if(!Buffer$2.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);var rt=et.readUInt8(tt);if(rt<253)return decode$i.bytes=1,rt;if(rt===253)return decode$i.bytes=3,et.readUInt16LE(tt+1);if(rt===254)return decode$i.bytes=5,et.readUInt32LE(tt+1);decode$i.bytes=9;var nt=et.readUInt32LE(tt+1),it=et.readUInt32LE(tt+5),st=it*4294967296+nt;return checkUInt53$1(st),st}function encodingLength$1(et){return checkUInt53$1(et),et<253?1:et<=65535?3:et<=4294967295?5:9}var varuintBitcoin={encode:encode$j,decode:decode$i,encodingLength:encodingLength$1};Object.defineProperty(bufferutils,"__esModule",{value:!0});bufferutils.BufferReader=bufferutils.BufferWriter=bufferutils.cloneBuffer=bufferutils.reverseBuffer=bufferutils.writeUInt64LE=bufferutils.readUInt64LE=bufferutils.varuint=void 0;const types$3=types$6,{typeforce:typeforce$2}=types$3,varuint$7=varuintBitcoin;bufferutils.varuint=varuint$7;function verifuint$1(et,tt){if(typeof et!="number")throw new Error("cannot write a non-number as a number");if(et<0)throw new Error("specified a negative value for writing an unsigned value");if(et>tt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE$1(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint$1(nt+rt,9007199254740991),nt+rt}bufferutils.readUInt64LE=readUInt64LE$1;function writeUInt64LE$1(et,tt,rt){return verifuint$1(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}bufferutils.writeUInt64LE=writeUInt64LE$1;function reverseBuffer$1(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;ntthis.writeVarSlice(rt))}end(){if(this.buffer.length===this.offset)return this.buffer;throw new Error(`buffer size ${this.buffer.length}, offset ${this.offset}`)}}bufferutils.BufferWriter=BufferWriter;class BufferReader{constructor(tt,rt=0){this.buffer=tt,this.offset=rt,typeforce$2(types$3.tuple(types$3.Buffer,types$3.UInt32),[tt,rt])}readUInt8(){const tt=this.buffer.readUInt8(this.offset);return this.offset++,tt}readInt32(){const tt=this.buffer.readInt32LE(this.offset);return this.offset+=4,tt}readUInt32(){const tt=this.buffer.readUInt32LE(this.offset);return this.offset+=4,tt}readUInt64(){const tt=readUInt64LE$1(this.buffer,this.offset);return this.offset+=8,tt}readVarInt(){const tt=varuint$7.decode(this.buffer,this.offset);return this.offset+=varuint$7.decode.bytes,tt}readSlice(tt){if(this.buffer.length"left"in yt&&"right"in yt;function ot(yt,$t){if(yt.length<33)throw new TypeError(`The control-block length is too small. Got ${yt.length}, expected min 33.`);const mt=(yt.length-33)/32;let wt=$t;for(let St=0;StSt.hash.compare(Bt.hash));const[mt,wt]=$t;return{hash:kt(mt.hash,wt.hash),left:mt,right:wt}}et.toHashTree=lt;function ut(yt,$t){if(at(yt)){const mt=ut(yt.left,$t);if(mt!==void 0)return[...mt,yt.right.hash];const wt=ut(yt.right,$t);if(wt!==void 0)return[...wt,yt.left.hash]}else if(yt.hash.equals($t))return[]}et.findScriptPath=ut;function dt(yt){const $t=yt.version||et.LEAF_VERSION_TAPSCRIPT;return nt.taggedHash("TapLeaf",tt.Buffer.concat([tt.Buffer.from([$t]),pt(yt.output)]))}et.tapleafHash=dt;function bt(yt,$t){return nt.taggedHash("TapTweak",tt.Buffer.concat($t?[yt,$t]:[yt]))}et.tapTweakHash=bt;function gt(yt,$t){if(!tt.Buffer.isBuffer(yt)||yt.length!==32||$t&&$t.length!==32)return null;const mt=bt(yt,$t),wt=(0,rt.getEccLib)().xOnlyPointAddTweak(yt,mt);return!wt||wt.xOnlyPubkey===null?null:{parity:wt.parity,x:tt.Buffer.from(wt.xOnlyPubkey)}}et.tweakKey=gt;function kt(yt,$t){return nt.taggedHash("TapBranch",tt.Buffer.concat([yt,$t]))}function pt(yt){const $t=it.varuint.encodingLength(yt.length),mt=tt.Buffer.allocUnsafe($t);return it.varuint.encode(yt.length,mt),tt.Buffer.concat([mt,yt])}})(bip341);Object.defineProperty(p2tr$1,"__esModule",{value:!0});p2tr$1.p2tr=void 0;const buffer_1=buffer$2,networks_1$1=networks$1,bscript$4=script,types_1$2=types$6,ecc_lib_1=ecc_lib,bip341_1$2=bip341,lazy=lazy$8,bech32_1$1=dist,OPS=bscript$4.OPS,TAPROOT_WITNESS_VERSION=1,ANNEX_PREFIX=80;function p2tr(et,tt){if(!et.address&&!et.output&&!et.pubkey&&!et.internalPubkey&&!(et.witness&&et.witness.length>1))throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$2.typeforce)({address:types_1$2.typeforce.maybe(types_1$2.typeforce.String),input:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(0)),network:types_1$2.typeforce.maybe(types_1$2.typeforce.Object),output:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(34)),internalPubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),hash:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),pubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),signature:types_1$2.typeforce.maybe(types_1$2.typeforce.anyOf(types_1$2.typeforce.BufferN(64),types_1$2.typeforce.BufferN(65))),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer)),scriptTree:types_1$2.typeforce.maybe(types_1$2.isTaptree),redeem:types_1$2.typeforce.maybe({output:types_1$2.typeforce.maybe(types_1$2.typeforce.Buffer),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer))}),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number)},et);const rt=lazy.value(()=>{const ot=bech32_1$1.bech32m.decode(et.address),lt=ot.words.shift(),ut=bech32_1$1.bech32m.fromWords(ot.words);return{version:lt,prefix:ot.prefix,data:buffer_1.Buffer.from(ut)}}),nt=lazy.value(()=>{if(!(!et.witness||!et.witness.length))return et.witness.length>=2&&et.witness[et.witness.length-1][0]===ANNEX_PREFIX?et.witness.slice(0,-1):et.witness.slice()}),it=lazy.value(()=>{if(et.scriptTree)return(0,bip341_1$2.toHashTree)(et.scriptTree);if(et.hash)return{hash:et.hash}}),st=et.network||networks_1$1.bitcoin,at={name:"p2tr",network:st};if(lazy.prop(at,"address",()=>{if(!at.pubkey)return;const ot=bech32_1$1.bech32m.toWords(at.pubkey);return ot.unshift(TAPROOT_WITNESS_VERSION),bech32_1$1.bech32m.encode(st.bech32,ot)}),lazy.prop(at,"hash",()=>{const ot=it();if(ot)return ot.hash;const lt=nt();if(lt&<.length>1){const ut=lt[lt.length-1],dt=ut[0]&types_1$2.TAPLEAF_VERSION_MASK,bt=lt[lt.length-2],gt=(0,bip341_1$2.tapleafHash)({output:bt,version:dt});return(0,bip341_1$2.rootHashFromPath)(ut,gt)}return null}),lazy.prop(at,"output",()=>{if(at.pubkey)return bscript$4.compile([OPS.OP_1,at.pubkey])}),lazy.prop(at,"redeemVersion",()=>et.redeemVersion?et.redeemVersion:et.redeem&&et.redeem.redeemVersion!==void 0&&et.redeem.redeemVersion!==null?et.redeem.redeemVersion:bip341_1$2.LEAF_VERSION_TAPSCRIPT),lazy.prop(at,"redeem",()=>{const ot=nt();if(!(!ot||ot.length<2))return{output:ot[ot.length-2],witness:ot.slice(0,-2),redeemVersion:ot[ot.length-1][0]&types_1$2.TAPLEAF_VERSION_MASK}}),lazy.prop(at,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(at.internalPubkey){const ot=(0,bip341_1$2.tweakKey)(at.internalPubkey,at.hash);if(ot)return ot.x}}),lazy.prop(at,"internalPubkey",()=>{if(et.internalPubkey)return et.internalPubkey;const ot=nt();if(ot&&ot.length>1)return ot[ot.length-1].slice(1,33)}),lazy.prop(at,"signature",()=>{if(et.signature)return et.signature;const ot=nt();if(!(!ot||ot.length!==1))return ot[0]}),lazy.prop(at,"witness",()=>{if(et.witness)return et.witness;const ot=it();if(ot&&et.redeem&&et.redeem.output&&et.internalPubkey){const lt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion}),ut=(0,bip341_1$2.findScriptPath)(ot,lt);if(!ut)return;const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,ot.hash);if(!dt)return;const bt=buffer_1.Buffer.concat([buffer_1.Buffer.from([at.redeemVersion|dt.parity]),et.internalPubkey].concat(ut));return[et.redeem.output,bt]}if(et.signature)return[et.signature]}),tt.validate){let ot=buffer_1.Buffer.from([]);if(et.address){if(st&&st.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==TAPROOT_WITNESS_VERSION)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");ot=rt().data}if(et.pubkey){if(ot.length>0&&!ot.equals(et.pubkey))throw new TypeError("Pubkey mismatch");ot=et.pubkey}if(et.output){if(et.output.length!==34||et.output[0]!==OPS.OP_1||et.output[1]!==32)throw new TypeError("Output is invalid");if(ot.length>0&&!ot.equals(et.output.slice(2)))throw new TypeError("Pubkey mismatch");ot=et.output.slice(2)}if(et.internalPubkey){const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,at.hash);if(ot.length>0&&!ot.equals(dt.x))throw new TypeError("Pubkey mismatch");ot=dt.x}if(ot&&ot.length&&!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(ot))throw new TypeError("Invalid pubkey for p2tr");const lt=it();if(et.hash&<&&!et.hash.equals(lt.hash))throw new TypeError("Hash mismatch");if(et.redeem&&et.redeem.output&<){const dt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion});if(!(0,bip341_1$2.findScriptPath)(lt,dt))throw new TypeError("Redeem script not in tree")}const ut=nt();if(et.redeem&&at.redeem){if(et.redeem.redeemVersion&&et.redeem.redeemVersion!==at.redeem.redeemVersion)throw new TypeError("Redeem.redeemVersion and witness mismatch");if(et.redeem.output){if(bscript$4.decompile(et.redeem.output).length===0)throw new TypeError("Redeem.output is invalid");if(at.redeem.output&&!et.redeem.output.equals(at.redeem.output))throw new TypeError("Redeem.output and witness mismatch")}if(et.redeem.witness&&at.redeem.witness&&!stacksEqual(et.redeem.witness,at.redeem.witness))throw new TypeError("Redeem.witness and witness mismatch")}if(ut&&ut.length)if(ut.length===1){if(et.signature&&!et.signature.equals(ut[0]))throw new TypeError("Signature mismatch")}else{const dt=ut[ut.length-1];if(dt.length<33)throw new TypeError(`The control-block length is too small. Got ${dt.length}, expected min 33.`);if((dt.length-33)%32!==0)throw new TypeError(`The control-block length of ${dt.length} is incorrect!`);const bt=(dt.length-33)/32;if(bt>128)throw new TypeError(`The script path is too long. Got ${bt}, expected max 128.`);const gt=dt.slice(1,33);if(et.internalPubkey&&!et.internalPubkey.equals(gt))throw new TypeError("Internal pubkey mismatch");if(!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(gt))throw new TypeError("Invalid internalPubkey for p2tr witness");const kt=dt[0]&types_1$2.TAPLEAF_VERSION_MASK,pt=ut[ut.length-2],yt=(0,bip341_1$2.tapleafHash)({output:pt,version:kt}),$t=(0,bip341_1$2.rootHashFromPath)(dt,yt),mt=(0,bip341_1$2.tweakKey)(gt,$t);if(!mt)throw new TypeError("Invalid outputKey for p2tr witness");if(ot.length&&!ot.equals(mt.x))throw new TypeError("Pubkey mismatch for p2tr witness");if(mt.parity!==(dt[0]&1))throw new Error("Incorrect parity")}}return Object.assign(at,et)}p2tr$1.p2tr=p2tr;function stacksEqual(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.p2tr=et.p2wsh=et.p2wpkh=et.p2sh=et.p2pkh=et.p2pk=et.p2ms=et.embed=void 0;const tt=embed;Object.defineProperty(et,"embed",{enumerable:!0,get:function(){return tt.p2data}});const rt=p2ms$1;Object.defineProperty(et,"p2ms",{enumerable:!0,get:function(){return rt.p2ms}});const nt=p2pk$1;Object.defineProperty(et,"p2pk",{enumerable:!0,get:function(){return nt.p2pk}});const it=p2pkh$1;Object.defineProperty(et,"p2pkh",{enumerable:!0,get:function(){return it.p2pkh}});const st=p2sh$1;Object.defineProperty(et,"p2sh",{enumerable:!0,get:function(){return st.p2sh}});const at=p2wpkh$1;Object.defineProperty(et,"p2wpkh",{enumerable:!0,get:function(){return at.p2wpkh}});const ot=p2wsh$1;Object.defineProperty(et,"p2wsh",{enumerable:!0,get:function(){return ot.p2wsh}});const lt=p2tr$1;Object.defineProperty(et,"p2tr",{enumerable:!0,get:function(){return lt.p2tr}})})(payments$3);Object.defineProperty(address,"__esModule",{value:!0});address.toOutputScript=address.fromOutputScript=address.toBech32=address.toBase58Check=address.fromBech32=address.fromBase58Check=void 0;const networks=networks$1,payments$2=payments$3,bscript$3=script,types_1$1=types$6,bech32_1=dist,bs58check=bs58check$3,FUTURE_SEGWIT_MAX_SIZE=40,FUTURE_SEGWIT_MIN_SIZE=2,FUTURE_SEGWIT_MAX_VERSION=16,FUTURE_SEGWIT_MIN_VERSION=2,FUTURE_SEGWIT_VERSION_DIFF=80,FUTURE_SEGWIT_VERSION_WARNING="WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";function _toFutureSegwitAddress(et,tt){const rt=et.slice(2);if(rt.lengthFUTURE_SEGWIT_MAX_SIZE)throw new TypeError("Invalid program length for segwit address");const nt=et[0]-FUTURE_SEGWIT_VERSION_DIFF;if(ntFUTURE_SEGWIT_MAX_VERSION)throw new TypeError("Invalid version for segwit address");if(et[1]!==rt.length)throw new TypeError("Invalid script for segwit address");return console.warn(FUTURE_SEGWIT_VERSION_WARNING),toBech32(rt,nt,tt.bech32)}function fromBase58Check(et){const tt=Buffer.from(bs58check.decode(et));if(tt.length<21)throw new TypeError(et+" is too short");if(tt.length>21)throw new TypeError(et+" is too long");const rt=tt.readUInt8(0),nt=tt.slice(1);return{version:rt,hash:nt}}address.fromBase58Check=fromBase58Check;function fromBech32(et){let tt,rt;try{tt=bech32_1.bech32.decode(et)}catch{}if(tt){if(rt=tt.words[0],rt!==0)throw new TypeError(et+" uses wrong encoding")}else if(tt=bech32_1.bech32m.decode(et),rt=tt.words[0],rt===0)throw new TypeError(et+" uses wrong encoding");const nt=bech32_1.bech32.fromWords(tt.words.slice(1));return{version:rt,prefix:tt.prefix,data:Buffer.from(nt)}}address.fromBech32=fromBech32;function toBase58Check(et,tt){(0,types_1$1.typeforce)((0,types_1$1.tuple)(types_1$1.Hash160bit,types_1$1.UInt8),arguments);const rt=Buffer.allocUnsafe(21);return rt.writeUInt8(tt,0),et.copy(rt,1),bs58check.encode(rt)}address.toBase58Check=toBase58Check;function toBech32(et,tt,rt){const nt=bech32_1.bech32.toWords(et);return nt.unshift(tt),tt===0?bech32_1.bech32.encode(rt,nt):bech32_1.bech32m.encode(rt,nt)}address.toBech32=toBech32;function fromOutputScript(et,tt){tt=tt||networks.bitcoin;try{return payments$2.p2pkh({output:et,network:tt}).address}catch{}try{return payments$2.p2sh({output:et,network:tt}).address}catch{}try{return payments$2.p2wpkh({output:et,network:tt}).address}catch{}try{return payments$2.p2wsh({output:et,network:tt}).address}catch{}try{return payments$2.p2tr({output:et,network:tt}).address}catch{}try{return _toFutureSegwitAddress(et,tt)}catch{}throw new Error(bscript$3.toASM(et)+" has no matching Address")}address.fromOutputScript=fromOutputScript;function toOutputScript(et,tt){tt=tt||networks.bitcoin;let rt,nt;try{rt=fromBase58Check(et)}catch{}if(rt){if(rt.version===tt.pubKeyHash)return payments$2.p2pkh({hash:rt.hash}).output;if(rt.version===tt.scriptHash)return payments$2.p2sh({hash:rt.hash}).output}else{try{nt=fromBech32(et)}catch{}if(nt){if(nt.prefix!==tt.bech32)throw new Error(et+" has an invalid prefix");if(nt.version===0){if(nt.data.length===20)return payments$2.p2wpkh({hash:nt.data}).output;if(nt.data.length===32)return payments$2.p2wsh({hash:nt.data}).output}else if(nt.version===1){if(nt.data.length===32)return payments$2.p2tr({pubkey:nt.data}).output}else if(nt.version>=FUTURE_SEGWIT_MIN_VERSION&&nt.version<=FUTURE_SEGWIT_MAX_VERSION&&nt.data.length>=FUTURE_SEGWIT_MIN_SIZE&&nt.data.length<=FUTURE_SEGWIT_MAX_SIZE)return console.warn(FUTURE_SEGWIT_VERSION_WARNING),bscript$3.compile([nt.version+FUTURE_SEGWIT_VERSION_DIFF,nt.data])}}throw new Error(et+" has no matching Script")}address.toOutputScript=toOutputScript;var block={},merkle={};Object.defineProperty(merkle,"__esModule",{value:!0});merkle.fastMerkleRoot=void 0;function fastMerkleRoot(et,tt){if(!Array.isArray(et))throw TypeError("Expected values Array");if(typeof tt!="function")throw TypeError("Expected digest Function");let rt=et.length;const nt=et.concat();for(;rt>1;){let it=0;for(let st=0;strt+varSliceSize(nt),0)}const EMPTY_BUFFER=Buffer.allocUnsafe(0),EMPTY_WITNESS=[],ZERO=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),ONE=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),VALUE_UINT64_MAX=Buffer.from("ffffffffffffffff","hex"),BLANK_OUTPUT={script:EMPTY_BUFFER,valueBuffer:VALUE_UINT64_MAX};function isOutput(et){return et.value!==void 0}class Transaction{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(tt,rt){const nt=new bufferutils_1$2.BufferReader(tt),it=new Transaction;it.version=nt.readInt32();const st=nt.readUInt8(),at=nt.readUInt8();let ot=!1;st===Transaction.ADVANCED_TRANSACTION_MARKER&&at===Transaction.ADVANCED_TRANSACTION_FLAG?ot=!0:nt.offset-=2;const lt=nt.readVarInt();for(let dt=0;dttt.witness.length!==0)}weight(){const tt=this.byteLength(!1),rt=this.byteLength(!0);return tt*3+rt}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(tt=!0){const rt=tt&&this.hasWitnesses();return(rt?10:8)+bufferutils_1$2.varuint.encodingLength(this.ins.length)+bufferutils_1$2.varuint.encodingLength(this.outs.length)+this.ins.reduce((nt,it)=>nt+40+varSliceSize(it.script),0)+this.outs.reduce((nt,it)=>nt+8+varSliceSize(it.script),0)+(rt?this.ins.reduce((nt,it)=>nt+vectorSize(it.witness),0):0)}clone(){const tt=new Transaction;return tt.version=this.version,tt.locktime=this.locktime,tt.ins=this.ins.map(rt=>({hash:rt.hash,index:rt.index,script:rt.script,sequence:rt.sequence,witness:rt.witness})),tt.outs=this.outs.map(rt=>({script:rt.script,value:rt.value})),tt}hashForSignature(tt,rt,nt){if(typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Number),arguments),tt>=this.ins.length)return ONE;const it=bscript$2.compile(bscript$2.decompile(rt).filter(ot=>ot!==script_1.OPS.OP_CODESEPARATOR)),st=this.clone();if((nt&31)===Transaction.SIGHASH_NONE)st.outs=[],st.ins.forEach((ot,lt)=>{lt!==tt&&(ot.sequence=0)});else if((nt&31)===Transaction.SIGHASH_SINGLE){if(tt>=this.outs.length)return ONE;st.outs.length=tt+1;for(let ot=0;ot{lt!==tt&&(ot.sequence=0)})}nt&Transaction.SIGHASH_ANYONECANPAY?(st.ins=[st.ins[tt]],st.ins[0].script=it):(st.ins.forEach(ot=>{ot.script=EMPTY_BUFFER}),st.ins[tt].script=it);const at=Buffer.allocUnsafe(st.byteLength(!1)+4);return at.writeInt32LE(nt,at.length-4),st.__toBuffer(at,0,!1),bcrypto$1.hash256(at)}hashForWitnessV1(tt,rt,nt,it,st,at){if(typeforce$1(types$2.tuple(types$2.UInt32,typeforce$1.arrayOf(types$2.Buffer),typeforce$1.arrayOf(types$2.Satoshi),types$2.UInt32),arguments),nt.length!==this.ins.length||rt.length!==this.ins.length)throw new Error("Must supply prevout script and value for all inputs");const ot=it===Transaction.SIGHASH_DEFAULT?Transaction.SIGHASH_ALL:it&Transaction.SIGHASH_OUTPUT_MASK,ut=(it&Transaction.SIGHASH_INPUT_MASK)===Transaction.SIGHASH_ANYONECANPAY,dt=ot===Transaction.SIGHASH_NONE,bt=ot===Transaction.SIGHASH_SINGLE;let gt=EMPTY_BUFFER,kt=EMPTY_BUFFER,pt=EMPTY_BUFFER,yt=EMPTY_BUFFER,$t=EMPTY_BUFFER;if(!ut){let Bt=bufferutils_1$2.BufferWriter.withCapacity(36*this.ins.length);this.ins.forEach(Ft=>{Bt.writeSlice(Ft.hash),Bt.writeUInt32(Ft.index)}),gt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(8*this.ins.length),nt.forEach(Ft=>Bt.writeUInt64(Ft)),kt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(rt.map(varSliceSize).reduce((Ft,Dt)=>Ft+Dt)),rt.forEach(Ft=>Bt.writeVarSlice(Ft)),pt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(4*this.ins.length),this.ins.forEach(Ft=>Bt.writeUInt32(Ft.sequence)),yt=bcrypto$1.sha256(Bt.end())}if(dt||bt){if(bt&&tt8+varSliceSize(Dt.script)).reduce((Dt,zt)=>Dt+zt),Ft=bufferutils_1$2.BufferWriter.withCapacity(Bt);this.outs.forEach(Dt=>{Ft.writeUInt64(Dt.value),Ft.writeVarSlice(Dt.script)}),$t=bcrypto$1.sha256(Ft.end())}const mt=(st?2:0)+(at?1:0),wt=174-(ut?49:0)-(dt?32:0)+(at?32:0)+(st?37:0),St=bufferutils_1$2.BufferWriter.withCapacity(wt);if(St.writeUInt8(it),St.writeInt32(this.version),St.writeUInt32(this.locktime),St.writeSlice(gt),St.writeSlice(kt),St.writeSlice(pt),St.writeSlice(yt),dt||bt||St.writeSlice($t),St.writeUInt8(mt),ut){const Bt=this.ins[tt];St.writeSlice(Bt.hash),St.writeUInt32(Bt.index),St.writeUInt64(nt[tt]),St.writeVarSlice(rt[tt]),St.writeUInt32(Bt.sequence)}else St.writeUInt32(tt);if(at){const Bt=bufferutils_1$2.BufferWriter.withCapacity(varSliceSize(at));Bt.writeVarSlice(at),St.writeSlice(bcrypto$1.sha256(Bt.end()))}return bt&&St.writeSlice($t),st&&(St.writeSlice(st),St.writeUInt8(0),St.writeUInt32(4294967295)),bcrypto$1.taggedHash("TapSighash",Buffer.concat([Buffer.from([0]),St.end()]))}hashForWitnessV0(tt,rt,nt,it){typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Satoshi,types$2.UInt32),arguments);let st=Buffer.from([]),at,ot=ZERO,lt=ZERO,ut=ZERO;if(it&Transaction.SIGHASH_ANYONECANPAY||(st=Buffer.allocUnsafe(36*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeSlice(bt.hash),at.writeUInt32(bt.index)}),lt=bcrypto$1.hash256(st)),!(it&Transaction.SIGHASH_ANYONECANPAY)&&(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE&&(st=Buffer.allocUnsafe(4*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeUInt32(bt.sequence)}),ut=bcrypto$1.hash256(st)),(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE){const bt=this.outs.reduce((gt,kt)=>gt+8+varSliceSize(kt.script),0);st=Buffer.allocUnsafe(bt),at=new bufferutils_1$2.BufferWriter(st,0),this.outs.forEach(gt=>{at.writeUInt64(gt.value),at.writeVarSlice(gt.script)}),ot=bcrypto$1.hash256(st)}else if((it&31)===Transaction.SIGHASH_SINGLE&&tt{it.writeSlice(at.hash),it.writeUInt32(at.index),it.writeVarSlice(at.script),it.writeUInt32(at.sequence)}),it.writeVarInt(this.outs.length),this.outs.forEach(at=>{isOutput(at)?it.writeUInt64(at.value):it.writeSlice(at.valueBuffer),it.writeVarSlice(at.script)}),st&&this.ins.forEach(at=>{it.writeVector(at.witness)}),it.writeUInt32(this.locktime),rt!==void 0?tt.slice(rt,it.offset):tt}}transaction.Transaction=Transaction;Transaction.DEFAULT_SEQUENCE=4294967295;Transaction.SIGHASH_DEFAULT=0;Transaction.SIGHASH_ALL=1;Transaction.SIGHASH_NONE=2;Transaction.SIGHASH_SINGLE=3;Transaction.SIGHASH_ANYONECANPAY=128;Transaction.SIGHASH_OUTPUT_MASK=3;Transaction.SIGHASH_INPUT_MASK=128;Transaction.ADVANCED_TRANSACTION_MARKER=0;Transaction.ADVANCED_TRANSACTION_FLAG=1;Object.defineProperty(block,"__esModule",{value:!0});block.Block=void 0;const bufferutils_1$1=bufferutils,bcrypto=crypto$2,merkle_1=merkle,transaction_1$3=transaction,types$1=types$6,{typeforce}=types$1,errorMerkleNoTxes=new TypeError("Cannot compute merkle root for zero transactions"),errorWitnessNotSegwit=new TypeError("Cannot compute witness commit for non-segwit block");class Block{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(tt){if(tt.length<80)throw new Error("Buffer too small (< 80 bytes)");const rt=new bufferutils_1$1.BufferReader(tt),nt=new Block;if(nt.version=rt.readInt32(),nt.prevHash=rt.readSlice(32),nt.merkleRoot=rt.readSlice(32),nt.timestamp=rt.readUInt32(),nt.bits=rt.readUInt32(),nt.nonce=rt.readUInt32(),tt.length===80)return nt;const it=()=>{const ot=transaction_1$3.Transaction.fromBuffer(rt.buffer.slice(rt.offset),!0);return rt.offset+=ot.byteLength(),ot},st=rt.readVarInt();nt.transactions=[];for(let ot=0;ot>24)-3,nt=tt&8388607,it=Buffer.alloc(32,0);return it.writeUIntBE(nt,29-rt,3),it}static calculateMerkleRoot(tt,rt){if(typeforce([{getHash:types$1.Function}],tt),tt.length===0)throw errorMerkleNoTxes;if(rt&&!txesHaveWitnessCommit(tt))throw errorWitnessNotSegwit;const nt=tt.map(st=>st.getHash(rt)),it=(0,merkle_1.fastMerkleRoot)(nt,bcrypto.hash256);return rt?bcrypto.hash256(Buffer.concat([it,tt[0].ins[0].witness[0]])):it}getWitnessCommit(){if(!txesHaveWitnessCommit(this.transactions))return null;const tt=this.transactions[0].outs.filter(nt=>nt.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(nt=>nt.script.slice(6,38));if(tt.length===0)return null;const rt=tt[tt.length-1];return rt instanceof Buffer&&rt.length===32?rt:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&this.witnessCommit.length===32||this.getWitnessCommit()!==null}hasWitness(){return anyTxHasWitness(this.transactions)}weight(){const tt=this.byteLength(!1,!1),rt=this.byteLength(!1,!0);return tt*3+rt}byteLength(tt,rt=!0){return tt||!this.transactions?80:80+bufferutils_1$1.varuint.encodingLength(this.transactions.length)+this.transactions.reduce((nt,it)=>nt+it.byteLength(rt),0)}getHash(){return bcrypto.hash256(this.toBuffer(!0))}getId(){return(0,bufferutils_1$1.reverseBuffer)(this.getHash()).toString("hex")}getUTCDate(){const tt=new Date(0);return tt.setUTCSeconds(this.timestamp),tt}toBuffer(tt){const rt=Buffer.allocUnsafe(this.byteLength(tt)),nt=new bufferutils_1$1.BufferWriter(rt);return nt.writeInt32(this.version),nt.writeSlice(this.prevHash),nt.writeSlice(this.merkleRoot),nt.writeUInt32(this.timestamp),nt.writeUInt32(this.bits),nt.writeUInt32(this.nonce),tt||!this.transactions||(bufferutils_1$1.varuint.encode(this.transactions.length,rt,nt.offset),nt.offset+=bufferutils_1$1.varuint.encode.bytes,this.transactions.forEach(it=>{const st=it.byteLength();it.toBuffer(rt,nt.offset),nt.offset+=st})),rt}toHex(tt){return this.toBuffer(tt).toString("hex")}checkTxRoots(){const tt=this.hasWitnessCommit();return!tt&&this.hasWitness()?!1:this.__checkMerkleRoot()&&(tt?this.__checkWitnessCommit():!0)}checkProofOfWork(){const tt=(0,bufferutils_1$1.reverseBuffer)(this.getHash()),rt=Block.calculateTarget(this.bits);return tt.compare(rt)<=0}__checkMerkleRoot(){if(!this.transactions)throw errorMerkleNoTxes;const tt=Block.calculateMerkleRoot(this.transactions);return this.merkleRoot.compare(tt)===0}__checkWitnessCommit(){if(!this.transactions)throw errorMerkleNoTxes;if(!this.hasWitnessCommit())throw errorWitnessNotSegwit;const tt=Block.calculateMerkleRoot(this.transactions,!0);return this.witnessCommit.compare(tt)===0}}block.Block=Block;function txesHaveWitnessCommit(et){return et instanceof Array&&et[0]&&et[0].ins&&et[0].ins instanceof Array&&et[0].ins[0]&&et[0].ins[0].witness&&et[0].ins[0].witness instanceof Array&&et[0].ins[0].witness.length>0}function anyTxHasWitness(et){return et instanceof Array&&et.some(tt=>typeof tt=="object"&&tt.ins instanceof Array&&tt.ins.some(rt=>typeof rt=="object"&&rt.witness instanceof Array&&rt.witness.length>0))}var psbt$1={},psbt={},combiner={},parser$1={},fromBuffer={},converter={},typeFields={};(function(et){Object.defineProperty(et,"__esModule",{value:!0}),function(tt){tt[tt.UNSIGNED_TX=0]="UNSIGNED_TX",tt[tt.GLOBAL_XPUB=1]="GLOBAL_XPUB"}(et.GlobalTypes||(et.GlobalTypes={})),et.GLOBAL_TYPE_NAMES=["unsignedTx","globalXpub"],function(tt){tt[tt.NON_WITNESS_UTXO=0]="NON_WITNESS_UTXO",tt[tt.WITNESS_UTXO=1]="WITNESS_UTXO",tt[tt.PARTIAL_SIG=2]="PARTIAL_SIG",tt[tt.SIGHASH_TYPE=3]="SIGHASH_TYPE",tt[tt.REDEEM_SCRIPT=4]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=5]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=6]="BIP32_DERIVATION",tt[tt.FINAL_SCRIPTSIG=7]="FINAL_SCRIPTSIG",tt[tt.FINAL_SCRIPTWITNESS=8]="FINAL_SCRIPTWITNESS",tt[tt.POR_COMMITMENT=9]="POR_COMMITMENT",tt[tt.TAP_KEY_SIG=19]="TAP_KEY_SIG",tt[tt.TAP_SCRIPT_SIG=20]="TAP_SCRIPT_SIG",tt[tt.TAP_LEAF_SCRIPT=21]="TAP_LEAF_SCRIPT",tt[tt.TAP_BIP32_DERIVATION=22]="TAP_BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=23]="TAP_INTERNAL_KEY",tt[tt.TAP_MERKLE_ROOT=24]="TAP_MERKLE_ROOT"}(et.InputTypes||(et.InputTypes={})),et.INPUT_TYPE_NAMES=["nonWitnessUtxo","witnessUtxo","partialSig","sighashType","redeemScript","witnessScript","bip32Derivation","finalScriptSig","finalScriptWitness","porCommitment","tapKeySig","tapScriptSig","tapLeafScript","tapBip32Derivation","tapInternalKey","tapMerkleRoot"],function(tt){tt[tt.REDEEM_SCRIPT=0]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=1]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=2]="BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=5]="TAP_INTERNAL_KEY",tt[tt.TAP_TREE=6]="TAP_TREE",tt[tt.TAP_BIP32_DERIVATION=7]="TAP_BIP32_DERIVATION"}(et.OutputTypes||(et.OutputTypes={})),et.OUTPUT_TYPE_NAMES=["redeemScript","witnessScript","bip32Derivation","tapInternalKey","tapTree","tapBip32Derivation"]})(typeFields);var globalXpub$1={};Object.defineProperty(globalXpub$1,"__esModule",{value:!0});const typeFields_1$g=typeFields,range$2=et=>[...Array(et).keys()];function decode$h(et){if(et.key[0]!==typeFields_1$g.GlobalTypes.GLOBAL_XPUB)throw new Error("Decode Error: could not decode globalXpub with key 0x"+et.key.toString("hex"));if(et.key.length!==79||![2,3].includes(et.key[46]))throw new Error("Decode Error: globalXpub has invalid extended pubkey in key 0x"+et.key.toString("hex"));if(et.value.length/4%1!==0)throw new Error("Decode Error: Global GLOBAL_XPUB value length should be multiple of 4");const tt=et.key.slice(1),rt={masterFingerprint:et.value.slice(0,4),extendedPubkey:tt,path:"m"};for(const nt of range$2(et.value.length/4-1)){const it=et.value.readUInt32LE(nt*4+4),st=!!(it&2147483648),at=it&2147483647;rt.path+="/"+at.toString(10)+(st?"'":"")}return rt}globalXpub$1.decode=decode$h;function encode$i(et){const tt=Buffer.from([typeFields_1$g.GlobalTypes.GLOBAL_XPUB]),rt=Buffer.concat([tt,et.extendedPubkey]),nt=et.path.split("/"),it=Buffer.allocUnsafe(nt.length*4);et.masterFingerprint.copy(it,0);let st=4;return nt.slice(1).forEach(at=>{const ot=at.slice(-1)==="'";let lt=2147483647&parseInt(ot?at.slice(0,-1):at,10);ot&&(lt+=2147483648),it.writeUInt32LE(lt,st),st+=4}),{key:rt,value:it}}globalXpub$1.encode=encode$i;globalXpub$1.expected="{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";function check$c(et){const tt=et.extendedPubkey,rt=et.masterFingerprint,nt=et.path;return Buffer.isBuffer(tt)&&tt.length===78&&[2,3].indexOf(tt[45])>-1&&Buffer.isBuffer(rt)&&rt.length===4&&typeof nt=="string"&&!!nt.match(/^m(\/\d+'?)*$/)}globalXpub$1.check=check$c;function canAddToArray$3(et,tt,rt){const nt=tt.extendedPubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.extendedPubkey.equals(tt.extendedPubkey)).length===0)}globalXpub$1.canAddToArray=canAddToArray$3;var unsignedTx$1={};Object.defineProperty(unsignedTx$1,"__esModule",{value:!0});const typeFields_1$f=typeFields;function encode$h(et){return{key:Buffer.from([typeFields_1$f.GlobalTypes.UNSIGNED_TX]),value:et.toBuffer()}}unsignedTx$1.encode=encode$h;var finalScriptSig$1={};Object.defineProperty(finalScriptSig$1,"__esModule",{value:!0});const typeFields_1$e=typeFields;function decode$g(et){if(et.key[0]!==typeFields_1$e.InputTypes.FINAL_SCRIPTSIG)throw new Error("Decode Error: could not decode finalScriptSig with key 0x"+et.key.toString("hex"));return et.value}finalScriptSig$1.decode=decode$g;function encode$g(et){return{key:Buffer.from([typeFields_1$e.InputTypes.FINAL_SCRIPTSIG]),value:et}}finalScriptSig$1.encode=encode$g;finalScriptSig$1.expected="Buffer";function check$b(et){return Buffer.isBuffer(et)}finalScriptSig$1.check=check$b;function canAdd$8(et,tt){return!!et&&!!tt&&et.finalScriptSig===void 0}finalScriptSig$1.canAdd=canAdd$8;var finalScriptWitness$1={};Object.defineProperty(finalScriptWitness$1,"__esModule",{value:!0});const typeFields_1$d=typeFields;function decode$f(et){if(et.key[0]!==typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS)throw new Error("Decode Error: could not decode finalScriptWitness with key 0x"+et.key.toString("hex"));return et.value}finalScriptWitness$1.decode=decode$f;function encode$f(et){return{key:Buffer.from([typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS]),value:et}}finalScriptWitness$1.encode=encode$f;finalScriptWitness$1.expected="Buffer";function check$a(et){return Buffer.isBuffer(et)}finalScriptWitness$1.check=check$a;function canAdd$7(et,tt){return!!et&&!!tt&&et.finalScriptWitness===void 0}finalScriptWitness$1.canAdd=canAdd$7;var nonWitnessUtxo$1={};Object.defineProperty(nonWitnessUtxo$1,"__esModule",{value:!0});const typeFields_1$c=typeFields;function decode$e(et){if(et.key[0]!==typeFields_1$c.InputTypes.NON_WITNESS_UTXO)throw new Error("Decode Error: could not decode nonWitnessUtxo with key 0x"+et.key.toString("hex"));return et.value}nonWitnessUtxo$1.decode=decode$e;function encode$e(et){return{key:Buffer.from([typeFields_1$c.InputTypes.NON_WITNESS_UTXO]),value:et}}nonWitnessUtxo$1.encode=encode$e;nonWitnessUtxo$1.expected="Buffer";function check$9(et){return Buffer.isBuffer(et)}nonWitnessUtxo$1.check=check$9;function canAdd$6(et,tt){return!!et&&!!tt&&et.nonWitnessUtxo===void 0}nonWitnessUtxo$1.canAdd=canAdd$6;var partialSig$1={};Object.defineProperty(partialSig$1,"__esModule",{value:!0});const typeFields_1$b=typeFields;function decode$d(et){if(et.key[0]!==typeFields_1$b.InputTypes.PARTIAL_SIG)throw new Error("Decode Error: could not decode partialSig with key 0x"+et.key.toString("hex"));if(!(et.key.length===34||et.key.length===66)||![2,3,4].includes(et.key[1]))throw new Error("Decode Error: partialSig has invalid pubkey in key 0x"+et.key.toString("hex"));return{pubkey:et.key.slice(1),signature:et.value}}partialSig$1.decode=decode$d;function encode$d(et){const tt=Buffer.from([typeFields_1$b.InputTypes.PARTIAL_SIG]);return{key:Buffer.concat([tt,et.pubkey]),value:et.signature}}partialSig$1.encode=encode$d;partialSig$1.expected="{ pubkey: Buffer; signature: Buffer; }";function check$8(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.signature)&&[33,65].includes(et.pubkey.length)&&[2,3,4].includes(et.pubkey[0])&&isDerSigWithSighash(et.signature)}partialSig$1.check=check$8;function isDerSigWithSighash(et){if(!Buffer.isBuffer(et)||et.length<9||et[0]!==48||et.length!==et[1]+3||et[2]!==2)return!1;const tt=et[3];if(tt>33||tt<1||et[3+tt+1]!==2)return!1;const rt=et[3+tt+2];return!(rt>33||rt<1||et.length!==3+tt+2+rt+2)}function canAddToArray$2(et,tt,rt){const nt=tt.pubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)).length===0)}partialSig$1.canAddToArray=canAddToArray$2;var porCommitment$1={};Object.defineProperty(porCommitment$1,"__esModule",{value:!0});const typeFields_1$a=typeFields;function decode$c(et){if(et.key[0]!==typeFields_1$a.InputTypes.POR_COMMITMENT)throw new Error("Decode Error: could not decode porCommitment with key 0x"+et.key.toString("hex"));return et.value.toString("utf8")}porCommitment$1.decode=decode$c;function encode$c(et){return{key:Buffer.from([typeFields_1$a.InputTypes.POR_COMMITMENT]),value:Buffer.from(et,"utf8")}}porCommitment$1.encode=encode$c;porCommitment$1.expected="string";function check$7(et){return typeof et=="string"}porCommitment$1.check=check$7;function canAdd$5(et,tt){return!!et&&!!tt&&et.porCommitment===void 0}porCommitment$1.canAdd=canAdd$5;var sighashType$1={};Object.defineProperty(sighashType$1,"__esModule",{value:!0});const typeFields_1$9=typeFields;function decode$b(et){if(et.key[0]!==typeFields_1$9.InputTypes.SIGHASH_TYPE)throw new Error("Decode Error: could not decode sighashType with key 0x"+et.key.toString("hex"));return et.value.readUInt32LE(0)}sighashType$1.decode=decode$b;function encode$b(et){const tt=Buffer.from([typeFields_1$9.InputTypes.SIGHASH_TYPE]),rt=Buffer.allocUnsafe(4);return rt.writeUInt32LE(et,0),{key:tt,value:rt}}sighashType$1.encode=encode$b;sighashType$1.expected="number";function check$6(et){return typeof et=="number"}sighashType$1.check=check$6;function canAdd$4(et,tt){return!!et&&!!tt&&et.sighashType===void 0}sighashType$1.canAdd=canAdd$4;var tapKeySig$1={};Object.defineProperty(tapKeySig$1,"__esModule",{value:!0});const typeFields_1$8=typeFields;function decode$a(et){if(et.key[0]!==typeFields_1$8.InputTypes.TAP_KEY_SIG||et.key.length!==1)throw new Error("Decode Error: could not decode tapKeySig with key 0x"+et.key.toString("hex"));if(!check$5(et.value))throw new Error("Decode Error: tapKeySig not a valid 64-65-byte BIP340 signature");return et.value}tapKeySig$1.decode=decode$a;function encode$a(et){return{key:Buffer.from([typeFields_1$8.InputTypes.TAP_KEY_SIG]),value:et}}tapKeySig$1.encode=encode$a;tapKeySig$1.expected="Buffer";function check$5(et){return Buffer.isBuffer(et)&&(et.length===64||et.length===65)}tapKeySig$1.check=check$5;function canAdd$3(et,tt){return!!et&&!!tt&&et.tapKeySig===void 0}tapKeySig$1.canAdd=canAdd$3;var tapLeafScript$1={};Object.defineProperty(tapLeafScript$1,"__esModule",{value:!0});const typeFields_1$7=typeFields;function decode$9(et){if(et.key[0]!==typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT)throw new Error("Decode Error: could not decode tapLeafScript with key 0x"+et.key.toString("hex"));if((et.key.length-2)%32!==0)throw new Error("Decode Error: tapLeafScript has invalid control block in key 0x"+et.key.toString("hex"));const tt=et.value[et.value.length-1];if((et.key[1]&254)!==tt)throw new Error("Decode Error: tapLeafScript bad leaf version in key 0x"+et.key.toString("hex"));const rt=et.value.slice(0,-1);return{controlBlock:et.key.slice(1),script:rt,leafVersion:tt}}tapLeafScript$1.decode=decode$9;function encode$9(et){const tt=Buffer.from([typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT]),rt=Buffer.from([et.leafVersion]);return{key:Buffer.concat([tt,et.controlBlock]),value:Buffer.concat([et.script,rt])}}tapLeafScript$1.encode=encode$9;tapLeafScript$1.expected="{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";function check$4(et){return Buffer.isBuffer(et.controlBlock)&&(et.controlBlock.length-1)%32===0&&(et.controlBlock[0]&254)===et.leafVersion&&Buffer.isBuffer(et.script)}tapLeafScript$1.check=check$4;function canAddToArray$1(et,tt,rt){const nt=tt.controlBlock.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.controlBlock.equals(tt.controlBlock)).length===0)}tapLeafScript$1.canAddToArray=canAddToArray$1;var tapMerkleRoot$1={};Object.defineProperty(tapMerkleRoot$1,"__esModule",{value:!0});const typeFields_1$6=typeFields;function decode$8(et){if(et.key[0]!==typeFields_1$6.InputTypes.TAP_MERKLE_ROOT||et.key.length!==1)throw new Error("Decode Error: could not decode tapMerkleRoot with key 0x"+et.key.toString("hex"));if(!check$3(et.value))throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");return et.value}tapMerkleRoot$1.decode=decode$8;function encode$8(et){return{key:Buffer.from([typeFields_1$6.InputTypes.TAP_MERKLE_ROOT]),value:et}}tapMerkleRoot$1.encode=encode$8;tapMerkleRoot$1.expected="Buffer";function check$3(et){return Buffer.isBuffer(et)&&et.length===32}tapMerkleRoot$1.check=check$3;function canAdd$2(et,tt){return!!et&&!!tt&&et.tapMerkleRoot===void 0}tapMerkleRoot$1.canAdd=canAdd$2;var tapScriptSig$1={};Object.defineProperty(tapScriptSig$1,"__esModule",{value:!0});const typeFields_1$5=typeFields;function decode$7(et){if(et.key[0]!==typeFields_1$5.InputTypes.TAP_SCRIPT_SIG)throw new Error("Decode Error: could not decode tapScriptSig with key 0x"+et.key.toString("hex"));if(et.key.length!==65)throw new Error("Decode Error: tapScriptSig has invalid key 0x"+et.key.toString("hex"));if(et.value.length!==64&&et.value.length!==65)throw new Error("Decode Error: tapScriptSig has invalid signature in key 0x"+et.key.toString("hex"));const tt=et.key.slice(1,33),rt=et.key.slice(33);return{pubkey:tt,leafHash:rt,signature:et.value}}tapScriptSig$1.decode=decode$7;function encode$7(et){const tt=Buffer.from([typeFields_1$5.InputTypes.TAP_SCRIPT_SIG]);return{key:Buffer.concat([tt,et.pubkey,et.leafHash]),value:et.signature}}tapScriptSig$1.encode=encode$7;tapScriptSig$1.expected="{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";function check$2(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.leafHash)&&Buffer.isBuffer(et.signature)&&et.pubkey.length===32&&et.leafHash.length===32&&(et.signature.length===64||et.signature.length===65)}tapScriptSig$1.check=check$2;function canAddToArray(et,tt,rt){const nt=tt.pubkey.toString("hex")+tt.leafHash.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)&&it.leafHash.equals(tt.leafHash)).length===0)}tapScriptSig$1.canAddToArray=canAddToArray;var witnessUtxo$1={},tools={},varint={};Object.defineProperty(varint,"__esModule",{value:!0});const MAX_SAFE_INTEGER$2=9007199254740991;function checkUInt53(et){if(et<0||et>MAX_SAFE_INTEGER$2||et%1!==0)throw new RangeError("value out of range")}function encode$6(et,tt,rt){if(checkUInt53(et),tt||(tt=Buffer.allocUnsafe(encodingLength(et))),!Buffer.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),Object.assign(encode$6,{bytes:1})):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),Object.assign(encode$6,{bytes:3})):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),Object.assign(encode$6,{bytes:5})):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),Object.assign(encode$6,{bytes:9})),tt}varint.encode=encode$6;function decode$6(et,tt){if(!Buffer.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);const rt=et.readUInt8(tt);if(rt<253)return Object.assign(decode$6,{bytes:1}),rt;if(rt===253)return Object.assign(decode$6,{bytes:3}),et.readUInt16LE(tt+1);if(rt===254)return Object.assign(decode$6,{bytes:5}),et.readUInt32LE(tt+1);{Object.assign(decode$6,{bytes:9});const nt=et.readUInt32LE(tt+1),st=et.readUInt32LE(tt+5)*4294967296+nt;return checkUInt53(st),st}}varint.decode=decode$6;function encodingLength(et){return checkUInt53(et),et<253?1:et<=65535?3:et<=4294967295?5:9}varint.encodingLength=encodingLength;Object.defineProperty(tools,"__esModule",{value:!0});const varuint$6=varint;tools.range=et=>[...Array(et).keys()];function reverseBuffer(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;nttt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint(nt+rt,9007199254740991),nt+rt}tools.readUInt64LE=readUInt64LE;function writeUInt64LE(et,tt,rt){return verifuint(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}tools.writeUInt64LE=writeUInt64LE;Object.defineProperty(witnessUtxo$1,"__esModule",{value:!0});const typeFields_1$4=typeFields,tools_1$2=tools,varuint$5=varint;function decode$5(et){if(et.key[0]!==typeFields_1$4.InputTypes.WITNESS_UTXO)throw new Error("Decode Error: could not decode witnessUtxo with key 0x"+et.key.toString("hex"));const tt=tools_1$2.readUInt64LE(et.value,0);let rt=8;const nt=varuint$5.decode(et.value,rt);rt+=varuint$5.encodingLength(nt);const it=et.value.slice(rt);if(it.length!==nt)throw new Error("Decode Error: WITNESS_UTXO script is not proper length");return{script:it,value:tt}}witnessUtxo$1.decode=decode$5;function encode$5(et){const{script:tt,value:rt}=et,nt=varuint$5.encodingLength(tt.length),it=Buffer.allocUnsafe(8+nt+tt.length);return tools_1$2.writeUInt64LE(it,rt,0),varuint$5.encode(tt.length,it,8),tt.copy(it,8+nt),{key:Buffer.from([typeFields_1$4.InputTypes.WITNESS_UTXO]),value:it}}witnessUtxo$1.encode=encode$5;witnessUtxo$1.expected="{ script: Buffer; value: number; }";function check$1(et){return Buffer.isBuffer(et.script)&&typeof et.value=="number"}witnessUtxo$1.check=check$1;function canAdd$1(et,tt){return!!et&&!!tt&&et.witnessUtxo===void 0}witnessUtxo$1.canAdd=canAdd$1;var tapTree$1={};Object.defineProperty(tapTree$1,"__esModule",{value:!0});const typeFields_1$3=typeFields,varuint$4=varint;function decode$4(et){if(et.key[0]!==typeFields_1$3.OutputTypes.TAP_TREE||et.key.length!==1)throw new Error("Decode Error: could not decode tapTree with key 0x"+et.key.toString("hex"));let tt=0;const rt=[];for(;tt[Buffer.of(nt.depth,nt.leafVersion),varuint$4.encode(nt.script.length),nt.script]));return{key:tt,value:Buffer.concat(rt)}}tapTree$1.encode=encode$4;tapTree$1.expected="{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";function check(et){return Array.isArray(et.leaves)&&et.leaves.every(tt=>tt.depth>=0&&tt.depth<=128&&(tt.leafVersion&254)===tt.leafVersion&&Buffer.isBuffer(tt.script))}tapTree$1.check=check;function canAdd(et,tt){return!!et&&!!tt&&et.tapTree===void 0}tapTree$1.canAdd=canAdd;var bip32Derivation$2={};Object.defineProperty(bip32Derivation$2,"__esModule",{value:!0});const range$1=et=>[...Array(et).keys()],isValidDERKey=et=>et.length===33&&[2,3].includes(et[0])||et.length===65&&et[0]===4;function makeConverter$4(et,tt=isValidDERKey){function rt(ot){if(ot.key[0]!==et)throw new Error("Decode Error: could not decode bip32Derivation with key 0x"+ot.key.toString("hex"));const lt=ot.key.slice(1);if(!tt(lt))throw new Error("Decode Error: bip32Derivation has invalid pubkey in key 0x"+ot.key.toString("hex"));if(ot.value.length/4%1!==0)throw new Error("Decode Error: Input BIP32_DERIVATION value length should be multiple of 4");const ut={masterFingerprint:ot.value.slice(0,4),pubkey:lt,path:"m"};for(const dt of range$1(ot.value.length/4-1)){const bt=ot.value.readUInt32LE(dt*4+4),gt=!!(bt&2147483648),kt=bt&2147483647;ut.path+="/"+kt.toString(10)+(gt?"'":"")}return ut}function nt(ot){const lt=Buffer.from([et]),ut=Buffer.concat([lt,ot.pubkey]),dt=ot.path.split("/"),bt=Buffer.allocUnsafe(dt.length*4);ot.masterFingerprint.copy(bt,0);let gt=4;return dt.slice(1).forEach(kt=>{const pt=kt.slice(-1)==="'";let yt=2147483647&parseInt(pt?kt.slice(0,-1):kt,10);pt&&(yt+=2147483648),bt.writeUInt32LE(yt,gt),gt+=4}),{key:ut,value:bt}}const it="{ masterFingerprint: Buffer; pubkey: Buffer; path: string; }";function st(ot){return Buffer.isBuffer(ot.pubkey)&&Buffer.isBuffer(ot.masterFingerprint)&&typeof ot.path=="string"&&tt(ot.pubkey)&&ot.masterFingerprint.length===4}function at(ot,lt,ut){const dt=lt.pubkey.toString("hex");return ut.has(dt)?!1:(ut.add(dt),ot.filter(bt=>bt.pubkey.equals(lt.pubkey)).length===0)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:at}}bip32Derivation$2.makeConverter=makeConverter$4;var checkPubkey$1={};Object.defineProperty(checkPubkey$1,"__esModule",{value:!0});function makeChecker(et){return tt;function tt(rt){let nt;if(et.includes(rt.key[0])&&(nt=rt.key.slice(1),!(nt.length===33||nt.length===65)||![2,3,4].includes(nt[0])))throw new Error("Format Error: invalid pubkey in key 0x"+rt.key.toString("hex"));return nt}}checkPubkey$1.makeChecker=makeChecker;var redeemScript$1={};Object.defineProperty(redeemScript$1,"__esModule",{value:!0});function makeConverter$3(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode redeemScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.redeemScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}redeemScript$1.makeConverter=makeConverter$3;var tapBip32Derivation$1={};Object.defineProperty(tapBip32Derivation$1,"__esModule",{value:!0});const varuint$3=varint,bip32Derivation$1=bip32Derivation$2,isValidBIP340Key=et=>et.length===32;function makeConverter$2(et){const tt=bip32Derivation$1.makeConverter(et,isValidBIP340Key);function rt(at){const ot=varuint$3.decode(at.value),lt=varuint$3.encodingLength(ot),ut=tt.decode({key:at.key,value:at.value.slice(lt+ot*32)}),dt=new Array(ot);for(let bt=0,gt=lt;btBuffer.isBuffer(ot)&&ot.length===32)&&tt.check(at)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:tt.canAddToArray}}tapBip32Derivation$1.makeConverter=makeConverter$2;var tapInternalKey$1={};Object.defineProperty(tapInternalKey$1,"__esModule",{value:!0});function makeConverter$1(et){function tt(at){if(at.key[0]!==et||at.key.length!==1)throw new Error("Decode Error: could not decode tapInternalKey with key 0x"+at.key.toString("hex"));if(at.value.length!==32)throw new Error("Decode Error: tapInternalKey not a 32-byte x-only pubkey");return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)&&at.length===32}function st(at,ot){return!!at&&!!ot&&at.tapInternalKey===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}tapInternalKey$1.makeConverter=makeConverter$1;var witnessScript$1={};Object.defineProperty(witnessScript$1,"__esModule",{value:!0});function makeConverter(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode witnessScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.witnessScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}witnessScript$1.makeConverter=makeConverter;Object.defineProperty(converter,"__esModule",{value:!0});const typeFields_1$2=typeFields,globalXpub=globalXpub$1,unsignedTx=unsignedTx$1,finalScriptSig=finalScriptSig$1,finalScriptWitness=finalScriptWitness$1,nonWitnessUtxo=nonWitnessUtxo$1,partialSig=partialSig$1,porCommitment=porCommitment$1,sighashType=sighashType$1,tapKeySig=tapKeySig$1,tapLeafScript=tapLeafScript$1,tapMerkleRoot=tapMerkleRoot$1,tapScriptSig=tapScriptSig$1,witnessUtxo=witnessUtxo$1,tapTree=tapTree$1,bip32Derivation=bip32Derivation$2,checkPubkey=checkPubkey$1,redeemScript=redeemScript$1,tapBip32Derivation=tapBip32Derivation$1,tapInternalKey=tapInternalKey$1,witnessScript=witnessScript$1,globals={unsignedTx,globalXpub,checkPubkey:checkPubkey.makeChecker([])};converter.globals=globals;const inputs={nonWitnessUtxo,partialSig,sighashType,finalScriptSig,finalScriptWitness,porCommitment,witnessUtxo,bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.InputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.InputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.InputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.InputTypes.PARTIAL_SIG,typeFields_1$2.InputTypes.BIP32_DERIVATION]),tapKeySig,tapScriptSig,tapLeafScript,tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.InputTypes.TAP_BIP32_DERIVATION),tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.InputTypes.TAP_INTERNAL_KEY),tapMerkleRoot};converter.inputs=inputs;const outputs={bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.OutputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.OutputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.OutputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.OutputTypes.BIP32_DERIVATION]),tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.OutputTypes.TAP_BIP32_DERIVATION),tapTree,tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.OutputTypes.TAP_INTERNAL_KEY)};converter.outputs=outputs;Object.defineProperty(fromBuffer,"__esModule",{value:!0});const convert$2=converter,tools_1$1=tools,varuint$2=varint,typeFields_1$1=typeFields;function psbtFromBuffer(et,tt){let rt=0;function nt(){const $t=varuint$2.decode(et,rt);rt+=varuint$2.encodingLength($t);const mt=et.slice(rt,rt+$t);return rt+=$t,mt}function it(){const $t=et.readUInt32BE(rt);return rt+=4,$t}function st(){const $t=et.readUInt8(rt);return rt+=1,$t}function at(){const $t=nt(),mt=nt();return{key:$t,value:mt}}function ot(){if(rt>=et.length)throw new Error("Format Error: Unexpected End of PSBT");const $t=et.readUInt8(rt)===0;return $t&&rt++,$t}if(it()!==1886610036)throw new Error("Format Error: Invalid Magic Number");if(st()!==255)throw new Error("Format Error: Magic Number must be followed by 0xff separator");const lt=[],ut={};for(;!ot();){const $t=at(),mt=$t.key.toString("hex");if(ut[mt])throw new Error("Format Error: Keys must be unique for global keymap: key "+mt);ut[mt]=1,lt.push($t)}const dt=lt.filter($t=>$t.key[0]===typeFields_1$1.GlobalTypes.UNSIGNED_TX);if(dt.length!==1)throw new Error("Format Error: Only one UNSIGNED_TX allowed");const bt=tt(dt[0].value),{inputCount:gt,outputCount:kt}=bt.getInputOutputCounts(),pt=[],yt=[];for(const $t of tools_1$1.range(gt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each input: input index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}pt.push(wt)}for(const $t of tools_1$1.range(kt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each output: output index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}yt.push(wt)}return psbtFromKeyVals(bt,{globalMapKeyVals:lt,inputKeyVals:pt,outputKeyVals:yt})}fromBuffer.psbtFromBuffer=psbtFromBuffer;function checkKeyBuffer(et,tt,rt){if(!tt.equals(Buffer.from([rt])))throw new Error(`Format Error: Invalid ${et} key: ${tt.toString("hex")}`)}fromBuffer.checkKeyBuffer=checkKeyBuffer;function psbtFromKeyVals(et,{globalMapKeyVals:tt,inputKeyVals:rt,outputKeyVals:nt}){const it={unsignedTx:et};let st=0;for(const dt of tt)switch(dt.key[0]){case typeFields_1$1.GlobalTypes.UNSIGNED_TX:if(checkKeyBuffer("global",dt.key,typeFields_1$1.GlobalTypes.UNSIGNED_TX),st>0)throw new Error("Format Error: GlobalMap has multiple UNSIGNED_TX");st++;break;case typeFields_1$1.GlobalTypes.GLOBAL_XPUB:it.globalXpub===void 0&&(it.globalXpub=[]),it.globalXpub.push(convert$2.globals.globalXpub.decode(dt));break;default:it.unknownKeyVals||(it.unknownKeyVals=[]),it.unknownKeyVals.push(dt)}const at=rt.length,ot=nt.length,lt=[],ut=[];for(const dt of tools_1$1.range(at)){const bt={};for(const gt of rt[dt])switch(convert$2.inputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.InputTypes.NON_WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.NON_WITNESS_UTXO),bt.nonWitnessUtxo!==void 0)throw new Error("Format Error: Input has multiple NON_WITNESS_UTXO");bt.nonWitnessUtxo=convert$2.inputs.nonWitnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_UTXO),bt.witnessUtxo!==void 0)throw new Error("Format Error: Input has multiple WITNESS_UTXO");bt.witnessUtxo=convert$2.inputs.witnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.PARTIAL_SIG:bt.partialSig===void 0&&(bt.partialSig=[]),bt.partialSig.push(convert$2.inputs.partialSig.decode(gt));break;case typeFields_1$1.InputTypes.SIGHASH_TYPE:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.SIGHASH_TYPE),bt.sighashType!==void 0)throw new Error("Format Error: Input has multiple SIGHASH_TYPE");bt.sighashType=convert$2.inputs.sighashType.decode(gt);break;case typeFields_1$1.InputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Input has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.inputs.redeemScript.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Input has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.inputs.witnessScript.decode(gt);break;case typeFields_1$1.InputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.inputs.bip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.FINAL_SCRIPTSIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTSIG),bt.finalScriptSig=convert$2.inputs.finalScriptSig.decode(gt);break;case typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS),bt.finalScriptWitness=convert$2.inputs.finalScriptWitness.decode(gt);break;case typeFields_1$1.InputTypes.POR_COMMITMENT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.POR_COMMITMENT),bt.porCommitment=convert$2.inputs.porCommitment.decode(gt);break;case typeFields_1$1.InputTypes.TAP_KEY_SIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_KEY_SIG),bt.tapKeySig=convert$2.inputs.tapKeySig.decode(gt);break;case typeFields_1$1.InputTypes.TAP_SCRIPT_SIG:bt.tapScriptSig===void 0&&(bt.tapScriptSig=[]),bt.tapScriptSig.push(convert$2.inputs.tapScriptSig.decode(gt));break;case typeFields_1$1.InputTypes.TAP_LEAF_SCRIPT:bt.tapLeafScript===void 0&&(bt.tapLeafScript=[]),bt.tapLeafScript.push(convert$2.inputs.tapLeafScript.decode(gt));break;case typeFields_1$1.InputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.inputs.tapBip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.inputs.tapInternalKey.decode(gt);break;case typeFields_1$1.InputTypes.TAP_MERKLE_ROOT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_MERKLE_ROOT),bt.tapMerkleRoot=convert$2.inputs.tapMerkleRoot.decode(gt);break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}lt.push(bt)}for(const dt of tools_1$1.range(ot)){const bt={};for(const gt of nt[dt])switch(convert$2.outputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.OutputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Output has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.outputs.redeemScript.decode(gt);break;case typeFields_1$1.OutputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Output has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.outputs.witnessScript.decode(gt);break;case typeFields_1$1.OutputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.outputs.bip32Derivation.decode(gt));break;case typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.outputs.tapInternalKey.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_TREE:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_TREE),bt.tapTree=convert$2.outputs.tapTree.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.outputs.tapBip32Derivation.decode(gt));break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}ut.push(bt)}return{globalMap:it,inputs:lt,outputs:ut}}fromBuffer.psbtFromKeyVals=psbtFromKeyVals;var toBuffer={};Object.defineProperty(toBuffer,"__esModule",{value:!0});const convert$1=converter,tools_1=tools;function psbtToBuffer({globalMap:et,inputs:tt,outputs:rt}){const{globalKeyVals:nt,inputKeyVals:it,outputKeyVals:st}=psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}),at=tools_1.keyValsToBuffer(nt),ot=bt=>bt.length===0?[Buffer.from([0])]:bt.map(tools_1.keyValsToBuffer),lt=ot(it),ut=ot(st),dt=Buffer.allocUnsafe(5);return dt.writeUIntBE(482972169471,0,5),Buffer.concat([dt,at].concat(lt,ut))}toBuffer.psbtToBuffer=psbtToBuffer;const sortKeyVals=(et,tt)=>et.key.compare(tt.key);function keyValsFromMap(et,tt){const rt=new Set,nt=Object.entries(et).reduce((st,[at,ot])=>{if(at==="unknownKeyVals")return st;const lt=tt[at];if(lt===void 0)return st;const ut=(Array.isArray(ot)?ot:[ot]).map(lt.encode);return ut.map(bt=>bt.key.toString("hex")).forEach(bt=>{if(rt.has(bt))throw new Error("Serialize Error: Duplicate key: "+bt);rt.add(bt)}),st.concat(ut)},[]),it=et.unknownKeyVals?et.unknownKeyVals.filter(st=>!rt.has(st.key.toString("hex"))):[];return nt.concat(it).sort(sortKeyVals)}function psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}){return{globalKeyVals:keyValsFromMap(et,convert$1.globals),inputKeyVals:tt.map(nt=>keyValsFromMap(nt,convert$1.inputs)),outputKeyVals:rt.map(nt=>keyValsFromMap(nt,convert$1.outputs))}}toBuffer.psbtToKeyVals=psbtToKeyVals;(function(et){function tt(rt){for(var nt in rt)et.hasOwnProperty(nt)||(et[nt]=rt[nt])}Object.defineProperty(et,"__esModule",{value:!0}),tt(fromBuffer),tt(toBuffer)})(parser$1);Object.defineProperty(combiner,"__esModule",{value:!0});const parser_1$1=parser$1;function combine$1(et){const tt=et[0],rt=parser_1$1.psbtToKeyVals(tt),nt=et.slice(1);if(nt.length===0)throw new Error("Combine: Nothing to combine");const it=getTx(tt);if(it===void 0)throw new Error("Combine: Self missing transaction");const st=getKeySet(rt.globalKeyVals),at=rt.inputKeyVals.map(getKeySet),ot=rt.outputKeyVals.map(getKeySet);for(const lt of nt){const ut=getTx(lt);if(ut===void 0||!ut.toBuffer().equals(it.toBuffer()))throw new Error("Combine: One of the Psbts does not have the same transaction.");const dt=parser_1$1.psbtToKeyVals(lt);getKeySet(dt.globalKeyVals).forEach(keyPusher(st,rt.globalKeyVals,dt.globalKeyVals)),dt.inputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(at[yt],rt.inputKeyVals[yt],dt.inputKeyVals[yt]))),dt.outputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(ot[yt],rt.outputKeyVals[yt],dt.outputKeyVals[yt])))}return parser_1$1.psbtFromKeyVals(it,{globalMapKeyVals:rt.globalKeyVals,inputKeyVals:rt.inputKeyVals,outputKeyVals:rt.outputKeyVals})}combiner.combine=combine$1;function keyPusher(et,tt,rt){return nt=>{if(et.has(nt))return;const it=rt.filter(st=>st.key.toString("hex")===nt)[0];tt.push(it),et.add(nt)}}function getTx(et){return et.globalMap.unsignedTx}function getKeySet(et){const tt=new Set;return et.forEach(rt=>{const nt=rt.key.toString("hex");if(tt.has(nt))throw new Error("Combine: KeyValue Map keys should be unique");tt.add(nt)}),tt}var utils={};(function(et){Object.defineProperty(et,"__esModule",{value:!0});const tt=converter;function rt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No input #${pt}`);return yt}et.checkForInput=rt;function nt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No output #${pt}`);return yt}et.checkForOutput=nt;function it(kt,pt,yt){if(kt.key[0]$t.key.equals(kt.key)).length!==0)throw new Error(`Duplicate Key: ${kt.key.toString("hex")}`)}et.checkHasKey=it;function st(kt){let pt=0;return Object.keys(kt).forEach(yt=>{Number(isNaN(Number(yt)))&&pt++}),pt}et.getEnumLength=st;function at(kt,pt){let yt=!1;if(pt.nonWitnessUtxo||pt.witnessUtxo){const $t=!!pt.redeemScript,mt=!!pt.witnessScript,wt=!$t||!!pt.finalScriptSig,St=!mt||!!pt.finalScriptWitness,Bt=!!pt.finalScriptSig||!!pt.finalScriptWitness;yt=wt&&St&&Bt}if(yt===!1)throw new Error(`Input #${kt} has too much or too little data to clean`)}et.inputCheckUncleanFinalized=at;function ot(kt,pt,yt,$t){throw new Error(`Data for ${kt} key ${pt} is incorrect: Expected ${yt} and got ${JSON.stringify($t)}`)}function lt(kt){return(pt,yt)=>{for(const $t of Object.keys(pt)){const mt=pt[$t],{canAdd:wt,canAddToArray:St,check:Bt,expected:Ft}=tt[kt+"s"][$t]||{},Dt=!!St;if(Bt)if(Dt){if(!Array.isArray(mt)||yt[$t]&&!Array.isArray(yt[$t]))throw new Error(`Key type ${$t} must be an array`);mt.every(Bt)||ot(kt,$t,Ft,mt);const zt=yt[$t]||[],Ht=new Set;if(!mt.every(Wt=>St(zt,Wt,Ht)))throw new Error("Can not add duplicate data to array");yt[$t]=zt.concat(mt)}else{if(Bt(mt)||ot(kt,$t,Ft,mt),!wt(yt,mt))throw new Error(`Can not add duplicate data to ${kt}`);yt[$t]=mt}}}}et.updateGlobal=lt("global"),et.updateInput=lt("input"),et.updateOutput=lt("output");function ut(kt,pt){const yt=kt.length-1,$t=rt(kt,yt);et.updateInput(pt,$t)}et.addInputAttributes=ut;function dt(kt,pt){const yt=kt.length-1,$t=nt(kt,yt);et.updateOutput(pt,$t)}et.addOutputAttributes=dt;function bt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Version: Invalid Transaction");return pt.writeUInt32LE(kt,0),pt}et.defaultVersionSetter=bt;function gt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Locktime: Invalid Transaction");return pt.writeUInt32LE(kt,pt.length-4),pt}et.defaultLocktimeSetter=gt})(utils);Object.defineProperty(psbt,"__esModule",{value:!0});const combiner_1=combiner,parser_1=parser$1,typeFields_1=typeFields,utils_1$1=utils;let Psbt$1=class{constructor(tt){this.inputs=[],this.outputs=[],this.globalMap={unsignedTx:tt}}static fromBase64(tt,rt){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt){const nt=parser_1.psbtFromBuffer(tt,rt),it=new this(nt.globalMap.unsignedTx);return Object.assign(it,nt),it}toBase64(){return this.toBuffer().toString("base64")}toHex(){return this.toBuffer().toString("hex")}toBuffer(){return parser_1.psbtToBuffer(this)}updateGlobal(tt){return utils_1$1.updateGlobal(tt,this.globalMap),this}updateInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.updateInput(rt,nt),this}updateOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.updateOutput(rt,nt),this}addUnknownKeyValToGlobal(tt){return utils_1$1.checkHasKey(tt,this.globalMap.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.GlobalTypes)),this.globalMap.unknownKeyVals||(this.globalMap.unknownKeyVals=[]),this.globalMap.unknownKeyVals.push(tt),this}addUnknownKeyValToInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.InputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addUnknownKeyValToOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.OutputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addInput(tt){this.globalMap.unsignedTx.addInput(tt),this.inputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.inputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToInput(nt,it)),utils_1$1.addInputAttributes(this.inputs,tt),this}addOutput(tt){this.globalMap.unsignedTx.addOutput(tt),this.outputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.outputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToOutput(nt,it)),utils_1$1.addOutputAttributes(this.outputs,tt),this}clearFinalizedInput(tt){const rt=utils_1$1.checkForInput(this.inputs,tt);utils_1$1.inputCheckUncleanFinalized(tt,rt);for(const nt of Object.keys(rt))["witnessUtxo","nonWitnessUtxo","finalScriptSig","finalScriptWitness","unknownKeyVals"].includes(nt)||delete rt[nt];return this}combine(...tt){const rt=combiner_1.combine([this].concat(tt));return Object.assign(this,rt),this}getTransaction(){return this.globalMap.unsignedTx.toBuffer()}};psbt.Psbt=Psbt$1;var bip371={},psbtutils={};Object.defineProperty(psbtutils,"__esModule",{value:!0});psbtutils.signatureBlocksAction=psbtutils.checkInputForSig=psbtutils.pubkeyInScript=psbtutils.pubkeyPositionInScript=psbtutils.witnessStackToScriptWitness=psbtutils.isP2TR=psbtutils.isP2SHScript=psbtutils.isP2WSHScript=psbtutils.isP2WPKH=psbtutils.isP2PKH=psbtutils.isP2PK=psbtutils.isP2MS=void 0;const varuint$1=varint,bscript$1=script,transaction_1$2=transaction,crypto_1=crypto$2,payments$1=payments$3;function isPaymentFactory(et){return tt=>{try{return et({output:tt}),!0}catch{return!1}}}psbtutils.isP2MS=isPaymentFactory(payments$1.p2ms);psbtutils.isP2PK=isPaymentFactory(payments$1.p2pk);psbtutils.isP2PKH=isPaymentFactory(payments$1.p2pkh);psbtutils.isP2WPKH=isPaymentFactory(payments$1.p2wpkh);psbtutils.isP2WSHScript=isPaymentFactory(payments$1.p2wsh);psbtutils.isP2SHScript=isPaymentFactory(payments$1.p2sh);psbtutils.isP2TR=isPaymentFactory(payments$1.p2tr);function witnessStackToScriptWitness(et){let tt=Buffer.allocUnsafe(0);function rt(at){tt=Buffer.concat([tt,Buffer.from(at)])}function nt(at){const ot=tt.length,lt=varuint$1.encodingLength(at);tt=Buffer.concat([tt,Buffer.allocUnsafe(lt)]),varuint$1.encode(at,tt,ot)}function it(at){nt(at.length),rt(at)}function st(at){nt(at.length),at.forEach(it)}return st(et),tt}psbtutils.witnessStackToScriptWitness=witnessStackToScriptWitness;function pubkeyPositionInScript(et,tt){const rt=(0,crypto_1.hash160)(et),nt=et.slice(1,33),it=bscript$1.decompile(tt);if(it===null)throw new Error("Unknown script error");return it.findIndex(st=>typeof st=="number"?!1:st.equals(et)||st.equals(rt)||st.equals(nt))}psbtutils.pubkeyPositionInScript=pubkeyPositionInScript;function pubkeyInScript(et,tt){return pubkeyPositionInScript(et,tt)!==-1}psbtutils.pubkeyInScript=pubkeyInScript;function checkInputForSig(et,tt){return extractPartialSigs(et).some(nt=>signatureBlocksAction(nt,bscript$1.signature.decode,tt))}psbtutils.checkInputForSig=checkInputForSig;function signatureBlocksAction(et,tt,rt){const{hashType:nt}=tt(et),it=[];switch(nt&transaction_1$2.Transaction.SIGHASH_ANYONECANPAY&&it.push("addInput"),nt&31){case transaction_1$2.Transaction.SIGHASH_ALL:break;case transaction_1$2.Transaction.SIGHASH_SINGLE:case transaction_1$2.Transaction.SIGHASH_NONE:it.push("addOutput"),it.push("setInputSequence");break}return it.indexOf(rt)===-1}psbtutils.signatureBlocksAction=signatureBlocksAction;function extractPartialSigs(et){let tt=[];if((et.partialSig||[]).length===0){if(!et.finalScriptSig&&!et.finalScriptWitness)return[];tt=getPsigsFromInputFinalScripts(et)}else tt=et.partialSig;return tt.map(rt=>rt.signature)}function getPsigsFromInputFinalScripts(et){const tt=et.finalScriptSig?bscript$1.decompile(et.finalScriptSig)||[]:[],rt=et.finalScriptWitness?bscript$1.decompile(et.finalScriptWitness)||[]:[];return tt.concat(rt).filter(nt=>Buffer.isBuffer(nt)&&bscript$1.isCanonicalScriptSignature(nt)).map(nt=>({signature:nt}))}Object.defineProperty(bip371,"__esModule",{value:!0});bip371.checkTaprootInputForSigs=bip371.tapTreeFromList=bip371.tapTreeToList=bip371.tweakInternalPubKey=bip371.checkTaprootOutputFields=bip371.checkTaprootInputFields=bip371.isTaprootOutput=bip371.isTaprootInput=bip371.serializeTaprootSignature=bip371.tapScriptFinalizer=bip371.toXOnly=void 0;const types_1=types$6,transaction_1$1=transaction,psbtutils_1$1=psbtutils,bip341_1$1=bip341,payments_1=payments$3,psbtutils_2=psbtutils,toXOnly=et=>et.length===32?et:et.slice(1,33);bip371.toXOnly=toXOnly;function tapScriptFinalizer(et,tt,rt){const nt=findTapLeafToFinalize(tt,et,rt);try{const st=sortSignatures(tt,nt).concat(nt.script).concat(nt.controlBlock);return{finalScriptWitness:(0,psbtutils_1$1.witnessStackToScriptWitness)(st)}}catch(it){throw new Error(`Can not finalize taproot input #${et}: ${it}`)}}bip371.tapScriptFinalizer=tapScriptFinalizer;function serializeTaprootSignature(et,tt){const rt=tt?Buffer.from([tt]):Buffer.from([]);return Buffer.concat([et,rt])}bip371.serializeTaprootSignature=serializeTaprootSignature;function isTaprootInput(et){return et&&!!(et.tapInternalKey||et.tapMerkleRoot||et.tapLeafScript&&et.tapLeafScript.length||et.tapBip32Derivation&&et.tapBip32Derivation.length||et.witnessUtxo&&(0,psbtutils_1$1.isP2TR)(et.witnessUtxo.script))}bip371.isTaprootInput=isTaprootInput;function isTaprootOutput(et,tt){return et&&!!(et.tapInternalKey||et.tapTree||et.tapBip32Derivation&&et.tapBip32Derivation.length||tt&&(0,psbtutils_1$1.isP2TR)(tt))}bip371.isTaprootOutput=isTaprootOutput;function checkTaprootInputFields(et,tt,rt){checkMixedTaprootAndNonTaprootInputFields(et,tt,rt),checkIfTapLeafInTree(et,tt,rt)}bip371.checkTaprootInputFields=checkTaprootInputFields;function checkTaprootOutputFields(et,tt,rt){checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt),checkTaprootScriptPubkey(et,tt)}bip371.checkTaprootOutputFields=checkTaprootOutputFields;function checkTaprootScriptPubkey(et,tt){if(!tt.tapTree&&!tt.tapInternalKey)return;const rt=tt.tapInternalKey||et.tapInternalKey,nt=tt.tapTree||et.tapTree;if(rt){const{script:it}=et,st=getTaprootScripPubkey(rt,nt);if(it&&!it.equals(st))throw new Error("Error adding output. Script or address missmatch.")}}function getTaprootScripPubkey(et,tt){const rt=tt&&tapTreeFromList(tt.leaves),{output:nt}=(0,payments_1.p2tr)({internalPubkey:et,scriptTree:rt});return nt}function tweakInternalPubKey(et,tt){const rt=tt.tapInternalKey,nt=rt&&(0,bip341_1$1.tweakKey)(rt,tt.tapMerkleRoot);if(!nt)throw new Error(`Cannot tweak tap internal key for input #${et}. Public key: ${rt&&rt.toString("hex")}`);return nt.x}bip371.tweakInternalPubKey=tweakInternalPubKey;function tapTreeToList(et){if(!(0,types_1.isTaptree)(et))throw new Error("Cannot convert taptree to tapleaf list. Expecting a tapree structure.");return _tapTreeToList(et)}bip371.tapTreeToList=tapTreeToList;function tapTreeFromList(et=[]){return et.length===1&&et[0].depth===0?{output:et[0].script,version:et[0].leafVersion}:instertLeavesInTree(et)}bip371.tapTreeFromList=tapTreeFromList;function checkTaprootInputForSigs(et,tt){return extractTaprootSigs(et).some(nt=>(0,psbtutils_2.signatureBlocksAction)(nt,decodeSchnorrSignature,tt))}bip371.checkTaprootInputForSigs=checkTaprootInputForSigs;function decodeSchnorrSignature(et){return{signature:et.slice(0,64),hashType:et.slice(64)[0]||transaction_1$1.Transaction.SIGHASH_DEFAULT}}function extractTaprootSigs(et){const tt=[];if(et.tapKeySig&&tt.push(et.tapKeySig),et.tapScriptSig&&tt.push(...et.tapScriptSig.map(rt=>rt.signature)),!tt.length){const rt=getTapKeySigFromWithness(et.finalScriptWitness);rt&&tt.push(rt)}return tt}function getTapKeySigFromWithness(et){if(!et)return;const tt=et.slice(2);if(tt.length===64||tt.length===65)return tt}function _tapTreeToList(et,tt=[],rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");return et?(0,types_1.isTapleaf)(et)?(tt.push({depth:rt,leafVersion:et.version||bip341_1$1.LEAF_VERSION_TAPSCRIPT,script:et.output}),tt):(et[0]&&_tapTreeToList(et[0],tt,rt+1),et[1]&&_tapTreeToList(et[1],tt,rt+1),tt):[]}function instertLeavesInTree(et){let tt;for(const rt of et)if(tt=instertLeafInTree(rt,tt),!tt)throw new Error("No room left to insert tapleaf in tree");return tt}function instertLeafInTree(et,tt,rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");if(et.depth===rt)return tt?void 0:{output:et.script,version:et.leafVersion};if((0,types_1.isTapleaf)(tt))return;const nt=instertLeafInTree(et,tt&&tt[0],rt+1);if(nt)return[nt,tt&&tt[1]];const it=instertLeafInTree(et,tt&&tt[1],rt+1);if(it)return[tt&&tt[0],it]}function checkMixedTaprootAndNonTaprootInputFields(et,tt,rt){const nt=isTaprootInput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootInput(tt),st=et===tt&&isTaprootInput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt){const nt=isTaprootOutput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootOutput(tt),st=et===tt&&isTaprootOutput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkIfTapLeafInTree(et,tt,rt){if(tt.tapMerkleRoot){const nt=(tt.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot)),it=(et.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot));if(!nt||!it)throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}else if(et.tapMerkleRoot&&!(tt.tapLeafScript||[]).every(it=>isTapLeafInTree(it,et.tapMerkleRoot)))throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}function isTapLeafInTree(et,tt){if(!tt)return!0;const rt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(0,bip341_1$1.rootHashFromPath)(et.controlBlock,rt).equals(tt)}function sortSignatures(et,tt){const rt=(0,bip341_1$1.tapleafHash)({output:tt.script,version:tt.leafVersion});return(et.tapScriptSig||[]).filter(nt=>nt.leafHash.equals(rt)).map(nt=>addPubkeyPositionInScript(tt.script,nt)).sort((nt,it)=>it.positionInScript-nt.positionInScript).map(nt=>nt.signature)}function addPubkeyPositionInScript(et,tt){return Object.assign({positionInScript:(0,psbtutils_1$1.pubkeyPositionInScript)(tt.pubkey,et)},tt)}function findTapLeafToFinalize(et,tt,rt){if(!et.tapScriptSig||!et.tapScriptSig.length)throw new Error(`Can not finalize taproot input #${tt}. No tapleaf script signature provided.`);const nt=(et.tapLeafScript||[]).sort((it,st)=>it.controlBlock.length-st.controlBlock.length).find(it=>canFinalizeLeaf(it,et.tapScriptSig,rt));if(!nt)throw new Error(`Can not finalize taproot input #${tt}. Signature for tapleaf script not found.`);return nt}function canFinalizeLeaf(et,tt,rt){const nt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(!rt||rt.equals(nt))&&tt.find(st=>st.leafHash.equals(nt))!==void 0}function hasNonTaprootFields(et){return et&&!!(et.redeemScript||et.witnessScript||et.bip32Derivation&&et.bip32Derivation.length)}Object.defineProperty(psbt$1,"__esModule",{value:!0});psbt$1.Psbt=void 0;const bip174_1=psbt,varuint=varint,utils_1=utils,address_1=address,bufferutils_1=bufferutils,networks_1=networks$1,payments=payments$3,bip341_1=bip341,bscript=script,transaction_1=transaction,bip371_1=bip371,psbtutils_1=psbtutils,DEFAULT_OPTS={network:networks_1.bitcoin,maximumFeeRate:5e3};class Psbt{static fromBase64(tt,rt={}){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt={}){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt={}){const nt=bip174_1.Psbt.fromBuffer(tt,transactionFromBuffer),it=new Psbt(rt,nt);return checkTxForDupeIns(it.__CACHE.__TX,it.__CACHE),it}constructor(tt={},rt=new bip174_1.Psbt(new PsbtTransaction)){this.data=rt,this.opts=Object.assign({},DEFAULT_OPTS,tt),this.__CACHE={__NON_WITNESS_UTXO_TX_CACHE:[],__NON_WITNESS_UTXO_BUF_CACHE:[],__TX_IN_CACHE:{},__TX:this.data.globalMap.unsignedTx.tx,__UNSAFE_SIGN_NONSEGWIT:!1},this.data.inputs.length===0&&this.setVersion(2);const nt=(it,st,at,ot)=>Object.defineProperty(it,st,{enumerable:at,writable:ot});nt(this,"__CACHE",!1,!0),nt(this,"opts",!1,!0)}get inputCount(){return this.data.inputs.length}get version(){return this.__CACHE.__TX.version}set version(tt){this.setVersion(tt)}get locktime(){return this.__CACHE.__TX.locktime}set locktime(tt){this.setLocktime(tt)}get txInputs(){return this.__CACHE.__TX.ins.map(tt=>({hash:(0,bufferutils_1.cloneBuffer)(tt.hash),index:tt.index,sequence:tt.sequence}))}get txOutputs(){return this.__CACHE.__TX.outs.map(tt=>{let rt;try{rt=(0,address_1.fromOutputScript)(tt.script,this.opts.network)}catch{}return{script:(0,bufferutils_1.cloneBuffer)(tt.script),value:tt.value,address:rt}})}combine(...tt){return this.data.combine(...tt.map(rt=>rt.data)),this}clone(){const tt=Psbt.fromBuffer(this.data.toBuffer());return tt.opts=JSON.parse(JSON.stringify(this.opts)),tt}setMaximumFeeRate(tt){check32Bit(tt),this.opts.maximumFeeRate=tt}setVersion(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setVersion");const rt=this.__CACHE;return rt.__TX.version=tt,rt.__EXTRACTED_TX=void 0,this}setLocktime(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setLocktime");const rt=this.__CACHE;return rt.__TX.locktime=tt,rt.__EXTRACTED_TX=void 0,this}setInputSequence(tt,rt){check32Bit(rt),checkInputsForPartialSig(this.data.inputs,"setInputSequence");const nt=this.__CACHE;if(nt.__TX.ins.length<=tt)throw new Error("Input index too high");return nt.__TX.ins[tt].sequence=rt,nt.__EXTRACTED_TX=void 0,this}addInputs(tt){return tt.forEach(rt=>this.addInput(rt)),this}addInput(tt){if(arguments.length>1||!tt||tt.hash===void 0||tt.index===void 0)throw new Error("Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]");(0,bip371_1.checkTaprootInputFields)(tt,tt,"addInput"),checkInputsForPartialSig(this.data.inputs,"addInput"),tt.witnessScript&&checkInvalidP2WSH(tt.witnessScript);const rt=this.__CACHE;this.data.addInput(tt);const nt=rt.__TX.ins[rt.__TX.ins.length-1];checkTxInputCache(rt,nt);const it=this.data.inputs.length-1,st=this.data.inputs[it];return st.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,st,it),rt.__FEE=void 0,rt.__FEE_RATE=void 0,rt.__EXTRACTED_TX=void 0,this}addOutputs(tt){return tt.forEach(rt=>this.addOutput(rt)),this}addOutput(tt){if(arguments.length>1||!tt||tt.value===void 0||tt.address===void 0&&tt.script===void 0)throw new Error("Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]");checkInputsForPartialSig(this.data.inputs,"addOutput");const{address:rt}=tt;if(typeof rt=="string"){const{network:it}=this.opts,st=(0,address_1.toOutputScript)(rt,it);tt=Object.assign(tt,{script:st})}(0,bip371_1.checkTaprootOutputFields)(tt,tt,"addOutput");const nt=this.__CACHE;return this.data.addOutput(tt),nt.__FEE=void 0,nt.__FEE_RATE=void 0,nt.__EXTRACTED_TX=void 0,this}extractTransaction(tt){if(!this.data.inputs.every(isFinalized))throw new Error("Not finalized");const rt=this.__CACHE;if(tt||checkFees(this,rt,this.opts),rt.__EXTRACTED_TX)return rt.__EXTRACTED_TX;const nt=rt.__TX.clone();return inputFinalizeGetAmts(this.data.inputs,nt,rt,!0),nt}getFeeRate(){return getTxCacheValue("__FEE_RATE","fee rate",this.data.inputs,this.__CACHE)}getFee(){return getTxCacheValue("__FEE","fee",this.data.inputs,this.__CACHE)}finalizeAllInputs(){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).forEach(tt=>this.finalizeInput(tt)),this}finalizeInput(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(nt)?this._finalizeTaprootInput(tt,nt,void 0,rt):this._finalizeInput(tt,nt,rt)}finalizeTaprootInput(tt,rt,nt=bip371_1.tapScriptFinalizer){const it=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(it))return this._finalizeTaprootInput(tt,it,rt,nt);throw new Error(`Cannot finalize input #${tt}. Not Taproot.`)}_finalizeInput(tt,rt,nt=getFinalScripts){const{script:it,isP2SH:st,isP2WSH:at,isSegwit:ot}=getScriptFromInput(tt,rt,this.__CACHE);if(!it)throw new Error(`No script found for input #${tt}`);checkPartialSigSighashes(rt);const{finalScriptSig:lt,finalScriptWitness:ut}=nt(tt,rt,it,ot,st,at);if(lt&&this.data.updateInput(tt,{finalScriptSig:lt}),ut&&this.data.updateInput(tt,{finalScriptWitness:ut}),!lt&&!ut)throw new Error(`Unknown error finalizing input #${tt}`);return this.data.clearFinalizedInput(tt),this}_finalizeTaprootInput(tt,rt,nt,it=bip371_1.tapScriptFinalizer){if(!rt.witnessUtxo)throw new Error(`Cannot finalize input #${tt}. Missing withness utxo.`);if(rt.tapKeySig){const st=payments.p2tr({output:rt.witnessUtxo.script,signature:rt.tapKeySig}),at=(0,psbtutils_1.witnessStackToScriptWitness)(st.witness);this.data.updateInput(tt,{finalScriptWitness:at})}else{const{finalScriptWitness:st}=it(tt,rt,nt);this.data.updateInput(tt,{finalScriptWitness:st})}return this.data.clearFinalizedInput(tt),this}getInputType(tt){const rt=(0,utils_1.checkForInput)(this.data.inputs,tt),nt=getScriptFromUtxo(tt,rt,this.__CACHE),it=getMeaningfulScript(nt,tt,"input",rt.redeemScript||redeemFromFinalScriptSig(rt.finalScriptSig),rt.witnessScript||redeemFromFinalWitnessScript(rt.finalScriptWitness)),st=it.type==="raw"?"":it.type+"-",at=classifyScript(it.meaningfulScript);return st+at}inputHasPubkey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return pubkeyInInput(rt,nt,tt,this.__CACHE)}inputHasHDKey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}outputHasPubkey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt);return pubkeyInOutput(rt,nt,tt,this.__CACHE)}outputHasHDKey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}validateSignaturesOfAllInputs(tt){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).map(nt=>this.validateSignaturesOfInput(nt,tt)).reduce((nt,it)=>it===!0&&nt,!0)}validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt];return(0,bip371_1.isTaprootInput)(it)?this.validateSignaturesOfTaprootInput(tt,rt,nt):this._validateSignaturesOfInput(tt,rt,nt)}_validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).partialSig;if(!it||!st||st.length<1)throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");const at=nt?st.filter(bt=>bt.pubkey.equals(nt)):st;if(at.length<1)throw new Error("No signatures for this pubkey");const ot=[];let lt,ut,dt;for(const bt of at){const gt=bscript.signature.decode(bt.signature),{hash:kt,script:pt}=dt!==gt.hashType?getHashForSig(tt,Object.assign({},it,{sighashType:gt.hashType}),this.__CACHE,!0):{hash:lt,script:ut};dt=gt.hashType,lt=kt,ut=pt,checkScriptForPubkey(bt.pubkey,pt,"verify"),ot.push(rt(bt.pubkey,kt,gt.signature))}return ot.every(bt=>bt===!0)}validateSignaturesOfTaprootInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).tapKeySig,at=(it||{}).tapScriptSig;if(!it&&!st&&!(at&&!at.length))throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");nt=nt&&(0,bip371_1.toXOnly)(nt);const ot=nt?getTaprootHashesForSig(tt,it,this.data.inputs,nt,this.__CACHE):getAllTaprootHashesForSig(tt,it,this.data.inputs,this.__CACHE);if(!ot.length)throw new Error("No signatures for this pubkey");const lt=ot.find(dt=>!dt.leafHash);let ut=0;if(st&<){if(!rt(lt.pubkey,lt.hash,trimTaprootSig(st)))return!1;ut++}if(at)for(const dt of at){const bt=ot.find(gt=>dt.pubkey.equals(gt.pubkey));if(bt){if(!rt(dt.pubkey,bt.hash,trimTaprootSig(dt.signature)))return!1;ut++}}return ut>0}signAllInputsHD(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){if(!tt||!tt.publicKey||!tt.fingerprint)throw new Error("Need HDSigner to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInputHD(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsHDAsync(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((nt,it)=>{if(!tt||!tt.publicKey||!tt.fingerprint)return it(new Error("Need HDSigner to sign input"));const st=[],at=[];for(const ot of range(this.data.inputs.length))at.push(this.signInputHDAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInputHD(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){if(!rt||!rt.publicKey||!rt.fingerprint)throw new Error("Need HDSigner to sign input");return getSignersFromHD(tt,this.data.inputs,rt).forEach(st=>this.signInput(tt,st,nt)),this}signInputHDAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((it,st)=>{if(!rt||!rt.publicKey||!rt.fingerprint)return st(new Error("Need HDSigner to sign input"));const ot=getSignersFromHD(tt,this.data.inputs,rt).map(lt=>this.signInputAsync(tt,lt,nt));return Promise.all(ot).then(()=>{it()}).catch(st)})}signAllInputs(tt,rt){if(!tt||!tt.publicKey)throw new Error("Need Signer to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInput(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsAsync(tt,rt){return new Promise((nt,it)=>{if(!tt||!tt.publicKey)return it(new Error("Need Signer to sign input"));const st=[],at=[];for(const[ot]of this.data.inputs.entries())at.push(this.signInputAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInput(tt,rt,nt){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInput(tt,it,rt,void 0,nt):this._signInput(tt,rt,nt)}signTaprootInput(tt,rt,nt,it){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInput(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)}_signInput(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt),at=[{pubkey:rt.publicKey,signature:bscript.signature.encode(rt.sign(it),st)}];return this.data.updateInput(tt,{partialSig:at}),this}_signTaprootInput(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=at.filter(ut=>!ut.leafHash).map(ut=>(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType))[0],lt=at.filter(ut=>!!ut.leafHash).map(ut=>({pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType),leafHash:ut.leafHash}));return ot&&this.data.updateInput(tt,{tapKeySig:ot}),lt.length&&this.data.updateInput(tt,{tapScriptSig:lt}),this}signInputAsync(tt,rt,nt){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInputAsync(tt,it,rt,void 0,nt):this._signInputAsync(tt,rt,nt)})}signTaprootInputAsync(tt,rt,nt,it){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInputAsync(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)})}_signInputAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt);return Promise.resolve(rt.sign(it)).then(at=>{const ot=[{pubkey:rt.publicKey,signature:bscript.signature.encode(at,st)}];this.data.updateInput(tt,{partialSig:ot})})}async _signTaprootInputAsync(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=[],lt=at.filter(dt=>!dt.leafHash)[0];if(lt){const dt=Promise.resolve(nt.signSchnorr(lt.hash)).then(bt=>({tapKeySig:(0,bip371_1.serializeTaprootSignature)(bt,rt.sighashType)}));ot.push(dt)}const ut=at.filter(dt=>!!dt.leafHash);if(ut.length){const dt=ut.map(bt=>Promise.resolve(nt.signSchnorr(bt.hash)).then(gt=>({tapScriptSig:[{pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(gt,rt.sighashType),leafHash:bt.leafHash}]})));ot.push(...dt)}return Promise.all(ot).then(dt=>{dt.forEach(bt=>this.data.updateInput(tt,bt))})}checkTaprootHashesForSig(tt,rt,nt,it,st){if(typeof nt.signSchnorr!="function")throw new Error(`Need Schnorr Signer to sign taproot input #${tt}.`);const at=getTaprootHashesForSig(tt,rt,this.data.inputs,nt.publicKey,this.__CACHE,it,st);if(!at||!at.length)throw new Error(`Can not sign for input #${tt} with the key ${nt.publicKey.toString("hex")}`);return at}toBuffer(){return checkCache(this.__CACHE),this.data.toBuffer()}toHex(){return checkCache(this.__CACHE),this.data.toHex()}toBase64(){return checkCache(this.__CACHE),this.data.toBase64()}updateGlobal(tt){return this.data.updateGlobal(tt),this}updateInput(tt,rt){return rt.witnessScript&&checkInvalidP2WSH(rt.witnessScript),(0,bip371_1.checkTaprootInputFields)(this.data.inputs[tt],rt,"updateInput"),this.data.updateInput(tt,rt),rt.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,this.data.inputs[tt],tt),this}updateOutput(tt,rt){const nt=this.data.outputs[tt];return(0,bip371_1.checkTaprootOutputFields)(nt,rt,"updateOutput"),this.data.updateOutput(tt,rt),this}addUnknownKeyValToGlobal(tt){return this.data.addUnknownKeyValToGlobal(tt),this}addUnknownKeyValToInput(tt,rt){return this.data.addUnknownKeyValToInput(tt,rt),this}addUnknownKeyValToOutput(tt,rt){return this.data.addUnknownKeyValToOutput(tt,rt),this}clearFinalizedInput(tt){return this.data.clearFinalizedInput(tt),this}}psbt$1.Psbt=Psbt;const transactionFromBuffer=et=>new PsbtTransaction(et);class PsbtTransaction{constructor(tt=Buffer.from([2,0,0,0,0,0,0,0,0,0])){this.tx=transaction_1.Transaction.fromBuffer(tt),checkTxEmpty(this.tx),Object.defineProperty(this,"tx",{enumerable:!1,writable:!0})}getInputOutputCounts(){return{inputCount:this.tx.ins.length,outputCount:this.tx.outs.length}}addInput(tt){if(tt.hash===void 0||tt.index===void 0||!Buffer.isBuffer(tt.hash)&&typeof tt.hash!="string"||typeof tt.index!="number")throw new Error("Error adding input.");const rt=typeof tt.hash=="string"?(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash,"hex")):tt.hash;this.tx.addInput(rt,tt.index,tt.sequence)}addOutput(tt){if(tt.script===void 0||tt.value===void 0||!Buffer.isBuffer(tt.script)||typeof tt.value!="number")throw new Error("Error adding output.");this.tx.addOutput(tt.script,tt.value)}toBuffer(){return this.tx.toBuffer()}}function canFinalize(et,tt,rt){switch(rt){case"pubkey":case"pubkeyhash":case"witnesspubkeyhash":return hasSigs(1,et.partialSig);case"multisig":const nt=payments.p2ms({output:tt});return hasSigs(nt.m,et.partialSig,nt.pubkeys);default:return!1}}function checkCache(et){if(et.__UNSAFE_SIGN_NONSEGWIT!==!1)throw new Error("Not BIP174 compliant, can not export")}function hasSigs(et,tt,rt){if(!tt)return!1;let nt;if(rt?nt=rt.map(it=>{const st=compressPubkey(it);return tt.find(at=>at.pubkey.equals(st))}).filter(it=>!!it):nt=tt,nt.length>et)throw new Error("Too many signatures");return nt.length===et}function isFinalized(et){return!!et.finalScriptSig||!!et.finalScriptWitness}function bip32DerivationIsMine(et){return tt=>!(!tt.masterFingerprint.equals(et.fingerprint)||!et.derivePath(tt.path).publicKey.equals(tt.pubkey))}function check32Bit(et){if(typeof et!="number"||et!==Math.floor(et)||et>4294967295||et<0)throw new Error("Invalid 32 bit integer")}function checkFees(et,tt,rt){const nt=tt.__FEE_RATE||et.getFeeRate(),it=tt.__EXTRACTED_TX.virtualSize(),st=nt*it;if(nt>=rt.maximumFeeRate)throw new Error(`Warning: You are paying around ${(st/1e8).toFixed(8)} in fees, which is ${nt} satoshi per byte for a transaction with a VSize of ${it} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`)}function checkInputsForPartialSig(et,tt){et.forEach(rt=>{if((0,bip371_1.isTaprootInput)(rt)?(0,bip371_1.checkTaprootInputForSigs)(rt,tt):(0,psbtutils_1.checkInputForSig)(rt,tt))throw new Error("Can not modify transaction, signatures exist.")})}function checkPartialSigSighashes(et){if(!et.sighashType||!et.partialSig)return;const{partialSig:tt,sighashType:rt}=et;tt.forEach(nt=>{const{hashType:it}=bscript.signature.decode(nt.signature);if(rt!==it)throw new Error("Signature sighash does not match input sighash type")})}function checkScriptForPubkey(et,tt,rt){if(!(0,psbtutils_1.pubkeyInScript)(et,tt))throw new Error(`Can not ${rt} for this input with the key ${et.toString("hex")}`)}function checkTxEmpty(et){if(!et.ins.every(rt=>rt.script&&rt.script.length===0&&rt.witness&&rt.witness.length===0))throw new Error("Format Error: Transaction ScriptSigs are not empty")}function checkTxForDupeIns(et,tt){et.ins.forEach(rt=>{checkTxInputCache(tt,rt)})}function checkTxInputCache(et,tt){const rt=(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash)).toString("hex")+":"+tt.index;if(et.__TX_IN_CACHE[rt])throw new Error("Duplicate input detected.");et.__TX_IN_CACHE[rt]=1}function scriptCheckerFactory(et,tt){return(rt,nt,it,st)=>{const at=et({redeem:{output:it}}).output;if(!nt.equals(at))throw new Error(`${tt} for ${st} #${rt} doesn't match the scriptPubKey in the prevout`)}}const checkRedeemScript=scriptCheckerFactory(payments.p2sh,"Redeem script"),checkWitnessScript=scriptCheckerFactory(payments.p2wsh,"Witness script");function getTxCacheValue(et,tt,rt,nt){if(!rt.every(isFinalized))throw new Error(`PSBT must be finalized to calculate ${tt}`);if(et==="__FEE_RATE"&&nt.__FEE_RATE)return nt.__FEE_RATE;if(et==="__FEE"&&nt.__FEE)return nt.__FEE;let it,st=!0;if(nt.__EXTRACTED_TX?(it=nt.__EXTRACTED_TX,st=!1):it=nt.__TX.clone(),inputFinalizeGetAmts(rt,it,nt,st),et==="__FEE_RATE")return nt.__FEE_RATE;if(et==="__FEE")return nt.__FEE}function getFinalScripts(et,tt,rt,nt,it,st){const at=classifyScript(rt);if(!canFinalize(tt,rt,at))throw new Error(`Can not finalize input #${et}`);return prepareFinalScripts(rt,at,tt.partialSig,nt,it,st)}function prepareFinalScripts(et,tt,rt,nt,it,st){let at,ot;const lt=getPayment(et,tt,rt),ut=st?payments.p2wsh({redeem:lt}):null,dt=it?payments.p2sh({redeem:ut||lt}):null;return nt?(ut?ot=(0,psbtutils_1.witnessStackToScriptWitness)(ut.witness):ot=(0,psbtutils_1.witnessStackToScriptWitness)(lt.witness),dt&&(at=dt.input)):dt?at=dt.input:at=lt.input,{finalScriptSig:at,finalScriptWitness:ot}}function getHashAndSighashType(et,tt,rt,nt,it){const st=(0,utils_1.checkForInput)(et,tt),{hash:at,sighashType:ot,script:lt}=getHashForSig(tt,st,nt,!1,it);return checkScriptForPubkey(rt,lt,"sign"),{hash:at,sighashType:ot}}function getHashForSig(et,tt,rt,nt,it){const st=rt.__TX,at=tt.sighashType||transaction_1.Transaction.SIGHASH_ALL;checkSighashTypeAllowed(at,it);let ot,lt;if(tt.nonWitnessUtxo){const bt=nonWitnessUtxoTxFromCache(rt,tt,et),gt=st.ins[et].hash,kt=bt.getHash();if(!gt.equals(kt))throw new Error(`Non-witness UTXO hash for input #${et} doesn't match the hash specified in the prevout`);const pt=st.ins[et].index;lt=bt.outs[pt]}else if(tt.witnessUtxo)lt=tt.witnessUtxo;else throw new Error("Need a Utxo input item for signing");const{meaningfulScript:ut,type:dt}=getMeaningfulScript(lt.script,et,"input",tt.redeemScript,tt.witnessScript);if(["p2sh-p2wsh","p2wsh"].indexOf(dt)>=0)ot=st.hashForWitnessV0(et,ut,lt.value,at);else if((0,psbtutils_1.isP2WPKH)(ut)){const bt=payments.p2pkh({hash:ut.slice(2)}).output;ot=st.hashForWitnessV0(et,bt,lt.value,at)}else{if(tt.nonWitnessUtxo===void 0&&rt.__UNSAFE_SIGN_NONSEGWIT===!1)throw new Error(`Input #${et} has witnessUtxo but non-segwit script: ${ut.toString("hex")}`);!nt&&rt.__UNSAFE_SIGN_NONSEGWIT!==!1&&console.warn(`Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as Psbt's predecesor (TransactionBuilder - now removed) when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant. +`,bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};var payments$3={},embed={},script={},bip66$1={};Object.defineProperty(bip66$1,"__esModule",{value:!0});bip66$1.encode=bip66$1.decode=bip66$1.check=void 0;function check$d(et){if(et.length<8||et.length>72||et[0]!==48||et[1]!==et.length-2||et[2]!==2)return!1;const tt=et[3];if(tt===0||5+tt>=et.length||et[4+tt]!==2)return!1;const rt=et[5+tt];return!(rt===0||6+tt+rt!==et.length||et[4]&128||tt>1&&et[4]===0&&!(et[5]&128)||et[tt+6]&128||rt>1&&et[tt+6]===0&&!(et[tt+7]&128))}bip66$1.check=check$d;function decode$m(et){if(et.length<8)throw new Error("DER sequence length is too short");if(et.length>72)throw new Error("DER sequence length is too long");if(et[0]!==48)throw new Error("Expected DER sequence");if(et[1]!==et.length-2)throw new Error("DER sequence length is invalid");if(et[2]!==2)throw new Error("Expected DER integer");const tt=et[3];if(tt===0)throw new Error("R length is zero");if(5+tt>=et.length)throw new Error("R length is too long");if(et[4+tt]!==2)throw new Error("Expected DER integer (2)");const rt=et[5+tt];if(rt===0)throw new Error("S length is zero");if(6+tt+rt!==et.length)throw new Error("S length is invalid");if(et[4]&128)throw new Error("R value is negative");if(tt>1&&et[4]===0&&!(et[5]&128))throw new Error("R value excessively padded");if(et[tt+6]&128)throw new Error("S value is negative");if(rt>1&&et[tt+6]===0&&!(et[tt+7]&128))throw new Error("S value excessively padded");return{r:et.slice(4,4+tt),s:et.slice(6+tt)}}bip66$1.decode=decode$m;function encode$n(et,tt){const rt=et.length,nt=tt.length;if(rt===0)throw new Error("R length is zero");if(nt===0)throw new Error("S length is zero");if(rt>33)throw new Error("R length is too long");if(nt>33)throw new Error("S length is too long");if(et[0]&128)throw new Error("R value is negative");if(tt[0]&128)throw new Error("S value is negative");if(rt>1&&et[0]===0&&!(et[1]&128))throw new Error("R value excessively padded");if(nt>1&&tt[0]===0&&!(tt[1]&128))throw new Error("S value excessively padded");const it=Buffer.allocUnsafe(6+rt+nt);return it[0]=48,it[1]=it.length-2,it[2]=2,it[3]=et.length,et.copy(it,4),it[4+rt]=2,it[5+rt]=tt.length,tt.copy(it,6+rt),it}bip66$1.encode=encode$n;var ops={};Object.defineProperty(ops,"__esModule",{value:!0});ops.REVERSE_OPS=ops.OPS=void 0;const OPS$8={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_CHECKSIGADD:186,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};ops.OPS=OPS$8;const REVERSE_OPS={};ops.REVERSE_OPS=REVERSE_OPS;for(const et of Object.keys(OPS$8)){const tt=OPS$8[et];REVERSE_OPS[tt]=et}var push_data={};Object.defineProperty(push_data,"__esModule",{value:!0});push_data.decode=push_data.encode=push_data.encodingLength=void 0;const ops_1=ops;function encodingLength$2(et){return etet.length)return null;nt=et.readUInt8(tt+1),it=2}else if(rt===ops_1.OPS.OP_PUSHDATA2){if(tt+3>et.length)return null;nt=et.readUInt16LE(tt+1),it=3}else{if(tt+5>et.length)return null;if(rt!==ops_1.OPS.OP_PUSHDATA4)throw new Error("Unexpected opcode");nt=et.readUInt32LE(tt+1),it=5}return{opcode:rt,number:nt,size:it}}push_data.decode=decode$l;var script_number={};Object.defineProperty(script_number,"__esModule",{value:!0});script_number.encode=script_number.decode=void 0;function decode$k(et,tt,rt){tt=tt||4,rt=rt===void 0?!0:rt;const nt=et.length;if(nt===0)return 0;if(nt>tt)throw new TypeError("Script number overflow");if(rt&&!(et[nt-1]&127)&&(nt<=1||!(et[nt-2]&128)))throw new Error("Non-minimally encoded script number");if(nt===5){const st=et.readUInt32LE(0),at=et.readUInt8(4);return at&128?-((at&-129)*4294967296+st):at*4294967296+st}let it=0;for(let st=0;st2147483647?5:et>8388607?4:et>32767?3:et>127?2:et>0?1:0}function encode$l(et){let tt=Math.abs(et);const rt=scriptNumSize(tt),nt=Buffer.allocUnsafe(rt),it=et<0;for(let st=0;st>=8;return nt[rt-1]&128?nt.writeUInt8(it?128:0,rt-1):it&&(nt[rt-1]|=128),nt}script_number.encode=encode$l;var script_signature={},types$6={},types$5={Array:function(et){return et!=null&&et.constructor===Array},Boolean:function(et){return typeof et=="boolean"},Function:function(et){return typeof et=="function"},Nil:function(et){return et==null},Number:function(et){return typeof et=="number"},Object:function(et){return typeof et=="object"},String:function(et){return typeof et=="string"},"":function(){return!0}};types$5.Null=types$5.Nil;for(var typeName$1 in types$5)types$5[typeName$1].toJSON=(function(et){return et}).bind(null,typeName$1);var native$1=types$5,native=native$1;function getTypeName(et){return et.name||et.toString().match(/function (.*?)\s*\(/)[1]}function getValueTypeName$1(et){return native.Nil(et)?"":getTypeName(et.constructor)}function getValue$3(et){return native.Function(et)?"":native.String(et)?JSON.stringify(et):et&&native.Object(et)?"":et}function captureStackTrace(et,tt){Error.captureStackTrace&&Error.captureStackTrace(et,tt)}function tfJSON$1(et){return native.Function(et)?et.toJSON?et.toJSON():getTypeName(et):native.Array(et)?"Array":et&&native.Object(et)?"Object":et!==void 0?et:""}function tfErrorString(et,tt,rt){var nt=getValue$3(tt);return"Expected "+tfJSON$1(et)+", got"+(rt!==""?" "+rt:"")+(nt!==""?" "+nt:"")}function TfTypeError$1(et,tt,rt){rt=rt||getValueTypeName$1(tt),this.message=tfErrorString(et,tt,rt),captureStackTrace(this,TfTypeError$1),this.__type=et,this.__value=tt,this.__valueTypeName=rt}TfTypeError$1.prototype=Object.create(Error.prototype);TfTypeError$1.prototype.constructor=TfTypeError$1;function tfPropertyErrorString(et,tt,rt,nt,it){var st='" of type ';return tt==="key"&&(st='" with key type '),tfErrorString('property "'+tfJSON$1(rt)+st+tfJSON$1(et),nt,it)}function TfPropertyTypeError$1(et,tt,rt,nt,it){et?(it=it||getValueTypeName$1(nt),this.message=tfPropertyErrorString(et,rt,tt,nt,it)):this.message='Unexpected property "'+tt+'"',captureStackTrace(this,TfTypeError$1),this.__label=rt,this.__property=tt,this.__type=et,this.__value=nt,this.__valueTypeName=it}TfPropertyTypeError$1.prototype=Object.create(Error.prototype);TfPropertyTypeError$1.prototype.constructor=TfTypeError$1;function tfCustomError(et,tt){return new TfTypeError$1(et,{},tt)}function tfSubError$1(et,tt,rt){return et instanceof TfPropertyTypeError$1?(tt=tt+"."+et.__property,et=new TfPropertyTypeError$1(et.__type,tt,et.__label,et.__value,et.__valueTypeName)):et instanceof TfTypeError$1&&(et=new TfPropertyTypeError$1(et.__type,tt,rt,et.__value,et.__valueTypeName)),captureStackTrace(et),et}var errors$1={TfTypeError:TfTypeError$1,TfPropertyTypeError:TfPropertyTypeError$1,tfCustomError,tfSubError:tfSubError$1,tfJSON:tfJSON$1,getValueTypeName:getValueTypeName$1},extra,hasRequiredExtra;function requireExtra(){if(hasRequiredExtra)return extra;hasRequiredExtra=1;var et=native$1,tt=errors$1;function rt(Lt){return Buffer.isBuffer(Lt)}function nt(Lt){return typeof Lt=="string"&&/^([0-9a-f]{2})+$/i.test(Lt)}function it(Lt,zt){var Ht=Lt.toJSON();function Wt(lr){if(!Lt(lr))return!1;if(lr.length===zt)return!0;throw tt.tfCustomError(Ht+"(Length: "+zt+")",Ht+"(Length: "+lr.length+")")}return Wt.toJSON=function(){return Ht},Wt}var st=it.bind(null,et.Array),at=it.bind(null,rt),ot=it.bind(null,nt),lt=it.bind(null,et.String);function ut(Lt,zt,Ht){Ht=Ht||et.Number;function Wt(lr,qt){return Ht(lr,qt)&&lr>Lt&&lr>24===Lt}function kt(Lt){return Lt<<16>>16===Lt}function pt(Lt){return(Lt|0)===Lt}function yt(Lt){return typeof Lt=="number"&&Lt>=-dt&&Lt<=dt&&Math.floor(Lt)===Lt}function $t(Lt){return(Lt&255)===Lt}function mt(Lt){return(Lt&65535)===Lt}function wt(Lt){return Lt>>>0===Lt}function St(Lt){return typeof Lt=="number"&&Lt>=0&&Lt<=dt&&Math.floor(Lt)===Lt}var Bt={ArrayN:st,Buffer:rt,BufferN:at,Finite:bt,Hex:nt,HexN:ot,Int8:gt,Int16:kt,Int32:pt,Int53:yt,Range:ut,StringN:lt,UInt8:$t,UInt16:mt,UInt32:wt,UInt53:St};for(var Ft in Bt)Bt[Ft].toJSON=(function(Lt){return Lt}).bind(null,Ft);return extra=Bt,extra}var ERRORS=errors$1,NATIVE=native$1,tfJSON=ERRORS.tfJSON,TfTypeError=ERRORS.TfTypeError,TfPropertyTypeError=ERRORS.TfPropertyTypeError,tfSubError=ERRORS.tfSubError,getValueTypeName=ERRORS.getValueTypeName,TYPES={arrayOf:function(tt,rt){tt=compile$1(tt),rt=rt||{};function nt(it,st){return!NATIVE.Array(it)||NATIVE.Nil(it)||rt.minLength!==void 0&&it.lengthrt.maxLength||rt.length!==void 0&&it.length!==rt.length?!1:it.every(function(at,ot){try{return typeforce$4(tt,at,st)}catch(lt){throw tfSubError(lt,ot)}})}return nt.toJSON=function(){var it="["+tfJSON(tt)+"]";return rt.length!==void 0?it+="{"+rt.length+"}":(rt.minLength!==void 0||rt.maxLength!==void 0)&&(it+="{"+(rt.minLength===void 0?0:rt.minLength)+","+(rt.maxLength===void 0?1/0:rt.maxLength)+"}"),it},nt},maybe:function et(tt){tt=compile$1(tt);function rt(nt,it){return NATIVE.Nil(nt)||tt(nt,it,et)}return rt.toJSON=function(){return"?"+tfJSON(tt)},rt},map:function(tt,rt){tt=compile$1(tt),rt&&(rt=compile$1(rt));function nt(it,st){if(!NATIVE.Object(it)||NATIVE.Nil(it))return!1;for(var at in it){try{rt&&typeforce$4(rt,at,st)}catch(lt){throw tfSubError(lt,at,"key")}try{var ot=it[at];typeforce$4(tt,ot,st)}catch(lt){throw tfSubError(lt,at)}}return!0}return rt?nt.toJSON=function(){return"{"+tfJSON(rt)+": "+tfJSON(tt)+"}"}:nt.toJSON=function(){return"{"+tfJSON(tt)+"}"},nt},object:function(tt){var rt={};for(var nt in tt)rt[nt]=compile$1(tt[nt]);function it(st,at){if(!NATIVE.Object(st)||NATIVE.Nil(st))return!1;var ot;try{for(ot in rt){var lt=rt[ot],ut=st[ot];typeforce$4(lt,ut,at)}}catch(dt){throw tfSubError(dt,ot)}if(at){for(ot in st)if(!rt[ot])throw new TfPropertyTypeError(void 0,ot)}return!0}return it.toJSON=function(){return tfJSON(rt)},it},anyOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.some(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join("|")},rt},allOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.every(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join(" & ")},rt},quacksLike:function(tt){function rt(nt){return tt===getValueTypeName(nt)}return rt.toJSON=function(){return tt},rt},tuple:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return NATIVE.Nil(nt)||NATIVE.Nil(nt.length)||it&&nt.length!==tt.length?!1:tt.every(function(st,at){try{return typeforce$4(st,nt[at],it)}catch(ot){throw tfSubError(ot,at)}})}return rt.toJSON=function(){return"("+tt.map(tfJSON).join(", ")+")"},rt},value:function(tt){function rt(nt){return nt===tt}return rt.toJSON=function(){return tt},rt}};TYPES.oneOf=TYPES.anyOf;function compile$1(et){if(NATIVE.String(et))return et[0]==="?"?TYPES.maybe(et.slice(1)):NATIVE[et]||TYPES.quacksLike(et);if(et&&NATIVE.Object(et)){if(NATIVE.Array(et)){if(et.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return TYPES.arrayOf(et[0])}return TYPES.object(et)}else if(NATIVE.Function(et))return et;return TYPES.value(et)}function typeforce$4(et,tt,rt,nt){if(NATIVE.Function(et)){if(et(tt,rt))return!0;throw new TfTypeError(nt||et,tt)}return typeforce$4(compile$1(et),tt,rt)}for(var typeName in NATIVE)typeforce$4[typeName]=NATIVE[typeName];for(typeName in TYPES)typeforce$4[typeName]=TYPES[typeName];var EXTRA=requireExtra();for(typeName in EXTRA)typeforce$4[typeName]=EXTRA[typeName];typeforce$4.compile=compile$1;typeforce$4.TfTypeError=TfTypeError;typeforce$4.TfPropertyTypeError=TfPropertyTypeError;var typeforce_1=typeforce$4;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.oneOf=et.Null=et.BufferN=et.Function=et.UInt32=et.UInt8=et.tuple=et.maybe=et.Hex=et.Buffer=et.String=et.Boolean=et.Array=et.Number=et.Hash256bit=et.Hash160bit=et.Buffer256bit=et.isTaptree=et.isTapleaf=et.TAPLEAF_VERSION_MASK=et.Network=et.ECPoint=et.Satoshi=et.Signer=et.BIP32Path=et.UInt31=et.isPoint=et.typeforce=void 0;const tt=buffer$2;et.typeforce=typeforce_1;const rt=tt.Buffer.alloc(32,0),nt=tt.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");function it(kt){if(!tt.Buffer.isBuffer(kt)||kt.length<33)return!1;const pt=kt[0],yt=kt.slice(1,33);if(yt.compare(rt)===0||yt.compare(nt)>=0)return!1;if((pt===2||pt===3)&&kt.length===33)return!0;const $t=kt.slice(33);return $t.compare(rt)===0||$t.compare(nt)>=0?!1:pt===4&&kt.length===65}et.isPoint=it;const st=Math.pow(2,31)-1;function at(kt){return et.typeforce.UInt32(kt)&&kt<=st}et.UInt31=at;function ot(kt){return et.typeforce.String(kt)&&!!kt.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}et.BIP32Path=ot,ot.toJSON=()=>"BIP32 derivation path";function lt(kt){return(et.typeforce.Buffer(kt.publicKey)||typeof kt.getPublicKey=="function")&&typeof kt.sign=="function"}et.Signer=lt;const ut=21*1e14;function dt(kt){return et.typeforce.UInt53(kt)&&kt<=ut}et.Satoshi=dt,et.ECPoint=et.typeforce.quacksLike("Point"),et.Network=et.typeforce.compile({messagePrefix:et.typeforce.oneOf(et.typeforce.Buffer,et.typeforce.String),bip32:{public:et.typeforce.UInt32,private:et.typeforce.UInt32},pubKeyHash:et.typeforce.UInt8,scriptHash:et.typeforce.UInt8,wif:et.typeforce.UInt8}),et.TAPLEAF_VERSION_MASK=254;function bt(kt){return!kt||!("output"in kt)||!tt.Buffer.isBuffer(kt.output)?!1:kt.version!==void 0?(kt.version&et.TAPLEAF_VERSION_MASK)===kt.version:!0}et.isTapleaf=bt;function gt(kt){return(0,et.Array)(kt)?kt.length!==2?!1:kt.every(pt=>gt(pt)):bt(kt)}et.isTaptree=gt,et.Buffer256bit=et.typeforce.BufferN(32),et.Hash160bit=et.typeforce.BufferN(20),et.Hash256bit=et.typeforce.BufferN(32),et.Number=et.typeforce.Number,et.Array=et.typeforce.Array,et.Boolean=et.typeforce.Boolean,et.String=et.typeforce.String,et.Buffer=et.typeforce.Buffer,et.Hex=et.typeforce.Hex,et.maybe=et.typeforce.maybe,et.tuple=et.typeforce.tuple,et.UInt8=et.typeforce.UInt8,et.UInt32=et.typeforce.UInt32,et.Function=et.typeforce.Function,et.BufferN=et.typeforce.BufferN,et.Null=et.typeforce.Null,et.oneOf=et.typeforce.oneOf})(types$6);Object.defineProperty(script_signature,"__esModule",{value:!0});script_signature.encode=script_signature.decode=void 0;const bip66=bip66$1,types$4=types$6,{typeforce:typeforce$3}=types$4,ZERO$1=Buffer.alloc(1,0);function toDER(et){let tt=0;for(;et[tt]===0;)++tt;return tt===et.length?ZERO$1:(et=et.slice(tt),et[0]&128?Buffer.concat([ZERO$1,et],1+et.length):et)}function fromDER(et){et[0]===0&&(et=et.slice(1));const tt=Buffer.alloc(32,0),rt=Math.max(0,32-et.length);return et.copy(tt,rt),tt}function decode$j(et){const tt=et.readUInt8(et.length-1),rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=bip66.decode(et.slice(0,-1)),it=fromDER(nt.r),st=fromDER(nt.s);return{signature:Buffer.concat([it,st],64),hashType:tt}}script_signature.decode=decode$j;function encode$k(et,tt){typeforce$3({signature:types$4.BufferN(64),hashType:types$4.UInt8},{signature:et,hashType:tt});const rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=Buffer.allocUnsafe(1);nt.writeUInt8(tt,0);const it=toDER(et.slice(0,32)),st=toDER(et.slice(32,64));return Buffer.concat([bip66.encode(it,st),nt])}script_signature.encode=encode$k;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.signature=et.number=et.isCanonicalScriptSignature=et.isDefinedHashType=et.isCanonicalPubKey=et.toStack=et.fromASM=et.toASM=et.decompile=et.compile=et.countNonPushOnlyOPs=et.isPushOnly=et.OPS=void 0;const tt=bip66$1,rt=ops;Object.defineProperty(et,"OPS",{enumerable:!0,get:function(){return rt.OPS}});const nt=push_data,it=script_number,st=script_signature,at=types$6,{typeforce:ot}=at,lt=rt.OPS.OP_RESERVED;function ut(Wt){return at.Number(Wt)&&(Wt===rt.OPS.OP_0||Wt>=rt.OPS.OP_1&&Wt<=rt.OPS.OP_16||Wt===rt.OPS.OP_1NEGATE)}function dt(Wt){return at.Buffer(Wt)||ut(Wt)}function bt(Wt){return at.Array(Wt)&&Wt.every(dt)}et.isPushOnly=bt;function gt(Wt){return Wt.length-Wt.filter(dt).length}et.countNonPushOnlyOPs=gt;function kt(Wt){if(Wt.length===0)return rt.OPS.OP_0;if(Wt.length===1){if(Wt[0]>=1&&Wt[0]<=16)return lt+Wt[0];if(Wt[0]===129)return rt.OPS.OP_1NEGATE}}function pt(Wt){return Buffer.isBuffer(Wt)}function yt(Wt){return at.Array(Wt)}function $t(Wt){return Buffer.isBuffer(Wt)}function mt(Wt){if(pt(Wt))return Wt;ot(at.Array,Wt);const lr=Wt.reduce((Mt,ht)=>$t(ht)?ht.length===1&&kt(ht)!==void 0?Mt+1:Mt+nt.encodingLength(ht.length)+ht.length:Mt+1,0),qt=Buffer.allocUnsafe(lr);let Ot=0;if(Wt.forEach(Mt=>{if($t(Mt)){const ht=kt(Mt);if(ht!==void 0){qt.writeUInt8(ht,Ot),Ot+=1;return}Ot+=nt.encode(qt,Mt.length,Ot),Mt.copy(qt,Ot),Ot+=Mt.length}else qt.writeUInt8(Mt,Ot),Ot+=1}),Ot!==qt.length)throw new Error("Could not decode chunks");return qt}et.compile=mt;function wt(Wt){if(yt(Wt))return Wt;ot(at.Buffer,Wt);const lr=[];let qt=0;for(;qtrt.OPS.OP_0&&Ot<=rt.OPS.OP_PUSHDATA4){const Mt=nt.decode(Wt,qt);if(Mt===null||(qt+=Mt.size,qt+Mt.number>Wt.length))return null;const ht=Wt.slice(qt,qt+Mt.number);qt+=Mt.number;const Et=kt(ht);Et!==void 0?lr.push(Et):lr.push(ht)}else lr.push(Ot),qt+=1}return lr}et.decompile=wt;function St(Wt){return pt(Wt)&&(Wt=wt(Wt)),Wt.map(lr=>{if($t(lr)){const qt=kt(lr);if(qt===void 0)return lr.toString("hex");lr=qt}return rt.REVERSE_OPS[lr]}).join(" ")}et.toASM=St;function Bt(Wt){return ot(at.String,Wt),mt(Wt.split(" ").map(lr=>rt.OPS[lr]!==void 0?rt.OPS[lr]:(ot(at.Hex,lr),Buffer.from(lr,"hex"))))}et.fromASM=Bt;function Ft(Wt){return Wt=wt(Wt),ot(bt,Wt),Wt.map(lr=>$t(lr)?lr:lr===rt.OPS.OP_0?Buffer.allocUnsafe(0):it.encode(lr-lt))}et.toStack=Ft;function Lt(Wt){return at.isPoint(Wt)}et.isCanonicalPubKey=Lt;function zt(Wt){const lr=Wt&-129;return lr>0&&lr<4}et.isDefinedHashType=zt;function Ht(Wt){return!Buffer.isBuffer(Wt)||!zt(Wt[Wt.length-1])?!1:tt.check(Wt.slice(0,-1))}et.isCanonicalScriptSignature=Ht,et.number=it,et.signature=st})(script);var lazy$8={};Object.defineProperty(lazy$8,"__esModule",{value:!0});lazy$8.value=lazy$8.prop=void 0;function prop(et,tt,rt){Object.defineProperty(et,tt,{configurable:!0,enumerable:!0,get(){const nt=rt.call(this);return this[tt]=nt,nt},set(nt){Object.defineProperty(this,tt,{configurable:!0,enumerable:!0,value:nt,writable:!0})}})}lazy$8.prop=prop;function value$1(et){let tt;return()=>(tt!==void 0||(tt=et()),tt)}lazy$8.value=value$1;Object.defineProperty(embed,"__esModule",{value:!0});embed.p2data=void 0;const networks_1$8=networks$1,bscript$b=script,types_1$9=types$6,lazy$7=lazy$8,OPS$7=bscript$b.OPS;function stacksEqual$4(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2data(et,tt){if(!et.data&&!et.output)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$9.typeforce)({network:types_1$9.typeforce.maybe(types_1$9.typeforce.Object),output:types_1$9.typeforce.maybe(types_1$9.typeforce.Buffer),data:types_1$9.typeforce.maybe(types_1$9.typeforce.arrayOf(types_1$9.typeforce.Buffer))},et);const nt={name:"embed",network:et.network||networks_1$8.bitcoin};if(lazy$7.prop(nt,"output",()=>{if(et.data)return bscript$b.compile([OPS$7.OP_RETURN].concat(et.data))}),lazy$7.prop(nt,"data",()=>{if(et.output)return bscript$b.decompile(et.output).slice(1)}),tt.validate&&et.output){const it=bscript$b.decompile(et.output);if(it[0]!==OPS$7.OP_RETURN)throw new TypeError("Output is invalid");if(!it.slice(1).every(types_1$9.typeforce.Buffer))throw new TypeError("Output is invalid");if(et.data&&!stacksEqual$4(et.data,nt.data))throw new TypeError("Data mismatch")}return Object.assign(nt,et)}embed.p2data=p2data;var p2ms$1={};Object.defineProperty(p2ms$1,"__esModule",{value:!0});p2ms$1.p2ms=void 0;const networks_1$7=networks$1,bscript$a=script,types_1$8=types$6,lazy$6=lazy$8,OPS$6=bscript$a.OPS,OP_INT_BASE=OPS$6.OP_RESERVED;function stacksEqual$3(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2ms(et,tt){if(!et.input&&!et.output&&!(et.pubkeys&&et.m!==void 0)&&!et.signatures)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{});function rt(lt){return bscript$a.isCanonicalScriptSignature(lt)||(tt.allowIncomplete&<===OPS$6.OP_0)!==void 0}(0,types_1$8.typeforce)({network:types_1$8.typeforce.maybe(types_1$8.typeforce.Object),m:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),n:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),output:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer),pubkeys:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(types_1$8.isPoint)),signatures:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(rt)),input:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer)},et);const it={network:et.network||networks_1$7.bitcoin};let st=[],at=!1;function ot(lt){at||(at=!0,st=bscript$a.decompile(lt),it.m=st[0]-OP_INT_BASE,it.n=st[st.length-2]-OP_INT_BASE,it.pubkeys=st.slice(1,-2))}if(lazy$6.prop(it,"output",()=>{if(et.m&&it.n&&et.pubkeys)return bscript$a.compile([].concat(OP_INT_BASE+et.m,et.pubkeys,OP_INT_BASE+it.n,OPS$6.OP_CHECKMULTISIG))}),lazy$6.prop(it,"m",()=>{if(it.output)return ot(it.output),it.m}),lazy$6.prop(it,"n",()=>{if(it.pubkeys)return it.pubkeys.length}),lazy$6.prop(it,"pubkeys",()=>{if(et.output)return ot(et.output),it.pubkeys}),lazy$6.prop(it,"signatures",()=>{if(et.input)return bscript$a.decompile(et.input).slice(1)}),lazy$6.prop(it,"input",()=>{if(et.signatures)return bscript$a.compile([OPS$6.OP_0].concat(et.signatures))}),lazy$6.prop(it,"witness",()=>{if(it.input)return[]}),lazy$6.prop(it,"name",()=>{if(!(!it.m||!it.n))return`p2ms(${it.m} of ${it.n})`}),tt.validate){if(et.output){if(ot(et.output),!types_1$8.typeforce.Number(st[0]))throw new TypeError("Output is invalid");if(!types_1$8.typeforce.Number(st[st.length-2]))throw new TypeError("Output is invalid");if(st[st.length-1]!==OPS$6.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(it.m<=0||it.n>16||it.m>it.n||it.n!==st.length-3)throw new TypeError("Output is invalid");if(!it.pubkeys.every(lt=>(0,types_1$8.isPoint)(lt)))throw new TypeError("Output is invalid");if(et.m!==void 0&&et.m!==it.m)throw new TypeError("m mismatch");if(et.n!==void 0&&et.n!==it.n)throw new TypeError("n mismatch");if(et.pubkeys&&!stacksEqual$3(et.pubkeys,it.pubkeys))throw new TypeError("Pubkeys mismatch")}if(et.pubkeys){if(et.n!==void 0&&et.n!==et.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(it.n=et.pubkeys.length,it.nit.m)throw new TypeError("Too many signatures provided")}if(et.input){if(et.input[0]!==OPS$6.OP_0)throw new TypeError("Input is invalid");if(it.signatures.length===0||!it.signatures.every(rt))throw new TypeError("Input has invalid signature(s)");if(et.signatures&&!stacksEqual$3(et.signatures,it.signatures))throw new TypeError("Signature mismatch");if(et.m!==void 0&&et.m!==et.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(it,et)}p2ms$1.p2ms=p2ms;var p2pk$1={};Object.defineProperty(p2pk$1,"__esModule",{value:!0});p2pk$1.p2pk=void 0;const networks_1$6=networks$1,bscript$9=script,types_1$7=types$6,lazy$5=lazy$8,OPS$5=bscript$9.OPS;function p2pk(et,tt){if(!et.input&&!et.output&&!et.pubkey&&!et.input&&!et.signature)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$7.typeforce)({network:types_1$7.typeforce.maybe(types_1$7.typeforce.Object),output:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer),pubkey:types_1$7.typeforce.maybe(types_1$7.isPoint),signature:types_1$7.typeforce.maybe(bscript$9.isCanonicalScriptSignature),input:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer)},et);const rt=lazy$5.value(()=>bscript$9.decompile(et.input)),it={name:"p2pk",network:et.network||networks_1$6.bitcoin};if(lazy$5.prop(it,"output",()=>{if(et.pubkey)return bscript$9.compile([et.pubkey,OPS$5.OP_CHECKSIG])}),lazy$5.prop(it,"pubkey",()=>{if(et.output)return et.output.slice(1,-1)}),lazy$5.prop(it,"signature",()=>{if(et.input)return rt()[0]}),lazy$5.prop(it,"input",()=>{if(et.signature)return bscript$9.compile([et.signature])}),lazy$5.prop(it,"witness",()=>{if(it.input)return[]}),tt.validate){if(et.output){if(et.output[et.output.length-1]!==OPS$5.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!(0,types_1$7.isPoint)(it.pubkey))throw new TypeError("Output pubkey is invalid");if(et.pubkey&&!et.pubkey.equals(it.pubkey))throw new TypeError("Pubkey mismatch")}if(et.signature&&et.input&&!et.input.equals(it.input))throw new TypeError("Signature mismatch");if(et.input){if(rt().length!==1)throw new TypeError("Input is invalid");if(!bscript$9.isCanonicalScriptSignature(it.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(it,et)}p2pk$1.p2pk=p2pk;var p2pkh$1={},crypto$2={},ripemd160={},_sha2={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=void 0;function number(et){if(!Number.isSafeInteger(et)||et<0)throw new Error(`Wrong positive integer: ${et}`)}_assert.number=number;function bool(et){if(typeof et!="boolean")throw new Error(`Expected boolean, not ${et}`)}_assert.bool=bool;function isBytes(et){return et instanceof Uint8Array||et!=null&&typeof et=="object"&&et.constructor.name==="Uint8Array"}function bytes(et,...tt){if(!isBytes(et))throw new Error("Expected Uint8Array");if(tt.length>0&&!tt.includes(et.length))throw new Error(`Expected Uint8Array of length ${tt}, not of length=${et.length}`)}_assert.bytes=bytes;function hash$1(et){if(typeof et!="function"||typeof et.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(et.outputLen),number(et.blockLen)}_assert.hash=hash$1;function exists(et,tt=!0){if(et.destroyed)throw new Error("Hash instance has been destroyed");if(tt&&et.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(et,tt){bytes(et);const rt=tt.outputLen;if(et.lengthnew Uint8Array(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.u8=rt;const nt=Ht=>new Uint32Array(Ht.buffer,Ht.byteOffset,Math.floor(Ht.byteLength/4));et.u32=nt;function it(Ht){return Ht instanceof Uint8Array||Ht!=null&&typeof Ht=="object"&&Ht.constructor.name==="Uint8Array"}const st=Ht=>new DataView(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.createView=st;const at=(Ht,Wt)=>Ht<<32-Wt|Ht>>>Wt;if(et.rotr=at,et.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!et.isLE)throw new Error("Non little-endian hardware is not supported");const ot=Array.from({length:256},(Ht,Wt)=>Wt.toString(16).padStart(2,"0"));function lt(Ht){if(!it(Ht))throw new Error("Uint8Array expected");let Wt="";for(let lr=0;lr=ut._0&&Ht<=ut._9)return Ht-ut._0;if(Ht>=ut._A&&Ht<=ut._F)return Ht-(ut._A-10);if(Ht>=ut._a&&Ht<=ut._f)return Ht-(ut._a-10)}function bt(Ht){if(typeof Ht!="string")throw new Error("hex string expected, got "+typeof Ht);const Wt=Ht.length,lr=Wt/2;if(Wt%2)throw new Error("padded hex string expected, got unpadded hex of length "+Wt);const qt=new Uint8Array(lr);for(let Ot=0,Mt=0;Ot{};et.nextTick=gt;async function kt(Ht,Wt,lr){let qt=Date.now();for(let Ot=0;Ot=0&&MtHt().update(yt(qt)).digest(),lr=Ht();return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=()=>Ht(),Wt}et.wrapConstructor=Bt;function Ft(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapConstructorWithOpts=Ft;function Lt(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapXOFConstructorWithOpts=Lt;function zt(Ht=32){if(tt.crypto&&typeof tt.crypto.getRandomValues=="function")return tt.crypto.getRandomValues(new Uint8Array(Ht));throw new Error("crypto.getRandomValues must be defined")}et.randomBytes=zt})(utils$1);Object.defineProperty(_sha2,"__esModule",{value:!0});_sha2.SHA2=void 0;const _assert_js_1=_assert,utils_js_1$3=utils$1;function setBigUint64(et,tt,rt,nt){if(typeof et.setBigUint64=="function")return et.setBigUint64(tt,rt,nt);const it=BigInt(32),st=BigInt(4294967295),at=Number(rt>>it&st),ot=Number(rt&st),lt=nt?4:0,ut=nt?0:4;et.setUint32(tt+lt,at,nt),et.setUint32(tt+ut,ot,nt)}class SHA2 extends utils_js_1$3.Hash{constructor(tt,rt,nt,it){super(),this.blockLen=tt,this.outputLen=rt,this.padOffset=nt,this.isLE=it,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(tt),this.view=(0,utils_js_1$3.createView)(this.buffer)}update(tt){(0,_assert_js_1.exists)(this);const{view:rt,buffer:nt,blockLen:it}=this;tt=(0,utils_js_1$3.toBytes)(tt);const st=tt.length;for(let at=0;atit-at&&(this.process(nt,0),at=0);for(let bt=at;btdt.length)throw new Error("_sha2: outputLen bigger than state");for(let bt=0;bttt),Pi=Id.map(et=>(9*et+5)%16);let idxL=[Id],idxR=[Pi];for(let et=0;et<4;et++)for(let tt of[idxL,idxR])tt.push(tt[et].map(rt=>Rho[rt]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(et=>new Uint8Array(et)),shiftsL=idxL.map((et,tt)=>et.map(rt=>shifts[tt][rt])),shiftsR=idxR.map((et,tt)=>et.map(rt=>shifts[tt][rt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(et,tt)=>et<>>32-tt;function f$2(et,tt,rt,nt){return et===0?tt^rt^nt:et===1?tt&rt|~tt&nt:et===2?(tt|~rt)^nt:et===3?tt&nt|rt&~nt:tt^(rt|~nt)}const BUF=new Uint32Array(16);class RIPEMD160 extends _sha2_js_1$2.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:tt,h1:rt,h2:nt,h3:it,h4:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.h0=tt|0,this.h1=rt|0,this.h2=nt|0,this.h3=it|0,this.h4=st|0}process(tt,rt){for(let kt=0;kt<16;kt++,rt+=4)BUF[kt]=tt.getUint32(rt,!0);let nt=this.h0|0,it=nt,st=this.h1|0,at=st,ot=this.h2|0,lt=ot,ut=this.h3|0,dt=ut,bt=this.h4|0,gt=bt;for(let kt=0;kt<5;kt++){const pt=4-kt,yt=Kl[kt],$t=Kr[kt],mt=idxL[kt],wt=idxR[kt],St=shiftsL[kt],Bt=shiftsR[kt];for(let Ft=0;Ft<16;Ft++){const Lt=rotl$1(nt+f$2(kt,st,ot,ut)+BUF[mt[Ft]]+yt,St[Ft])+bt|0;nt=bt,bt=ut,ut=rotl$1(ot,10)|0,ot=st,st=Lt}for(let Ft=0;Ft<16;Ft++){const Lt=rotl$1(it+f$2(pt,at,lt,dt)+BUF[wt[Ft]]+$t,Bt[Ft])+gt|0;it=gt,gt=dt,dt=rotl$1(lt,10)|0,lt=at,at=Lt}}this.set(this.h1+ot+dt|0,this.h2+ut+gt|0,this.h3+bt+it|0,this.h4+nt+at|0,this.h0+st+lt|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}ripemd160.RIPEMD160=RIPEMD160;ripemd160.ripemd160=(0,utils_js_1$2.wrapConstructor)(()=>new RIPEMD160);var sha1={};Object.defineProperty(sha1,"__esModule",{value:!0});sha1.sha1=void 0;const _sha2_js_1$1=_sha2,utils_js_1$1=utils$1,rotl=(et,tt)=>et<>>32-tt>>>0,Chi$1=(et,tt,rt)=>et&tt^~et&rt,Maj$1=(et,tt,rt)=>et&tt^et&rt^tt&rt,IV$1=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),SHA1_W=new Uint32Array(80);class SHA1 extends _sha2_js_1$1.SHA2{constructor(){super(64,20,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0}process(tt,rt){for(let lt=0;lt<16;lt++,rt+=4)SHA1_W[lt]=tt.getUint32(rt,!1);for(let lt=16;lt<80;lt++)SHA1_W[lt]=rotl(SHA1_W[lt-3]^SHA1_W[lt-8]^SHA1_W[lt-14]^SHA1_W[lt-16],1);let{A:nt,B:it,C:st,D:at,E:ot}=this;for(let lt=0;lt<80;lt++){let ut,dt;lt<20?(ut=Chi$1(it,st,at),dt=1518500249):lt<40?(ut=it^st^at,dt=1859775393):lt<60?(ut=Maj$1(it,st,at),dt=2400959708):(ut=it^st^at,dt=3395469782);const bt=rotl(nt,5)+ut+ot+dt+SHA1_W[lt]|0;ot=at,at=st,st=rotl(it,30),it=nt,nt=bt}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,this.set(nt,it,st,at,ot)}roundClean(){SHA1_W.fill(0)}destroy(){this.set(0,0,0,0,0),this.buffer.fill(0)}}sha1.sha1=(0,utils_js_1$1.wrapConstructor)(()=>new SHA1);var sha256$2={};Object.defineProperty(sha256$2,"__esModule",{value:!0});sha256$2.sha224=sha256$2.sha256=void 0;const _sha2_js_1=_sha2,utils_js_1=utils$1,Chi=(et,tt,rt)=>et&tt^~et&rt,Maj=(et,tt,rt)=>et&tt^et&rt^tt&rt,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends _sha2_js_1.SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st,F:at,G:ot,H:lt}=this;return[tt,rt,nt,it,st,at,ot,lt]}set(tt,rt,nt,it,st,at,ot,lt){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0,this.F=at|0,this.G=ot|0,this.H=lt|0}process(tt,rt){for(let bt=0;bt<16;bt++,rt+=4)SHA256_W[bt]=tt.getUint32(rt,!1);for(let bt=16;bt<64;bt++){const gt=SHA256_W[bt-15],kt=SHA256_W[bt-2],pt=(0,utils_js_1.rotr)(gt,7)^(0,utils_js_1.rotr)(gt,18)^gt>>>3,yt=(0,utils_js_1.rotr)(kt,17)^(0,utils_js_1.rotr)(kt,19)^kt>>>10;SHA256_W[bt]=yt+SHA256_W[bt-7]+pt+SHA256_W[bt-16]|0}let{A:nt,B:it,C:st,D:at,E:ot,F:lt,G:ut,H:dt}=this;for(let bt=0;bt<64;bt++){const gt=(0,utils_js_1.rotr)(ot,6)^(0,utils_js_1.rotr)(ot,11)^(0,utils_js_1.rotr)(ot,25),kt=dt+gt+Chi(ot,lt,ut)+SHA256_K[bt]+SHA256_W[bt]|0,yt=((0,utils_js_1.rotr)(nt,2)^(0,utils_js_1.rotr)(nt,13)^(0,utils_js_1.rotr)(nt,22))+Maj(nt,it,st)|0;dt=ut,ut=lt,lt=ot,ot=at+kt|0,at=st,st=it,it=nt,nt=kt+yt|0}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,lt=lt+this.F|0,ut=ut+this.G|0,dt=dt+this.H|0,this.set(nt,it,st,at,ot,lt,ut,dt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}sha256$2.sha256=(0,utils_js_1.wrapConstructor)(()=>new SHA256);sha256$2.sha224=(0,utils_js_1.wrapConstructor)(()=>new SHA224);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.taggedHash=et.TAGGED_HASH_PREFIXES=et.TAGS=et.hash256=et.hash160=et.sha256=et.sha1=et.ripemd160=void 0;const tt=ripemd160,rt=sha1,nt=sha256$2;function it(dt){return Buffer.from((0,tt.ripemd160)(Uint8Array.from(dt)))}et.ripemd160=it;function st(dt){return Buffer.from((0,rt.sha1)(Uint8Array.from(dt)))}et.sha1=st;function at(dt){return Buffer.from((0,nt.sha256)(Uint8Array.from(dt)))}et.sha256=at;function ot(dt){return Buffer.from((0,tt.ripemd160)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash160=ot;function lt(dt){return Buffer.from((0,nt.sha256)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash256=lt,et.TAGS=["BIP0340/challenge","BIP0340/aux","BIP0340/nonce","TapLeaf","TapBranch","TapSighash","TapTweak","KeyAgg list","KeyAgg coefficient"],et.TAGGED_HASH_PREFIXES={"BIP0340/challenge":Buffer.from([123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124,123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124]),"BIP0340/aux":Buffer.from([241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144,241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144]),"BIP0340/nonce":Buffer.from([7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47,7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47]),TapLeaf:Buffer.from([174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238,174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238]),TapBranch:Buffer.from([25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21,25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21]),TapSighash:Buffer.from([244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49,244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49]),TapTweak:Buffer.from([232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233,232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233]),"KeyAgg list":Buffer.from([72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240,72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240]),"KeyAgg coefficient":Buffer.from([191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129,191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129])};function ut(dt,bt){return at(Buffer.concat([et.TAGGED_HASH_PREFIXES[dt],bt]))}et.taggedHash=ut})(crypto$2);function base$1(et){if(et.length>=255)throw new TypeError("Alphabet too long");for(var tt=new Uint8Array(256),rt=0;rt>>0,St=new Uint8Array(wt);$t!==mt;){for(var Bt=kt[$t],Ft=0,Lt=wt-1;(Bt!==0||Ft>>0,St[Lt]=Bt%at>>>0,Bt=Bt/at>>>0;if(Bt!==0)throw new Error("Non-zero carry");yt=Ft,$t++}for(var zt=wt-yt;zt!==wt&&St[zt]===0;)zt++;for(var Ht=ot.repeat(pt);zt>>0,wt=new Uint8Array(mt);kt[pt];){var St=tt[kt.charCodeAt(pt)];if(St===255)return;for(var Bt=0,Ft=mt-1;(St!==0||Bt<$t)&&Ft!==-1;Ft--,Bt++)St+=at*wt[Ft]>>>0,wt[Ft]=St%256>>>0,St=St/256>>>0;if(St!==0)throw new Error("Non-zero carry");$t=Bt,pt++}for(var Lt=mt-$t;Lt!==mt&&wt[Lt]===0;)Lt++;for(var zt=new Uint8Array(yt+(mt-Lt)),Ht=yt;Lt!==mt;)zt[Ht++]=wt[Lt++];return zt}function gt(kt){var pt=bt(kt);if(pt)return pt;throw new Error("Non-base"+at+" character")}return{encode:dt,decodeUnsafe:bt,decode:gt}}var src=base$1;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1),base58=bs58,base=function(et){function tt(st){var at=Uint8Array.from(st),ot=et(at),lt=at.length+4,ut=new Uint8Array(lt);return ut.set(at,0),ut.set(ot.subarray(0,4),at.length),base58.encode(ut,lt)}function rt(st){var at=st.slice(0,-4),ot=st.slice(-4),lt=et(at);if(!(ot[0]^lt[0]|ot[1]^lt[1]|ot[2]^lt[2]|ot[3]^lt[3]))return at}function nt(st){var at=base58.decodeUnsafe(st);if(at)return rt(at)}function it(st){var at=base58.decode(st),ot=rt(at);if(!ot)throw new Error("Invalid checksum");return ot}return{encode:tt,decode:it,decodeUnsafe:nt}},{sha256:sha256$1}=sha256$2,bs58checkBase=base;function sha256x2(et){return sha256$1(sha256$1(et))}var bs58check$3=bs58checkBase(sha256x2);Object.defineProperty(p2pkh$1,"__esModule",{value:!0});p2pkh$1.p2pkh=void 0;const bcrypto$5=crypto$2,networks_1$5=networks$1,bscript$8=script,types_1$6=types$6,lazy$4=lazy$8,bs58check$2=bs58check$3,OPS$4=bscript$8.OPS;function p2pkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$6.typeforce)({network:types_1$6.typeforce.maybe(types_1$6.typeforce.Object),address:types_1$6.typeforce.maybe(types_1$6.typeforce.String),hash:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(20)),output:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(25)),pubkey:types_1$6.typeforce.maybe(types_1$6.isPoint),signature:types_1$6.typeforce.maybe(bscript$8.isCanonicalScriptSignature),input:types_1$6.typeforce.maybe(types_1$6.typeforce.Buffer)},et);const rt=lazy$4.value(()=>{const at=Buffer.from(bs58check$2.decode(et.address)),ot=at.readUInt8(0),lt=at.slice(1);return{version:ot,hash:lt}}),nt=lazy$4.value(()=>bscript$8.decompile(et.input)),it=et.network||networks_1$5.bitcoin,st={name:"p2pkh",network:it};if(lazy$4.prop(st,"address",()=>{if(!st.hash)return;const at=Buffer.allocUnsafe(21);return at.writeUInt8(it.pubKeyHash,0),st.hash.copy(at,1),bs58check$2.encode(at)}),lazy$4.prop(st,"hash",()=>{if(et.output)return et.output.slice(3,23);if(et.address)return rt().hash;if(et.pubkey||st.pubkey)return bcrypto$5.hash160(et.pubkey||st.pubkey)}),lazy$4.prop(st,"output",()=>{if(st.hash)return bscript$8.compile([OPS$4.OP_DUP,OPS$4.OP_HASH160,st.hash,OPS$4.OP_EQUALVERIFY,OPS$4.OP_CHECKSIG])}),lazy$4.prop(st,"pubkey",()=>{if(et.input)return nt()[1]}),lazy$4.prop(st,"signature",()=>{if(et.input)return nt()[0]}),lazy$4.prop(st,"input",()=>{if(et.pubkey&&et.signature)return bscript$8.compile([et.signature,et.pubkey])}),lazy$4.prop(st,"witness",()=>{if(st.input)return[]}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().version!==it.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(rt().hash.length!==20)throw new TypeError("Invalid address");at=rt().hash}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==25||et.output[0]!==OPS$4.OP_DUP||et.output[1]!==OPS$4.OP_HASH160||et.output[2]!==20||et.output[23]!==OPS$4.OP_EQUALVERIFY||et.output[24]!==OPS$4.OP_CHECKSIG)throw new TypeError("Output is invalid");const ot=et.output.slice(3,23);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.pubkey){const ot=bcrypto$5.hash160(et.pubkey);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.input){const ot=nt();if(ot.length!==2)throw new TypeError("Input is invalid");if(!bscript$8.isCanonicalScriptSignature(ot[0]))throw new TypeError("Input has invalid signature");if(!(0,types_1$6.isPoint)(ot[1]))throw new TypeError("Input has invalid pubkey");if(et.signature&&!et.signature.equals(ot[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(ot[1]))throw new TypeError("Pubkey mismatch");const lt=bcrypto$5.hash160(ot[1]);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch")}}return Object.assign(st,et)}p2pkh$1.p2pkh=p2pkh;var p2sh$1={};Object.defineProperty(p2sh$1,"__esModule",{value:!0});p2sh$1.p2sh=void 0;const bcrypto$4=crypto$2,networks_1$4=networks$1,bscript$7=script,types_1$5=types$6,lazy$3=lazy$8,bs58check$1=bs58check$3,OPS$3=bscript$7.OPS;function stacksEqual$2(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2sh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$5.typeforce)({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),address:types_1$5.typeforce.maybe(types_1$5.typeforce.String),hash:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(20)),output:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(23)),redeem:types_1$5.typeforce.maybe({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),output:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))}),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))},et);let rt=et.network;rt||(rt=et.redeem&&et.redeem.network||networks_1$4.bitcoin);const nt={network:rt},it=lazy$3.value(()=>{const ot=Buffer.from(bs58check$1.decode(et.address)),lt=ot.readUInt8(0),ut=ot.slice(1);return{version:lt,hash:ut}}),st=lazy$3.value(()=>bscript$7.decompile(et.input)),at=lazy$3.value(()=>{const ot=st(),lt=ot[ot.length-1];return{network:rt,output:lt===OPS$3.OP_FALSE?Buffer.from([]):lt,input:bscript$7.compile(ot.slice(0,-1)),witness:et.witness||[]}});if(lazy$3.prop(nt,"address",()=>{if(!nt.hash)return;const ot=Buffer.allocUnsafe(21);return ot.writeUInt8(nt.network.scriptHash,0),nt.hash.copy(ot,1),bs58check$1.encode(ot)}),lazy$3.prop(nt,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return it().hash;if(nt.redeem&&nt.redeem.output)return bcrypto$4.hash160(nt.redeem.output)}),lazy$3.prop(nt,"output",()=>{if(nt.hash)return bscript$7.compile([OPS$3.OP_HASH160,nt.hash,OPS$3.OP_EQUAL])}),lazy$3.prop(nt,"redeem",()=>{if(et.input)return at()}),lazy$3.prop(nt,"input",()=>{if(!(!et.redeem||!et.redeem.input||!et.redeem.output))return bscript$7.compile([].concat(bscript$7.decompile(et.redeem.input),et.redeem.output))}),lazy$3.prop(nt,"witness",()=>{if(nt.redeem&&nt.redeem.witness)return nt.redeem.witness;if(nt.input)return[]}),lazy$3.prop(nt,"name",()=>{const ot=["p2sh"];return nt.redeem!==void 0&&nt.redeem.name!==void 0&&ot.push(nt.redeem.name),ot.join("-")}),tt.validate){let ot=Buffer.from([]);if(et.address){if(it().version!==rt.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(it().hash.length!==20)throw new TypeError("Invalid address");ot=it().hash}if(et.hash){if(ot.length>0&&!ot.equals(et.hash))throw new TypeError("Hash mismatch");ot=et.hash}if(et.output){if(et.output.length!==23||et.output[0]!==OPS$3.OP_HASH160||et.output[1]!==20||et.output[22]!==OPS$3.OP_EQUAL)throw new TypeError("Output is invalid");const ut=et.output.slice(2,22);if(ot.length>0&&!ot.equals(ut))throw new TypeError("Hash mismatch");ot=ut}const lt=ut=>{if(ut.output){const dt=bscript$7.decompile(ut.output);if(!dt||dt.length<1)throw new TypeError("Redeem.output too short");if(ut.output.byteLength>520)throw new TypeError("Redeem.output unspendable if larger than 520 bytes");if(bscript$7.countNonPushOnlyOPs(dt)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const bt=bcrypto$4.hash160(ut.output);if(ot.length>0&&!ot.equals(bt))throw new TypeError("Hash mismatch");ot=bt}if(ut.input){const dt=ut.input.length>0,bt=ut.witness&&ut.witness.length>0;if(!dt&&!bt)throw new TypeError("Empty input");if(dt&&bt)throw new TypeError("Input and witness provided");if(dt){const gt=bscript$7.decompile(ut.input);if(!bscript$7.isPushOnly(gt))throw new TypeError("Non push-only scriptSig")}}};if(et.input){const ut=st();if(!ut||ut.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(at().output))throw new TypeError("Input is invalid");lt(at())}if(et.redeem){if(et.redeem.network&&et.redeem.network!==rt)throw new TypeError("Network mismatch");if(et.input){const ut=at();if(et.redeem.output&&!et.redeem.output.equals(ut.output))throw new TypeError("Redeem.output mismatch");if(et.redeem.input&&!et.redeem.input.equals(ut.input))throw new TypeError("Redeem.input mismatch")}lt(et.redeem)}if(et.witness&&et.redeem&&et.redeem.witness&&!stacksEqual$2(et.redeem.witness,et.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(nt,et)}p2sh$1.p2sh=p2sh;var p2wpkh$1={},dist={};Object.defineProperty(dist,"__esModule",{value:!0});dist.bech32m=dist.bech32=void 0;const ALPHABET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ALPHABET_MAP={};for(let et=0;et>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk(et){let tt=1;for(let rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep(tt)^nt>>5}tt=polymodStep(tt);for(let rt=0;rt=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<lt)throw new TypeError("Exceeds length limit");at=at.toLowerCase();let ut=prefixChk(at);if(typeof ut=="string")throw new Error(ut);let dt=at+"1";for(let bt=0;bt>5)throw new Error("Non 5-bit word");ut=polymodStep(ut)^gt,dt+=ALPHABET.charAt(gt)}for(let bt=0;bt<6;++bt)ut=polymodStep(ut);ut^=tt;for(let bt=0;bt<6;++bt){const gt=ut>>(5-bt)*5&31;dt+=ALPHABET.charAt(gt)}return dt}function nt(at,ot){if(ot=ot||90,at.length<8)return at+" too short";if(at.length>ot)return"Exceeds length limit";const lt=at.toLowerCase(),ut=at.toUpperCase();if(at!==lt&&at!==ut)return"Mixed-case string "+at;at=lt;const dt=at.lastIndexOf("1");if(dt===-1)return"No separator character for "+at;if(dt===0)return"Missing prefix for "+at;const bt=at.slice(0,dt),gt=at.slice(dt+1);if(gt.length<6)return"Data too short";let kt=prefixChk(bt);if(typeof kt=="string")return kt;const pt=[];for(let yt=0;yt=gt.length)&&pt.push(mt)}return kt!==tt?"Invalid checksum for "+at:{prefix:bt,words:pt}}function it(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt}function st(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt;throw new Error(lt)}return{decodeUnsafe:it,decode:st,encode:rt,toWords,fromWordsUnsafe,fromWords}}dist.bech32=getLibraryFromEncoding("bech32");dist.bech32m=getLibraryFromEncoding("bech32m");Object.defineProperty(p2wpkh$1,"__esModule",{value:!0});p2wpkh$1.p2wpkh=void 0;const bcrypto$3=crypto$2,networks_1$3=networks$1,bscript$6=script,types_1$4=types$6,lazy$2=lazy$8,bech32_1$3=dist,OPS$2=bscript$6.OPS,EMPTY_BUFFER$2=Buffer.alloc(0);function p2wpkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$4.typeforce)({address:types_1$4.typeforce.maybe(types_1$4.typeforce.String),hash:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(20)),input:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(0)),network:types_1$4.typeforce.maybe(types_1$4.typeforce.Object),output:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(22)),pubkey:types_1$4.typeforce.maybe(types_1$4.isPoint),signature:types_1$4.typeforce.maybe(bscript$6.isCanonicalScriptSignature),witness:types_1$4.typeforce.maybe(types_1$4.typeforce.arrayOf(types_1$4.typeforce.Buffer))},et);const rt=lazy$2.value(()=>{const st=bech32_1$3.bech32.decode(et.address),at=st.words.shift(),ot=bech32_1$3.bech32.fromWords(st.words);return{version:at,prefix:st.prefix,data:Buffer.from(ot)}}),nt=et.network||networks_1$3.bitcoin,it={name:"p2wpkh",network:nt};if(lazy$2.prop(it,"address",()=>{if(!it.hash)return;const st=bech32_1$3.bech32.toWords(it.hash);return st.unshift(0),bech32_1$3.bech32.encode(nt.bech32,st)}),lazy$2.prop(it,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return rt().data;if(et.pubkey||it.pubkey)return bcrypto$3.hash160(et.pubkey||it.pubkey)}),lazy$2.prop(it,"output",()=>{if(it.hash)return bscript$6.compile([OPS$2.OP_0,it.hash])}),lazy$2.prop(it,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.witness)return et.witness[1]}),lazy$2.prop(it,"signature",()=>{if(et.witness)return et.witness[0]}),lazy$2.prop(it,"input",()=>{if(it.witness)return EMPTY_BUFFER$2}),lazy$2.prop(it,"witness",()=>{if(et.pubkey&&et.signature)return[et.signature,et.pubkey]}),tt.validate){let st=Buffer.from([]);if(et.address){if(nt&&nt.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==20)throw new TypeError("Invalid address data");st=rt().data}if(et.hash){if(st.length>0&&!st.equals(et.hash))throw new TypeError("Hash mismatch");st=et.hash}if(et.output){if(et.output.length!==22||et.output[0]!==OPS$2.OP_0||et.output[1]!==20)throw new TypeError("Output is invalid");if(st.length>0&&!st.equals(et.output.slice(2)))throw new TypeError("Hash mismatch");st=et.output.slice(2)}if(et.pubkey){const at=bcrypto$3.hash160(et.pubkey);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch");if(st=at,!(0,types_1$4.isPoint)(et.pubkey)||et.pubkey.length!==33)throw new TypeError("Invalid pubkey for p2wpkh")}if(et.witness){if(et.witness.length!==2)throw new TypeError("Witness is invalid");if(!bscript$6.isCanonicalScriptSignature(et.witness[0]))throw new TypeError("Witness has invalid signature");if(!(0,types_1$4.isPoint)(et.witness[1])||et.witness[1].length!==33)throw new TypeError("Witness has invalid pubkey");if(et.signature&&!et.signature.equals(et.witness[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(et.witness[1]))throw new TypeError("Pubkey mismatch");const at=bcrypto$3.hash160(et.witness[1]);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch")}}return Object.assign(it,et)}p2wpkh$1.p2wpkh=p2wpkh;var p2wsh$1={};Object.defineProperty(p2wsh$1,"__esModule",{value:!0});p2wsh$1.p2wsh=void 0;const bcrypto$2=crypto$2,networks_1$2=networks$1,bscript$5=script,types_1$3=types$6,lazy$1=lazy$8,bech32_1$2=dist,OPS$1=bscript$5.OPS,EMPTY_BUFFER$1=Buffer.alloc(0);function stacksEqual$1(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function chunkHasUncompressedPubkey(et){return!!(Buffer.isBuffer(et)&&et.length===65&&et[0]===4&&(0,types_1$3.isPoint)(et))}function p2wsh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$3.typeforce)({network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),address:types_1$3.typeforce.maybe(types_1$3.typeforce.String),hash:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(32)),output:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(34)),redeem:types_1$3.typeforce.maybe({input:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),output:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))}),input:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(0)),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))},et);const rt=lazy$1.value(()=>{const at=bech32_1$2.bech32.decode(et.address),ot=at.words.shift(),lt=bech32_1$2.bech32.fromWords(at.words);return{version:ot,prefix:at.prefix,data:Buffer.from(lt)}}),nt=lazy$1.value(()=>bscript$5.decompile(et.redeem.input));let it=et.network;it||(it=et.redeem&&et.redeem.network||networks_1$2.bitcoin);const st={network:it};if(lazy$1.prop(st,"address",()=>{if(!st.hash)return;const at=bech32_1$2.bech32.toWords(st.hash);return at.unshift(0),bech32_1$2.bech32.encode(it.bech32,at)}),lazy$1.prop(st,"hash",()=>{if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(st.redeem&&st.redeem.output)return bcrypto$2.sha256(st.redeem.output)}),lazy$1.prop(st,"output",()=>{if(st.hash)return bscript$5.compile([OPS$1.OP_0,st.hash])}),lazy$1.prop(st,"redeem",()=>{if(et.witness)return{output:et.witness[et.witness.length-1],input:EMPTY_BUFFER$1,witness:et.witness.slice(0,-1)}}),lazy$1.prop(st,"input",()=>{if(st.witness)return EMPTY_BUFFER$1}),lazy$1.prop(st,"witness",()=>{if(et.redeem&&et.redeem.input&&et.redeem.input.length>0&&et.redeem.output&&et.redeem.output.length>0){const at=bscript$5.toStack(nt());return st.redeem=Object.assign({witness:at},et.redeem),st.redeem.input=EMPTY_BUFFER$1,[].concat(at,et.redeem.output)}if(et.redeem&&et.redeem.output&&et.redeem.witness)return[].concat(et.redeem.witness,et.redeem.output)}),lazy$1.prop(st,"name",()=>{const at=["p2wsh"];return st.redeem!==void 0&&st.redeem.name!==void 0&&at.push(st.redeem.name),at.join("-")}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().prefix!==it.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");at=rt().data}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==34||et.output[0]!==OPS$1.OP_0||et.output[1]!==32)throw new TypeError("Output is invalid");const ot=et.output.slice(2);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.redeem){if(et.redeem.network&&et.redeem.network!==it)throw new TypeError("Network mismatch");if(et.redeem.input&&et.redeem.input.length>0&&et.redeem.witness&&et.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(et.redeem.output){const ot=bscript$5.decompile(et.redeem.output);if(!ot||ot.length<1)throw new TypeError("Redeem.output is invalid");if(et.redeem.output.byteLength>3600)throw new TypeError("Redeem.output unspendable if larger than 3600 bytes");if(bscript$5.countNonPushOnlyOPs(ot)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const lt=bcrypto$2.sha256(et.redeem.output);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch");at=lt}if(et.redeem.input&&!bscript$5.isPushOnly(nt()))throw new TypeError("Non push-only scriptSig");if(et.witness&&et.redeem.witness&&!stacksEqual$1(et.witness,et.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch");if(et.redeem.input&&nt().some(chunkHasUncompressedPubkey)||et.redeem.output&&(bscript$5.decompile(et.redeem.output)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("redeem.input or redeem.output contains uncompressed pubkey")}if(et.witness&&et.witness.length>0){const ot=et.witness[et.witness.length-1];if(et.redeem&&et.redeem.output&&!et.redeem.output.equals(ot))throw new TypeError("Witness and redeem.output mismatch");if(et.witness.some(chunkHasUncompressedPubkey)||(bscript$5.decompile(ot)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("Witness contains uncompressed pubkey")}}return Object.assign(st,et)}p2wsh$1.p2wsh=p2wsh;var p2tr$1={},ecc_lib={};Object.defineProperty(ecc_lib,"__esModule",{value:!0});ecc_lib.getEccLib=ecc_lib.initEccLib=void 0;const _ECCLIB_CACHE={};function initEccLib(et){et?et!==_ECCLIB_CACHE.eccLib&&(verifyEcc(et),_ECCLIB_CACHE.eccLib=et):_ECCLIB_CACHE.eccLib=et}ecc_lib.initEccLib=initEccLib;function getEccLib(){if(!_ECCLIB_CACHE.eccLib)throw new Error("No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance");return _ECCLIB_CACHE.eccLib}ecc_lib.getEccLib=getEccLib;const h$5=et=>Buffer.from(et,"hex");function verifyEcc(et){assert(typeof et.isXOnlyPoint=="function"),assert(et.isXOnlyPoint(h$5("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),assert(et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffeeffffc2e"))),assert(et.isXOnlyPoint(h$5("f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9"))),assert(et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000001"))),assert(!et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000000"))),assert(!et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"))),assert(typeof et.xOnlyPointAddTweak=="function"),tweakAddVectors.forEach(tt=>{const rt=et.xOnlyPointAddTweak(h$5(tt.pubkey),h$5(tt.tweak));tt.result===null?assert(rt===null):(assert(rt!==null),assert(rt.parity===tt.parity),assert(Buffer.from(rt.xOnlyPubkey).equals(h$5(tt.result))))})}function assert(et){if(!et)throw new Error("ecc library invalid")}const tweakAddVectors=[{pubkey:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",tweak:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140",parity:-1,result:null},{pubkey:"1617d38ed8d8657da4d4761e8057bc396ea9e4b9d29776d4be096016dbd2509b",tweak:"a8397a935f0dfceba6ba9618f6451ef4d80637abf4e6af2669fbc9de6a8fd2ac",parity:1,result:"e478f99dab91052ab39a33ea35fd5e6e4933f4d28023cd597c9a1f6760346adf"},{pubkey:"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",tweak:"823c3cd2142744b075a87eade7e1b8678ba308d566226a0056ca2b7a76f86b47",parity:0,result:"9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"}];var bip341={},bufferutils={},Buffer$2=safeBufferExports.Buffer,MAX_SAFE_INTEGER$3=9007199254740991;function checkUInt53$1(et){if(et<0||et>MAX_SAFE_INTEGER$3||et%1!==0)throw new RangeError("value out of range")}function encode$j(et,tt,rt){if(checkUInt53$1(et),tt||(tt=Buffer$2.allocUnsafe(encodingLength$1(et))),!Buffer$2.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),encode$j.bytes=1):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),encode$j.bytes=3):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),encode$j.bytes=5):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),encode$j.bytes=9),tt}function decode$i(et,tt){if(!Buffer$2.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);var rt=et.readUInt8(tt);if(rt<253)return decode$i.bytes=1,rt;if(rt===253)return decode$i.bytes=3,et.readUInt16LE(tt+1);if(rt===254)return decode$i.bytes=5,et.readUInt32LE(tt+1);decode$i.bytes=9;var nt=et.readUInt32LE(tt+1),it=et.readUInt32LE(tt+5),st=it*4294967296+nt;return checkUInt53$1(st),st}function encodingLength$1(et){return checkUInt53$1(et),et<253?1:et<=65535?3:et<=4294967295?5:9}var varuintBitcoin={encode:encode$j,decode:decode$i,encodingLength:encodingLength$1};Object.defineProperty(bufferutils,"__esModule",{value:!0});bufferutils.BufferReader=bufferutils.BufferWriter=bufferutils.cloneBuffer=bufferutils.reverseBuffer=bufferutils.writeUInt64LE=bufferutils.readUInt64LE=bufferutils.varuint=void 0;const types$3=types$6,{typeforce:typeforce$2}=types$3,varuint$7=varuintBitcoin;bufferutils.varuint=varuint$7;function verifuint$1(et,tt){if(typeof et!="number")throw new Error("cannot write a non-number as a number");if(et<0)throw new Error("specified a negative value for writing an unsigned value");if(et>tt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE$1(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint$1(nt+rt,9007199254740991),nt+rt}bufferutils.readUInt64LE=readUInt64LE$1;function writeUInt64LE$1(et,tt,rt){return verifuint$1(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}bufferutils.writeUInt64LE=writeUInt64LE$1;function reverseBuffer$1(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;ntthis.writeVarSlice(rt))}end(){if(this.buffer.length===this.offset)return this.buffer;throw new Error(`buffer size ${this.buffer.length}, offset ${this.offset}`)}}bufferutils.BufferWriter=BufferWriter;class BufferReader{constructor(tt,rt=0){this.buffer=tt,this.offset=rt,typeforce$2(types$3.tuple(types$3.Buffer,types$3.UInt32),[tt,rt])}readUInt8(){const tt=this.buffer.readUInt8(this.offset);return this.offset++,tt}readInt32(){const tt=this.buffer.readInt32LE(this.offset);return this.offset+=4,tt}readUInt32(){const tt=this.buffer.readUInt32LE(this.offset);return this.offset+=4,tt}readUInt64(){const tt=readUInt64LE$1(this.buffer,this.offset);return this.offset+=8,tt}readVarInt(){const tt=varuint$7.decode(this.buffer,this.offset);return this.offset+=varuint$7.decode.bytes,tt}readSlice(tt){if(this.buffer.length"left"in yt&&"right"in yt;function ot(yt,$t){if(yt.length<33)throw new TypeError(`The control-block length is too small. Got ${yt.length}, expected min 33.`);const mt=(yt.length-33)/32;let wt=$t;for(let St=0;StSt.hash.compare(Bt.hash));const[mt,wt]=$t;return{hash:kt(mt.hash,wt.hash),left:mt,right:wt}}et.toHashTree=lt;function ut(yt,$t){if(at(yt)){const mt=ut(yt.left,$t);if(mt!==void 0)return[...mt,yt.right.hash];const wt=ut(yt.right,$t);if(wt!==void 0)return[...wt,yt.left.hash]}else if(yt.hash.equals($t))return[]}et.findScriptPath=ut;function dt(yt){const $t=yt.version||et.LEAF_VERSION_TAPSCRIPT;return nt.taggedHash("TapLeaf",tt.Buffer.concat([tt.Buffer.from([$t]),pt(yt.output)]))}et.tapleafHash=dt;function bt(yt,$t){return nt.taggedHash("TapTweak",tt.Buffer.concat($t?[yt,$t]:[yt]))}et.tapTweakHash=bt;function gt(yt,$t){if(!tt.Buffer.isBuffer(yt)||yt.length!==32||$t&&$t.length!==32)return null;const mt=bt(yt,$t),wt=(0,rt.getEccLib)().xOnlyPointAddTweak(yt,mt);return!wt||wt.xOnlyPubkey===null?null:{parity:wt.parity,x:tt.Buffer.from(wt.xOnlyPubkey)}}et.tweakKey=gt;function kt(yt,$t){return nt.taggedHash("TapBranch",tt.Buffer.concat([yt,$t]))}function pt(yt){const $t=it.varuint.encodingLength(yt.length),mt=tt.Buffer.allocUnsafe($t);return it.varuint.encode(yt.length,mt),tt.Buffer.concat([mt,yt])}})(bip341);Object.defineProperty(p2tr$1,"__esModule",{value:!0});p2tr$1.p2tr=void 0;const buffer_1=buffer$2,networks_1$1=networks$1,bscript$4=script,types_1$2=types$6,ecc_lib_1=ecc_lib,bip341_1$2=bip341,lazy=lazy$8,bech32_1$1=dist,OPS=bscript$4.OPS,TAPROOT_WITNESS_VERSION=1,ANNEX_PREFIX=80;function p2tr(et,tt){if(!et.address&&!et.output&&!et.pubkey&&!et.internalPubkey&&!(et.witness&&et.witness.length>1))throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$2.typeforce)({address:types_1$2.typeforce.maybe(types_1$2.typeforce.String),input:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(0)),network:types_1$2.typeforce.maybe(types_1$2.typeforce.Object),output:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(34)),internalPubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),hash:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),pubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),signature:types_1$2.typeforce.maybe(types_1$2.typeforce.anyOf(types_1$2.typeforce.BufferN(64),types_1$2.typeforce.BufferN(65))),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer)),scriptTree:types_1$2.typeforce.maybe(types_1$2.isTaptree),redeem:types_1$2.typeforce.maybe({output:types_1$2.typeforce.maybe(types_1$2.typeforce.Buffer),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer))}),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number)},et);const rt=lazy.value(()=>{const ot=bech32_1$1.bech32m.decode(et.address),lt=ot.words.shift(),ut=bech32_1$1.bech32m.fromWords(ot.words);return{version:lt,prefix:ot.prefix,data:buffer_1.Buffer.from(ut)}}),nt=lazy.value(()=>{if(!(!et.witness||!et.witness.length))return et.witness.length>=2&&et.witness[et.witness.length-1][0]===ANNEX_PREFIX?et.witness.slice(0,-1):et.witness.slice()}),it=lazy.value(()=>{if(et.scriptTree)return(0,bip341_1$2.toHashTree)(et.scriptTree);if(et.hash)return{hash:et.hash}}),st=et.network||networks_1$1.bitcoin,at={name:"p2tr",network:st};if(lazy.prop(at,"address",()=>{if(!at.pubkey)return;const ot=bech32_1$1.bech32m.toWords(at.pubkey);return ot.unshift(TAPROOT_WITNESS_VERSION),bech32_1$1.bech32m.encode(st.bech32,ot)}),lazy.prop(at,"hash",()=>{const ot=it();if(ot)return ot.hash;const lt=nt();if(lt&<.length>1){const ut=lt[lt.length-1],dt=ut[0]&types_1$2.TAPLEAF_VERSION_MASK,bt=lt[lt.length-2],gt=(0,bip341_1$2.tapleafHash)({output:bt,version:dt});return(0,bip341_1$2.rootHashFromPath)(ut,gt)}return null}),lazy.prop(at,"output",()=>{if(at.pubkey)return bscript$4.compile([OPS.OP_1,at.pubkey])}),lazy.prop(at,"redeemVersion",()=>et.redeemVersion?et.redeemVersion:et.redeem&&et.redeem.redeemVersion!==void 0&&et.redeem.redeemVersion!==null?et.redeem.redeemVersion:bip341_1$2.LEAF_VERSION_TAPSCRIPT),lazy.prop(at,"redeem",()=>{const ot=nt();if(!(!ot||ot.length<2))return{output:ot[ot.length-2],witness:ot.slice(0,-2),redeemVersion:ot[ot.length-1][0]&types_1$2.TAPLEAF_VERSION_MASK}}),lazy.prop(at,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(at.internalPubkey){const ot=(0,bip341_1$2.tweakKey)(at.internalPubkey,at.hash);if(ot)return ot.x}}),lazy.prop(at,"internalPubkey",()=>{if(et.internalPubkey)return et.internalPubkey;const ot=nt();if(ot&&ot.length>1)return ot[ot.length-1].slice(1,33)}),lazy.prop(at,"signature",()=>{if(et.signature)return et.signature;const ot=nt();if(!(!ot||ot.length!==1))return ot[0]}),lazy.prop(at,"witness",()=>{if(et.witness)return et.witness;const ot=it();if(ot&&et.redeem&&et.redeem.output&&et.internalPubkey){const lt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion}),ut=(0,bip341_1$2.findScriptPath)(ot,lt);if(!ut)return;const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,ot.hash);if(!dt)return;const bt=buffer_1.Buffer.concat([buffer_1.Buffer.from([at.redeemVersion|dt.parity]),et.internalPubkey].concat(ut));return[et.redeem.output,bt]}if(et.signature)return[et.signature]}),tt.validate){let ot=buffer_1.Buffer.from([]);if(et.address){if(st&&st.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==TAPROOT_WITNESS_VERSION)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");ot=rt().data}if(et.pubkey){if(ot.length>0&&!ot.equals(et.pubkey))throw new TypeError("Pubkey mismatch");ot=et.pubkey}if(et.output){if(et.output.length!==34||et.output[0]!==OPS.OP_1||et.output[1]!==32)throw new TypeError("Output is invalid");if(ot.length>0&&!ot.equals(et.output.slice(2)))throw new TypeError("Pubkey mismatch");ot=et.output.slice(2)}if(et.internalPubkey){const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,at.hash);if(ot.length>0&&!ot.equals(dt.x))throw new TypeError("Pubkey mismatch");ot=dt.x}if(ot&&ot.length&&!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(ot))throw new TypeError("Invalid pubkey for p2tr");const lt=it();if(et.hash&<&&!et.hash.equals(lt.hash))throw new TypeError("Hash mismatch");if(et.redeem&&et.redeem.output&<){const dt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion});if(!(0,bip341_1$2.findScriptPath)(lt,dt))throw new TypeError("Redeem script not in tree")}const ut=nt();if(et.redeem&&at.redeem){if(et.redeem.redeemVersion&&et.redeem.redeemVersion!==at.redeem.redeemVersion)throw new TypeError("Redeem.redeemVersion and witness mismatch");if(et.redeem.output){if(bscript$4.decompile(et.redeem.output).length===0)throw new TypeError("Redeem.output is invalid");if(at.redeem.output&&!et.redeem.output.equals(at.redeem.output))throw new TypeError("Redeem.output and witness mismatch")}if(et.redeem.witness&&at.redeem.witness&&!stacksEqual(et.redeem.witness,at.redeem.witness))throw new TypeError("Redeem.witness and witness mismatch")}if(ut&&ut.length)if(ut.length===1){if(et.signature&&!et.signature.equals(ut[0]))throw new TypeError("Signature mismatch")}else{const dt=ut[ut.length-1];if(dt.length<33)throw new TypeError(`The control-block length is too small. Got ${dt.length}, expected min 33.`);if((dt.length-33)%32!==0)throw new TypeError(`The control-block length of ${dt.length} is incorrect!`);const bt=(dt.length-33)/32;if(bt>128)throw new TypeError(`The script path is too long. Got ${bt}, expected max 128.`);const gt=dt.slice(1,33);if(et.internalPubkey&&!et.internalPubkey.equals(gt))throw new TypeError("Internal pubkey mismatch");if(!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(gt))throw new TypeError("Invalid internalPubkey for p2tr witness");const kt=dt[0]&types_1$2.TAPLEAF_VERSION_MASK,pt=ut[ut.length-2],yt=(0,bip341_1$2.tapleafHash)({output:pt,version:kt}),$t=(0,bip341_1$2.rootHashFromPath)(dt,yt),mt=(0,bip341_1$2.tweakKey)(gt,$t);if(!mt)throw new TypeError("Invalid outputKey for p2tr witness");if(ot.length&&!ot.equals(mt.x))throw new TypeError("Pubkey mismatch for p2tr witness");if(mt.parity!==(dt[0]&1))throw new Error("Incorrect parity")}}return Object.assign(at,et)}p2tr$1.p2tr=p2tr;function stacksEqual(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.p2tr=et.p2wsh=et.p2wpkh=et.p2sh=et.p2pkh=et.p2pk=et.p2ms=et.embed=void 0;const tt=embed;Object.defineProperty(et,"embed",{enumerable:!0,get:function(){return tt.p2data}});const rt=p2ms$1;Object.defineProperty(et,"p2ms",{enumerable:!0,get:function(){return rt.p2ms}});const nt=p2pk$1;Object.defineProperty(et,"p2pk",{enumerable:!0,get:function(){return nt.p2pk}});const it=p2pkh$1;Object.defineProperty(et,"p2pkh",{enumerable:!0,get:function(){return it.p2pkh}});const st=p2sh$1;Object.defineProperty(et,"p2sh",{enumerable:!0,get:function(){return st.p2sh}});const at=p2wpkh$1;Object.defineProperty(et,"p2wpkh",{enumerable:!0,get:function(){return at.p2wpkh}});const ot=p2wsh$1;Object.defineProperty(et,"p2wsh",{enumerable:!0,get:function(){return ot.p2wsh}});const lt=p2tr$1;Object.defineProperty(et,"p2tr",{enumerable:!0,get:function(){return lt.p2tr}})})(payments$3);Object.defineProperty(address,"__esModule",{value:!0});address.toOutputScript=address.fromOutputScript=address.toBech32=address.toBase58Check=address.fromBech32=address.fromBase58Check=void 0;const networks=networks$1,payments$2=payments$3,bscript$3=script,types_1$1=types$6,bech32_1=dist,bs58check=bs58check$3,FUTURE_SEGWIT_MAX_SIZE=40,FUTURE_SEGWIT_MIN_SIZE=2,FUTURE_SEGWIT_MAX_VERSION=16,FUTURE_SEGWIT_MIN_VERSION=2,FUTURE_SEGWIT_VERSION_DIFF=80,FUTURE_SEGWIT_VERSION_WARNING="WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";function _toFutureSegwitAddress(et,tt){const rt=et.slice(2);if(rt.lengthFUTURE_SEGWIT_MAX_SIZE)throw new TypeError("Invalid program length for segwit address");const nt=et[0]-FUTURE_SEGWIT_VERSION_DIFF;if(ntFUTURE_SEGWIT_MAX_VERSION)throw new TypeError("Invalid version for segwit address");if(et[1]!==rt.length)throw new TypeError("Invalid script for segwit address");return console.warn(FUTURE_SEGWIT_VERSION_WARNING),toBech32(rt,nt,tt.bech32)}function fromBase58Check(et){const tt=Buffer.from(bs58check.decode(et));if(tt.length<21)throw new TypeError(et+" is too short");if(tt.length>21)throw new TypeError(et+" is too long");const rt=tt.readUInt8(0),nt=tt.slice(1);return{version:rt,hash:nt}}address.fromBase58Check=fromBase58Check;function fromBech32(et){let tt,rt;try{tt=bech32_1.bech32.decode(et)}catch{}if(tt){if(rt=tt.words[0],rt!==0)throw new TypeError(et+" uses wrong encoding")}else if(tt=bech32_1.bech32m.decode(et),rt=tt.words[0],rt===0)throw new TypeError(et+" uses wrong encoding");const nt=bech32_1.bech32.fromWords(tt.words.slice(1));return{version:rt,prefix:tt.prefix,data:Buffer.from(nt)}}address.fromBech32=fromBech32;function toBase58Check(et,tt){(0,types_1$1.typeforce)((0,types_1$1.tuple)(types_1$1.Hash160bit,types_1$1.UInt8),arguments);const rt=Buffer.allocUnsafe(21);return rt.writeUInt8(tt,0),et.copy(rt,1),bs58check.encode(rt)}address.toBase58Check=toBase58Check;function toBech32(et,tt,rt){const nt=bech32_1.bech32.toWords(et);return nt.unshift(tt),tt===0?bech32_1.bech32.encode(rt,nt):bech32_1.bech32m.encode(rt,nt)}address.toBech32=toBech32;function fromOutputScript(et,tt){tt=tt||networks.bitcoin;try{return payments$2.p2pkh({output:et,network:tt}).address}catch{}try{return payments$2.p2sh({output:et,network:tt}).address}catch{}try{return payments$2.p2wpkh({output:et,network:tt}).address}catch{}try{return payments$2.p2wsh({output:et,network:tt}).address}catch{}try{return payments$2.p2tr({output:et,network:tt}).address}catch{}try{return _toFutureSegwitAddress(et,tt)}catch{}throw new Error(bscript$3.toASM(et)+" has no matching Address")}address.fromOutputScript=fromOutputScript;function toOutputScript(et,tt){tt=tt||networks.bitcoin;let rt,nt;try{rt=fromBase58Check(et)}catch{}if(rt){if(rt.version===tt.pubKeyHash)return payments$2.p2pkh({hash:rt.hash}).output;if(rt.version===tt.scriptHash)return payments$2.p2sh({hash:rt.hash}).output}else{try{nt=fromBech32(et)}catch{}if(nt){if(nt.prefix!==tt.bech32)throw new Error(et+" has an invalid prefix");if(nt.version===0){if(nt.data.length===20)return payments$2.p2wpkh({hash:nt.data}).output;if(nt.data.length===32)return payments$2.p2wsh({hash:nt.data}).output}else if(nt.version===1){if(nt.data.length===32)return payments$2.p2tr({pubkey:nt.data}).output}else if(nt.version>=FUTURE_SEGWIT_MIN_VERSION&&nt.version<=FUTURE_SEGWIT_MAX_VERSION&&nt.data.length>=FUTURE_SEGWIT_MIN_SIZE&&nt.data.length<=FUTURE_SEGWIT_MAX_SIZE)return console.warn(FUTURE_SEGWIT_VERSION_WARNING),bscript$3.compile([nt.version+FUTURE_SEGWIT_VERSION_DIFF,nt.data])}}throw new Error(et+" has no matching Script")}address.toOutputScript=toOutputScript;var block={},merkle={};Object.defineProperty(merkle,"__esModule",{value:!0});merkle.fastMerkleRoot=void 0;function fastMerkleRoot(et,tt){if(!Array.isArray(et))throw TypeError("Expected values Array");if(typeof tt!="function")throw TypeError("Expected digest Function");let rt=et.length;const nt=et.concat();for(;rt>1;){let it=0;for(let st=0;strt+varSliceSize(nt),0)}const EMPTY_BUFFER=Buffer.allocUnsafe(0),EMPTY_WITNESS=[],ZERO=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),ONE=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),VALUE_UINT64_MAX=Buffer.from("ffffffffffffffff","hex"),BLANK_OUTPUT={script:EMPTY_BUFFER,valueBuffer:VALUE_UINT64_MAX};function isOutput(et){return et.value!==void 0}class Transaction{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(tt,rt){const nt=new bufferutils_1$2.BufferReader(tt),it=new Transaction;it.version=nt.readInt32();const st=nt.readUInt8(),at=nt.readUInt8();let ot=!1;st===Transaction.ADVANCED_TRANSACTION_MARKER&&at===Transaction.ADVANCED_TRANSACTION_FLAG?ot=!0:nt.offset-=2;const lt=nt.readVarInt();for(let dt=0;dttt.witness.length!==0)}weight(){const tt=this.byteLength(!1),rt=this.byteLength(!0);return tt*3+rt}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(tt=!0){const rt=tt&&this.hasWitnesses();return(rt?10:8)+bufferutils_1$2.varuint.encodingLength(this.ins.length)+bufferutils_1$2.varuint.encodingLength(this.outs.length)+this.ins.reduce((nt,it)=>nt+40+varSliceSize(it.script),0)+this.outs.reduce((nt,it)=>nt+8+varSliceSize(it.script),0)+(rt?this.ins.reduce((nt,it)=>nt+vectorSize(it.witness),0):0)}clone(){const tt=new Transaction;return tt.version=this.version,tt.locktime=this.locktime,tt.ins=this.ins.map(rt=>({hash:rt.hash,index:rt.index,script:rt.script,sequence:rt.sequence,witness:rt.witness})),tt.outs=this.outs.map(rt=>({script:rt.script,value:rt.value})),tt}hashForSignature(tt,rt,nt){if(typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Number),arguments),tt>=this.ins.length)return ONE;const it=bscript$2.compile(bscript$2.decompile(rt).filter(ot=>ot!==script_1.OPS.OP_CODESEPARATOR)),st=this.clone();if((nt&31)===Transaction.SIGHASH_NONE)st.outs=[],st.ins.forEach((ot,lt)=>{lt!==tt&&(ot.sequence=0)});else if((nt&31)===Transaction.SIGHASH_SINGLE){if(tt>=this.outs.length)return ONE;st.outs.length=tt+1;for(let ot=0;ot{lt!==tt&&(ot.sequence=0)})}nt&Transaction.SIGHASH_ANYONECANPAY?(st.ins=[st.ins[tt]],st.ins[0].script=it):(st.ins.forEach(ot=>{ot.script=EMPTY_BUFFER}),st.ins[tt].script=it);const at=Buffer.allocUnsafe(st.byteLength(!1)+4);return at.writeInt32LE(nt,at.length-4),st.__toBuffer(at,0,!1),bcrypto$1.hash256(at)}hashForWitnessV1(tt,rt,nt,it,st,at){if(typeforce$1(types$2.tuple(types$2.UInt32,typeforce$1.arrayOf(types$2.Buffer),typeforce$1.arrayOf(types$2.Satoshi),types$2.UInt32),arguments),nt.length!==this.ins.length||rt.length!==this.ins.length)throw new Error("Must supply prevout script and value for all inputs");const ot=it===Transaction.SIGHASH_DEFAULT?Transaction.SIGHASH_ALL:it&Transaction.SIGHASH_OUTPUT_MASK,ut=(it&Transaction.SIGHASH_INPUT_MASK)===Transaction.SIGHASH_ANYONECANPAY,dt=ot===Transaction.SIGHASH_NONE,bt=ot===Transaction.SIGHASH_SINGLE;let gt=EMPTY_BUFFER,kt=EMPTY_BUFFER,pt=EMPTY_BUFFER,yt=EMPTY_BUFFER,$t=EMPTY_BUFFER;if(!ut){let Bt=bufferutils_1$2.BufferWriter.withCapacity(36*this.ins.length);this.ins.forEach(Ft=>{Bt.writeSlice(Ft.hash),Bt.writeUInt32(Ft.index)}),gt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(8*this.ins.length),nt.forEach(Ft=>Bt.writeUInt64(Ft)),kt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(rt.map(varSliceSize).reduce((Ft,Lt)=>Ft+Lt)),rt.forEach(Ft=>Bt.writeVarSlice(Ft)),pt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(4*this.ins.length),this.ins.forEach(Ft=>Bt.writeUInt32(Ft.sequence)),yt=bcrypto$1.sha256(Bt.end())}if(dt||bt){if(bt&&tt8+varSliceSize(Lt.script)).reduce((Lt,zt)=>Lt+zt),Ft=bufferutils_1$2.BufferWriter.withCapacity(Bt);this.outs.forEach(Lt=>{Ft.writeUInt64(Lt.value),Ft.writeVarSlice(Lt.script)}),$t=bcrypto$1.sha256(Ft.end())}const mt=(st?2:0)+(at?1:0),wt=174-(ut?49:0)-(dt?32:0)+(at?32:0)+(st?37:0),St=bufferutils_1$2.BufferWriter.withCapacity(wt);if(St.writeUInt8(it),St.writeInt32(this.version),St.writeUInt32(this.locktime),St.writeSlice(gt),St.writeSlice(kt),St.writeSlice(pt),St.writeSlice(yt),dt||bt||St.writeSlice($t),St.writeUInt8(mt),ut){const Bt=this.ins[tt];St.writeSlice(Bt.hash),St.writeUInt32(Bt.index),St.writeUInt64(nt[tt]),St.writeVarSlice(rt[tt]),St.writeUInt32(Bt.sequence)}else St.writeUInt32(tt);if(at){const Bt=bufferutils_1$2.BufferWriter.withCapacity(varSliceSize(at));Bt.writeVarSlice(at),St.writeSlice(bcrypto$1.sha256(Bt.end()))}return bt&&St.writeSlice($t),st&&(St.writeSlice(st),St.writeUInt8(0),St.writeUInt32(4294967295)),bcrypto$1.taggedHash("TapSighash",Buffer.concat([Buffer.from([0]),St.end()]))}hashForWitnessV0(tt,rt,nt,it){typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Satoshi,types$2.UInt32),arguments);let st=Buffer.from([]),at,ot=ZERO,lt=ZERO,ut=ZERO;if(it&Transaction.SIGHASH_ANYONECANPAY||(st=Buffer.allocUnsafe(36*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeSlice(bt.hash),at.writeUInt32(bt.index)}),lt=bcrypto$1.hash256(st)),!(it&Transaction.SIGHASH_ANYONECANPAY)&&(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE&&(st=Buffer.allocUnsafe(4*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeUInt32(bt.sequence)}),ut=bcrypto$1.hash256(st)),(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE){const bt=this.outs.reduce((gt,kt)=>gt+8+varSliceSize(kt.script),0);st=Buffer.allocUnsafe(bt),at=new bufferutils_1$2.BufferWriter(st,0),this.outs.forEach(gt=>{at.writeUInt64(gt.value),at.writeVarSlice(gt.script)}),ot=bcrypto$1.hash256(st)}else if((it&31)===Transaction.SIGHASH_SINGLE&&tt{it.writeSlice(at.hash),it.writeUInt32(at.index),it.writeVarSlice(at.script),it.writeUInt32(at.sequence)}),it.writeVarInt(this.outs.length),this.outs.forEach(at=>{isOutput(at)?it.writeUInt64(at.value):it.writeSlice(at.valueBuffer),it.writeVarSlice(at.script)}),st&&this.ins.forEach(at=>{it.writeVector(at.witness)}),it.writeUInt32(this.locktime),rt!==void 0?tt.slice(rt,it.offset):tt}}transaction.Transaction=Transaction;Transaction.DEFAULT_SEQUENCE=4294967295;Transaction.SIGHASH_DEFAULT=0;Transaction.SIGHASH_ALL=1;Transaction.SIGHASH_NONE=2;Transaction.SIGHASH_SINGLE=3;Transaction.SIGHASH_ANYONECANPAY=128;Transaction.SIGHASH_OUTPUT_MASK=3;Transaction.SIGHASH_INPUT_MASK=128;Transaction.ADVANCED_TRANSACTION_MARKER=0;Transaction.ADVANCED_TRANSACTION_FLAG=1;Object.defineProperty(block,"__esModule",{value:!0});block.Block=void 0;const bufferutils_1$1=bufferutils,bcrypto=crypto$2,merkle_1=merkle,transaction_1$3=transaction,types$1=types$6,{typeforce}=types$1,errorMerkleNoTxes=new TypeError("Cannot compute merkle root for zero transactions"),errorWitnessNotSegwit=new TypeError("Cannot compute witness commit for non-segwit block");class Block{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(tt){if(tt.length<80)throw new Error("Buffer too small (< 80 bytes)");const rt=new bufferutils_1$1.BufferReader(tt),nt=new Block;if(nt.version=rt.readInt32(),nt.prevHash=rt.readSlice(32),nt.merkleRoot=rt.readSlice(32),nt.timestamp=rt.readUInt32(),nt.bits=rt.readUInt32(),nt.nonce=rt.readUInt32(),tt.length===80)return nt;const it=()=>{const ot=transaction_1$3.Transaction.fromBuffer(rt.buffer.slice(rt.offset),!0);return rt.offset+=ot.byteLength(),ot},st=rt.readVarInt();nt.transactions=[];for(let ot=0;ot>24)-3,nt=tt&8388607,it=Buffer.alloc(32,0);return it.writeUIntBE(nt,29-rt,3),it}static calculateMerkleRoot(tt,rt){if(typeforce([{getHash:types$1.Function}],tt),tt.length===0)throw errorMerkleNoTxes;if(rt&&!txesHaveWitnessCommit(tt))throw errorWitnessNotSegwit;const nt=tt.map(st=>st.getHash(rt)),it=(0,merkle_1.fastMerkleRoot)(nt,bcrypto.hash256);return rt?bcrypto.hash256(Buffer.concat([it,tt[0].ins[0].witness[0]])):it}getWitnessCommit(){if(!txesHaveWitnessCommit(this.transactions))return null;const tt=this.transactions[0].outs.filter(nt=>nt.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(nt=>nt.script.slice(6,38));if(tt.length===0)return null;const rt=tt[tt.length-1];return rt instanceof Buffer&&rt.length===32?rt:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&this.witnessCommit.length===32||this.getWitnessCommit()!==null}hasWitness(){return anyTxHasWitness(this.transactions)}weight(){const tt=this.byteLength(!1,!1),rt=this.byteLength(!1,!0);return tt*3+rt}byteLength(tt,rt=!0){return tt||!this.transactions?80:80+bufferutils_1$1.varuint.encodingLength(this.transactions.length)+this.transactions.reduce((nt,it)=>nt+it.byteLength(rt),0)}getHash(){return bcrypto.hash256(this.toBuffer(!0))}getId(){return(0,bufferutils_1$1.reverseBuffer)(this.getHash()).toString("hex")}getUTCDate(){const tt=new Date(0);return tt.setUTCSeconds(this.timestamp),tt}toBuffer(tt){const rt=Buffer.allocUnsafe(this.byteLength(tt)),nt=new bufferutils_1$1.BufferWriter(rt);return nt.writeInt32(this.version),nt.writeSlice(this.prevHash),nt.writeSlice(this.merkleRoot),nt.writeUInt32(this.timestamp),nt.writeUInt32(this.bits),nt.writeUInt32(this.nonce),tt||!this.transactions||(bufferutils_1$1.varuint.encode(this.transactions.length,rt,nt.offset),nt.offset+=bufferutils_1$1.varuint.encode.bytes,this.transactions.forEach(it=>{const st=it.byteLength();it.toBuffer(rt,nt.offset),nt.offset+=st})),rt}toHex(tt){return this.toBuffer(tt).toString("hex")}checkTxRoots(){const tt=this.hasWitnessCommit();return!tt&&this.hasWitness()?!1:this.__checkMerkleRoot()&&(tt?this.__checkWitnessCommit():!0)}checkProofOfWork(){const tt=(0,bufferutils_1$1.reverseBuffer)(this.getHash()),rt=Block.calculateTarget(this.bits);return tt.compare(rt)<=0}__checkMerkleRoot(){if(!this.transactions)throw errorMerkleNoTxes;const tt=Block.calculateMerkleRoot(this.transactions);return this.merkleRoot.compare(tt)===0}__checkWitnessCommit(){if(!this.transactions)throw errorMerkleNoTxes;if(!this.hasWitnessCommit())throw errorWitnessNotSegwit;const tt=Block.calculateMerkleRoot(this.transactions,!0);return this.witnessCommit.compare(tt)===0}}block.Block=Block;function txesHaveWitnessCommit(et){return et instanceof Array&&et[0]&&et[0].ins&&et[0].ins instanceof Array&&et[0].ins[0]&&et[0].ins[0].witness&&et[0].ins[0].witness instanceof Array&&et[0].ins[0].witness.length>0}function anyTxHasWitness(et){return et instanceof Array&&et.some(tt=>typeof tt=="object"&&tt.ins instanceof Array&&tt.ins.some(rt=>typeof rt=="object"&&rt.witness instanceof Array&&rt.witness.length>0))}var psbt$1={},psbt={},combiner={},parser$1={},fromBuffer={},converter={},typeFields={};(function(et){Object.defineProperty(et,"__esModule",{value:!0}),function(tt){tt[tt.UNSIGNED_TX=0]="UNSIGNED_TX",tt[tt.GLOBAL_XPUB=1]="GLOBAL_XPUB"}(et.GlobalTypes||(et.GlobalTypes={})),et.GLOBAL_TYPE_NAMES=["unsignedTx","globalXpub"],function(tt){tt[tt.NON_WITNESS_UTXO=0]="NON_WITNESS_UTXO",tt[tt.WITNESS_UTXO=1]="WITNESS_UTXO",tt[tt.PARTIAL_SIG=2]="PARTIAL_SIG",tt[tt.SIGHASH_TYPE=3]="SIGHASH_TYPE",tt[tt.REDEEM_SCRIPT=4]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=5]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=6]="BIP32_DERIVATION",tt[tt.FINAL_SCRIPTSIG=7]="FINAL_SCRIPTSIG",tt[tt.FINAL_SCRIPTWITNESS=8]="FINAL_SCRIPTWITNESS",tt[tt.POR_COMMITMENT=9]="POR_COMMITMENT",tt[tt.TAP_KEY_SIG=19]="TAP_KEY_SIG",tt[tt.TAP_SCRIPT_SIG=20]="TAP_SCRIPT_SIG",tt[tt.TAP_LEAF_SCRIPT=21]="TAP_LEAF_SCRIPT",tt[tt.TAP_BIP32_DERIVATION=22]="TAP_BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=23]="TAP_INTERNAL_KEY",tt[tt.TAP_MERKLE_ROOT=24]="TAP_MERKLE_ROOT"}(et.InputTypes||(et.InputTypes={})),et.INPUT_TYPE_NAMES=["nonWitnessUtxo","witnessUtxo","partialSig","sighashType","redeemScript","witnessScript","bip32Derivation","finalScriptSig","finalScriptWitness","porCommitment","tapKeySig","tapScriptSig","tapLeafScript","tapBip32Derivation","tapInternalKey","tapMerkleRoot"],function(tt){tt[tt.REDEEM_SCRIPT=0]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=1]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=2]="BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=5]="TAP_INTERNAL_KEY",tt[tt.TAP_TREE=6]="TAP_TREE",tt[tt.TAP_BIP32_DERIVATION=7]="TAP_BIP32_DERIVATION"}(et.OutputTypes||(et.OutputTypes={})),et.OUTPUT_TYPE_NAMES=["redeemScript","witnessScript","bip32Derivation","tapInternalKey","tapTree","tapBip32Derivation"]})(typeFields);var globalXpub$1={};Object.defineProperty(globalXpub$1,"__esModule",{value:!0});const typeFields_1$g=typeFields,range$2=et=>[...Array(et).keys()];function decode$h(et){if(et.key[0]!==typeFields_1$g.GlobalTypes.GLOBAL_XPUB)throw new Error("Decode Error: could not decode globalXpub with key 0x"+et.key.toString("hex"));if(et.key.length!==79||![2,3].includes(et.key[46]))throw new Error("Decode Error: globalXpub has invalid extended pubkey in key 0x"+et.key.toString("hex"));if(et.value.length/4%1!==0)throw new Error("Decode Error: Global GLOBAL_XPUB value length should be multiple of 4");const tt=et.key.slice(1),rt={masterFingerprint:et.value.slice(0,4),extendedPubkey:tt,path:"m"};for(const nt of range$2(et.value.length/4-1)){const it=et.value.readUInt32LE(nt*4+4),st=!!(it&2147483648),at=it&2147483647;rt.path+="/"+at.toString(10)+(st?"'":"")}return rt}globalXpub$1.decode=decode$h;function encode$i(et){const tt=Buffer.from([typeFields_1$g.GlobalTypes.GLOBAL_XPUB]),rt=Buffer.concat([tt,et.extendedPubkey]),nt=et.path.split("/"),it=Buffer.allocUnsafe(nt.length*4);et.masterFingerprint.copy(it,0);let st=4;return nt.slice(1).forEach(at=>{const ot=at.slice(-1)==="'";let lt=2147483647&parseInt(ot?at.slice(0,-1):at,10);ot&&(lt+=2147483648),it.writeUInt32LE(lt,st),st+=4}),{key:rt,value:it}}globalXpub$1.encode=encode$i;globalXpub$1.expected="{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";function check$c(et){const tt=et.extendedPubkey,rt=et.masterFingerprint,nt=et.path;return Buffer.isBuffer(tt)&&tt.length===78&&[2,3].indexOf(tt[45])>-1&&Buffer.isBuffer(rt)&&rt.length===4&&typeof nt=="string"&&!!nt.match(/^m(\/\d+'?)*$/)}globalXpub$1.check=check$c;function canAddToArray$3(et,tt,rt){const nt=tt.extendedPubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.extendedPubkey.equals(tt.extendedPubkey)).length===0)}globalXpub$1.canAddToArray=canAddToArray$3;var unsignedTx$1={};Object.defineProperty(unsignedTx$1,"__esModule",{value:!0});const typeFields_1$f=typeFields;function encode$h(et){return{key:Buffer.from([typeFields_1$f.GlobalTypes.UNSIGNED_TX]),value:et.toBuffer()}}unsignedTx$1.encode=encode$h;var finalScriptSig$1={};Object.defineProperty(finalScriptSig$1,"__esModule",{value:!0});const typeFields_1$e=typeFields;function decode$g(et){if(et.key[0]!==typeFields_1$e.InputTypes.FINAL_SCRIPTSIG)throw new Error("Decode Error: could not decode finalScriptSig with key 0x"+et.key.toString("hex"));return et.value}finalScriptSig$1.decode=decode$g;function encode$g(et){return{key:Buffer.from([typeFields_1$e.InputTypes.FINAL_SCRIPTSIG]),value:et}}finalScriptSig$1.encode=encode$g;finalScriptSig$1.expected="Buffer";function check$b(et){return Buffer.isBuffer(et)}finalScriptSig$1.check=check$b;function canAdd$8(et,tt){return!!et&&!!tt&&et.finalScriptSig===void 0}finalScriptSig$1.canAdd=canAdd$8;var finalScriptWitness$1={};Object.defineProperty(finalScriptWitness$1,"__esModule",{value:!0});const typeFields_1$d=typeFields;function decode$f(et){if(et.key[0]!==typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS)throw new Error("Decode Error: could not decode finalScriptWitness with key 0x"+et.key.toString("hex"));return et.value}finalScriptWitness$1.decode=decode$f;function encode$f(et){return{key:Buffer.from([typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS]),value:et}}finalScriptWitness$1.encode=encode$f;finalScriptWitness$1.expected="Buffer";function check$a(et){return Buffer.isBuffer(et)}finalScriptWitness$1.check=check$a;function canAdd$7(et,tt){return!!et&&!!tt&&et.finalScriptWitness===void 0}finalScriptWitness$1.canAdd=canAdd$7;var nonWitnessUtxo$1={};Object.defineProperty(nonWitnessUtxo$1,"__esModule",{value:!0});const typeFields_1$c=typeFields;function decode$e(et){if(et.key[0]!==typeFields_1$c.InputTypes.NON_WITNESS_UTXO)throw new Error("Decode Error: could not decode nonWitnessUtxo with key 0x"+et.key.toString("hex"));return et.value}nonWitnessUtxo$1.decode=decode$e;function encode$e(et){return{key:Buffer.from([typeFields_1$c.InputTypes.NON_WITNESS_UTXO]),value:et}}nonWitnessUtxo$1.encode=encode$e;nonWitnessUtxo$1.expected="Buffer";function check$9(et){return Buffer.isBuffer(et)}nonWitnessUtxo$1.check=check$9;function canAdd$6(et,tt){return!!et&&!!tt&&et.nonWitnessUtxo===void 0}nonWitnessUtxo$1.canAdd=canAdd$6;var partialSig$1={};Object.defineProperty(partialSig$1,"__esModule",{value:!0});const typeFields_1$b=typeFields;function decode$d(et){if(et.key[0]!==typeFields_1$b.InputTypes.PARTIAL_SIG)throw new Error("Decode Error: could not decode partialSig with key 0x"+et.key.toString("hex"));if(!(et.key.length===34||et.key.length===66)||![2,3,4].includes(et.key[1]))throw new Error("Decode Error: partialSig has invalid pubkey in key 0x"+et.key.toString("hex"));return{pubkey:et.key.slice(1),signature:et.value}}partialSig$1.decode=decode$d;function encode$d(et){const tt=Buffer.from([typeFields_1$b.InputTypes.PARTIAL_SIG]);return{key:Buffer.concat([tt,et.pubkey]),value:et.signature}}partialSig$1.encode=encode$d;partialSig$1.expected="{ pubkey: Buffer; signature: Buffer; }";function check$8(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.signature)&&[33,65].includes(et.pubkey.length)&&[2,3,4].includes(et.pubkey[0])&&isDerSigWithSighash(et.signature)}partialSig$1.check=check$8;function isDerSigWithSighash(et){if(!Buffer.isBuffer(et)||et.length<9||et[0]!==48||et.length!==et[1]+3||et[2]!==2)return!1;const tt=et[3];if(tt>33||tt<1||et[3+tt+1]!==2)return!1;const rt=et[3+tt+2];return!(rt>33||rt<1||et.length!==3+tt+2+rt+2)}function canAddToArray$2(et,tt,rt){const nt=tt.pubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)).length===0)}partialSig$1.canAddToArray=canAddToArray$2;var porCommitment$1={};Object.defineProperty(porCommitment$1,"__esModule",{value:!0});const typeFields_1$a=typeFields;function decode$c(et){if(et.key[0]!==typeFields_1$a.InputTypes.POR_COMMITMENT)throw new Error("Decode Error: could not decode porCommitment with key 0x"+et.key.toString("hex"));return et.value.toString("utf8")}porCommitment$1.decode=decode$c;function encode$c(et){return{key:Buffer.from([typeFields_1$a.InputTypes.POR_COMMITMENT]),value:Buffer.from(et,"utf8")}}porCommitment$1.encode=encode$c;porCommitment$1.expected="string";function check$7(et){return typeof et=="string"}porCommitment$1.check=check$7;function canAdd$5(et,tt){return!!et&&!!tt&&et.porCommitment===void 0}porCommitment$1.canAdd=canAdd$5;var sighashType$1={};Object.defineProperty(sighashType$1,"__esModule",{value:!0});const typeFields_1$9=typeFields;function decode$b(et){if(et.key[0]!==typeFields_1$9.InputTypes.SIGHASH_TYPE)throw new Error("Decode Error: could not decode sighashType with key 0x"+et.key.toString("hex"));return et.value.readUInt32LE(0)}sighashType$1.decode=decode$b;function encode$b(et){const tt=Buffer.from([typeFields_1$9.InputTypes.SIGHASH_TYPE]),rt=Buffer.allocUnsafe(4);return rt.writeUInt32LE(et,0),{key:tt,value:rt}}sighashType$1.encode=encode$b;sighashType$1.expected="number";function check$6(et){return typeof et=="number"}sighashType$1.check=check$6;function canAdd$4(et,tt){return!!et&&!!tt&&et.sighashType===void 0}sighashType$1.canAdd=canAdd$4;var tapKeySig$1={};Object.defineProperty(tapKeySig$1,"__esModule",{value:!0});const typeFields_1$8=typeFields;function decode$a(et){if(et.key[0]!==typeFields_1$8.InputTypes.TAP_KEY_SIG||et.key.length!==1)throw new Error("Decode Error: could not decode tapKeySig with key 0x"+et.key.toString("hex"));if(!check$5(et.value))throw new Error("Decode Error: tapKeySig not a valid 64-65-byte BIP340 signature");return et.value}tapKeySig$1.decode=decode$a;function encode$a(et){return{key:Buffer.from([typeFields_1$8.InputTypes.TAP_KEY_SIG]),value:et}}tapKeySig$1.encode=encode$a;tapKeySig$1.expected="Buffer";function check$5(et){return Buffer.isBuffer(et)&&(et.length===64||et.length===65)}tapKeySig$1.check=check$5;function canAdd$3(et,tt){return!!et&&!!tt&&et.tapKeySig===void 0}tapKeySig$1.canAdd=canAdd$3;var tapLeafScript$1={};Object.defineProperty(tapLeafScript$1,"__esModule",{value:!0});const typeFields_1$7=typeFields;function decode$9(et){if(et.key[0]!==typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT)throw new Error("Decode Error: could not decode tapLeafScript with key 0x"+et.key.toString("hex"));if((et.key.length-2)%32!==0)throw new Error("Decode Error: tapLeafScript has invalid control block in key 0x"+et.key.toString("hex"));const tt=et.value[et.value.length-1];if((et.key[1]&254)!==tt)throw new Error("Decode Error: tapLeafScript bad leaf version in key 0x"+et.key.toString("hex"));const rt=et.value.slice(0,-1);return{controlBlock:et.key.slice(1),script:rt,leafVersion:tt}}tapLeafScript$1.decode=decode$9;function encode$9(et){const tt=Buffer.from([typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT]),rt=Buffer.from([et.leafVersion]);return{key:Buffer.concat([tt,et.controlBlock]),value:Buffer.concat([et.script,rt])}}tapLeafScript$1.encode=encode$9;tapLeafScript$1.expected="{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";function check$4(et){return Buffer.isBuffer(et.controlBlock)&&(et.controlBlock.length-1)%32===0&&(et.controlBlock[0]&254)===et.leafVersion&&Buffer.isBuffer(et.script)}tapLeafScript$1.check=check$4;function canAddToArray$1(et,tt,rt){const nt=tt.controlBlock.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.controlBlock.equals(tt.controlBlock)).length===0)}tapLeafScript$1.canAddToArray=canAddToArray$1;var tapMerkleRoot$1={};Object.defineProperty(tapMerkleRoot$1,"__esModule",{value:!0});const typeFields_1$6=typeFields;function decode$8(et){if(et.key[0]!==typeFields_1$6.InputTypes.TAP_MERKLE_ROOT||et.key.length!==1)throw new Error("Decode Error: could not decode tapMerkleRoot with key 0x"+et.key.toString("hex"));if(!check$3(et.value))throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");return et.value}tapMerkleRoot$1.decode=decode$8;function encode$8(et){return{key:Buffer.from([typeFields_1$6.InputTypes.TAP_MERKLE_ROOT]),value:et}}tapMerkleRoot$1.encode=encode$8;tapMerkleRoot$1.expected="Buffer";function check$3(et){return Buffer.isBuffer(et)&&et.length===32}tapMerkleRoot$1.check=check$3;function canAdd$2(et,tt){return!!et&&!!tt&&et.tapMerkleRoot===void 0}tapMerkleRoot$1.canAdd=canAdd$2;var tapScriptSig$1={};Object.defineProperty(tapScriptSig$1,"__esModule",{value:!0});const typeFields_1$5=typeFields;function decode$7(et){if(et.key[0]!==typeFields_1$5.InputTypes.TAP_SCRIPT_SIG)throw new Error("Decode Error: could not decode tapScriptSig with key 0x"+et.key.toString("hex"));if(et.key.length!==65)throw new Error("Decode Error: tapScriptSig has invalid key 0x"+et.key.toString("hex"));if(et.value.length!==64&&et.value.length!==65)throw new Error("Decode Error: tapScriptSig has invalid signature in key 0x"+et.key.toString("hex"));const tt=et.key.slice(1,33),rt=et.key.slice(33);return{pubkey:tt,leafHash:rt,signature:et.value}}tapScriptSig$1.decode=decode$7;function encode$7(et){const tt=Buffer.from([typeFields_1$5.InputTypes.TAP_SCRIPT_SIG]);return{key:Buffer.concat([tt,et.pubkey,et.leafHash]),value:et.signature}}tapScriptSig$1.encode=encode$7;tapScriptSig$1.expected="{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";function check$2(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.leafHash)&&Buffer.isBuffer(et.signature)&&et.pubkey.length===32&&et.leafHash.length===32&&(et.signature.length===64||et.signature.length===65)}tapScriptSig$1.check=check$2;function canAddToArray(et,tt,rt){const nt=tt.pubkey.toString("hex")+tt.leafHash.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)&&it.leafHash.equals(tt.leafHash)).length===0)}tapScriptSig$1.canAddToArray=canAddToArray;var witnessUtxo$1={},tools={},varint={};Object.defineProperty(varint,"__esModule",{value:!0});const MAX_SAFE_INTEGER$2=9007199254740991;function checkUInt53(et){if(et<0||et>MAX_SAFE_INTEGER$2||et%1!==0)throw new RangeError("value out of range")}function encode$6(et,tt,rt){if(checkUInt53(et),tt||(tt=Buffer.allocUnsafe(encodingLength(et))),!Buffer.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),Object.assign(encode$6,{bytes:1})):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),Object.assign(encode$6,{bytes:3})):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),Object.assign(encode$6,{bytes:5})):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),Object.assign(encode$6,{bytes:9})),tt}varint.encode=encode$6;function decode$6(et,tt){if(!Buffer.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);const rt=et.readUInt8(tt);if(rt<253)return Object.assign(decode$6,{bytes:1}),rt;if(rt===253)return Object.assign(decode$6,{bytes:3}),et.readUInt16LE(tt+1);if(rt===254)return Object.assign(decode$6,{bytes:5}),et.readUInt32LE(tt+1);{Object.assign(decode$6,{bytes:9});const nt=et.readUInt32LE(tt+1),st=et.readUInt32LE(tt+5)*4294967296+nt;return checkUInt53(st),st}}varint.decode=decode$6;function encodingLength(et){return checkUInt53(et),et<253?1:et<=65535?3:et<=4294967295?5:9}varint.encodingLength=encodingLength;Object.defineProperty(tools,"__esModule",{value:!0});const varuint$6=varint;tools.range=et=>[...Array(et).keys()];function reverseBuffer(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;nttt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint(nt+rt,9007199254740991),nt+rt}tools.readUInt64LE=readUInt64LE;function writeUInt64LE(et,tt,rt){return verifuint(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}tools.writeUInt64LE=writeUInt64LE;Object.defineProperty(witnessUtxo$1,"__esModule",{value:!0});const typeFields_1$4=typeFields,tools_1$2=tools,varuint$5=varint;function decode$5(et){if(et.key[0]!==typeFields_1$4.InputTypes.WITNESS_UTXO)throw new Error("Decode Error: could not decode witnessUtxo with key 0x"+et.key.toString("hex"));const tt=tools_1$2.readUInt64LE(et.value,0);let rt=8;const nt=varuint$5.decode(et.value,rt);rt+=varuint$5.encodingLength(nt);const it=et.value.slice(rt);if(it.length!==nt)throw new Error("Decode Error: WITNESS_UTXO script is not proper length");return{script:it,value:tt}}witnessUtxo$1.decode=decode$5;function encode$5(et){const{script:tt,value:rt}=et,nt=varuint$5.encodingLength(tt.length),it=Buffer.allocUnsafe(8+nt+tt.length);return tools_1$2.writeUInt64LE(it,rt,0),varuint$5.encode(tt.length,it,8),tt.copy(it,8+nt),{key:Buffer.from([typeFields_1$4.InputTypes.WITNESS_UTXO]),value:it}}witnessUtxo$1.encode=encode$5;witnessUtxo$1.expected="{ script: Buffer; value: number; }";function check$1(et){return Buffer.isBuffer(et.script)&&typeof et.value=="number"}witnessUtxo$1.check=check$1;function canAdd$1(et,tt){return!!et&&!!tt&&et.witnessUtxo===void 0}witnessUtxo$1.canAdd=canAdd$1;var tapTree$1={};Object.defineProperty(tapTree$1,"__esModule",{value:!0});const typeFields_1$3=typeFields,varuint$4=varint;function decode$4(et){if(et.key[0]!==typeFields_1$3.OutputTypes.TAP_TREE||et.key.length!==1)throw new Error("Decode Error: could not decode tapTree with key 0x"+et.key.toString("hex"));let tt=0;const rt=[];for(;tt[Buffer.of(nt.depth,nt.leafVersion),varuint$4.encode(nt.script.length),nt.script]));return{key:tt,value:Buffer.concat(rt)}}tapTree$1.encode=encode$4;tapTree$1.expected="{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";function check(et){return Array.isArray(et.leaves)&&et.leaves.every(tt=>tt.depth>=0&&tt.depth<=128&&(tt.leafVersion&254)===tt.leafVersion&&Buffer.isBuffer(tt.script))}tapTree$1.check=check;function canAdd(et,tt){return!!et&&!!tt&&et.tapTree===void 0}tapTree$1.canAdd=canAdd;var bip32Derivation$2={};Object.defineProperty(bip32Derivation$2,"__esModule",{value:!0});const range$1=et=>[...Array(et).keys()],isValidDERKey=et=>et.length===33&&[2,3].includes(et[0])||et.length===65&&et[0]===4;function makeConverter$4(et,tt=isValidDERKey){function rt(ot){if(ot.key[0]!==et)throw new Error("Decode Error: could not decode bip32Derivation with key 0x"+ot.key.toString("hex"));const lt=ot.key.slice(1);if(!tt(lt))throw new Error("Decode Error: bip32Derivation has invalid pubkey in key 0x"+ot.key.toString("hex"));if(ot.value.length/4%1!==0)throw new Error("Decode Error: Input BIP32_DERIVATION value length should be multiple of 4");const ut={masterFingerprint:ot.value.slice(0,4),pubkey:lt,path:"m"};for(const dt of range$1(ot.value.length/4-1)){const bt=ot.value.readUInt32LE(dt*4+4),gt=!!(bt&2147483648),kt=bt&2147483647;ut.path+="/"+kt.toString(10)+(gt?"'":"")}return ut}function nt(ot){const lt=Buffer.from([et]),ut=Buffer.concat([lt,ot.pubkey]),dt=ot.path.split("/"),bt=Buffer.allocUnsafe(dt.length*4);ot.masterFingerprint.copy(bt,0);let gt=4;return dt.slice(1).forEach(kt=>{const pt=kt.slice(-1)==="'";let yt=2147483647&parseInt(pt?kt.slice(0,-1):kt,10);pt&&(yt+=2147483648),bt.writeUInt32LE(yt,gt),gt+=4}),{key:ut,value:bt}}const it="{ masterFingerprint: Buffer; pubkey: Buffer; path: string; }";function st(ot){return Buffer.isBuffer(ot.pubkey)&&Buffer.isBuffer(ot.masterFingerprint)&&typeof ot.path=="string"&&tt(ot.pubkey)&&ot.masterFingerprint.length===4}function at(ot,lt,ut){const dt=lt.pubkey.toString("hex");return ut.has(dt)?!1:(ut.add(dt),ot.filter(bt=>bt.pubkey.equals(lt.pubkey)).length===0)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:at}}bip32Derivation$2.makeConverter=makeConverter$4;var checkPubkey$1={};Object.defineProperty(checkPubkey$1,"__esModule",{value:!0});function makeChecker(et){return tt;function tt(rt){let nt;if(et.includes(rt.key[0])&&(nt=rt.key.slice(1),!(nt.length===33||nt.length===65)||![2,3,4].includes(nt[0])))throw new Error("Format Error: invalid pubkey in key 0x"+rt.key.toString("hex"));return nt}}checkPubkey$1.makeChecker=makeChecker;var redeemScript$1={};Object.defineProperty(redeemScript$1,"__esModule",{value:!0});function makeConverter$3(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode redeemScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.redeemScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}redeemScript$1.makeConverter=makeConverter$3;var tapBip32Derivation$1={};Object.defineProperty(tapBip32Derivation$1,"__esModule",{value:!0});const varuint$3=varint,bip32Derivation$1=bip32Derivation$2,isValidBIP340Key=et=>et.length===32;function makeConverter$2(et){const tt=bip32Derivation$1.makeConverter(et,isValidBIP340Key);function rt(at){const ot=varuint$3.decode(at.value),lt=varuint$3.encodingLength(ot),ut=tt.decode({key:at.key,value:at.value.slice(lt+ot*32)}),dt=new Array(ot);for(let bt=0,gt=lt;btBuffer.isBuffer(ot)&&ot.length===32)&&tt.check(at)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:tt.canAddToArray}}tapBip32Derivation$1.makeConverter=makeConverter$2;var tapInternalKey$1={};Object.defineProperty(tapInternalKey$1,"__esModule",{value:!0});function makeConverter$1(et){function tt(at){if(at.key[0]!==et||at.key.length!==1)throw new Error("Decode Error: could not decode tapInternalKey with key 0x"+at.key.toString("hex"));if(at.value.length!==32)throw new Error("Decode Error: tapInternalKey not a 32-byte x-only pubkey");return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)&&at.length===32}function st(at,ot){return!!at&&!!ot&&at.tapInternalKey===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}tapInternalKey$1.makeConverter=makeConverter$1;var witnessScript$1={};Object.defineProperty(witnessScript$1,"__esModule",{value:!0});function makeConverter(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode witnessScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.witnessScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}witnessScript$1.makeConverter=makeConverter;Object.defineProperty(converter,"__esModule",{value:!0});const typeFields_1$2=typeFields,globalXpub=globalXpub$1,unsignedTx=unsignedTx$1,finalScriptSig=finalScriptSig$1,finalScriptWitness=finalScriptWitness$1,nonWitnessUtxo=nonWitnessUtxo$1,partialSig=partialSig$1,porCommitment=porCommitment$1,sighashType=sighashType$1,tapKeySig=tapKeySig$1,tapLeafScript=tapLeafScript$1,tapMerkleRoot=tapMerkleRoot$1,tapScriptSig=tapScriptSig$1,witnessUtxo=witnessUtxo$1,tapTree=tapTree$1,bip32Derivation=bip32Derivation$2,checkPubkey=checkPubkey$1,redeemScript=redeemScript$1,tapBip32Derivation=tapBip32Derivation$1,tapInternalKey=tapInternalKey$1,witnessScript=witnessScript$1,globals={unsignedTx,globalXpub,checkPubkey:checkPubkey.makeChecker([])};converter.globals=globals;const inputs={nonWitnessUtxo,partialSig,sighashType,finalScriptSig,finalScriptWitness,porCommitment,witnessUtxo,bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.InputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.InputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.InputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.InputTypes.PARTIAL_SIG,typeFields_1$2.InputTypes.BIP32_DERIVATION]),tapKeySig,tapScriptSig,tapLeafScript,tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.InputTypes.TAP_BIP32_DERIVATION),tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.InputTypes.TAP_INTERNAL_KEY),tapMerkleRoot};converter.inputs=inputs;const outputs={bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.OutputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.OutputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.OutputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.OutputTypes.BIP32_DERIVATION]),tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.OutputTypes.TAP_BIP32_DERIVATION),tapTree,tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.OutputTypes.TAP_INTERNAL_KEY)};converter.outputs=outputs;Object.defineProperty(fromBuffer,"__esModule",{value:!0});const convert$2=converter,tools_1$1=tools,varuint$2=varint,typeFields_1$1=typeFields;function psbtFromBuffer(et,tt){let rt=0;function nt(){const $t=varuint$2.decode(et,rt);rt+=varuint$2.encodingLength($t);const mt=et.slice(rt,rt+$t);return rt+=$t,mt}function it(){const $t=et.readUInt32BE(rt);return rt+=4,$t}function st(){const $t=et.readUInt8(rt);return rt+=1,$t}function at(){const $t=nt(),mt=nt();return{key:$t,value:mt}}function ot(){if(rt>=et.length)throw new Error("Format Error: Unexpected End of PSBT");const $t=et.readUInt8(rt)===0;return $t&&rt++,$t}if(it()!==1886610036)throw new Error("Format Error: Invalid Magic Number");if(st()!==255)throw new Error("Format Error: Magic Number must be followed by 0xff separator");const lt=[],ut={};for(;!ot();){const $t=at(),mt=$t.key.toString("hex");if(ut[mt])throw new Error("Format Error: Keys must be unique for global keymap: key "+mt);ut[mt]=1,lt.push($t)}const dt=lt.filter($t=>$t.key[0]===typeFields_1$1.GlobalTypes.UNSIGNED_TX);if(dt.length!==1)throw new Error("Format Error: Only one UNSIGNED_TX allowed");const bt=tt(dt[0].value),{inputCount:gt,outputCount:kt}=bt.getInputOutputCounts(),pt=[],yt=[];for(const $t of tools_1$1.range(gt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each input: input index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}pt.push(wt)}for(const $t of tools_1$1.range(kt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each output: output index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}yt.push(wt)}return psbtFromKeyVals(bt,{globalMapKeyVals:lt,inputKeyVals:pt,outputKeyVals:yt})}fromBuffer.psbtFromBuffer=psbtFromBuffer;function checkKeyBuffer(et,tt,rt){if(!tt.equals(Buffer.from([rt])))throw new Error(`Format Error: Invalid ${et} key: ${tt.toString("hex")}`)}fromBuffer.checkKeyBuffer=checkKeyBuffer;function psbtFromKeyVals(et,{globalMapKeyVals:tt,inputKeyVals:rt,outputKeyVals:nt}){const it={unsignedTx:et};let st=0;for(const dt of tt)switch(dt.key[0]){case typeFields_1$1.GlobalTypes.UNSIGNED_TX:if(checkKeyBuffer("global",dt.key,typeFields_1$1.GlobalTypes.UNSIGNED_TX),st>0)throw new Error("Format Error: GlobalMap has multiple UNSIGNED_TX");st++;break;case typeFields_1$1.GlobalTypes.GLOBAL_XPUB:it.globalXpub===void 0&&(it.globalXpub=[]),it.globalXpub.push(convert$2.globals.globalXpub.decode(dt));break;default:it.unknownKeyVals||(it.unknownKeyVals=[]),it.unknownKeyVals.push(dt)}const at=rt.length,ot=nt.length,lt=[],ut=[];for(const dt of tools_1$1.range(at)){const bt={};for(const gt of rt[dt])switch(convert$2.inputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.InputTypes.NON_WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.NON_WITNESS_UTXO),bt.nonWitnessUtxo!==void 0)throw new Error("Format Error: Input has multiple NON_WITNESS_UTXO");bt.nonWitnessUtxo=convert$2.inputs.nonWitnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_UTXO),bt.witnessUtxo!==void 0)throw new Error("Format Error: Input has multiple WITNESS_UTXO");bt.witnessUtxo=convert$2.inputs.witnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.PARTIAL_SIG:bt.partialSig===void 0&&(bt.partialSig=[]),bt.partialSig.push(convert$2.inputs.partialSig.decode(gt));break;case typeFields_1$1.InputTypes.SIGHASH_TYPE:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.SIGHASH_TYPE),bt.sighashType!==void 0)throw new Error("Format Error: Input has multiple SIGHASH_TYPE");bt.sighashType=convert$2.inputs.sighashType.decode(gt);break;case typeFields_1$1.InputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Input has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.inputs.redeemScript.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Input has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.inputs.witnessScript.decode(gt);break;case typeFields_1$1.InputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.inputs.bip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.FINAL_SCRIPTSIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTSIG),bt.finalScriptSig=convert$2.inputs.finalScriptSig.decode(gt);break;case typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS),bt.finalScriptWitness=convert$2.inputs.finalScriptWitness.decode(gt);break;case typeFields_1$1.InputTypes.POR_COMMITMENT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.POR_COMMITMENT),bt.porCommitment=convert$2.inputs.porCommitment.decode(gt);break;case typeFields_1$1.InputTypes.TAP_KEY_SIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_KEY_SIG),bt.tapKeySig=convert$2.inputs.tapKeySig.decode(gt);break;case typeFields_1$1.InputTypes.TAP_SCRIPT_SIG:bt.tapScriptSig===void 0&&(bt.tapScriptSig=[]),bt.tapScriptSig.push(convert$2.inputs.tapScriptSig.decode(gt));break;case typeFields_1$1.InputTypes.TAP_LEAF_SCRIPT:bt.tapLeafScript===void 0&&(bt.tapLeafScript=[]),bt.tapLeafScript.push(convert$2.inputs.tapLeafScript.decode(gt));break;case typeFields_1$1.InputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.inputs.tapBip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.inputs.tapInternalKey.decode(gt);break;case typeFields_1$1.InputTypes.TAP_MERKLE_ROOT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_MERKLE_ROOT),bt.tapMerkleRoot=convert$2.inputs.tapMerkleRoot.decode(gt);break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}lt.push(bt)}for(const dt of tools_1$1.range(ot)){const bt={};for(const gt of nt[dt])switch(convert$2.outputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.OutputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Output has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.outputs.redeemScript.decode(gt);break;case typeFields_1$1.OutputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Output has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.outputs.witnessScript.decode(gt);break;case typeFields_1$1.OutputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.outputs.bip32Derivation.decode(gt));break;case typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.outputs.tapInternalKey.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_TREE:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_TREE),bt.tapTree=convert$2.outputs.tapTree.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.outputs.tapBip32Derivation.decode(gt));break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}ut.push(bt)}return{globalMap:it,inputs:lt,outputs:ut}}fromBuffer.psbtFromKeyVals=psbtFromKeyVals;var toBuffer={};Object.defineProperty(toBuffer,"__esModule",{value:!0});const convert$1=converter,tools_1=tools;function psbtToBuffer({globalMap:et,inputs:tt,outputs:rt}){const{globalKeyVals:nt,inputKeyVals:it,outputKeyVals:st}=psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}),at=tools_1.keyValsToBuffer(nt),ot=bt=>bt.length===0?[Buffer.from([0])]:bt.map(tools_1.keyValsToBuffer),lt=ot(it),ut=ot(st),dt=Buffer.allocUnsafe(5);return dt.writeUIntBE(482972169471,0,5),Buffer.concat([dt,at].concat(lt,ut))}toBuffer.psbtToBuffer=psbtToBuffer;const sortKeyVals=(et,tt)=>et.key.compare(tt.key);function keyValsFromMap(et,tt){const rt=new Set,nt=Object.entries(et).reduce((st,[at,ot])=>{if(at==="unknownKeyVals")return st;const lt=tt[at];if(lt===void 0)return st;const ut=(Array.isArray(ot)?ot:[ot]).map(lt.encode);return ut.map(bt=>bt.key.toString("hex")).forEach(bt=>{if(rt.has(bt))throw new Error("Serialize Error: Duplicate key: "+bt);rt.add(bt)}),st.concat(ut)},[]),it=et.unknownKeyVals?et.unknownKeyVals.filter(st=>!rt.has(st.key.toString("hex"))):[];return nt.concat(it).sort(sortKeyVals)}function psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}){return{globalKeyVals:keyValsFromMap(et,convert$1.globals),inputKeyVals:tt.map(nt=>keyValsFromMap(nt,convert$1.inputs)),outputKeyVals:rt.map(nt=>keyValsFromMap(nt,convert$1.outputs))}}toBuffer.psbtToKeyVals=psbtToKeyVals;(function(et){function tt(rt){for(var nt in rt)et.hasOwnProperty(nt)||(et[nt]=rt[nt])}Object.defineProperty(et,"__esModule",{value:!0}),tt(fromBuffer),tt(toBuffer)})(parser$1);Object.defineProperty(combiner,"__esModule",{value:!0});const parser_1$1=parser$1;function combine$1(et){const tt=et[0],rt=parser_1$1.psbtToKeyVals(tt),nt=et.slice(1);if(nt.length===0)throw new Error("Combine: Nothing to combine");const it=getTx(tt);if(it===void 0)throw new Error("Combine: Self missing transaction");const st=getKeySet(rt.globalKeyVals),at=rt.inputKeyVals.map(getKeySet),ot=rt.outputKeyVals.map(getKeySet);for(const lt of nt){const ut=getTx(lt);if(ut===void 0||!ut.toBuffer().equals(it.toBuffer()))throw new Error("Combine: One of the Psbts does not have the same transaction.");const dt=parser_1$1.psbtToKeyVals(lt);getKeySet(dt.globalKeyVals).forEach(keyPusher(st,rt.globalKeyVals,dt.globalKeyVals)),dt.inputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(at[yt],rt.inputKeyVals[yt],dt.inputKeyVals[yt]))),dt.outputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(ot[yt],rt.outputKeyVals[yt],dt.outputKeyVals[yt])))}return parser_1$1.psbtFromKeyVals(it,{globalMapKeyVals:rt.globalKeyVals,inputKeyVals:rt.inputKeyVals,outputKeyVals:rt.outputKeyVals})}combiner.combine=combine$1;function keyPusher(et,tt,rt){return nt=>{if(et.has(nt))return;const it=rt.filter(st=>st.key.toString("hex")===nt)[0];tt.push(it),et.add(nt)}}function getTx(et){return et.globalMap.unsignedTx}function getKeySet(et){const tt=new Set;return et.forEach(rt=>{const nt=rt.key.toString("hex");if(tt.has(nt))throw new Error("Combine: KeyValue Map keys should be unique");tt.add(nt)}),tt}var utils={};(function(et){Object.defineProperty(et,"__esModule",{value:!0});const tt=converter;function rt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No input #${pt}`);return yt}et.checkForInput=rt;function nt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No output #${pt}`);return yt}et.checkForOutput=nt;function it(kt,pt,yt){if(kt.key[0]$t.key.equals(kt.key)).length!==0)throw new Error(`Duplicate Key: ${kt.key.toString("hex")}`)}et.checkHasKey=it;function st(kt){let pt=0;return Object.keys(kt).forEach(yt=>{Number(isNaN(Number(yt)))&&pt++}),pt}et.getEnumLength=st;function at(kt,pt){let yt=!1;if(pt.nonWitnessUtxo||pt.witnessUtxo){const $t=!!pt.redeemScript,mt=!!pt.witnessScript,wt=!$t||!!pt.finalScriptSig,St=!mt||!!pt.finalScriptWitness,Bt=!!pt.finalScriptSig||!!pt.finalScriptWitness;yt=wt&&St&&Bt}if(yt===!1)throw new Error(`Input #${kt} has too much or too little data to clean`)}et.inputCheckUncleanFinalized=at;function ot(kt,pt,yt,$t){throw new Error(`Data for ${kt} key ${pt} is incorrect: Expected ${yt} and got ${JSON.stringify($t)}`)}function lt(kt){return(pt,yt)=>{for(const $t of Object.keys(pt)){const mt=pt[$t],{canAdd:wt,canAddToArray:St,check:Bt,expected:Ft}=tt[kt+"s"][$t]||{},Lt=!!St;if(Bt)if(Lt){if(!Array.isArray(mt)||yt[$t]&&!Array.isArray(yt[$t]))throw new Error(`Key type ${$t} must be an array`);mt.every(Bt)||ot(kt,$t,Ft,mt);const zt=yt[$t]||[],Ht=new Set;if(!mt.every(Wt=>St(zt,Wt,Ht)))throw new Error("Can not add duplicate data to array");yt[$t]=zt.concat(mt)}else{if(Bt(mt)||ot(kt,$t,Ft,mt),!wt(yt,mt))throw new Error(`Can not add duplicate data to ${kt}`);yt[$t]=mt}}}}et.updateGlobal=lt("global"),et.updateInput=lt("input"),et.updateOutput=lt("output");function ut(kt,pt){const yt=kt.length-1,$t=rt(kt,yt);et.updateInput(pt,$t)}et.addInputAttributes=ut;function dt(kt,pt){const yt=kt.length-1,$t=nt(kt,yt);et.updateOutput(pt,$t)}et.addOutputAttributes=dt;function bt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Version: Invalid Transaction");return pt.writeUInt32LE(kt,0),pt}et.defaultVersionSetter=bt;function gt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Locktime: Invalid Transaction");return pt.writeUInt32LE(kt,pt.length-4),pt}et.defaultLocktimeSetter=gt})(utils);Object.defineProperty(psbt,"__esModule",{value:!0});const combiner_1=combiner,parser_1=parser$1,typeFields_1=typeFields,utils_1$1=utils;let Psbt$1=class{constructor(tt){this.inputs=[],this.outputs=[],this.globalMap={unsignedTx:tt}}static fromBase64(tt,rt){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt){const nt=parser_1.psbtFromBuffer(tt,rt),it=new this(nt.globalMap.unsignedTx);return Object.assign(it,nt),it}toBase64(){return this.toBuffer().toString("base64")}toHex(){return this.toBuffer().toString("hex")}toBuffer(){return parser_1.psbtToBuffer(this)}updateGlobal(tt){return utils_1$1.updateGlobal(tt,this.globalMap),this}updateInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.updateInput(rt,nt),this}updateOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.updateOutput(rt,nt),this}addUnknownKeyValToGlobal(tt){return utils_1$1.checkHasKey(tt,this.globalMap.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.GlobalTypes)),this.globalMap.unknownKeyVals||(this.globalMap.unknownKeyVals=[]),this.globalMap.unknownKeyVals.push(tt),this}addUnknownKeyValToInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.InputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addUnknownKeyValToOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.OutputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addInput(tt){this.globalMap.unsignedTx.addInput(tt),this.inputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.inputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToInput(nt,it)),utils_1$1.addInputAttributes(this.inputs,tt),this}addOutput(tt){this.globalMap.unsignedTx.addOutput(tt),this.outputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.outputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToOutput(nt,it)),utils_1$1.addOutputAttributes(this.outputs,tt),this}clearFinalizedInput(tt){const rt=utils_1$1.checkForInput(this.inputs,tt);utils_1$1.inputCheckUncleanFinalized(tt,rt);for(const nt of Object.keys(rt))["witnessUtxo","nonWitnessUtxo","finalScriptSig","finalScriptWitness","unknownKeyVals"].includes(nt)||delete rt[nt];return this}combine(...tt){const rt=combiner_1.combine([this].concat(tt));return Object.assign(this,rt),this}getTransaction(){return this.globalMap.unsignedTx.toBuffer()}};psbt.Psbt=Psbt$1;var bip371={},psbtutils={};Object.defineProperty(psbtutils,"__esModule",{value:!0});psbtutils.signatureBlocksAction=psbtutils.checkInputForSig=psbtutils.pubkeyInScript=psbtutils.pubkeyPositionInScript=psbtutils.witnessStackToScriptWitness=psbtutils.isP2TR=psbtutils.isP2SHScript=psbtutils.isP2WSHScript=psbtutils.isP2WPKH=psbtutils.isP2PKH=psbtutils.isP2PK=psbtutils.isP2MS=void 0;const varuint$1=varint,bscript$1=script,transaction_1$2=transaction,crypto_1=crypto$2,payments$1=payments$3;function isPaymentFactory(et){return tt=>{try{return et({output:tt}),!0}catch{return!1}}}psbtutils.isP2MS=isPaymentFactory(payments$1.p2ms);psbtutils.isP2PK=isPaymentFactory(payments$1.p2pk);psbtutils.isP2PKH=isPaymentFactory(payments$1.p2pkh);psbtutils.isP2WPKH=isPaymentFactory(payments$1.p2wpkh);psbtutils.isP2WSHScript=isPaymentFactory(payments$1.p2wsh);psbtutils.isP2SHScript=isPaymentFactory(payments$1.p2sh);psbtutils.isP2TR=isPaymentFactory(payments$1.p2tr);function witnessStackToScriptWitness(et){let tt=Buffer.allocUnsafe(0);function rt(at){tt=Buffer.concat([tt,Buffer.from(at)])}function nt(at){const ot=tt.length,lt=varuint$1.encodingLength(at);tt=Buffer.concat([tt,Buffer.allocUnsafe(lt)]),varuint$1.encode(at,tt,ot)}function it(at){nt(at.length),rt(at)}function st(at){nt(at.length),at.forEach(it)}return st(et),tt}psbtutils.witnessStackToScriptWitness=witnessStackToScriptWitness;function pubkeyPositionInScript(et,tt){const rt=(0,crypto_1.hash160)(et),nt=et.slice(1,33),it=bscript$1.decompile(tt);if(it===null)throw new Error("Unknown script error");return it.findIndex(st=>typeof st=="number"?!1:st.equals(et)||st.equals(rt)||st.equals(nt))}psbtutils.pubkeyPositionInScript=pubkeyPositionInScript;function pubkeyInScript(et,tt){return pubkeyPositionInScript(et,tt)!==-1}psbtutils.pubkeyInScript=pubkeyInScript;function checkInputForSig(et,tt){return extractPartialSigs(et).some(nt=>signatureBlocksAction(nt,bscript$1.signature.decode,tt))}psbtutils.checkInputForSig=checkInputForSig;function signatureBlocksAction(et,tt,rt){const{hashType:nt}=tt(et),it=[];switch(nt&transaction_1$2.Transaction.SIGHASH_ANYONECANPAY&&it.push("addInput"),nt&31){case transaction_1$2.Transaction.SIGHASH_ALL:break;case transaction_1$2.Transaction.SIGHASH_SINGLE:case transaction_1$2.Transaction.SIGHASH_NONE:it.push("addOutput"),it.push("setInputSequence");break}return it.indexOf(rt)===-1}psbtutils.signatureBlocksAction=signatureBlocksAction;function extractPartialSigs(et){let tt=[];if((et.partialSig||[]).length===0){if(!et.finalScriptSig&&!et.finalScriptWitness)return[];tt=getPsigsFromInputFinalScripts(et)}else tt=et.partialSig;return tt.map(rt=>rt.signature)}function getPsigsFromInputFinalScripts(et){const tt=et.finalScriptSig?bscript$1.decompile(et.finalScriptSig)||[]:[],rt=et.finalScriptWitness?bscript$1.decompile(et.finalScriptWitness)||[]:[];return tt.concat(rt).filter(nt=>Buffer.isBuffer(nt)&&bscript$1.isCanonicalScriptSignature(nt)).map(nt=>({signature:nt}))}Object.defineProperty(bip371,"__esModule",{value:!0});bip371.checkTaprootInputForSigs=bip371.tapTreeFromList=bip371.tapTreeToList=bip371.tweakInternalPubKey=bip371.checkTaprootOutputFields=bip371.checkTaprootInputFields=bip371.isTaprootOutput=bip371.isTaprootInput=bip371.serializeTaprootSignature=bip371.tapScriptFinalizer=bip371.toXOnly=void 0;const types_1=types$6,transaction_1$1=transaction,psbtutils_1$1=psbtutils,bip341_1$1=bip341,payments_1=payments$3,psbtutils_2=psbtutils,toXOnly=et=>et.length===32?et:et.slice(1,33);bip371.toXOnly=toXOnly;function tapScriptFinalizer(et,tt,rt){const nt=findTapLeafToFinalize(tt,et,rt);try{const st=sortSignatures(tt,nt).concat(nt.script).concat(nt.controlBlock);return{finalScriptWitness:(0,psbtutils_1$1.witnessStackToScriptWitness)(st)}}catch(it){throw new Error(`Can not finalize taproot input #${et}: ${it}`)}}bip371.tapScriptFinalizer=tapScriptFinalizer;function serializeTaprootSignature(et,tt){const rt=tt?Buffer.from([tt]):Buffer.from([]);return Buffer.concat([et,rt])}bip371.serializeTaprootSignature=serializeTaprootSignature;function isTaprootInput(et){return et&&!!(et.tapInternalKey||et.tapMerkleRoot||et.tapLeafScript&&et.tapLeafScript.length||et.tapBip32Derivation&&et.tapBip32Derivation.length||et.witnessUtxo&&(0,psbtutils_1$1.isP2TR)(et.witnessUtxo.script))}bip371.isTaprootInput=isTaprootInput;function isTaprootOutput(et,tt){return et&&!!(et.tapInternalKey||et.tapTree||et.tapBip32Derivation&&et.tapBip32Derivation.length||tt&&(0,psbtutils_1$1.isP2TR)(tt))}bip371.isTaprootOutput=isTaprootOutput;function checkTaprootInputFields(et,tt,rt){checkMixedTaprootAndNonTaprootInputFields(et,tt,rt),checkIfTapLeafInTree(et,tt,rt)}bip371.checkTaprootInputFields=checkTaprootInputFields;function checkTaprootOutputFields(et,tt,rt){checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt),checkTaprootScriptPubkey(et,tt)}bip371.checkTaprootOutputFields=checkTaprootOutputFields;function checkTaprootScriptPubkey(et,tt){if(!tt.tapTree&&!tt.tapInternalKey)return;const rt=tt.tapInternalKey||et.tapInternalKey,nt=tt.tapTree||et.tapTree;if(rt){const{script:it}=et,st=getTaprootScripPubkey(rt,nt);if(it&&!it.equals(st))throw new Error("Error adding output. Script or address missmatch.")}}function getTaprootScripPubkey(et,tt){const rt=tt&&tapTreeFromList(tt.leaves),{output:nt}=(0,payments_1.p2tr)({internalPubkey:et,scriptTree:rt});return nt}function tweakInternalPubKey(et,tt){const rt=tt.tapInternalKey,nt=rt&&(0,bip341_1$1.tweakKey)(rt,tt.tapMerkleRoot);if(!nt)throw new Error(`Cannot tweak tap internal key for input #${et}. Public key: ${rt&&rt.toString("hex")}`);return nt.x}bip371.tweakInternalPubKey=tweakInternalPubKey;function tapTreeToList(et){if(!(0,types_1.isTaptree)(et))throw new Error("Cannot convert taptree to tapleaf list. Expecting a tapree structure.");return _tapTreeToList(et)}bip371.tapTreeToList=tapTreeToList;function tapTreeFromList(et=[]){return et.length===1&&et[0].depth===0?{output:et[0].script,version:et[0].leafVersion}:instertLeavesInTree(et)}bip371.tapTreeFromList=tapTreeFromList;function checkTaprootInputForSigs(et,tt){return extractTaprootSigs(et).some(nt=>(0,psbtutils_2.signatureBlocksAction)(nt,decodeSchnorrSignature,tt))}bip371.checkTaprootInputForSigs=checkTaprootInputForSigs;function decodeSchnorrSignature(et){return{signature:et.slice(0,64),hashType:et.slice(64)[0]||transaction_1$1.Transaction.SIGHASH_DEFAULT}}function extractTaprootSigs(et){const tt=[];if(et.tapKeySig&&tt.push(et.tapKeySig),et.tapScriptSig&&tt.push(...et.tapScriptSig.map(rt=>rt.signature)),!tt.length){const rt=getTapKeySigFromWithness(et.finalScriptWitness);rt&&tt.push(rt)}return tt}function getTapKeySigFromWithness(et){if(!et)return;const tt=et.slice(2);if(tt.length===64||tt.length===65)return tt}function _tapTreeToList(et,tt=[],rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");return et?(0,types_1.isTapleaf)(et)?(tt.push({depth:rt,leafVersion:et.version||bip341_1$1.LEAF_VERSION_TAPSCRIPT,script:et.output}),tt):(et[0]&&_tapTreeToList(et[0],tt,rt+1),et[1]&&_tapTreeToList(et[1],tt,rt+1),tt):[]}function instertLeavesInTree(et){let tt;for(const rt of et)if(tt=instertLeafInTree(rt,tt),!tt)throw new Error("No room left to insert tapleaf in tree");return tt}function instertLeafInTree(et,tt,rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");if(et.depth===rt)return tt?void 0:{output:et.script,version:et.leafVersion};if((0,types_1.isTapleaf)(tt))return;const nt=instertLeafInTree(et,tt&&tt[0],rt+1);if(nt)return[nt,tt&&tt[1]];const it=instertLeafInTree(et,tt&&tt[1],rt+1);if(it)return[tt&&tt[0],it]}function checkMixedTaprootAndNonTaprootInputFields(et,tt,rt){const nt=isTaprootInput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootInput(tt),st=et===tt&&isTaprootInput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt){const nt=isTaprootOutput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootOutput(tt),st=et===tt&&isTaprootOutput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkIfTapLeafInTree(et,tt,rt){if(tt.tapMerkleRoot){const nt=(tt.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot)),it=(et.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot));if(!nt||!it)throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}else if(et.tapMerkleRoot&&!(tt.tapLeafScript||[]).every(it=>isTapLeafInTree(it,et.tapMerkleRoot)))throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}function isTapLeafInTree(et,tt){if(!tt)return!0;const rt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(0,bip341_1$1.rootHashFromPath)(et.controlBlock,rt).equals(tt)}function sortSignatures(et,tt){const rt=(0,bip341_1$1.tapleafHash)({output:tt.script,version:tt.leafVersion});return(et.tapScriptSig||[]).filter(nt=>nt.leafHash.equals(rt)).map(nt=>addPubkeyPositionInScript(tt.script,nt)).sort((nt,it)=>it.positionInScript-nt.positionInScript).map(nt=>nt.signature)}function addPubkeyPositionInScript(et,tt){return Object.assign({positionInScript:(0,psbtutils_1$1.pubkeyPositionInScript)(tt.pubkey,et)},tt)}function findTapLeafToFinalize(et,tt,rt){if(!et.tapScriptSig||!et.tapScriptSig.length)throw new Error(`Can not finalize taproot input #${tt}. No tapleaf script signature provided.`);const nt=(et.tapLeafScript||[]).sort((it,st)=>it.controlBlock.length-st.controlBlock.length).find(it=>canFinalizeLeaf(it,et.tapScriptSig,rt));if(!nt)throw new Error(`Can not finalize taproot input #${tt}. Signature for tapleaf script not found.`);return nt}function canFinalizeLeaf(et,tt,rt){const nt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(!rt||rt.equals(nt))&&tt.find(st=>st.leafHash.equals(nt))!==void 0}function hasNonTaprootFields(et){return et&&!!(et.redeemScript||et.witnessScript||et.bip32Derivation&&et.bip32Derivation.length)}Object.defineProperty(psbt$1,"__esModule",{value:!0});psbt$1.Psbt=void 0;const bip174_1=psbt,varuint=varint,utils_1=utils,address_1=address,bufferutils_1=bufferutils,networks_1=networks$1,payments=payments$3,bip341_1=bip341,bscript=script,transaction_1=transaction,bip371_1=bip371,psbtutils_1=psbtutils,DEFAULT_OPTS={network:networks_1.bitcoin,maximumFeeRate:5e3};class Psbt{static fromBase64(tt,rt={}){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt={}){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt={}){const nt=bip174_1.Psbt.fromBuffer(tt,transactionFromBuffer),it=new Psbt(rt,nt);return checkTxForDupeIns(it.__CACHE.__TX,it.__CACHE),it}constructor(tt={},rt=new bip174_1.Psbt(new PsbtTransaction)){this.data=rt,this.opts=Object.assign({},DEFAULT_OPTS,tt),this.__CACHE={__NON_WITNESS_UTXO_TX_CACHE:[],__NON_WITNESS_UTXO_BUF_CACHE:[],__TX_IN_CACHE:{},__TX:this.data.globalMap.unsignedTx.tx,__UNSAFE_SIGN_NONSEGWIT:!1},this.data.inputs.length===0&&this.setVersion(2);const nt=(it,st,at,ot)=>Object.defineProperty(it,st,{enumerable:at,writable:ot});nt(this,"__CACHE",!1,!0),nt(this,"opts",!1,!0)}get inputCount(){return this.data.inputs.length}get version(){return this.__CACHE.__TX.version}set version(tt){this.setVersion(tt)}get locktime(){return this.__CACHE.__TX.locktime}set locktime(tt){this.setLocktime(tt)}get txInputs(){return this.__CACHE.__TX.ins.map(tt=>({hash:(0,bufferutils_1.cloneBuffer)(tt.hash),index:tt.index,sequence:tt.sequence}))}get txOutputs(){return this.__CACHE.__TX.outs.map(tt=>{let rt;try{rt=(0,address_1.fromOutputScript)(tt.script,this.opts.network)}catch{}return{script:(0,bufferutils_1.cloneBuffer)(tt.script),value:tt.value,address:rt}})}combine(...tt){return this.data.combine(...tt.map(rt=>rt.data)),this}clone(){const tt=Psbt.fromBuffer(this.data.toBuffer());return tt.opts=JSON.parse(JSON.stringify(this.opts)),tt}setMaximumFeeRate(tt){check32Bit(tt),this.opts.maximumFeeRate=tt}setVersion(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setVersion");const rt=this.__CACHE;return rt.__TX.version=tt,rt.__EXTRACTED_TX=void 0,this}setLocktime(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setLocktime");const rt=this.__CACHE;return rt.__TX.locktime=tt,rt.__EXTRACTED_TX=void 0,this}setInputSequence(tt,rt){check32Bit(rt),checkInputsForPartialSig(this.data.inputs,"setInputSequence");const nt=this.__CACHE;if(nt.__TX.ins.length<=tt)throw new Error("Input index too high");return nt.__TX.ins[tt].sequence=rt,nt.__EXTRACTED_TX=void 0,this}addInputs(tt){return tt.forEach(rt=>this.addInput(rt)),this}addInput(tt){if(arguments.length>1||!tt||tt.hash===void 0||tt.index===void 0)throw new Error("Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]");(0,bip371_1.checkTaprootInputFields)(tt,tt,"addInput"),checkInputsForPartialSig(this.data.inputs,"addInput"),tt.witnessScript&&checkInvalidP2WSH(tt.witnessScript);const rt=this.__CACHE;this.data.addInput(tt);const nt=rt.__TX.ins[rt.__TX.ins.length-1];checkTxInputCache(rt,nt);const it=this.data.inputs.length-1,st=this.data.inputs[it];return st.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,st,it),rt.__FEE=void 0,rt.__FEE_RATE=void 0,rt.__EXTRACTED_TX=void 0,this}addOutputs(tt){return tt.forEach(rt=>this.addOutput(rt)),this}addOutput(tt){if(arguments.length>1||!tt||tt.value===void 0||tt.address===void 0&&tt.script===void 0)throw new Error("Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]");checkInputsForPartialSig(this.data.inputs,"addOutput");const{address:rt}=tt;if(typeof rt=="string"){const{network:it}=this.opts,st=(0,address_1.toOutputScript)(rt,it);tt=Object.assign(tt,{script:st})}(0,bip371_1.checkTaprootOutputFields)(tt,tt,"addOutput");const nt=this.__CACHE;return this.data.addOutput(tt),nt.__FEE=void 0,nt.__FEE_RATE=void 0,nt.__EXTRACTED_TX=void 0,this}extractTransaction(tt){if(!this.data.inputs.every(isFinalized))throw new Error("Not finalized");const rt=this.__CACHE;if(tt||checkFees(this,rt,this.opts),rt.__EXTRACTED_TX)return rt.__EXTRACTED_TX;const nt=rt.__TX.clone();return inputFinalizeGetAmts(this.data.inputs,nt,rt,!0),nt}getFeeRate(){return getTxCacheValue("__FEE_RATE","fee rate",this.data.inputs,this.__CACHE)}getFee(){return getTxCacheValue("__FEE","fee",this.data.inputs,this.__CACHE)}finalizeAllInputs(){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).forEach(tt=>this.finalizeInput(tt)),this}finalizeInput(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(nt)?this._finalizeTaprootInput(tt,nt,void 0,rt):this._finalizeInput(tt,nt,rt)}finalizeTaprootInput(tt,rt,nt=bip371_1.tapScriptFinalizer){const it=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(it))return this._finalizeTaprootInput(tt,it,rt,nt);throw new Error(`Cannot finalize input #${tt}. Not Taproot.`)}_finalizeInput(tt,rt,nt=getFinalScripts){const{script:it,isP2SH:st,isP2WSH:at,isSegwit:ot}=getScriptFromInput(tt,rt,this.__CACHE);if(!it)throw new Error(`No script found for input #${tt}`);checkPartialSigSighashes(rt);const{finalScriptSig:lt,finalScriptWitness:ut}=nt(tt,rt,it,ot,st,at);if(lt&&this.data.updateInput(tt,{finalScriptSig:lt}),ut&&this.data.updateInput(tt,{finalScriptWitness:ut}),!lt&&!ut)throw new Error(`Unknown error finalizing input #${tt}`);return this.data.clearFinalizedInput(tt),this}_finalizeTaprootInput(tt,rt,nt,it=bip371_1.tapScriptFinalizer){if(!rt.witnessUtxo)throw new Error(`Cannot finalize input #${tt}. Missing withness utxo.`);if(rt.tapKeySig){const st=payments.p2tr({output:rt.witnessUtxo.script,signature:rt.tapKeySig}),at=(0,psbtutils_1.witnessStackToScriptWitness)(st.witness);this.data.updateInput(tt,{finalScriptWitness:at})}else{const{finalScriptWitness:st}=it(tt,rt,nt);this.data.updateInput(tt,{finalScriptWitness:st})}return this.data.clearFinalizedInput(tt),this}getInputType(tt){const rt=(0,utils_1.checkForInput)(this.data.inputs,tt),nt=getScriptFromUtxo(tt,rt,this.__CACHE),it=getMeaningfulScript(nt,tt,"input",rt.redeemScript||redeemFromFinalScriptSig(rt.finalScriptSig),rt.witnessScript||redeemFromFinalWitnessScript(rt.finalScriptWitness)),st=it.type==="raw"?"":it.type+"-",at=classifyScript(it.meaningfulScript);return st+at}inputHasPubkey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return pubkeyInInput(rt,nt,tt,this.__CACHE)}inputHasHDKey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}outputHasPubkey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt);return pubkeyInOutput(rt,nt,tt,this.__CACHE)}outputHasHDKey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}validateSignaturesOfAllInputs(tt){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).map(nt=>this.validateSignaturesOfInput(nt,tt)).reduce((nt,it)=>it===!0&&nt,!0)}validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt];return(0,bip371_1.isTaprootInput)(it)?this.validateSignaturesOfTaprootInput(tt,rt,nt):this._validateSignaturesOfInput(tt,rt,nt)}_validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).partialSig;if(!it||!st||st.length<1)throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");const at=nt?st.filter(bt=>bt.pubkey.equals(nt)):st;if(at.length<1)throw new Error("No signatures for this pubkey");const ot=[];let lt,ut,dt;for(const bt of at){const gt=bscript.signature.decode(bt.signature),{hash:kt,script:pt}=dt!==gt.hashType?getHashForSig(tt,Object.assign({},it,{sighashType:gt.hashType}),this.__CACHE,!0):{hash:lt,script:ut};dt=gt.hashType,lt=kt,ut=pt,checkScriptForPubkey(bt.pubkey,pt,"verify"),ot.push(rt(bt.pubkey,kt,gt.signature))}return ot.every(bt=>bt===!0)}validateSignaturesOfTaprootInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).tapKeySig,at=(it||{}).tapScriptSig;if(!it&&!st&&!(at&&!at.length))throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");nt=nt&&(0,bip371_1.toXOnly)(nt);const ot=nt?getTaprootHashesForSig(tt,it,this.data.inputs,nt,this.__CACHE):getAllTaprootHashesForSig(tt,it,this.data.inputs,this.__CACHE);if(!ot.length)throw new Error("No signatures for this pubkey");const lt=ot.find(dt=>!dt.leafHash);let ut=0;if(st&<){if(!rt(lt.pubkey,lt.hash,trimTaprootSig(st)))return!1;ut++}if(at)for(const dt of at){const bt=ot.find(gt=>dt.pubkey.equals(gt.pubkey));if(bt){if(!rt(dt.pubkey,bt.hash,trimTaprootSig(dt.signature)))return!1;ut++}}return ut>0}signAllInputsHD(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){if(!tt||!tt.publicKey||!tt.fingerprint)throw new Error("Need HDSigner to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInputHD(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsHDAsync(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((nt,it)=>{if(!tt||!tt.publicKey||!tt.fingerprint)return it(new Error("Need HDSigner to sign input"));const st=[],at=[];for(const ot of range(this.data.inputs.length))at.push(this.signInputHDAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInputHD(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){if(!rt||!rt.publicKey||!rt.fingerprint)throw new Error("Need HDSigner to sign input");return getSignersFromHD(tt,this.data.inputs,rt).forEach(st=>this.signInput(tt,st,nt)),this}signInputHDAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((it,st)=>{if(!rt||!rt.publicKey||!rt.fingerprint)return st(new Error("Need HDSigner to sign input"));const ot=getSignersFromHD(tt,this.data.inputs,rt).map(lt=>this.signInputAsync(tt,lt,nt));return Promise.all(ot).then(()=>{it()}).catch(st)})}signAllInputs(tt,rt){if(!tt||!tt.publicKey)throw new Error("Need Signer to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInput(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsAsync(tt,rt){return new Promise((nt,it)=>{if(!tt||!tt.publicKey)return it(new Error("Need Signer to sign input"));const st=[],at=[];for(const[ot]of this.data.inputs.entries())at.push(this.signInputAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInput(tt,rt,nt){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInput(tt,it,rt,void 0,nt):this._signInput(tt,rt,nt)}signTaprootInput(tt,rt,nt,it){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInput(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)}_signInput(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt),at=[{pubkey:rt.publicKey,signature:bscript.signature.encode(rt.sign(it),st)}];return this.data.updateInput(tt,{partialSig:at}),this}_signTaprootInput(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=at.filter(ut=>!ut.leafHash).map(ut=>(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType))[0],lt=at.filter(ut=>!!ut.leafHash).map(ut=>({pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType),leafHash:ut.leafHash}));return ot&&this.data.updateInput(tt,{tapKeySig:ot}),lt.length&&this.data.updateInput(tt,{tapScriptSig:lt}),this}signInputAsync(tt,rt,nt){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInputAsync(tt,it,rt,void 0,nt):this._signInputAsync(tt,rt,nt)})}signTaprootInputAsync(tt,rt,nt,it){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInputAsync(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)})}_signInputAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt);return Promise.resolve(rt.sign(it)).then(at=>{const ot=[{pubkey:rt.publicKey,signature:bscript.signature.encode(at,st)}];this.data.updateInput(tt,{partialSig:ot})})}async _signTaprootInputAsync(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=[],lt=at.filter(dt=>!dt.leafHash)[0];if(lt){const dt=Promise.resolve(nt.signSchnorr(lt.hash)).then(bt=>({tapKeySig:(0,bip371_1.serializeTaprootSignature)(bt,rt.sighashType)}));ot.push(dt)}const ut=at.filter(dt=>!!dt.leafHash);if(ut.length){const dt=ut.map(bt=>Promise.resolve(nt.signSchnorr(bt.hash)).then(gt=>({tapScriptSig:[{pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(gt,rt.sighashType),leafHash:bt.leafHash}]})));ot.push(...dt)}return Promise.all(ot).then(dt=>{dt.forEach(bt=>this.data.updateInput(tt,bt))})}checkTaprootHashesForSig(tt,rt,nt,it,st){if(typeof nt.signSchnorr!="function")throw new Error(`Need Schnorr Signer to sign taproot input #${tt}.`);const at=getTaprootHashesForSig(tt,rt,this.data.inputs,nt.publicKey,this.__CACHE,it,st);if(!at||!at.length)throw new Error(`Can not sign for input #${tt} with the key ${nt.publicKey.toString("hex")}`);return at}toBuffer(){return checkCache(this.__CACHE),this.data.toBuffer()}toHex(){return checkCache(this.__CACHE),this.data.toHex()}toBase64(){return checkCache(this.__CACHE),this.data.toBase64()}updateGlobal(tt){return this.data.updateGlobal(tt),this}updateInput(tt,rt){return rt.witnessScript&&checkInvalidP2WSH(rt.witnessScript),(0,bip371_1.checkTaprootInputFields)(this.data.inputs[tt],rt,"updateInput"),this.data.updateInput(tt,rt),rt.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,this.data.inputs[tt],tt),this}updateOutput(tt,rt){const nt=this.data.outputs[tt];return(0,bip371_1.checkTaprootOutputFields)(nt,rt,"updateOutput"),this.data.updateOutput(tt,rt),this}addUnknownKeyValToGlobal(tt){return this.data.addUnknownKeyValToGlobal(tt),this}addUnknownKeyValToInput(tt,rt){return this.data.addUnknownKeyValToInput(tt,rt),this}addUnknownKeyValToOutput(tt,rt){return this.data.addUnknownKeyValToOutput(tt,rt),this}clearFinalizedInput(tt){return this.data.clearFinalizedInput(tt),this}}psbt$1.Psbt=Psbt;const transactionFromBuffer=et=>new PsbtTransaction(et);class PsbtTransaction{constructor(tt=Buffer.from([2,0,0,0,0,0,0,0,0,0])){this.tx=transaction_1.Transaction.fromBuffer(tt),checkTxEmpty(this.tx),Object.defineProperty(this,"tx",{enumerable:!1,writable:!0})}getInputOutputCounts(){return{inputCount:this.tx.ins.length,outputCount:this.tx.outs.length}}addInput(tt){if(tt.hash===void 0||tt.index===void 0||!Buffer.isBuffer(tt.hash)&&typeof tt.hash!="string"||typeof tt.index!="number")throw new Error("Error adding input.");const rt=typeof tt.hash=="string"?(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash,"hex")):tt.hash;this.tx.addInput(rt,tt.index,tt.sequence)}addOutput(tt){if(tt.script===void 0||tt.value===void 0||!Buffer.isBuffer(tt.script)||typeof tt.value!="number")throw new Error("Error adding output.");this.tx.addOutput(tt.script,tt.value)}toBuffer(){return this.tx.toBuffer()}}function canFinalize(et,tt,rt){switch(rt){case"pubkey":case"pubkeyhash":case"witnesspubkeyhash":return hasSigs(1,et.partialSig);case"multisig":const nt=payments.p2ms({output:tt});return hasSigs(nt.m,et.partialSig,nt.pubkeys);default:return!1}}function checkCache(et){if(et.__UNSAFE_SIGN_NONSEGWIT!==!1)throw new Error("Not BIP174 compliant, can not export")}function hasSigs(et,tt,rt){if(!tt)return!1;let nt;if(rt?nt=rt.map(it=>{const st=compressPubkey(it);return tt.find(at=>at.pubkey.equals(st))}).filter(it=>!!it):nt=tt,nt.length>et)throw new Error("Too many signatures");return nt.length===et}function isFinalized(et){return!!et.finalScriptSig||!!et.finalScriptWitness}function bip32DerivationIsMine(et){return tt=>!(!tt.masterFingerprint.equals(et.fingerprint)||!et.derivePath(tt.path).publicKey.equals(tt.pubkey))}function check32Bit(et){if(typeof et!="number"||et!==Math.floor(et)||et>4294967295||et<0)throw new Error("Invalid 32 bit integer")}function checkFees(et,tt,rt){const nt=tt.__FEE_RATE||et.getFeeRate(),it=tt.__EXTRACTED_TX.virtualSize(),st=nt*it;if(nt>=rt.maximumFeeRate)throw new Error(`Warning: You are paying around ${(st/1e8).toFixed(8)} in fees, which is ${nt} satoshi per byte for a transaction with a VSize of ${it} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`)}function checkInputsForPartialSig(et,tt){et.forEach(rt=>{if((0,bip371_1.isTaprootInput)(rt)?(0,bip371_1.checkTaprootInputForSigs)(rt,tt):(0,psbtutils_1.checkInputForSig)(rt,tt))throw new Error("Can not modify transaction, signatures exist.")})}function checkPartialSigSighashes(et){if(!et.sighashType||!et.partialSig)return;const{partialSig:tt,sighashType:rt}=et;tt.forEach(nt=>{const{hashType:it}=bscript.signature.decode(nt.signature);if(rt!==it)throw new Error("Signature sighash does not match input sighash type")})}function checkScriptForPubkey(et,tt,rt){if(!(0,psbtutils_1.pubkeyInScript)(et,tt))throw new Error(`Can not ${rt} for this input with the key ${et.toString("hex")}`)}function checkTxEmpty(et){if(!et.ins.every(rt=>rt.script&&rt.script.length===0&&rt.witness&&rt.witness.length===0))throw new Error("Format Error: Transaction ScriptSigs are not empty")}function checkTxForDupeIns(et,tt){et.ins.forEach(rt=>{checkTxInputCache(tt,rt)})}function checkTxInputCache(et,tt){const rt=(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash)).toString("hex")+":"+tt.index;if(et.__TX_IN_CACHE[rt])throw new Error("Duplicate input detected.");et.__TX_IN_CACHE[rt]=1}function scriptCheckerFactory(et,tt){return(rt,nt,it,st)=>{const at=et({redeem:{output:it}}).output;if(!nt.equals(at))throw new Error(`${tt} for ${st} #${rt} doesn't match the scriptPubKey in the prevout`)}}const checkRedeemScript=scriptCheckerFactory(payments.p2sh,"Redeem script"),checkWitnessScript=scriptCheckerFactory(payments.p2wsh,"Witness script");function getTxCacheValue(et,tt,rt,nt){if(!rt.every(isFinalized))throw new Error(`PSBT must be finalized to calculate ${tt}`);if(et==="__FEE_RATE"&&nt.__FEE_RATE)return nt.__FEE_RATE;if(et==="__FEE"&&nt.__FEE)return nt.__FEE;let it,st=!0;if(nt.__EXTRACTED_TX?(it=nt.__EXTRACTED_TX,st=!1):it=nt.__TX.clone(),inputFinalizeGetAmts(rt,it,nt,st),et==="__FEE_RATE")return nt.__FEE_RATE;if(et==="__FEE")return nt.__FEE}function getFinalScripts(et,tt,rt,nt,it,st){const at=classifyScript(rt);if(!canFinalize(tt,rt,at))throw new Error(`Can not finalize input #${et}`);return prepareFinalScripts(rt,at,tt.partialSig,nt,it,st)}function prepareFinalScripts(et,tt,rt,nt,it,st){let at,ot;const lt=getPayment(et,tt,rt),ut=st?payments.p2wsh({redeem:lt}):null,dt=it?payments.p2sh({redeem:ut||lt}):null;return nt?(ut?ot=(0,psbtutils_1.witnessStackToScriptWitness)(ut.witness):ot=(0,psbtutils_1.witnessStackToScriptWitness)(lt.witness),dt&&(at=dt.input)):dt?at=dt.input:at=lt.input,{finalScriptSig:at,finalScriptWitness:ot}}function getHashAndSighashType(et,tt,rt,nt,it){const st=(0,utils_1.checkForInput)(et,tt),{hash:at,sighashType:ot,script:lt}=getHashForSig(tt,st,nt,!1,it);return checkScriptForPubkey(rt,lt,"sign"),{hash:at,sighashType:ot}}function getHashForSig(et,tt,rt,nt,it){const st=rt.__TX,at=tt.sighashType||transaction_1.Transaction.SIGHASH_ALL;checkSighashTypeAllowed(at,it);let ot,lt;if(tt.nonWitnessUtxo){const bt=nonWitnessUtxoTxFromCache(rt,tt,et),gt=st.ins[et].hash,kt=bt.getHash();if(!gt.equals(kt))throw new Error(`Non-witness UTXO hash for input #${et} doesn't match the hash specified in the prevout`);const pt=st.ins[et].index;lt=bt.outs[pt]}else if(tt.witnessUtxo)lt=tt.witnessUtxo;else throw new Error("Need a Utxo input item for signing");const{meaningfulScript:ut,type:dt}=getMeaningfulScript(lt.script,et,"input",tt.redeemScript,tt.witnessScript);if(["p2sh-p2wsh","p2wsh"].indexOf(dt)>=0)ot=st.hashForWitnessV0(et,ut,lt.value,at);else if((0,psbtutils_1.isP2WPKH)(ut)){const bt=payments.p2pkh({hash:ut.slice(2)}).output;ot=st.hashForWitnessV0(et,bt,lt.value,at)}else{if(tt.nonWitnessUtxo===void 0&&rt.__UNSAFE_SIGN_NONSEGWIT===!1)throw new Error(`Input #${et} has witnessUtxo but non-segwit script: ${ut.toString("hex")}`);!nt&&rt.__UNSAFE_SIGN_NONSEGWIT!==!1&&console.warn(`Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as Psbt's predecesor (TransactionBuilder - now removed) when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant. ********************* PROCEED WITH CAUTION! -*********************`),ot=st.hashForSignature(et,ut,at)}return{script:ut,sighashType:at,hash:ot}}function getAllTaprootHashesForSig(et,tt,rt,nt){const it=[];if(tt.tapInternalKey){const at=getPrevoutTaprootKey(et,tt,nt);at&&it.push(at)}if(tt.tapScriptSig){const at=tt.tapScriptSig.map(ot=>ot.pubkey);it.push(...at)}return it.map(at=>getTaprootHashesForSig(et,tt,rt,at,nt)).flat()}function getPrevoutTaprootKey(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return(0,psbtutils_1.isP2TR)(nt)?nt.subarray(2,34):null}function trimTaprootSig(et){return et.length===64?et:et.subarray(0,64)}function getTaprootHashesForSig(et,tt,rt,nt,it,st,at){const ot=it.__TX,lt=tt.sighashType||transaction_1.Transaction.SIGHASH_DEFAULT;checkSighashTypeAllowed(lt,at);const ut=rt.map((pt,yt)=>getScriptAndAmountFromUtxo(yt,pt,it)),dt=ut.map(pt=>pt.script),bt=ut.map(pt=>pt.value),gt=[];if(tt.tapInternalKey&&!st){const pt=getPrevoutTaprootKey(et,tt,it)||Buffer.from([]);if((0,bip371_1.toXOnly)(nt).equals(pt)){const yt=ot.hashForWitnessV1(et,dt,bt,lt);gt.push({pubkey:nt,hash:yt})}}const kt=(tt.tapLeafScript||[]).filter(pt=>(0,psbtutils_1.pubkeyInScript)(nt,pt.script)).map(pt=>{const yt=(0,bip341_1.tapleafHash)({output:pt.script,version:pt.leafVersion});return Object.assign({hash:yt},pt)}).filter(pt=>!st||st.equals(pt.hash)).map(pt=>{const yt=ot.hashForWitnessV1(et,dt,bt,transaction_1.Transaction.SIGHASH_DEFAULT,pt.hash);return{pubkey:nt,hash:yt,leafHash:pt.hash}});return gt.concat(kt)}function checkSighashTypeAllowed(et,tt){if(tt&&tt.indexOf(et)<0){const rt=sighashTypeToString(et);throw new Error(`Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: ${rt}`)}}function getPayment(et,tt,rt){let nt;switch(tt){case"multisig":const it=getSortedSigs(et,rt);nt=payments.p2ms({output:et,signatures:it});break;case"pubkey":nt=payments.p2pk({output:et,signature:rt[0].signature});break;case"pubkeyhash":nt=payments.p2pkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break;case"witnesspubkeyhash":nt=payments.p2wpkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break}return nt}function getScriptFromInput(et,tt,rt){const nt=rt.__TX,it={script:null,isSegwit:!1,isP2SH:!1,isP2WSH:!1};if(it.isP2SH=!!tt.redeemScript,it.isP2WSH=!!tt.witnessScript,tt.witnessScript)it.script=tt.witnessScript;else if(tt.redeemScript)it.script=tt.redeemScript;else if(tt.nonWitnessUtxo){const st=nonWitnessUtxoTxFromCache(rt,tt,et),at=nt.ins[et].index;it.script=st.outs[at].script}else tt.witnessUtxo&&(it.script=tt.witnessUtxo.script);return(tt.witnessScript||(0,psbtutils_1.isP2WPKH)(it.script))&&(it.isSegwit=!0),it}function getSignersFromHD(et,tt,rt){const nt=(0,utils_1.checkForInput)(tt,et);if(!nt.bip32Derivation||nt.bip32Derivation.length===0)throw new Error("Need bip32Derivation to sign with HD");const it=nt.bip32Derivation.map(at=>{if(at.masterFingerprint.equals(rt.fingerprint))return at}).filter(at=>!!at);if(it.length===0)throw new Error("Need one bip32Derivation masterFingerprint to match the HDSigner fingerprint");return it.map(at=>{const ot=rt.derivePath(at.path);if(!at.pubkey.equals(ot.publicKey))throw new Error("pubkey did not match bip32Derivation");return ot})}function getSortedSigs(et,tt){return payments.p2ms({output:et}).pubkeys.map(nt=>(tt.filter(it=>it.pubkey.equals(nt))[0]||{}).signature).filter(nt=>!!nt)}function scriptWitnessToWitnessStack(et){let tt=0;function rt(at){return tt+=at,et.slice(tt-at,tt)}function nt(){const at=varuint.decode(et,tt);return tt+=varuint.decode.bytes,at}function it(){return rt(nt())}function st(){const at=nt(),ot=[];for(let lt=0;lt{if(nt&<.finalScriptSig&&(tt.ins[ut].script=lt.finalScriptSig),nt&<.finalScriptWitness&&(tt.ins[ut].witness=scriptWitnessToWitnessStack(lt.finalScriptWitness)),lt.witnessUtxo)it+=lt.witnessUtxo.value;else if(lt.nonWitnessUtxo){const dt=nonWitnessUtxoTxFromCache(rt,lt,ut),bt=tt.ins[ut].index,gt=dt.outs[bt];it+=gt.value}});const st=tt.outs.reduce((lt,ut)=>lt+ut.value,0),at=it-st;if(at<0)throw new Error("Outputs are spending more than Inputs");const ot=tt.virtualSize();rt.__FEE=at,rt.__EXTRACTED_TX=tt,rt.__FEE_RATE=Math.floor(at/ot)}function nonWitnessUtxoTxFromCache(et,tt,rt){const nt=et.__NON_WITNESS_UTXO_TX_CACHE;return nt[rt]||addNonWitnessTxCache(et,tt,rt),nt[rt]}function getScriptFromUtxo(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return nt}function getScriptAndAmountFromUtxo(et,tt,rt){if(tt.witnessUtxo!==void 0)return{script:tt.witnessUtxo.script,value:tt.witnessUtxo.value};if(tt.nonWitnessUtxo!==void 0){const it=nonWitnessUtxoTxFromCache(rt,tt,et).outs[rt.__TX.ins[et].index];return{script:it.script,value:it.value}}else throw new Error("Can't find pubkey in input without Utxo data")}function pubkeyInInput(et,tt,rt,nt){const it=getScriptFromUtxo(rt,tt,nt),{meaningfulScript:st}=getMeaningfulScript(it,rt,"input",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function pubkeyInOutput(et,tt,rt,nt){const it=nt.__TX.outs[rt].script,{meaningfulScript:st}=getMeaningfulScript(it,rt,"output",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function redeemFromFinalScriptSig(et){if(!et)return;const tt=bscript.decompile(et);if(!tt)return;const rt=tt[tt.length-1];if(!(!Buffer.isBuffer(rt)||isPubkeyLike(rt)||isSigLike(rt)||!bscript.decompile(rt)))return rt}function redeemFromFinalWitnessScript(et){if(!et)return;const tt=scriptWitnessToWitnessStack(et),rt=tt[tt.length-1];if(!(isPubkeyLike(rt)||!bscript.decompile(rt)))return rt}function compressPubkey(et){if(et.length===65){const tt=et[64]&1,rt=et.slice(0,33);return rt[0]=2|tt,rt}return et.slice()}function isPubkeyLike(et){return et.length===33&&bscript.isCanonicalPubKey(et)}function isSigLike(et){return bscript.isCanonicalScriptSignature(et)}function getMeaningfulScript(et,tt,rt,nt,it){const st=(0,psbtutils_1.isP2SHScript)(et),at=st&&nt&&(0,psbtutils_1.isP2WSHScript)(nt),ot=(0,psbtutils_1.isP2WSHScript)(et);if(st&&nt===void 0)throw new Error("scriptPubkey is P2SH but redeemScript missing");if((ot||at)&&it===void 0)throw new Error("scriptPubkey or redeemScript is P2WSH but witnessScript missing");let lt;return at?(lt=it,checkRedeemScript(tt,et,nt,rt),checkWitnessScript(tt,nt,it,rt),checkInvalidP2WSH(lt)):ot?(lt=it,checkWitnessScript(tt,et,it,rt),checkInvalidP2WSH(lt)):st?(lt=nt,checkRedeemScript(tt,et,nt,rt)):lt=et,{meaningfulScript:lt,type:at?"p2sh-p2wsh":st?"p2sh":ot?"p2wsh":"raw"}}function checkInvalidP2WSH(et){if((0,psbtutils_1.isP2WPKH)(et)||(0,psbtutils_1.isP2SHScript)(et))throw new Error("P2WPKH or P2SH can not be contained within P2WSH")}function classifyScript(et){return(0,psbtutils_1.isP2WPKH)(et)?"witnesspubkeyhash":(0,psbtutils_1.isP2PKH)(et)?"pubkeyhash":(0,psbtutils_1.isP2MS)(et)?"multisig":(0,psbtutils_1.isP2PK)(et)?"pubkey":"nonstandard"}function range(et){return[...Array(et).keys()]}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.initEccLib=et.Transaction=et.opcodes=et.Psbt=et.Block=et.script=et.payments=et.networks=et.crypto=et.address=void 0;const tt=address;et.address=tt;const rt=crypto$2;et.crypto=rt;const nt=networks$1;et.networks=nt;const it=payments$3;et.payments=it;const st=script;et.script=st;var at=block;Object.defineProperty(et,"Block",{enumerable:!0,get:function(){return at.Block}});var ot=psbt$1;Object.defineProperty(et,"Psbt",{enumerable:!0,get:function(){return ot.Psbt}});var lt=ops;Object.defineProperty(et,"opcodes",{enumerable:!0,get:function(){return lt.OPS}});var ut=transaction;Object.defineProperty(et,"Transaction",{enumerable:!0,get:function(){return ut.Transaction}});var dt=ecc_lib;Object.defineProperty(et,"initEccLib",{enumerable:!0,get:function(){return dt.initEccLib}})})(src$1);function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(et,tt){return et===tt||et!==et&&tt!==tt}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(et,tt){for(var rt=et.length;rt--;)if(eq$1(et[rt][0],tt))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(et){var tt=this.__data__,rt=assocIndexOf$3(tt,et);if(rt<0)return!1;var nt=tt.length-1;return rt==nt?tt.pop():splice.call(tt,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(et){var tt=this.__data__,rt=assocIndexOf$2(tt,et);return rt<0?void 0:tt[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(et){return assocIndexOf$1(this.__data__,et)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(et,tt){var rt=this.__data__,nt=assocIndexOf(rt,et);return nt<0?(++this.size,rt.push([et,tt])):rt[nt][1]=tt,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt-1&&et%1==0&&et-1&&et%1==0&&et<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$2="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(et){return isObjectLike$2(et)&&isLength$1(et.length)&&!!typedArrayTags[baseGetTag$1(et)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(et){return function(tt){return et(tt)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(et,tt){var rt=_freeGlobal,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st&&rt.process,ot=function(){try{var lt=it&&it.require&&it.require("util").types;return lt||at&&at.binding&&at.binding("util")}catch{}}();et.exports=ot})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$2=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$3=objectProto$5.hasOwnProperty;function arrayLikeKeys$2(et,tt){var rt=isArray$2(et),nt=!rt&&isArguments(et),it=!rt&&!nt&&isBuffer$1(et),st=!rt&&!nt&&!it&&isTypedArray(et),at=rt||nt||it||st,ot=at?baseTimes(et.length,String):[],lt=ot.length;for(var ut in et)(tt||hasOwnProperty$3.call(et,ut))&&!(at&&(ut=="length"||it&&(ut=="offset"||ut=="parent")||st&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||isIndex(ut,lt)))&&ot.push(ut);return ot}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$4=Object.prototype;function isPrototype$3(et){var tt=et&&et.constructor,rt=typeof tt=="function"&&tt.prototype||objectProto$4;return et===rt}var _isPrototype=isPrototype$3;function overArg$2(et,tt){return function(rt){return et(tt(rt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeys$1(et){if(!isPrototype$2(et))return nativeKeys(et);var tt=[];for(var rt in Object(et))hasOwnProperty$2.call(et,rt)&&rt!="constructor"&&tt.push(rt);return tt}var _baseKeys=baseKeys$1,isFunction$1=isFunction_1,isLength=isLength_1;function isArrayLike$2(et){return et!=null&&isLength(et.length)&&!isFunction$1(et)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(et){return isArrayLike$1(et)?arrayLikeKeys$1(et):baseKeys(et)}var keys_1=keys$3,copyObject$3=_copyObject,keys$2=keys_1;function baseAssign$1(et,tt){return et&©Object$3(tt,keys$2(tt),et)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(et){var tt=[];if(et!=null)for(var rt in Object(et))tt.push(rt);return tt}var _nativeKeysIn=nativeKeysIn$1,isObject$4=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty;function baseKeysIn$1(et){if(!isObject$4(et))return nativeKeysIn(et);var tt=isPrototype$1(et),rt=[];for(var nt in et)nt=="constructor"&&(tt||!hasOwnProperty$1.call(et,nt))||rt.push(nt);return rt}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;function keysIn$3(et){return isArrayLike(et)?arrayLikeKeys(et,!0):baseKeysIn(et)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(et,tt){return et&©Object$2(tt,keysIn$2(tt),et)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(et,tt){var rt=_root,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st?rt.Buffer:void 0,ot=at?at.allocUnsafe:void 0;function lt(ut,dt){if(dt)return ut.slice();var bt=ut.length,gt=ot?ot(bt):new ut.constructor(bt);return ut.copy(gt),gt}et.exports=lt})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(et,tt){var rt=-1,nt=et.length;for(tt||(tt=Array(nt));++rtwordsToBuffer(et,!0).toString("hex"),16:et=>wordsToBuffer(et,!0).toString("hex"),13:et=>wordsToBuffer(et,!0).toString("utf8"),19:et=>wordsToBuffer(et,!0).toString("hex"),23:et=>wordsToBuffer(et,!0).toString("hex"),6:wordsToIntBE,24:wordsToIntBE,9:fallbackAddressParser,3:routingInfoParser,5:featureBitsParser},unknownTagName="unknownTag";function unknownEncoder(et){return et.words=bech32.decode(et.words,Number.MAX_SAFE_INTEGER).words,et}function getUnknownParser(et){return tt=>({tagCode:parseInt(et),words:bech32.encode("unknown",tt,Number.MAX_SAFE_INTEGER)})}function wordsToIntBE(et){return et.reverse().reduce((tt,rt,nt)=>tt+rt*Math.pow(32,nt),0)}function intBEToWords(et,tt){const rt=[];if(tt===void 0&&(tt=5),et=Math.floor(et),et===0)return[0];for(;et>0;)rt.push(et&Math.pow(2,tt)-1),et=Math.floor(et/Math.pow(2,tt));return rt.reverse()}function sha256(et){return createHash("sha256").update(et).digest()}function convert(et,tt,rt){let nt=0,it=0;const st=(1<=rt;)it-=rt,at.push(nt>>it&st);return it>0&&at.push(nt<0;)rt=ot.slice(0,33).toString("hex"),nt=ot.slice(33,41).toString("hex"),it=parseInt(ot.slice(41,45).toString("hex"),16),st=parseInt(ot.slice(45,49).toString("hex"),16),at=parseInt(ot.slice(49,51).toString("hex"),16),ot=ot.slice(51),tt.push({pubkey:rt,short_channel_id:nt,fee_base_msat:it,fee_proportional_millionths:st,cltv_expiry_delta:at});return tt}function featureBitsParser(et){const tt=et.slice().reverse().map(nt=>[!!(nt&1),!!(nt&2),!!(nt&4),!!(nt&8),!!(nt&16)]).reduce((nt,it)=>nt.concat(it),[]);for(;tt.length{rt[nt]={required:tt[it*2],supported:tt[it*2+1]}}),tt.length>FEATUREBIT_ORDER.length*2){const nt=tt.slice(FEATUREBIT_ORDER.length*2);rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:nt,has_required:nt.reduce((it,st,at)=>at%2!==0?it||!1:it||st,!1)}}else rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:[],has_required:!1};return rt}function featureBitsEncoder(et){let tt=et.word_length,rt=[];for(FEATUREBIT_ORDER.forEach(nt=>{rt.push(!!(et[nt]||{}).required),rt.push(!!(et[nt]||{}).supported)});rt[rt.length-1]===!1;)rt.pop();for(;rt.length%5!==0;)rt.push(!1);if(et.extra_bits&&Array.isArray(et.extra_bits.bits)&&et.extra_bits.bits.length>0){for(;rt.lengthtt)throw new Error("word_length is too small to contain all featureBits");return tt===void 0&&(tt=Math.ceil(rt.length/5)),new Array(tt).fill(0).map((nt,it)=>rt[it*5+4]<<4|rt[it*5+3]<<3|rt[it*5+2]<<2|rt[it*5+1]<<1|rt[it*5]<<0).reverse()}function routingInfoEncoder(et){let tt=Buffer$1.from([]);return et.forEach(rt=>{tt=Buffer$1.concat([tt,hexToBuffer(rt.pubkey)]),tt=Buffer$1.concat([tt,hexToBuffer(rt.short_channel_id)]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_base_msat,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_proportional_millionths,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0].concat(intBEToWords(rt.cltv_expiry_delta,8)).slice(-2))])}),hexToWord(tt)}function purposeCommitEncoder(et){let tt;if(et!==void 0&&(typeof et=="string"||et instanceof String))et.match(/^([a-zA-Z0-9]{2})*$/)?tt=Buffer$1.from(et,"hex"):tt=sha256(Buffer$1.from(et,"utf8"));else throw new Error("purpose or purpose commit must be a string or hex string");return bech32.toWords(tt)}function tagsItems(et,tt){const rt=et.filter(it=>it.tagName===tt);return rt.length>0?rt[0].data:null}function tagsContainItem(et,tt){return tagsItems(et,tt)!==null}function orderKeys(et,tt){const rt={};if(Object.keys(et).sort().forEach(nt=>{rt[nt]=et[nt]}),tt===!0){const nt="__tagsObject_cache";Object.defineProperty(rt,"tagsObject",{get(){return this[nt]||Object.defineProperty(this,nt,{value:getTagsObject(this.tags)}),this[nt]}})}return rt}function satToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("satoshis must be an integer");const tt=new BN(et,10);return millisatToHrp(tt.mul(new BN(1e3,10)))}function millisatToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("millisatoshis must be an integer");const tt=new BN(et,10),rt=tt.toString(10),nt=rt.length;let it,st;return nt>11&&/0{11}$/.test(rt)?(it="",st=tt.div(MILLISATS_PER_BTC).toString(10)):nt>8&&/0{8}$/.test(rt)?(it="m",st=tt.div(MILLISATS_PER_MILLIBTC).toString(10)):nt>5&&/0{5}$/.test(rt)?(it="u",st=tt.div(MILLISATS_PER_MICROBTC).toString(10)):nt>2&&/0{2}$/.test(rt)?(it="n",st=tt.div(MILLISATS_PER_NANOBTC).toString(10)):(it="p",st=tt.mul(PICOBTC_PER_MILLISATS).toString(10)),st+it}function hrpToSat(et,tt){const rt=hrpToMillisat(et,!1);if(!rt.mod(new BN(1e3,10)).eq(new BN(0,10)))throw new Error("Amount is outside of valid range");const nt=rt.div(new BN(1e3,10));return tt?nt.toString():nt}function hrpToMillisat(et,tt){let rt,nt;if(et.slice(-1).match(/^[munp]$/))rt=et.slice(-1),nt=et.slice(0,-1);else{if(et.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");nt=et}if(!nt.match(/^\d+$/))throw new Error("Not a valid human readable amount");const it=new BN(nt,10),st=rt?it.mul(MILLISATS_PER_BTC).div(DIVISORS[rt]):it.mul(MILLISATS_PER_BTC);if(rt==="p"&&!it.mod(new BN(10,10)).eq(new BN(0,10))||st.gt(MAX_MILLISATS))throw new Error("Amount is outside of valid range");return tt?st.toString():st}function sign(et,tt){const rt=cloneDeep(et),nt=hexToBuffer(tt);if(rt.complete&&rt.paymentRequest)return rt;if(nt===void 0||nt.length!==32||!secp256k1.privateKeyVerify(nt))throw new Error("privateKey must be a 32 byte Buffer and valid private key");let it,st;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(st=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(it=hexToBuffer(rt.payeeNodeKey)),it&&st&&!st.equals(it))throw new Error("payee node key tag and payeeNodeKey attribute must match");it=st||it;const at=Buffer$1.from(secp256k1.publicKeyCreate(nt));if(it&&!at.equals(it))throw new Error("The private key given is not the private key of the node public key given");const ot=bech32.decode(rt.wordsTemp,Number.MAX_SAFE_INTEGER).words,lt=Buffer$1.concat([Buffer$1.from(rt.prefix,"utf8"),wordsToBuffer(ot)]),ut=sha256(lt),dt=secp256k1.ecdsaSign(ut,nt);dt.signature=Buffer$1.from(dt.signature);const bt=hexToWord(dt.signature.toString("hex")+"0"+dt.recid);return rt.payeeNodeKey=at.toString("hex"),rt.signature=dt.signature.toString("hex"),rt.recoveryFlag=dt.recid,rt.wordsTemp=bech32.encode("temp",ot.concat(bt),Number.MAX_SAFE_INTEGER),rt.complete=!0,rt.paymentRequest=bech32.encode(rt.prefix,ot.concat(bt),Number.MAX_SAFE_INTEGER),orderKeys(rt)}function encode$3(et,tt){const rt=cloneDeep(et);tt===void 0&&(tt=!0);const nt=!(rt.signature===void 0||rt.recoveryFlag===void 0);let it;if(rt.network===void 0&&!nt)rt.network=DEFAULTNETWORK,it=DEFAULTNETWORK;else{if(rt.network===void 0&&nt)throw new Error("Need network for proper payment request reconstruction");if(!rt.network.bech32||rt.network.pubKeyHash===void 0||rt.network.scriptHash===void 0||!Array.isArray(rt.network.validWitnessVersions))throw new Error("Invalid network");it=rt.network}if(rt.timestamp===void 0&&!nt)rt.timestamp=Math.floor(new Date().getTime()/1e3);else if(rt.timestamp===void 0&&nt)throw new Error("Need timestamp for proper payment request reconstruction");if(rt.tags===void 0)throw new Error("Payment Requests need tags array");if(!tagsContainItem(rt.tags,TAGNAMES[1]))throw new Error("Lightning Payment Request needs a payment hash");if(tagsContainItem(rt.tags,TAGNAMES[16]))if(tagsContainItem(rt.tags,TAGNAMES[5])){const St=tagsItems(rt.tags,TAGNAMES[5]);if(!St.payment_secret||!St.payment_secret.supported&&!St.payment_secret.required)throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included")}else if(tt)rt.tags.push({tagName:TAGNAMES[5],data:DEFAULTFEATUREBITS});else throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included");if(!tagsContainItem(rt.tags,TAGNAMES[13])&&!tagsContainItem(rt.tags,TAGNAMES[23]))if(tt)rt.tags.push({tagName:TAGNAMES[13],data:DEFAULTDESCRIPTION});else throw new Error("Payment request requires description or purpose commit hash");if(tagsContainItem(rt.tags,TAGNAMES[13])&&Buffer$1.from(tagsItems(rt.tags,TAGNAMES[13]),"utf8").length>639)throw new Error("Description is too long: Max length 639 bytes");!tagsContainItem(rt.tags,TAGNAMES[6])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[6],data:DEFAULTEXPIRETIME}),!tagsContainItem(rt.tags,TAGNAMES[24])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[24],data:DEFAULTCLTVEXPIRY});let st,at;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(at=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(st=hexToBuffer(rt.payeeNodeKey)),st&&at&&!at.equals(st))throw new Error("payeeNodeKey and tag payee node key do not match");st=st||at,st&&(rt.payeeNodeKey=st.toString("hex"));let ot,lt,ut;if(tagsContainItem(rt.tags,TAGNAMES[9])){const St=tagsItems(rt.tags,TAGNAMES[9]);if(ut=St.address,lt=St.addressHash,ot=St.code,lt===void 0||ot===void 0){let Bt,Ft;try{Bt=bitcoinjsAddress.fromBech32(ut),lt=Bt.data,ot=Bt.version}catch{try{Ft=bitcoinjsAddress.fromBase58Check(ut),Ft.version===it.pubKeyHash?ot=17:Ft.version===it.scriptHash&&(ot=18),lt=Ft.hash}catch{throw new Error("Fallback address type is unknown")}}if(Bt&&!(Bt.version in it.validWitnessVersions))throw new Error("Fallback address witness version is unknown");if(Bt&&Bt.prefix!==it.bech32)throw new Error("Fallback address network type does not match payment request network type");if(Ft&&Ft.version!==it.pubKeyHash&&Ft.version!==it.scriptHash)throw new Error("Fallback address version (base58) is unknown or the network type is incorrect");St.addressHash=lt.toString("hex"),St.code=ot}}tagsContainItem(rt.tags,TAGNAMES[3])&&tagsItems(rt.tags,TAGNAMES[3]).forEach(Bt=>{if(Bt.pubkey===void 0||Bt.short_channel_id===void 0||Bt.fee_base_msat===void 0||Bt.fee_proportional_millionths===void 0||Bt.cltv_expiry_delta===void 0)throw new Error("Routing info is incomplete");if(!secp256k1.publicKeyVerify(hexToBuffer(Bt.pubkey)))throw new Error("Routing info pubkey is not a valid pubkey");const Ft=hexToBuffer(Bt.short_channel_id);if(!(Ft instanceof Buffer$1)||Ft.length!==8)throw new Error("Routing info short channel id must be 8 bytes");if(typeof Bt.fee_base_msat!="number"||Math.floor(Bt.fee_base_msat)!==Bt.fee_base_msat)throw new Error("Routing info fee base msat is not an integer");if(typeof Bt.fee_proportional_millionths!="number"||Math.floor(Bt.fee_proportional_millionths)!==Bt.fee_proportional_millionths)throw new Error("Routing info fee proportional millionths is not an integer");if(typeof Bt.cltv_expiry_delta!="number"||Math.floor(Bt.cltv_expiry_delta)!==Bt.cltv_expiry_delta)throw new Error("Routing info cltv expiry delta is not an integer")});let dt="ln";dt+=it.bech32;let bt;if(rt.millisatoshis&&rt.satoshis){if(bt=millisatToHrp(new BN(rt.millisatoshis,10)),satToHrp(new BN(rt.satoshis,10))!==bt)throw new Error("satoshis and millisatoshis do not match")}else rt.millisatoshis?bt=millisatToHrp(new BN(rt.millisatoshis,10)):rt.satoshis?bt=satToHrp(new BN(rt.satoshis,10)):bt="";dt+=bt;const gt=intBEToWords(rt.timestamp);for(;gt.length<7;)gt.unshift(0);const kt=rt.tags;let pt=[];kt.forEach(St=>{const Bt=Object.keys(TAGENCODERS);if(nt&&Bt.push(unknownTagName),Bt.indexOf(St.tagName)===-1)throw new Error("Unknown tag key: "+St.tagName);let Ft;if(St.tagName!==unknownTagName){pt.push(TAGCODES[St.tagName]);const Dt=TAGENCODERS[St.tagName];Ft=Dt(St.data)}else{const Dt=unknownEncoder(St.data);pt.push(Dt.tagCode),Ft=Dt.words}pt=pt.concat([0].concat(intBEToWords(Ft.length)).slice(-2)),pt=pt.concat(Ft)});let yt=gt.concat(pt);const $t=Buffer$1.concat([Buffer$1.from(dt,"utf8"),Buffer$1.from(convert(yt,5,8))]),mt=sha256($t);let wt;if(nt)if(st){const St=Buffer$1.from(secp256k1.ecdsaRecover(Buffer$1.from(rt.signature,"hex"),rt.recoveryFlag,mt,!0));if(st&&!st.equals(St))throw new Error("Signature, message, and recoveryID did not produce the same pubkey as payeeNodeKey");wt=hexToWord(rt.signature+"0"+rt.recoveryFlag)}else throw new Error("Reconstruction with signature and recoveryID requires payeeNodeKey to verify correctness of input data.");return wt&&(yt=yt.concat(wt)),tagsContainItem(rt.tags,TAGNAMES[6])&&(rt.timeExpireDate=rt.timestamp+tagsItems(rt.tags,TAGNAMES[6]),rt.timeExpireDateString=new Date(rt.timeExpireDate*1e3).toISOString()),rt.timestampString=new Date(rt.timestamp*1e3).toISOString(),rt.complete=!!wt,rt.paymentRequest=rt.complete?bech32.encode(dt,yt,Number.MAX_SAFE_INTEGER):"",rt.prefix=dt,rt.wordsTemp=bech32.encode("temp",yt,Number.MAX_SAFE_INTEGER),orderKeys(rt)}function decode$3(et,tt){if(typeof et!="string")throw new Error("Lightning Payment Request must be string");if(et.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const rt=bech32.decode(et,Number.MAX_SAFE_INTEGER);et=et.toLowerCase();const nt=rt.prefix;let it=rt.words;const st=it.slice(-104),at=it.slice(0,-104);it=it.slice(0,-104);let ot=wordsToBuffer(st,!0);const lt=ot.slice(-1)[0];if(ot=ot.slice(0,-1),!(lt in[0,1,2,3])||ot.length!==64)throw new Error("Signature is missing or incorrect");let ut=nt.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(ut&&!ut[2]&&(ut=nt.match(/^ln(\S+)$/)),!ut)throw new Error("Not a proper lightning payment request");const dt=ut[1];let bt;if(tt){if(tt.bech32===void 0||tt.pubKeyHash===void 0||tt.scriptHash===void 0||!Array.isArray(tt.validWitnessVersions))throw new Error("Invalid network");bt=tt}else switch(dt){case DEFAULTNETWORK.bech32:bt=DEFAULTNETWORK;break;case TESTNETWORK.bech32:bt=TESTNETWORK;break;case REGTESTNETWORK.bech32:bt=REGTESTNETWORK;break;case SIMNETWORK.bech32:bt=SIMNETWORK;break}if(!bt||bt.bech32!==dt)throw new Error("Unknown coin bech32 prefix");const gt=ut[2];let kt,pt,yt;if(gt){const Mt=ut[3];try{kt=parseInt(hrpToSat(gt+Mt,!0))}catch{kt=null,yt=!0}pt=hrpToMillisat(gt+Mt,!0)}else kt=null,pt=null;const $t=wordsToIntBE(it.slice(0,7)),mt=new Date($t*1e3).toISOString();it=it.slice(7);const wt=[];let St,Bt,Ft,Dt;for(;it.length>0;){const Mt=it[0].toString();St=TAGNAMES[Mt]||unknownTagName,Bt=TAGPARSERS[Mt]||getUnknownParser(Mt),it=it.slice(1),Ft=wordsToIntBE(it.slice(0,2)),it=it.slice(2),Dt=it.slice(0,Ft),it=it.slice(Ft),wt.push({tagName:St,data:Bt(Dt,bt)})}let zt,Ht;tagsContainItem(wt,TAGNAMES[6])&&(zt=$t+tagsItems(wt,TAGNAMES[6]),Ht=new Date(zt*1e3).toISOString());const Wt=Buffer$1.concat([Buffer$1.from(nt,"utf8"),Buffer$1.from(convert(at,5,8))]),lr=sha256(Wt),qt=Buffer$1.from(secp256k1.ecdsaRecover(ot,lt,lr,!0));if(tagsContainItem(wt,TAGNAMES[19])&&tagsItems(wt,TAGNAMES[19])!==qt.toString("hex"))throw new Error("Lightning Payment Request signature pubkey does not match payee pubkey");let Ot={paymentRequest:et,complete:!0,prefix:nt,wordsTemp:bech32.encode("temp",at.concat(st),Number.MAX_SAFE_INTEGER),network:bt,satoshis:kt,millisatoshis:pt,timestamp:$t,timestampString:mt,payeeNodeKey:qt.toString("hex"),signature:ot.toString("hex"),recoveryFlag:lt,tags:wt};return yt&&delete Ot.satoshis,zt&&(Ot=Object.assign(Ot,{timeExpireDate:zt,timeExpireDateString:Ht})),orderKeys(Ot,!0)}function getTagsObject(et){const tt={};return et.forEach(rt=>{rt.tagName===unknownTagName?(tt.unknownTags||(tt.unknownTags=[]),tt.unknownTags.push(rt.data)):tt[rt.tagName]=rt.data}),tt}var payreq={encode:encode$3,decode:decode$3,sign,satToHrp,millisatToHrp,hrpToSat,hrpToMillisat};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(dt){return dt&&dt.__esModule?dt:{default:dt}};Object.defineProperty(et,"__esModule",{value:!0}),et.getIdFromRequest=et.decode=et.isHex=et.stringToBytes=et.isValue=et.utf8Encoder=void 0;const rt=tt(payreq),nt=tt(assert_1);let it;typeof window<"u"&&window&&window.TextEncoder?it=window.TextEncoder:it=util.TextEncoder,et.utf8Encoder=new it;const st=dt=>dt!=null;et.isValue=st;const at=dt=>(0,et.isValue)(dt)?et.utf8Encoder.encode(dt):dt;et.stringToBytes=at;function ot(dt){return Buffer.from(dt,"hex").toString("hex")===dt}et.isHex=ot;function lt(dt){let bt;return dt.indexOf("lnsb")===0&&(bt={bech32:"sb"}),rt.default.decode(dt,bt)}et.decode=lt;function ut(dt){const gt=lt(dt).tags.find(pt=>pt.tagName==="payment_hash");(0,nt.default)(gt&>.data,"Could not find payment hash on invoice request");const kt=gt==null?void 0:gt.data.toString();if(!kt||!kt.length)throw new Error("Could not get payment hash from payment request");return kt}et.getIdFromRequest=ut})(helpers);var hasRequiredLsat;function requireLsat(){if(hasRequiredLsat)return lsat$1;hasRequiredLsat=1;var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gt,kt,pt,yt){yt===void 0&&(yt=pt);var $t=Object.getOwnPropertyDescriptor(kt,pt);(!$t||("get"in $t?!kt.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return kt[pt]}}),Object.defineProperty(gt,yt,$t)}:function(gt,kt,pt,yt){yt===void 0&&(yt=pt),gt[yt]=kt[pt]}),tt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gt,kt){Object.defineProperty(gt,"default",{enumerable:!0,value:kt})}:function(gt,kt){gt.default=kt}),rt=commonjsGlobal&&commonjsGlobal.__importStar||function(gt){if(gt&>.__esModule)return gt;var kt={};if(gt!=null)for(var pt in gt)pt!=="default"&&Object.prototype.hasOwnProperty.call(gt,pt)&&et(kt,gt,pt);return tt(kt,gt),kt},nt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(lsat$1,"__esModule",{value:!0}),lsat$1.Lsat=lsat$1.parseChallengePart=void 0;const it=assert_1,st=bufio,at=nt(requireCryptoBrowserify()),ot=rt(macaroon$1),lt=requireDist(),ut=helpers;function dt(gt){let kt;const pt=gt.indexOf("=");it(pt>-1,'Incorrectly encoded challenge. Missing "=" separator.');const yt=gt.length-1-pt;return kt=gt.slice(-yt),it(kt.length,"Incorrectly encoded macaroon challenge"),it(kt[0]==='"'&&kt[kt.length-1]==='"',"Incorectly encoded challenge, challenges must be enclosed in double quotes."),kt=kt.slice(1,kt.length-1),kt}lsat$1.parseChallengePart=dt;class bt extends st.Struct{constructor(kt){super(kt),this.id="",this.validUntil=0,this.invoice="",this.baseMacaroon="",this.paymentHash=Buffer.alloc(32).toString("hex"),this.timeCreated=Date.now(),this.paymentPreimage=null,this.amountPaid=0,this.routingFeePaid=0,this.invoiceAmount=0,kt&&this.fromOptions(kt)}fromOptions(kt){it(typeof kt.baseMacaroon=="string","Require serialized macaroon"),this.baseMacaroon=kt.baseMacaroon,it(typeof kt.id=="string","Require string id"),this.id=kt.id,it(typeof kt.paymentHash=="string","Require paymentHash"),this.paymentHash=kt.paymentHash;const pt=this.getExpirationFromMacaroon(kt.baseMacaroon);return pt&&(this.validUntil=pt),kt.invoice&&this.addInvoice(kt.invoice),kt.timeCreated&&(this.timeCreated=kt.timeCreated),kt.paymentPreimage&&(this.paymentPreimage=kt.paymentPreimage),kt.amountPaid&&(this.amountPaid=kt.amountPaid),kt.routingFeePaid&&(this.routingFeePaid=kt.routingFeePaid),this}isExpired(){return this.validUntil===0?!1:this.validUntilwt.tagName==="payment_hash");it($t,"Could not find payment hash on invoice request");const mt=$t==null?void 0:$t.data;it(mt===this.paymentHash,"paymentHash from invoice did not match LSAT"),this.invoiceAmount=yt||0,this.invoice=kt}catch(pt){throw new Error(`Problem adding invoice data to LSAT: ${pt.message}`)}}static fromMacaroon(kt,pt){it(typeof kt=="string","Requires a raw macaroon string for macaroon to generate LSAT");let yt,$t;try{$t=(0,lt.decodeIdentifierFromMacaroon)(kt),yt=lt.Identifier.fromString($t)}catch(St){throw new Error(`Unexpected encoding for macaroon identifier: ${St.message}`)}const mt={id:$t,baseMacaroon:kt,paymentHash:yt.paymentHash.toString("hex")},wt=new this(mt);return pt&&wt.addInvoice(pt),wt}static fromToken(kt,pt){it(kt.includes(this.type),"Token must include LSAT prefix"),kt=kt.slice(this.type.length).trim();const[yt,$t]=kt.split(":"),mt=bt.fromMacaroon(yt,pt);return $t&&mt.setPreimage($t),mt}static fromChallenge(kt){const pt="macaroon=",yt="invoice=";let $t;$t=kt.split(","),$t.length<2&&($t=kt.split(" ")),it($t.length>=2,"Expected at least two challenges in the LSAT: invoice and macaroon");let mt="",wt="";for(const Ft of $t){if(!mt.length&&Ft.indexOf(pt)>-1)try{mt=dt(Ft)}catch(Dt){throw new Error(`Problem parsing macaroon challenge: ${Dt.message}`)}if(!wt.length&&Ft.indexOf(yt)>-1)try{wt=dt(Ft)}catch(Dt){throw new Error(`Problem parsing macaroon challenge: ${Dt.message}`)}if(wt.length&&mt.length)break}it(wt.length&&mt.length,"Expected WWW-Authenticate challenge with macaroon and invoice data");const St=(0,ut.getIdFromRequest)(wt),Bt=(0,lt.decodeIdentifierFromMacaroon)(mt);return new this({id:Bt,baseMacaroon:mt,paymentHash:St,invoice:wt})}static fromHeader(kt){const pt=kt.slice(this.type.length).trim();return it(kt.length!==pt.length,'header missing token type prefix "LSAT"'),bt.fromChallenge(pt)}}return lsat$1.Lsat=bt,bt.type="LSAT",lsat$1}var types={},lsat={};Object.defineProperty(lsat,"__esModule",{value:!0});var satisfier={};Object.defineProperty(satisfier,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(lsat,et),rt(satisfier,et)})(types);var satisfiers={},hasRequiredSatisfiers;function requireSatisfiers(){if(hasRequiredSatisfiers)return satisfiers;hasRequiredSatisfiers=1,Object.defineProperty(satisfiers,"__esModule",{value:!0}),satisfiers.createCapabilitiesSatisfier=satisfiers.createServicesSatisfier=satisfiers.expirationSatisfier=void 0;const et=requireDist();satisfiers.expirationSatisfier={condition:"expiration",satisfyPrevious:(nt,it)=>nt.condition!=="expiration"||it.condition!=="expiration"?!1:!(nt.value!(nt.condition!=="expiration"||nt.value{if(typeof nt!="string")throw new et.InvalidServicesError;return{condition:et.SERVICES_CAVEAT_CONDITION,satisfyPrevious:(it,st)=>{const at=(0,et.decodeServicesCaveat)(it.value.toString()),ot=(0,et.decodeServicesCaveat)(st.value.toString());if(!Array.isArray(at)||!Array.isArray(ot))throw new et.InvalidServicesError;let lt=new Map;lt=at.reduce((ut,dt)=>ut.set(dt.name,dt.tier),lt);for(const ut of ot)if(!lt.has(ut.name)||lt.get(ut.name)>ut.tier)return!1;return!0},satisfyFinal:it=>{const st=(0,et.decodeServicesCaveat)(it.value.toString());if(!Array.isArray(st))throw new et.InvalidServicesError;for(const at of st)if(at.name===nt)return!0;return!1}}};satisfiers.createServicesSatisfier=tt;const rt=(nt,it)=>{if(typeof it!="string")throw new et.InvalidCapabilitiesError;if(typeof nt!="string")throw new et.InvalidCapabilitiesError;return{condition:nt+et.SERVICE_CAPABILITIES_SUFFIX,satisfyPrevious:(st,at)=>{const ot=(0,et.decodeCapabilitiesValue)(st.value.toString()),lt=(0,et.decodeCapabilitiesValue)(at.value.toString());if(!Array.isArray(ot)||!Array.isArray(lt))throw new et.InvalidServicesError;let ut=new Set;ut=ot.reduce((dt,bt)=>dt.add(bt),ut);for(const dt of lt)if(!ut.has(dt))return!1;return!0},satisfyFinal:st=>{const at=(0,et.decodeCapabilitiesValue)(st.value.toString());if(!Array.isArray(at))throw new et.InvalidServicesError;for(const ot of at)if(ot===it)return!0;return!1}}};return satisfiers.createCapabilitiesSatisfier=rt,satisfiers}var macaroon={},base64={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)it.hasOwnProperty(st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(base64,"__esModule",{value:!0});var INVALID_BYTE=256,Coder=function(){function et(tt){tt===void 0&&(tt="="),this._paddingCharacter=tt}return et.prototype.encodedLength=function(tt){return this._paddingCharacter?(tt+2)/3*4|0:(tt*8+5)/6|0},et.prototype.encode=function(tt){for(var rt="",nt=0;nt>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),rt+=this._encodeByte(it>>>1*6&63),rt+=this._encodeByte(it>>>0*6&63)}var st=tt.length-nt;if(st>0){var it=tt[nt]<<16|(st===2?tt[nt+1]<<8:0);rt+=this._encodeByte(it>>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),st===2?rt+=this._encodeByte(it>>>1*6&63):rt+=this._paddingCharacter||"",rt+=this._paddingCharacter||""}return rt},et.prototype.maxDecodedLength=function(tt){return this._paddingCharacter?tt/4*3|0:(tt*6+7)/8|0},et.prototype.decodedLength=function(tt){return this.maxDecodedLength(tt.length-this._getPaddingLength(tt))},et.prototype.decode=function(tt){if(tt.length===0)return new Uint8Array(0);for(var rt=this._getPaddingLength(tt),nt=tt.length-rt,it=new Uint8Array(this.maxDecodedLength(nt)),st=0,at=0,ot=0,lt=0,ut=0,dt=0,bt=0;at>>4,it[st++]=ut<<4|dt>>>2,it[st++]=dt<<6|bt,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE,ot|=dt&INVALID_BYTE,ot|=bt&INVALID_BYTE;if(at>>4,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE),at>>2,ot|=dt&INVALID_BYTE),at>>8&0-65-26+97,rt+=51-tt>>>8&26-97-52+48,rt+=61-tt>>>8&52-48-62+43,rt+=62-tt>>>8&62-43-63+47,String.fromCharCode(rt)},et.prototype._decodeChar=function(tt){var rt=INVALID_BYTE;return rt+=(42-tt&tt-44)>>>8&-INVALID_BYTE+tt-43+62,rt+=(46-tt&tt-48)>>>8&-INVALID_BYTE+tt-47+63,rt+=(47-tt&tt-58)>>>8&-INVALID_BYTE+tt-48+52,rt+=(64-tt&tt-91)>>>8&-INVALID_BYTE+tt-65+0,rt+=(96-tt&tt-123)>>>8&-INVALID_BYTE+tt-97+26,rt},et.prototype._getPaddingLength=function(tt){var rt=0;if(this._paddingCharacter){for(var nt=tt.length-1;nt>=0&&tt[nt]===this._paddingCharacter;nt--)rt++;if(tt.length<4||rt>2)throw new Error("Base64Coder: incorrect padding")}return rt},et}();base64.Coder=Coder;var stdCoder=new Coder;function encode$2(et){return stdCoder.encode(et)}base64.encode=encode$2;function decode$2(et){return stdCoder.decode(et)}base64.decode=decode$2;var URLSafeCoder=function(et){__extends$1(tt,et);function tt(){return et!==null&&et.apply(this,arguments)||this}return tt.prototype._encodeByte=function(rt){var nt=rt;return nt+=65,nt+=25-rt>>>8&0-65-26+97,nt+=51-rt>>>8&26-97-52+48,nt+=61-rt>>>8&52-48-62+45,nt+=62-rt>>>8&62-45-63+95,String.fromCharCode(nt)},tt.prototype._decodeChar=function(rt){var nt=INVALID_BYTE;return nt+=(44-rt&rt-46)>>>8&-INVALID_BYTE+rt-45+62,nt+=(94-rt&rt-96)>>>8&-INVALID_BYTE+rt-95+63,nt+=(47-rt&rt-58)>>>8&-INVALID_BYTE+rt-48+52,nt+=(64-rt&rt-91)>>>8&-INVALID_BYTE+rt-65+0,nt+=(96-rt&rt-123)>>>8&-INVALID_BYTE+rt-97+26,nt},tt}(Coder);base64.URLSafeCoder=URLSafeCoder;var urlSafeCoder=new URLSafeCoder;function encodeURLSafe(et){return urlSafeCoder.encode(et)}base64.encodeURLSafe=encodeURLSafe;function decodeURLSafe(et){return urlSafeCoder.decode(et)}base64.decodeURLSafe=decodeURLSafe;base64.encodedLength=function(et){return stdCoder.encodedLength(et)};base64.maxDecodedLength=function(et){return stdCoder.maxDecodedLength(et)};base64.decodedLength=function(et){return stdCoder.decodedLength(et)};var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding(tt,et,rt);return __setModuleDefault(tt,et),tt};Object.defineProperty(macaroon,"__esModule",{value:!0});macaroon.getRawMacaroon=macaroon.verifyMacaroonCaveats=macaroon.getCaveatsFromMacaroon=void 0;const caveat_1=caveat,helpers_1=helpers,Macaroon=__importStar(macaroon$1),base64_1=base64;function getCaveatsFromMacaroon(et){var tt;const rt=Macaroon.importMacaroon(et),nt=[],it=(tt=rt._exportAsJSONObjectV2())===null||tt===void 0?void 0:tt.c;if(it)for(const st of it){if(!st.i)continue;const at=caveat_1.Caveat.decode(st.i);nt.push(at)}return nt}macaroon.getCaveatsFromMacaroon=getCaveatsFromMacaroon;function verifyMacaroonCaveats(et,tt,rt,nt={}){try{const it=Macaroon.importMacaroon(et),st=(0,helpers_1.stringToBytes)(tt);it.verify(st,()=>null);const at=getCaveatsFromMacaroon(et);return rt&&!Array.isArray(rt)&&(rt=[rt]),!at.length&&(!rt||!rt.length)?!0:(0,caveat_1.verifyCaveats)(at,rt,nt)}catch{return!1}}macaroon.verifyMacaroonCaveats=verifyMacaroonCaveats;function getRawMacaroon(et,tt=!1){const rt=et._exportBinaryV2();return tt?(0,base64_1.encodeURLSafe)(rt):(0,base64_1.encode)(rt)}macaroon.getRawMacaroon=getRawMacaroon;var service={};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(et,"__esModule",{value:!0}),et.decodeCapabilitiesValue=et.createNewCapabilitiesCaveat=et.SERVICE_CAPABILITIES_SUFFIX=et.encodeServicesCaveatValue=et.decodeServicesCaveat=et.SERVICES_CAVEAT_CONDITION=et.Service=et.InvalidCapabilitiesError=et.InvalidServicesError=et.NoServicesError=void 0;const rt=tt(bufio),nt=caveat;class it extends Error{constructor(...kt){super(...kt),this.name="NoServicesError",this.message="no services found",Error.captureStackTrace&&Error.captureStackTrace(this,it)}}et.NoServicesError=it;class st extends Error{constructor(kt){super(kt),this.name="InvalidServicesError",kt||(this.message='service must be of the form "name:tier"'),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidServicesError=st;class at extends Error{constructor(kt){super(kt),this.name="InvalidCapabilitiesError",kt||(this.message="capabilities must be a string or array of strings"),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidCapabilitiesError=at;class ot extends rt.default.Struct{constructor(kt){super(kt),this.name=kt.name,this.tier=kt.tier}}et.Service=ot,et.SERVICES_CAVEAT_CONDITION="services";const lt=gt=>{if(!gt.length)throw new it;const kt=[],pt=gt.split(",");for(const yt of pt){const[$t,mt]=yt.split(":");if(!$t||!mt)throw new st;if(isNaN(+mt))throw new st("tier must be a number");if(!isNaN(+$t))throw new st("service name must be a string");kt.push(new ot({name:$t,tier:+mt}))}return kt};et.decodeServicesCaveat=lt;const ut=gt=>{if(!gt.length)throw new it;let kt="";for(let pt=0;pt{let pt;if(!kt)pt="";else if(Array.isArray(kt))pt=kt.join(",");else{if(typeof kt!="string")throw new at;pt=kt}return new nt.Caveat({condition:gt+et.SERVICE_CAPABILITIES_SUFFIX,value:pt,comp:"="})};et.createNewCapabilitiesCaveat=dt;const bt=gt=>{if(typeof gt!="string")throw new at;return gt.toString().split(",").map(kt=>kt.trim())};et.decodeCapabilitiesValue=bt})(service);var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(identifier$1,et),rt(caveat,et),rt(requireLsat(),et),rt(types,et),rt(requireSatisfiers(),et),rt(macaroon,et),rt(service,et)}(dist$1)),dist$1}var distExports=requireDist(),lib={},client={},errors={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Class extends value "+String(rt)+" is not a constructor or null");et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(errors,"__esModule",{value:!0});errors.InternalError=errors.InvalidDataError=errors.RoutingError=errors.UnsupportedMethodError=errors.ConnectionError=errors.RejectionError=errors.MissingProviderError=void 0;function fixError(et,tt,rt){if(Object.setPrototypeOf(et,rt.prototype),tt===rt)if(et.name=tt.name,Error.captureStackTrace)Error.captureStackTrace(et,rt);else{var nt=new Error(et.message).stack;nt&&(et.stack=fixStack(nt,"new ".concat(tt.name)))}}function fixStack(et,tt){if(!et||!tt)return et;var rt=new RegExp("\\s+at\\s".concat(tt,"\\s")),nt=et.split(` +*********************`),ot=st.hashForSignature(et,ut,at)}return{script:ut,sighashType:at,hash:ot}}function getAllTaprootHashesForSig(et,tt,rt,nt){const it=[];if(tt.tapInternalKey){const at=getPrevoutTaprootKey(et,tt,nt);at&&it.push(at)}if(tt.tapScriptSig){const at=tt.tapScriptSig.map(ot=>ot.pubkey);it.push(...at)}return it.map(at=>getTaprootHashesForSig(et,tt,rt,at,nt)).flat()}function getPrevoutTaprootKey(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return(0,psbtutils_1.isP2TR)(nt)?nt.subarray(2,34):null}function trimTaprootSig(et){return et.length===64?et:et.subarray(0,64)}function getTaprootHashesForSig(et,tt,rt,nt,it,st,at){const ot=it.__TX,lt=tt.sighashType||transaction_1.Transaction.SIGHASH_DEFAULT;checkSighashTypeAllowed(lt,at);const ut=rt.map((pt,yt)=>getScriptAndAmountFromUtxo(yt,pt,it)),dt=ut.map(pt=>pt.script),bt=ut.map(pt=>pt.value),gt=[];if(tt.tapInternalKey&&!st){const pt=getPrevoutTaprootKey(et,tt,it)||Buffer.from([]);if((0,bip371_1.toXOnly)(nt).equals(pt)){const yt=ot.hashForWitnessV1(et,dt,bt,lt);gt.push({pubkey:nt,hash:yt})}}const kt=(tt.tapLeafScript||[]).filter(pt=>(0,psbtutils_1.pubkeyInScript)(nt,pt.script)).map(pt=>{const yt=(0,bip341_1.tapleafHash)({output:pt.script,version:pt.leafVersion});return Object.assign({hash:yt},pt)}).filter(pt=>!st||st.equals(pt.hash)).map(pt=>{const yt=ot.hashForWitnessV1(et,dt,bt,transaction_1.Transaction.SIGHASH_DEFAULT,pt.hash);return{pubkey:nt,hash:yt,leafHash:pt.hash}});return gt.concat(kt)}function checkSighashTypeAllowed(et,tt){if(tt&&tt.indexOf(et)<0){const rt=sighashTypeToString(et);throw new Error(`Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: ${rt}`)}}function getPayment(et,tt,rt){let nt;switch(tt){case"multisig":const it=getSortedSigs(et,rt);nt=payments.p2ms({output:et,signatures:it});break;case"pubkey":nt=payments.p2pk({output:et,signature:rt[0].signature});break;case"pubkeyhash":nt=payments.p2pkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break;case"witnesspubkeyhash":nt=payments.p2wpkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break}return nt}function getScriptFromInput(et,tt,rt){const nt=rt.__TX,it={script:null,isSegwit:!1,isP2SH:!1,isP2WSH:!1};if(it.isP2SH=!!tt.redeemScript,it.isP2WSH=!!tt.witnessScript,tt.witnessScript)it.script=tt.witnessScript;else if(tt.redeemScript)it.script=tt.redeemScript;else if(tt.nonWitnessUtxo){const st=nonWitnessUtxoTxFromCache(rt,tt,et),at=nt.ins[et].index;it.script=st.outs[at].script}else tt.witnessUtxo&&(it.script=tt.witnessUtxo.script);return(tt.witnessScript||(0,psbtutils_1.isP2WPKH)(it.script))&&(it.isSegwit=!0),it}function getSignersFromHD(et,tt,rt){const nt=(0,utils_1.checkForInput)(tt,et);if(!nt.bip32Derivation||nt.bip32Derivation.length===0)throw new Error("Need bip32Derivation to sign with HD");const it=nt.bip32Derivation.map(at=>{if(at.masterFingerprint.equals(rt.fingerprint))return at}).filter(at=>!!at);if(it.length===0)throw new Error("Need one bip32Derivation masterFingerprint to match the HDSigner fingerprint");return it.map(at=>{const ot=rt.derivePath(at.path);if(!at.pubkey.equals(ot.publicKey))throw new Error("pubkey did not match bip32Derivation");return ot})}function getSortedSigs(et,tt){return payments.p2ms({output:et}).pubkeys.map(nt=>(tt.filter(it=>it.pubkey.equals(nt))[0]||{}).signature).filter(nt=>!!nt)}function scriptWitnessToWitnessStack(et){let tt=0;function rt(at){return tt+=at,et.slice(tt-at,tt)}function nt(){const at=varuint.decode(et,tt);return tt+=varuint.decode.bytes,at}function it(){return rt(nt())}function st(){const at=nt(),ot=[];for(let lt=0;lt{if(nt&<.finalScriptSig&&(tt.ins[ut].script=lt.finalScriptSig),nt&<.finalScriptWitness&&(tt.ins[ut].witness=scriptWitnessToWitnessStack(lt.finalScriptWitness)),lt.witnessUtxo)it+=lt.witnessUtxo.value;else if(lt.nonWitnessUtxo){const dt=nonWitnessUtxoTxFromCache(rt,lt,ut),bt=tt.ins[ut].index,gt=dt.outs[bt];it+=gt.value}});const st=tt.outs.reduce((lt,ut)=>lt+ut.value,0),at=it-st;if(at<0)throw new Error("Outputs are spending more than Inputs");const ot=tt.virtualSize();rt.__FEE=at,rt.__EXTRACTED_TX=tt,rt.__FEE_RATE=Math.floor(at/ot)}function nonWitnessUtxoTxFromCache(et,tt,rt){const nt=et.__NON_WITNESS_UTXO_TX_CACHE;return nt[rt]||addNonWitnessTxCache(et,tt,rt),nt[rt]}function getScriptFromUtxo(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return nt}function getScriptAndAmountFromUtxo(et,tt,rt){if(tt.witnessUtxo!==void 0)return{script:tt.witnessUtxo.script,value:tt.witnessUtxo.value};if(tt.nonWitnessUtxo!==void 0){const it=nonWitnessUtxoTxFromCache(rt,tt,et).outs[rt.__TX.ins[et].index];return{script:it.script,value:it.value}}else throw new Error("Can't find pubkey in input without Utxo data")}function pubkeyInInput(et,tt,rt,nt){const it=getScriptFromUtxo(rt,tt,nt),{meaningfulScript:st}=getMeaningfulScript(it,rt,"input",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function pubkeyInOutput(et,tt,rt,nt){const it=nt.__TX.outs[rt].script,{meaningfulScript:st}=getMeaningfulScript(it,rt,"output",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function redeemFromFinalScriptSig(et){if(!et)return;const tt=bscript.decompile(et);if(!tt)return;const rt=tt[tt.length-1];if(!(!Buffer.isBuffer(rt)||isPubkeyLike(rt)||isSigLike(rt)||!bscript.decompile(rt)))return rt}function redeemFromFinalWitnessScript(et){if(!et)return;const tt=scriptWitnessToWitnessStack(et),rt=tt[tt.length-1];if(!(isPubkeyLike(rt)||!bscript.decompile(rt)))return rt}function compressPubkey(et){if(et.length===65){const tt=et[64]&1,rt=et.slice(0,33);return rt[0]=2|tt,rt}return et.slice()}function isPubkeyLike(et){return et.length===33&&bscript.isCanonicalPubKey(et)}function isSigLike(et){return bscript.isCanonicalScriptSignature(et)}function getMeaningfulScript(et,tt,rt,nt,it){const st=(0,psbtutils_1.isP2SHScript)(et),at=st&&nt&&(0,psbtutils_1.isP2WSHScript)(nt),ot=(0,psbtutils_1.isP2WSHScript)(et);if(st&&nt===void 0)throw new Error("scriptPubkey is P2SH but redeemScript missing");if((ot||at)&&it===void 0)throw new Error("scriptPubkey or redeemScript is P2WSH but witnessScript missing");let lt;return at?(lt=it,checkRedeemScript(tt,et,nt,rt),checkWitnessScript(tt,nt,it,rt),checkInvalidP2WSH(lt)):ot?(lt=it,checkWitnessScript(tt,et,it,rt),checkInvalidP2WSH(lt)):st?(lt=nt,checkRedeemScript(tt,et,nt,rt)):lt=et,{meaningfulScript:lt,type:at?"p2sh-p2wsh":st?"p2sh":ot?"p2wsh":"raw"}}function checkInvalidP2WSH(et){if((0,psbtutils_1.isP2WPKH)(et)||(0,psbtutils_1.isP2SHScript)(et))throw new Error("P2WPKH or P2SH can not be contained within P2WSH")}function classifyScript(et){return(0,psbtutils_1.isP2WPKH)(et)?"witnesspubkeyhash":(0,psbtutils_1.isP2PKH)(et)?"pubkeyhash":(0,psbtutils_1.isP2MS)(et)?"multisig":(0,psbtutils_1.isP2PK)(et)?"pubkey":"nonstandard"}function range(et){return[...Array(et).keys()]}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.initEccLib=et.Transaction=et.opcodes=et.Psbt=et.Block=et.script=et.payments=et.networks=et.crypto=et.address=void 0;const tt=address;et.address=tt;const rt=crypto$2;et.crypto=rt;const nt=networks$1;et.networks=nt;const it=payments$3;et.payments=it;const st=script;et.script=st;var at=block;Object.defineProperty(et,"Block",{enumerable:!0,get:function(){return at.Block}});var ot=psbt$1;Object.defineProperty(et,"Psbt",{enumerable:!0,get:function(){return ot.Psbt}});var lt=ops;Object.defineProperty(et,"opcodes",{enumerable:!0,get:function(){return lt.OPS}});var ut=transaction;Object.defineProperty(et,"Transaction",{enumerable:!0,get:function(){return ut.Transaction}});var dt=ecc_lib;Object.defineProperty(et,"initEccLib",{enumerable:!0,get:function(){return dt.initEccLib}})})(src$1);function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(et,tt){return et===tt||et!==et&&tt!==tt}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(et,tt){for(var rt=et.length;rt--;)if(eq$1(et[rt][0],tt))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(et){var tt=this.__data__,rt=assocIndexOf$3(tt,et);if(rt<0)return!1;var nt=tt.length-1;return rt==nt?tt.pop():splice.call(tt,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(et){var tt=this.__data__,rt=assocIndexOf$2(tt,et);return rt<0?void 0:tt[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(et){return assocIndexOf$1(this.__data__,et)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(et,tt){var rt=this.__data__,nt=assocIndexOf(rt,et);return nt<0?(++this.size,rt.push([et,tt])):rt[nt][1]=tt,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt-1&&et%1==0&&et-1&&et%1==0&&et<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$2="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(et){return isObjectLike$2(et)&&isLength$1(et.length)&&!!typedArrayTags[baseGetTag$1(et)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(et){return function(tt){return et(tt)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(et,tt){var rt=_freeGlobal,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st&&rt.process,ot=function(){try{var lt=it&&it.require&&it.require("util").types;return lt||at&&at.binding&&at.binding("util")}catch{}}();et.exports=ot})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$2=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$3=objectProto$5.hasOwnProperty;function arrayLikeKeys$2(et,tt){var rt=isArray$2(et),nt=!rt&&isArguments(et),it=!rt&&!nt&&isBuffer$1(et),st=!rt&&!nt&&!it&&isTypedArray(et),at=rt||nt||it||st,ot=at?baseTimes(et.length,String):[],lt=ot.length;for(var ut in et)(tt||hasOwnProperty$3.call(et,ut))&&!(at&&(ut=="length"||it&&(ut=="offset"||ut=="parent")||st&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||isIndex(ut,lt)))&&ot.push(ut);return ot}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$4=Object.prototype;function isPrototype$3(et){var tt=et&&et.constructor,rt=typeof tt=="function"&&tt.prototype||objectProto$4;return et===rt}var _isPrototype=isPrototype$3;function overArg$2(et,tt){return function(rt){return et(tt(rt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeys$1(et){if(!isPrototype$2(et))return nativeKeys(et);var tt=[];for(var rt in Object(et))hasOwnProperty$2.call(et,rt)&&rt!="constructor"&&tt.push(rt);return tt}var _baseKeys=baseKeys$1,isFunction$1=isFunction_1,isLength=isLength_1;function isArrayLike$2(et){return et!=null&&isLength(et.length)&&!isFunction$1(et)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(et){return isArrayLike$1(et)?arrayLikeKeys$1(et):baseKeys(et)}var keys_1=keys$3,copyObject$3=_copyObject,keys$2=keys_1;function baseAssign$1(et,tt){return et&©Object$3(tt,keys$2(tt),et)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(et){var tt=[];if(et!=null)for(var rt in Object(et))tt.push(rt);return tt}var _nativeKeysIn=nativeKeysIn$1,isObject$4=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty;function baseKeysIn$1(et){if(!isObject$4(et))return nativeKeysIn(et);var tt=isPrototype$1(et),rt=[];for(var nt in et)nt=="constructor"&&(tt||!hasOwnProperty$1.call(et,nt))||rt.push(nt);return rt}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;function keysIn$3(et){return isArrayLike(et)?arrayLikeKeys(et,!0):baseKeysIn(et)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(et,tt){return et&©Object$2(tt,keysIn$2(tt),et)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(et,tt){var rt=_root,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st?rt.Buffer:void 0,ot=at?at.allocUnsafe:void 0;function lt(ut,dt){if(dt)return ut.slice();var bt=ut.length,gt=ot?ot(bt):new ut.constructor(bt);return ut.copy(gt),gt}et.exports=lt})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(et,tt){var rt=-1,nt=et.length;for(tt||(tt=Array(nt));++rtwordsToBuffer(et,!0).toString("hex"),16:et=>wordsToBuffer(et,!0).toString("hex"),13:et=>wordsToBuffer(et,!0).toString("utf8"),19:et=>wordsToBuffer(et,!0).toString("hex"),23:et=>wordsToBuffer(et,!0).toString("hex"),6:wordsToIntBE,24:wordsToIntBE,9:fallbackAddressParser,3:routingInfoParser,5:featureBitsParser},unknownTagName="unknownTag";function unknownEncoder(et){return et.words=bech32.decode(et.words,Number.MAX_SAFE_INTEGER).words,et}function getUnknownParser(et){return tt=>({tagCode:parseInt(et),words:bech32.encode("unknown",tt,Number.MAX_SAFE_INTEGER)})}function wordsToIntBE(et){return et.reverse().reduce((tt,rt,nt)=>tt+rt*Math.pow(32,nt),0)}function intBEToWords(et,tt){const rt=[];if(tt===void 0&&(tt=5),et=Math.floor(et),et===0)return[0];for(;et>0;)rt.push(et&Math.pow(2,tt)-1),et=Math.floor(et/Math.pow(2,tt));return rt.reverse()}function sha256(et){return createHash("sha256").update(et).digest()}function convert(et,tt,rt){let nt=0,it=0;const st=(1<=rt;)it-=rt,at.push(nt>>it&st);return it>0&&at.push(nt<0;)rt=ot.slice(0,33).toString("hex"),nt=ot.slice(33,41).toString("hex"),it=parseInt(ot.slice(41,45).toString("hex"),16),st=parseInt(ot.slice(45,49).toString("hex"),16),at=parseInt(ot.slice(49,51).toString("hex"),16),ot=ot.slice(51),tt.push({pubkey:rt,short_channel_id:nt,fee_base_msat:it,fee_proportional_millionths:st,cltv_expiry_delta:at});return tt}function featureBitsParser(et){const tt=et.slice().reverse().map(nt=>[!!(nt&1),!!(nt&2),!!(nt&4),!!(nt&8),!!(nt&16)]).reduce((nt,it)=>nt.concat(it),[]);for(;tt.length{rt[nt]={required:tt[it*2],supported:tt[it*2+1]}}),tt.length>FEATUREBIT_ORDER.length*2){const nt=tt.slice(FEATUREBIT_ORDER.length*2);rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:nt,has_required:nt.reduce((it,st,at)=>at%2!==0?it||!1:it||st,!1)}}else rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:[],has_required:!1};return rt}function featureBitsEncoder(et){let tt=et.word_length,rt=[];for(FEATUREBIT_ORDER.forEach(nt=>{rt.push(!!(et[nt]||{}).required),rt.push(!!(et[nt]||{}).supported)});rt[rt.length-1]===!1;)rt.pop();for(;rt.length%5!==0;)rt.push(!1);if(et.extra_bits&&Array.isArray(et.extra_bits.bits)&&et.extra_bits.bits.length>0){for(;rt.lengthtt)throw new Error("word_length is too small to contain all featureBits");return tt===void 0&&(tt=Math.ceil(rt.length/5)),new Array(tt).fill(0).map((nt,it)=>rt[it*5+4]<<4|rt[it*5+3]<<3|rt[it*5+2]<<2|rt[it*5+1]<<1|rt[it*5]<<0).reverse()}function routingInfoEncoder(et){let tt=Buffer$1.from([]);return et.forEach(rt=>{tt=Buffer$1.concat([tt,hexToBuffer(rt.pubkey)]),tt=Buffer$1.concat([tt,hexToBuffer(rt.short_channel_id)]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_base_msat,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_proportional_millionths,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0].concat(intBEToWords(rt.cltv_expiry_delta,8)).slice(-2))])}),hexToWord(tt)}function purposeCommitEncoder(et){let tt;if(et!==void 0&&(typeof et=="string"||et instanceof String))et.match(/^([a-zA-Z0-9]{2})*$/)?tt=Buffer$1.from(et,"hex"):tt=sha256(Buffer$1.from(et,"utf8"));else throw new Error("purpose or purpose commit must be a string or hex string");return bech32.toWords(tt)}function tagsItems(et,tt){const rt=et.filter(it=>it.tagName===tt);return rt.length>0?rt[0].data:null}function tagsContainItem(et,tt){return tagsItems(et,tt)!==null}function orderKeys(et,tt){const rt={};if(Object.keys(et).sort().forEach(nt=>{rt[nt]=et[nt]}),tt===!0){const nt="__tagsObject_cache";Object.defineProperty(rt,"tagsObject",{get(){return this[nt]||Object.defineProperty(this,nt,{value:getTagsObject(this.tags)}),this[nt]}})}return rt}function satToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("satoshis must be an integer");const tt=new BN(et,10);return millisatToHrp(tt.mul(new BN(1e3,10)))}function millisatToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("millisatoshis must be an integer");const tt=new BN(et,10),rt=tt.toString(10),nt=rt.length;let it,st;return nt>11&&/0{11}$/.test(rt)?(it="",st=tt.div(MILLISATS_PER_BTC).toString(10)):nt>8&&/0{8}$/.test(rt)?(it="m",st=tt.div(MILLISATS_PER_MILLIBTC).toString(10)):nt>5&&/0{5}$/.test(rt)?(it="u",st=tt.div(MILLISATS_PER_MICROBTC).toString(10)):nt>2&&/0{2}$/.test(rt)?(it="n",st=tt.div(MILLISATS_PER_NANOBTC).toString(10)):(it="p",st=tt.mul(PICOBTC_PER_MILLISATS).toString(10)),st+it}function hrpToSat(et,tt){const rt=hrpToMillisat(et,!1);if(!rt.mod(new BN(1e3,10)).eq(new BN(0,10)))throw new Error("Amount is outside of valid range");const nt=rt.div(new BN(1e3,10));return tt?nt.toString():nt}function hrpToMillisat(et,tt){let rt,nt;if(et.slice(-1).match(/^[munp]$/))rt=et.slice(-1),nt=et.slice(0,-1);else{if(et.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");nt=et}if(!nt.match(/^\d+$/))throw new Error("Not a valid human readable amount");const it=new BN(nt,10),st=rt?it.mul(MILLISATS_PER_BTC).div(DIVISORS[rt]):it.mul(MILLISATS_PER_BTC);if(rt==="p"&&!it.mod(new BN(10,10)).eq(new BN(0,10))||st.gt(MAX_MILLISATS))throw new Error("Amount is outside of valid range");return tt?st.toString():st}function sign(et,tt){const rt=cloneDeep(et),nt=hexToBuffer(tt);if(rt.complete&&rt.paymentRequest)return rt;if(nt===void 0||nt.length!==32||!secp256k1.privateKeyVerify(nt))throw new Error("privateKey must be a 32 byte Buffer and valid private key");let it,st;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(st=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(it=hexToBuffer(rt.payeeNodeKey)),it&&st&&!st.equals(it))throw new Error("payee node key tag and payeeNodeKey attribute must match");it=st||it;const at=Buffer$1.from(secp256k1.publicKeyCreate(nt));if(it&&!at.equals(it))throw new Error("The private key given is not the private key of the node public key given");const ot=bech32.decode(rt.wordsTemp,Number.MAX_SAFE_INTEGER).words,lt=Buffer$1.concat([Buffer$1.from(rt.prefix,"utf8"),wordsToBuffer(ot)]),ut=sha256(lt),dt=secp256k1.ecdsaSign(ut,nt);dt.signature=Buffer$1.from(dt.signature);const bt=hexToWord(dt.signature.toString("hex")+"0"+dt.recid);return rt.payeeNodeKey=at.toString("hex"),rt.signature=dt.signature.toString("hex"),rt.recoveryFlag=dt.recid,rt.wordsTemp=bech32.encode("temp",ot.concat(bt),Number.MAX_SAFE_INTEGER),rt.complete=!0,rt.paymentRequest=bech32.encode(rt.prefix,ot.concat(bt),Number.MAX_SAFE_INTEGER),orderKeys(rt)}function encode$3(et,tt){const rt=cloneDeep(et);tt===void 0&&(tt=!0);const nt=!(rt.signature===void 0||rt.recoveryFlag===void 0);let it;if(rt.network===void 0&&!nt)rt.network=DEFAULTNETWORK,it=DEFAULTNETWORK;else{if(rt.network===void 0&&nt)throw new Error("Need network for proper payment request reconstruction");if(!rt.network.bech32||rt.network.pubKeyHash===void 0||rt.network.scriptHash===void 0||!Array.isArray(rt.network.validWitnessVersions))throw new Error("Invalid network");it=rt.network}if(rt.timestamp===void 0&&!nt)rt.timestamp=Math.floor(new Date().getTime()/1e3);else if(rt.timestamp===void 0&&nt)throw new Error("Need timestamp for proper payment request reconstruction");if(rt.tags===void 0)throw new Error("Payment Requests need tags array");if(!tagsContainItem(rt.tags,TAGNAMES[1]))throw new Error("Lightning Payment Request needs a payment hash");if(tagsContainItem(rt.tags,TAGNAMES[16]))if(tagsContainItem(rt.tags,TAGNAMES[5])){const St=tagsItems(rt.tags,TAGNAMES[5]);if(!St.payment_secret||!St.payment_secret.supported&&!St.payment_secret.required)throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included")}else if(tt)rt.tags.push({tagName:TAGNAMES[5],data:DEFAULTFEATUREBITS});else throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included");if(!tagsContainItem(rt.tags,TAGNAMES[13])&&!tagsContainItem(rt.tags,TAGNAMES[23]))if(tt)rt.tags.push({tagName:TAGNAMES[13],data:DEFAULTDESCRIPTION});else throw new Error("Payment request requires description or purpose commit hash");if(tagsContainItem(rt.tags,TAGNAMES[13])&&Buffer$1.from(tagsItems(rt.tags,TAGNAMES[13]),"utf8").length>639)throw new Error("Description is too long: Max length 639 bytes");!tagsContainItem(rt.tags,TAGNAMES[6])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[6],data:DEFAULTEXPIRETIME}),!tagsContainItem(rt.tags,TAGNAMES[24])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[24],data:DEFAULTCLTVEXPIRY});let st,at;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(at=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(st=hexToBuffer(rt.payeeNodeKey)),st&&at&&!at.equals(st))throw new Error("payeeNodeKey and tag payee node key do not match");st=st||at,st&&(rt.payeeNodeKey=st.toString("hex"));let ot,lt,ut;if(tagsContainItem(rt.tags,TAGNAMES[9])){const St=tagsItems(rt.tags,TAGNAMES[9]);if(ut=St.address,lt=St.addressHash,ot=St.code,lt===void 0||ot===void 0){let Bt,Ft;try{Bt=bitcoinjsAddress.fromBech32(ut),lt=Bt.data,ot=Bt.version}catch{try{Ft=bitcoinjsAddress.fromBase58Check(ut),Ft.version===it.pubKeyHash?ot=17:Ft.version===it.scriptHash&&(ot=18),lt=Ft.hash}catch{throw new Error("Fallback address type is unknown")}}if(Bt&&!(Bt.version in it.validWitnessVersions))throw new Error("Fallback address witness version is unknown");if(Bt&&Bt.prefix!==it.bech32)throw new Error("Fallback address network type does not match payment request network type");if(Ft&&Ft.version!==it.pubKeyHash&&Ft.version!==it.scriptHash)throw new Error("Fallback address version (base58) is unknown or the network type is incorrect");St.addressHash=lt.toString("hex"),St.code=ot}}tagsContainItem(rt.tags,TAGNAMES[3])&&tagsItems(rt.tags,TAGNAMES[3]).forEach(Bt=>{if(Bt.pubkey===void 0||Bt.short_channel_id===void 0||Bt.fee_base_msat===void 0||Bt.fee_proportional_millionths===void 0||Bt.cltv_expiry_delta===void 0)throw new Error("Routing info is incomplete");if(!secp256k1.publicKeyVerify(hexToBuffer(Bt.pubkey)))throw new Error("Routing info pubkey is not a valid pubkey");const Ft=hexToBuffer(Bt.short_channel_id);if(!(Ft instanceof Buffer$1)||Ft.length!==8)throw new Error("Routing info short channel id must be 8 bytes");if(typeof Bt.fee_base_msat!="number"||Math.floor(Bt.fee_base_msat)!==Bt.fee_base_msat)throw new Error("Routing info fee base msat is not an integer");if(typeof Bt.fee_proportional_millionths!="number"||Math.floor(Bt.fee_proportional_millionths)!==Bt.fee_proportional_millionths)throw new Error("Routing info fee proportional millionths is not an integer");if(typeof Bt.cltv_expiry_delta!="number"||Math.floor(Bt.cltv_expiry_delta)!==Bt.cltv_expiry_delta)throw new Error("Routing info cltv expiry delta is not an integer")});let dt="ln";dt+=it.bech32;let bt;if(rt.millisatoshis&&rt.satoshis){if(bt=millisatToHrp(new BN(rt.millisatoshis,10)),satToHrp(new BN(rt.satoshis,10))!==bt)throw new Error("satoshis and millisatoshis do not match")}else rt.millisatoshis?bt=millisatToHrp(new BN(rt.millisatoshis,10)):rt.satoshis?bt=satToHrp(new BN(rt.satoshis,10)):bt="";dt+=bt;const gt=intBEToWords(rt.timestamp);for(;gt.length<7;)gt.unshift(0);const kt=rt.tags;let pt=[];kt.forEach(St=>{const Bt=Object.keys(TAGENCODERS);if(nt&&Bt.push(unknownTagName),Bt.indexOf(St.tagName)===-1)throw new Error("Unknown tag key: "+St.tagName);let Ft;if(St.tagName!==unknownTagName){pt.push(TAGCODES[St.tagName]);const Lt=TAGENCODERS[St.tagName];Ft=Lt(St.data)}else{const Lt=unknownEncoder(St.data);pt.push(Lt.tagCode),Ft=Lt.words}pt=pt.concat([0].concat(intBEToWords(Ft.length)).slice(-2)),pt=pt.concat(Ft)});let yt=gt.concat(pt);const $t=Buffer$1.concat([Buffer$1.from(dt,"utf8"),Buffer$1.from(convert(yt,5,8))]),mt=sha256($t);let wt;if(nt)if(st){const St=Buffer$1.from(secp256k1.ecdsaRecover(Buffer$1.from(rt.signature,"hex"),rt.recoveryFlag,mt,!0));if(st&&!st.equals(St))throw new Error("Signature, message, and recoveryID did not produce the same pubkey as payeeNodeKey");wt=hexToWord(rt.signature+"0"+rt.recoveryFlag)}else throw new Error("Reconstruction with signature and recoveryID requires payeeNodeKey to verify correctness of input data.");return wt&&(yt=yt.concat(wt)),tagsContainItem(rt.tags,TAGNAMES[6])&&(rt.timeExpireDate=rt.timestamp+tagsItems(rt.tags,TAGNAMES[6]),rt.timeExpireDateString=new Date(rt.timeExpireDate*1e3).toISOString()),rt.timestampString=new Date(rt.timestamp*1e3).toISOString(),rt.complete=!!wt,rt.paymentRequest=rt.complete?bech32.encode(dt,yt,Number.MAX_SAFE_INTEGER):"",rt.prefix=dt,rt.wordsTemp=bech32.encode("temp",yt,Number.MAX_SAFE_INTEGER),orderKeys(rt)}function decode$3(et,tt){if(typeof et!="string")throw new Error("Lightning Payment Request must be string");if(et.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const rt=bech32.decode(et,Number.MAX_SAFE_INTEGER);et=et.toLowerCase();const nt=rt.prefix;let it=rt.words;const st=it.slice(-104),at=it.slice(0,-104);it=it.slice(0,-104);let ot=wordsToBuffer(st,!0);const lt=ot.slice(-1)[0];if(ot=ot.slice(0,-1),!(lt in[0,1,2,3])||ot.length!==64)throw new Error("Signature is missing or incorrect");let ut=nt.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(ut&&!ut[2]&&(ut=nt.match(/^ln(\S+)$/)),!ut)throw new Error("Not a proper lightning payment request");const dt=ut[1];let bt;if(tt){if(tt.bech32===void 0||tt.pubKeyHash===void 0||tt.scriptHash===void 0||!Array.isArray(tt.validWitnessVersions))throw new Error("Invalid network");bt=tt}else switch(dt){case DEFAULTNETWORK.bech32:bt=DEFAULTNETWORK;break;case TESTNETWORK.bech32:bt=TESTNETWORK;break;case REGTESTNETWORK.bech32:bt=REGTESTNETWORK;break;case SIMNETWORK.bech32:bt=SIMNETWORK;break}if(!bt||bt.bech32!==dt)throw new Error("Unknown coin bech32 prefix");const gt=ut[2];let kt,pt,yt;if(gt){const Mt=ut[3];try{kt=parseInt(hrpToSat(gt+Mt,!0))}catch{kt=null,yt=!0}pt=hrpToMillisat(gt+Mt,!0)}else kt=null,pt=null;const $t=wordsToIntBE(it.slice(0,7)),mt=new Date($t*1e3).toISOString();it=it.slice(7);const wt=[];let St,Bt,Ft,Lt;for(;it.length>0;){const Mt=it[0].toString();St=TAGNAMES[Mt]||unknownTagName,Bt=TAGPARSERS[Mt]||getUnknownParser(Mt),it=it.slice(1),Ft=wordsToIntBE(it.slice(0,2)),it=it.slice(2),Lt=it.slice(0,Ft),it=it.slice(Ft),wt.push({tagName:St,data:Bt(Lt,bt)})}let zt,Ht;tagsContainItem(wt,TAGNAMES[6])&&(zt=$t+tagsItems(wt,TAGNAMES[6]),Ht=new Date(zt*1e3).toISOString());const Wt=Buffer$1.concat([Buffer$1.from(nt,"utf8"),Buffer$1.from(convert(at,5,8))]),lr=sha256(Wt),qt=Buffer$1.from(secp256k1.ecdsaRecover(ot,lt,lr,!0));if(tagsContainItem(wt,TAGNAMES[19])&&tagsItems(wt,TAGNAMES[19])!==qt.toString("hex"))throw new Error("Lightning Payment Request signature pubkey does not match payee pubkey");let Ot={paymentRequest:et,complete:!0,prefix:nt,wordsTemp:bech32.encode("temp",at.concat(st),Number.MAX_SAFE_INTEGER),network:bt,satoshis:kt,millisatoshis:pt,timestamp:$t,timestampString:mt,payeeNodeKey:qt.toString("hex"),signature:ot.toString("hex"),recoveryFlag:lt,tags:wt};return yt&&delete Ot.satoshis,zt&&(Ot=Object.assign(Ot,{timeExpireDate:zt,timeExpireDateString:Ht})),orderKeys(Ot,!0)}function getTagsObject(et){const tt={};return et.forEach(rt=>{rt.tagName===unknownTagName?(tt.unknownTags||(tt.unknownTags=[]),tt.unknownTags.push(rt.data)):tt[rt.tagName]=rt.data}),tt}var payreq={encode:encode$3,decode:decode$3,sign,satToHrp,millisatToHrp,hrpToSat,hrpToMillisat};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(dt){return dt&&dt.__esModule?dt:{default:dt}};Object.defineProperty(et,"__esModule",{value:!0}),et.getIdFromRequest=et.decode=et.isHex=et.stringToBytes=et.isValue=et.utf8Encoder=void 0;const rt=tt(payreq),nt=tt(assert_1);let it;typeof window<"u"&&window&&window.TextEncoder?it=window.TextEncoder:it=util.TextEncoder,et.utf8Encoder=new it;const st=dt=>dt!=null;et.isValue=st;const at=dt=>(0,et.isValue)(dt)?et.utf8Encoder.encode(dt):dt;et.stringToBytes=at;function ot(dt){return Buffer.from(dt,"hex").toString("hex")===dt}et.isHex=ot;function lt(dt){let bt;return dt.indexOf("lnsb")===0&&(bt={bech32:"sb"}),rt.default.decode(dt,bt)}et.decode=lt;function ut(dt){const gt=lt(dt).tags.find(pt=>pt.tagName==="payment_hash");(0,nt.default)(gt&>.data,"Could not find payment hash on invoice request");const kt=gt==null?void 0:gt.data.toString();if(!kt||!kt.length)throw new Error("Could not get payment hash from payment request");return kt}et.getIdFromRequest=ut})(helpers);var hasRequiredLsat;function requireLsat(){if(hasRequiredLsat)return lsat$1;hasRequiredLsat=1;var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gt,kt,pt,yt){yt===void 0&&(yt=pt);var $t=Object.getOwnPropertyDescriptor(kt,pt);(!$t||("get"in $t?!kt.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return kt[pt]}}),Object.defineProperty(gt,yt,$t)}:function(gt,kt,pt,yt){yt===void 0&&(yt=pt),gt[yt]=kt[pt]}),tt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gt,kt){Object.defineProperty(gt,"default",{enumerable:!0,value:kt})}:function(gt,kt){gt.default=kt}),rt=commonjsGlobal&&commonjsGlobal.__importStar||function(gt){if(gt&>.__esModule)return gt;var kt={};if(gt!=null)for(var pt in gt)pt!=="default"&&Object.prototype.hasOwnProperty.call(gt,pt)&&et(kt,gt,pt);return tt(kt,gt),kt},nt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(lsat$1,"__esModule",{value:!0}),lsat$1.Lsat=lsat$1.parseChallengePart=void 0;const it=assert_1,st=bufio,at=nt(requireCryptoBrowserify()),ot=rt(macaroon$1),lt=requireDist(),ut=helpers;function dt(gt){let kt;const pt=gt.indexOf("=");it(pt>-1,'Incorrectly encoded challenge. Missing "=" separator.');const yt=gt.length-1-pt;return kt=gt.slice(-yt),it(kt.length,"Incorrectly encoded macaroon challenge"),it(kt[0]==='"'&&kt[kt.length-1]==='"',"Incorectly encoded challenge, challenges must be enclosed in double quotes."),kt=kt.slice(1,kt.length-1),kt}lsat$1.parseChallengePart=dt;class bt extends st.Struct{constructor(kt){super(kt),this.id="",this.validUntil=0,this.invoice="",this.baseMacaroon="",this.paymentHash=Buffer.alloc(32).toString("hex"),this.timeCreated=Date.now(),this.paymentPreimage=null,this.amountPaid=0,this.routingFeePaid=0,this.invoiceAmount=0,kt&&this.fromOptions(kt)}fromOptions(kt){it(typeof kt.baseMacaroon=="string","Require serialized macaroon"),this.baseMacaroon=kt.baseMacaroon,it(typeof kt.id=="string","Require string id"),this.id=kt.id,it(typeof kt.paymentHash=="string","Require paymentHash"),this.paymentHash=kt.paymentHash;const pt=this.getExpirationFromMacaroon(kt.baseMacaroon);return pt&&(this.validUntil=pt),kt.invoice&&this.addInvoice(kt.invoice),kt.timeCreated&&(this.timeCreated=kt.timeCreated),kt.paymentPreimage&&(this.paymentPreimage=kt.paymentPreimage),kt.amountPaid&&(this.amountPaid=kt.amountPaid),kt.routingFeePaid&&(this.routingFeePaid=kt.routingFeePaid),this}isExpired(){return this.validUntil===0?!1:this.validUntilwt.tagName==="payment_hash");it($t,"Could not find payment hash on invoice request");const mt=$t==null?void 0:$t.data;it(mt===this.paymentHash,"paymentHash from invoice did not match LSAT"),this.invoiceAmount=yt||0,this.invoice=kt}catch(pt){throw new Error(`Problem adding invoice data to LSAT: ${pt.message}`)}}static fromMacaroon(kt,pt){it(typeof kt=="string","Requires a raw macaroon string for macaroon to generate LSAT");let yt,$t;try{$t=(0,lt.decodeIdentifierFromMacaroon)(kt),yt=lt.Identifier.fromString($t)}catch(St){throw new Error(`Unexpected encoding for macaroon identifier: ${St.message}`)}const mt={id:$t,baseMacaroon:kt,paymentHash:yt.paymentHash.toString("hex")},wt=new this(mt);return pt&&wt.addInvoice(pt),wt}static fromToken(kt,pt){it(kt.includes(this.type),"Token must include LSAT prefix"),kt=kt.slice(this.type.length).trim();const[yt,$t]=kt.split(":"),mt=bt.fromMacaroon(yt,pt);return $t&&mt.setPreimage($t),mt}static fromChallenge(kt){const pt="macaroon=",yt="invoice=";let $t;$t=kt.split(","),$t.length<2&&($t=kt.split(" ")),it($t.length>=2,"Expected at least two challenges in the LSAT: invoice and macaroon");let mt="",wt="";for(const Ft of $t){if(!mt.length&&Ft.indexOf(pt)>-1)try{mt=dt(Ft)}catch(Lt){throw new Error(`Problem parsing macaroon challenge: ${Lt.message}`)}if(!wt.length&&Ft.indexOf(yt)>-1)try{wt=dt(Ft)}catch(Lt){throw new Error(`Problem parsing macaroon challenge: ${Lt.message}`)}if(wt.length&&mt.length)break}it(wt.length&&mt.length,"Expected WWW-Authenticate challenge with macaroon and invoice data");const St=(0,ut.getIdFromRequest)(wt),Bt=(0,lt.decodeIdentifierFromMacaroon)(mt);return new this({id:Bt,baseMacaroon:mt,paymentHash:St,invoice:wt})}static fromHeader(kt){const pt=kt.slice(this.type.length).trim();return it(kt.length!==pt.length,'header missing token type prefix "LSAT"'),bt.fromChallenge(pt)}}return lsat$1.Lsat=bt,bt.type="LSAT",lsat$1}var types={},lsat={};Object.defineProperty(lsat,"__esModule",{value:!0});var satisfier={};Object.defineProperty(satisfier,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(lsat,et),rt(satisfier,et)})(types);var satisfiers={},hasRequiredSatisfiers;function requireSatisfiers(){if(hasRequiredSatisfiers)return satisfiers;hasRequiredSatisfiers=1,Object.defineProperty(satisfiers,"__esModule",{value:!0}),satisfiers.createCapabilitiesSatisfier=satisfiers.createServicesSatisfier=satisfiers.expirationSatisfier=void 0;const et=requireDist();satisfiers.expirationSatisfier={condition:"expiration",satisfyPrevious:(nt,it)=>nt.condition!=="expiration"||it.condition!=="expiration"?!1:!(nt.value!(nt.condition!=="expiration"||nt.value{if(typeof nt!="string")throw new et.InvalidServicesError;return{condition:et.SERVICES_CAVEAT_CONDITION,satisfyPrevious:(it,st)=>{const at=(0,et.decodeServicesCaveat)(it.value.toString()),ot=(0,et.decodeServicesCaveat)(st.value.toString());if(!Array.isArray(at)||!Array.isArray(ot))throw new et.InvalidServicesError;let lt=new Map;lt=at.reduce((ut,dt)=>ut.set(dt.name,dt.tier),lt);for(const ut of ot)if(!lt.has(ut.name)||lt.get(ut.name)>ut.tier)return!1;return!0},satisfyFinal:it=>{const st=(0,et.decodeServicesCaveat)(it.value.toString());if(!Array.isArray(st))throw new et.InvalidServicesError;for(const at of st)if(at.name===nt)return!0;return!1}}};satisfiers.createServicesSatisfier=tt;const rt=(nt,it)=>{if(typeof it!="string")throw new et.InvalidCapabilitiesError;if(typeof nt!="string")throw new et.InvalidCapabilitiesError;return{condition:nt+et.SERVICE_CAPABILITIES_SUFFIX,satisfyPrevious:(st,at)=>{const ot=(0,et.decodeCapabilitiesValue)(st.value.toString()),lt=(0,et.decodeCapabilitiesValue)(at.value.toString());if(!Array.isArray(ot)||!Array.isArray(lt))throw new et.InvalidServicesError;let ut=new Set;ut=ot.reduce((dt,bt)=>dt.add(bt),ut);for(const dt of lt)if(!ut.has(dt))return!1;return!0},satisfyFinal:st=>{const at=(0,et.decodeCapabilitiesValue)(st.value.toString());if(!Array.isArray(at))throw new et.InvalidServicesError;for(const ot of at)if(ot===it)return!0;return!1}}};return satisfiers.createCapabilitiesSatisfier=rt,satisfiers}var macaroon={},base64={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)it.hasOwnProperty(st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(base64,"__esModule",{value:!0});var INVALID_BYTE=256,Coder=function(){function et(tt){tt===void 0&&(tt="="),this._paddingCharacter=tt}return et.prototype.encodedLength=function(tt){return this._paddingCharacter?(tt+2)/3*4|0:(tt*8+5)/6|0},et.prototype.encode=function(tt){for(var rt="",nt=0;nt>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),rt+=this._encodeByte(it>>>1*6&63),rt+=this._encodeByte(it>>>0*6&63)}var st=tt.length-nt;if(st>0){var it=tt[nt]<<16|(st===2?tt[nt+1]<<8:0);rt+=this._encodeByte(it>>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),st===2?rt+=this._encodeByte(it>>>1*6&63):rt+=this._paddingCharacter||"",rt+=this._paddingCharacter||""}return rt},et.prototype.maxDecodedLength=function(tt){return this._paddingCharacter?tt/4*3|0:(tt*6+7)/8|0},et.prototype.decodedLength=function(tt){return this.maxDecodedLength(tt.length-this._getPaddingLength(tt))},et.prototype.decode=function(tt){if(tt.length===0)return new Uint8Array(0);for(var rt=this._getPaddingLength(tt),nt=tt.length-rt,it=new Uint8Array(this.maxDecodedLength(nt)),st=0,at=0,ot=0,lt=0,ut=0,dt=0,bt=0;at>>4,it[st++]=ut<<4|dt>>>2,it[st++]=dt<<6|bt,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE,ot|=dt&INVALID_BYTE,ot|=bt&INVALID_BYTE;if(at>>4,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE),at>>2,ot|=dt&INVALID_BYTE),at>>8&0-65-26+97,rt+=51-tt>>>8&26-97-52+48,rt+=61-tt>>>8&52-48-62+43,rt+=62-tt>>>8&62-43-63+47,String.fromCharCode(rt)},et.prototype._decodeChar=function(tt){var rt=INVALID_BYTE;return rt+=(42-tt&tt-44)>>>8&-INVALID_BYTE+tt-43+62,rt+=(46-tt&tt-48)>>>8&-INVALID_BYTE+tt-47+63,rt+=(47-tt&tt-58)>>>8&-INVALID_BYTE+tt-48+52,rt+=(64-tt&tt-91)>>>8&-INVALID_BYTE+tt-65+0,rt+=(96-tt&tt-123)>>>8&-INVALID_BYTE+tt-97+26,rt},et.prototype._getPaddingLength=function(tt){var rt=0;if(this._paddingCharacter){for(var nt=tt.length-1;nt>=0&&tt[nt]===this._paddingCharacter;nt--)rt++;if(tt.length<4||rt>2)throw new Error("Base64Coder: incorrect padding")}return rt},et}();base64.Coder=Coder;var stdCoder=new Coder;function encode$2(et){return stdCoder.encode(et)}base64.encode=encode$2;function decode$2(et){return stdCoder.decode(et)}base64.decode=decode$2;var URLSafeCoder=function(et){__extends$1(tt,et);function tt(){return et!==null&&et.apply(this,arguments)||this}return tt.prototype._encodeByte=function(rt){var nt=rt;return nt+=65,nt+=25-rt>>>8&0-65-26+97,nt+=51-rt>>>8&26-97-52+48,nt+=61-rt>>>8&52-48-62+45,nt+=62-rt>>>8&62-45-63+95,String.fromCharCode(nt)},tt.prototype._decodeChar=function(rt){var nt=INVALID_BYTE;return nt+=(44-rt&rt-46)>>>8&-INVALID_BYTE+rt-45+62,nt+=(94-rt&rt-96)>>>8&-INVALID_BYTE+rt-95+63,nt+=(47-rt&rt-58)>>>8&-INVALID_BYTE+rt-48+52,nt+=(64-rt&rt-91)>>>8&-INVALID_BYTE+rt-65+0,nt+=(96-rt&rt-123)>>>8&-INVALID_BYTE+rt-97+26,nt},tt}(Coder);base64.URLSafeCoder=URLSafeCoder;var urlSafeCoder=new URLSafeCoder;function encodeURLSafe(et){return urlSafeCoder.encode(et)}base64.encodeURLSafe=encodeURLSafe;function decodeURLSafe(et){return urlSafeCoder.decode(et)}base64.decodeURLSafe=decodeURLSafe;base64.encodedLength=function(et){return stdCoder.encodedLength(et)};base64.maxDecodedLength=function(et){return stdCoder.maxDecodedLength(et)};base64.decodedLength=function(et){return stdCoder.decodedLength(et)};var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding(tt,et,rt);return __setModuleDefault(tt,et),tt};Object.defineProperty(macaroon,"__esModule",{value:!0});macaroon.getRawMacaroon=macaroon.verifyMacaroonCaveats=macaroon.getCaveatsFromMacaroon=void 0;const caveat_1=caveat,helpers_1=helpers,Macaroon=__importStar(macaroon$1),base64_1=base64;function getCaveatsFromMacaroon(et){var tt;const rt=Macaroon.importMacaroon(et),nt=[],it=(tt=rt._exportAsJSONObjectV2())===null||tt===void 0?void 0:tt.c;if(it)for(const st of it){if(!st.i)continue;const at=caveat_1.Caveat.decode(st.i);nt.push(at)}return nt}macaroon.getCaveatsFromMacaroon=getCaveatsFromMacaroon;function verifyMacaroonCaveats(et,tt,rt,nt={}){try{const it=Macaroon.importMacaroon(et),st=(0,helpers_1.stringToBytes)(tt);it.verify(st,()=>null);const at=getCaveatsFromMacaroon(et);return rt&&!Array.isArray(rt)&&(rt=[rt]),!at.length&&(!rt||!rt.length)?!0:(0,caveat_1.verifyCaveats)(at,rt,nt)}catch{return!1}}macaroon.verifyMacaroonCaveats=verifyMacaroonCaveats;function getRawMacaroon(et,tt=!1){const rt=et._exportBinaryV2();return tt?(0,base64_1.encodeURLSafe)(rt):(0,base64_1.encode)(rt)}macaroon.getRawMacaroon=getRawMacaroon;var service={};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(et,"__esModule",{value:!0}),et.decodeCapabilitiesValue=et.createNewCapabilitiesCaveat=et.SERVICE_CAPABILITIES_SUFFIX=et.encodeServicesCaveatValue=et.decodeServicesCaveat=et.SERVICES_CAVEAT_CONDITION=et.Service=et.InvalidCapabilitiesError=et.InvalidServicesError=et.NoServicesError=void 0;const rt=tt(bufio),nt=caveat;class it extends Error{constructor(...kt){super(...kt),this.name="NoServicesError",this.message="no services found",Error.captureStackTrace&&Error.captureStackTrace(this,it)}}et.NoServicesError=it;class st extends Error{constructor(kt){super(kt),this.name="InvalidServicesError",kt||(this.message='service must be of the form "name:tier"'),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidServicesError=st;class at extends Error{constructor(kt){super(kt),this.name="InvalidCapabilitiesError",kt||(this.message="capabilities must be a string or array of strings"),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidCapabilitiesError=at;class ot extends rt.default.Struct{constructor(kt){super(kt),this.name=kt.name,this.tier=kt.tier}}et.Service=ot,et.SERVICES_CAVEAT_CONDITION="services";const lt=gt=>{if(!gt.length)throw new it;const kt=[],pt=gt.split(",");for(const yt of pt){const[$t,mt]=yt.split(":");if(!$t||!mt)throw new st;if(isNaN(+mt))throw new st("tier must be a number");if(!isNaN(+$t))throw new st("service name must be a string");kt.push(new ot({name:$t,tier:+mt}))}return kt};et.decodeServicesCaveat=lt;const ut=gt=>{if(!gt.length)throw new it;let kt="";for(let pt=0;pt{let pt;if(!kt)pt="";else if(Array.isArray(kt))pt=kt.join(",");else{if(typeof kt!="string")throw new at;pt=kt}return new nt.Caveat({condition:gt+et.SERVICE_CAPABILITIES_SUFFIX,value:pt,comp:"="})};et.createNewCapabilitiesCaveat=dt;const bt=gt=>{if(typeof gt!="string")throw new at;return gt.toString().split(",").map(kt=>kt.trim())};et.decodeCapabilitiesValue=bt})(service);var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(identifier$1,et),rt(caveat,et),rt(requireLsat(),et),rt(types,et),rt(requireSatisfiers(),et),rt(macaroon,et),rt(service,et)}(dist$1)),dist$1}var distExports=requireDist(),lib={},client={},errors={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Class extends value "+String(rt)+" is not a constructor or null");et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(errors,"__esModule",{value:!0});errors.InternalError=errors.InvalidDataError=errors.RoutingError=errors.UnsupportedMethodError=errors.ConnectionError=errors.RejectionError=errors.MissingProviderError=void 0;function fixError(et,tt,rt){if(Object.setPrototypeOf(et,rt.prototype),tt===rt)if(et.name=tt.name,Error.captureStackTrace)Error.captureStackTrace(et,rt);else{var nt=new Error(et.message).stack;nt&&(et.stack=fixStack(nt,"new ".concat(tt.name)))}}function fixStack(et,tt){if(!et||!tt)return et;var rt=new RegExp("\\s+at\\s".concat(tt,"\\s")),nt=et.split(` `),it=nt.filter(function(st){return!st.match(rt)});return it.join(` `)}var MissingProviderError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.MissingProviderError=MissingProviderError;var RejectionError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.RejectionError=RejectionError;var ConnectionError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.ConnectionError=ConnectionError;var UnsupportedMethodError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.UnsupportedMethodError=UnsupportedMethodError;var RoutingError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.RoutingError=RoutingError;var InvalidDataError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.InvalidDataError=InvalidDataError;var InternalError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.InternalError=InternalError;Object.defineProperty(client,"__esModule",{value:!0});client.requestProvider=void 0;var errors_1=errors;function requestProvider(et){return new Promise(function(tt,rt){if(typeof window>"u")return rt(new Error("Must be called in a browser context"));var nt=window.webln;if(!nt)return rt(new errors_1.MissingProviderError("Your browser has no WebLN provider"));nt.enable().then(function(){return tt(nt)}).catch(function(it){return rt(it)})})}client.requestProvider=requestProvider;var provider={};Object.defineProperty(provider,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(client,et),rt(provider,et),rt(errors,et)})(lib);async function buyLsat(et){const tt={amount:et};return api$1.post("/buy_lsat",JSON.stringify(tt))}async function payLsat(et){let tt;if(isSphinx()){const it=localStorage.getItem("lsat");if(it){localStorage.removeItem("lsat");const ot=JSON.parse(it);await distExports$1.updateLsat(ot.identifier,"expired")}let st;isE2E?st=await sphinxBridge.setBudget():st=await distExports$1.setBudget();let at=st==null?void 0:st.budget;at||(at=(await distExports$1.authorize()).budget);try{await buyLsat(at)}catch(ot){if(ot.status===402){tt=distExports.Lsat.fromHeader(ot.headers.get("www-authenticate"));let lt;isE2E?lt=await sphinxBridge.saveLsat(tt.invoice,tt.baseMacaroon,window.location.host):lt=await distExports$1.saveLsat(tt.invoice,tt.baseMacaroon,window.location.host),lt!=null&<.lsat&&(localStorage.setItem("lsat",JSON.stringify({macaroon:tt.baseMacaroon,identifier:tt.id,preimage:lt.lsat.split(":")[1]})),await et(at))}return}}localStorage.removeItem("lsat");const rt=await lib.requestProvider(),nt=50;try{await buyLsat(nt)}catch(it){tt=distExports.Lsat.fromHeader(it.headers.get("www-authenticate"));const st=await rt.sendPayment(tt.invoice);st!=null&&st.preimage&&localStorage.setItem("lsat",JSON.stringify({macaroon:tt.baseMacaroon,identifier:tt.id,preimage:st.preimage})),await et(nt)}}const createStoreImpl=et=>{let tt;const rt=new Set,nt=(lt,ut)=>{const dt=typeof lt=="function"?lt(tt):lt;if(!Object.is(dt,tt)){const bt=tt;tt=ut??(typeof dt!="object"||dt===null)?dt:Object.assign({},tt,dt),rt.forEach(gt=>gt(tt,bt))}},it=()=>tt,ot={setState:nt,getState:it,subscribe:lt=>(rt.add(lt),()=>rt.delete(lt)),destroy:()=>{rt.clear()}};return tt=et(nt,it,ot),ot},createStore=et=>et?createStoreImpl(et):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={},shim={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React @@ -264,13 +264,13 @@ PROCEED WITH CAUTION! * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var h$3=reactExports,n$1=shimExports;function p$2(et,tt){return et===tt&&(et!==0||1/et===1/tt)||et!==et&&tt!==tt}var q$1=typeof Object.is=="function"?Object.is:p$2,r$4=n$1.useSyncExternalStore,t$1=h$3.useRef,u$2=h$3.useEffect,v$3=h$3.useMemo,w$2=h$3.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(et,tt,rt,nt,it){var st=t$1(null);if(st.current===null){var at={hasValue:!1,value:null};st.current=at}else at=st.current;st=v$3(function(){function lt(kt){if(!ut){if(ut=!0,dt=kt,kt=nt(kt),it!==void 0&&at.hasValue){var pt=at.value;if(it(pt,kt))return bt=pt}return bt=kt}if(pt=bt,q$1(dt,kt))return pt;var yt=nt(kt);return it!==void 0&&it(pt,yt)?pt:(dt=kt,bt=yt)}var ut=!1,dt,bt,gt=rt===void 0?null:rt;return[function(){return lt(tt())},gt===null?void 0:function(){return lt(gt())}]},[tt,rt,nt,it]);var ot=r$4(et,st[0],st[1]);return u$2(function(){at.hasValue=!0,at.value=ot},[ot]),w$2(ot),ot};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useDebugValue}=React,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(et,tt=et.getState,rt){const nt=useSyncExternalStoreWithSelector(et.subscribe,et.getState,et.getServerState||et.getState,tt,rt);return useDebugValue(nt),nt}const createImpl=et=>{const tt=typeof et=="function"?createStore(et):et,rt=(nt,it)=>useStore(tt,nt,it);return Object.assign(rt,tt),rt},create=et=>et?createImpl(et):createImpl;var react=et=>create(et);const defaultData$6={isAdmin:!1,isAuthenticated:!1,pubKey:"",budget:0,nodeCount:0,tribeHost:"",tribeUuid:"",signedToken:"",swarmUiUrl:""},useUserStore=create(et=>({...defaultData$6,setIsAdmin:tt=>et({isAdmin:tt}),setPubKey:tt=>et({pubKey:tt}),setBudget:tt=>et({budget:tt}),setNodeCount:tt=>et(rt=>tt==="INCREMENT"?{nodeCount:rt.nodeCount+1}:{nodeCount:0}),setTribeUuid:tt=>et({tribeUuid:tt}),setTribeHost:tt=>et({tribeHost:tt}),setIsAuthenticated:tt=>et({isAuthenticated:tt}),setSignedToken:tt=>et({signedToken:tt}),setSwarmUiUrl:tt=>et({swarmUiUrl:tt})})),executeIfTetsRunning=et=>{isE2E&&et()};function executeIfProd(et){return isDevelopment||isE2E?null:et()}function addToGlobalForE2e(et,tt){executeIfTetsRunning(()=>{window.e2e||(window.e2e={}),window.e2e[tt]=et})}const E2E=()=>{const et=useUserStore();return reactExports.useEffect(()=>{isE2E&&addToGlobalForE2e(et,"userStore")},[et]),jsxRuntimeExports.jsx("div",{id:"e2e-check"})},E2ETests=reactExports.memo(()=>isE2E?jsxRuntimeExports.jsx(E2E,{}):null);async function getBalance(et){return api$1.get("/balance",{Authorization:et})}async function updateBudget(et){const tt=await getLSat();if(!tt){et(0);return}try{const rt=await getBalance(tt);et(rt.balance)}catch{et(0)}}const common={black:"#000",white:"#fff"},common$1=common,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},purple$1=purple,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lightBlue$1=lightBlue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey;function _extends(){return _extends=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt{tt[rt]=deepClone(et[rt])}),tt}function deepmerge(et,tt,rt={clone:!0}){const nt=rt.clone?_extends({},et):et;return isPlainObject$1(et)&&isPlainObject$1(tt)&&Object.keys(tt).forEach(it=>{it!=="__proto__"&&(isPlainObject$1(tt[it])&&it in et&&isPlainObject$1(et[it])?nt[it]=deepmerge(et[it],tt[it],rt):rt.clone?nt[it]=isPlainObject$1(tt[it])?deepClone(tt[it]):tt[it]:nt[it]=tt[it])}),nt}function formatMuiErrorMessage(et){let tt="https://mui.com/production-error/?code="+et;for(let rt=1;rt{tt.current=et}),reactExports.useRef((...rt)=>(0,tt.current)(...rt)).current}function useForkRef(...et){return reactExports.useMemo(()=>et.every(tt=>tt==null)?null:tt=>{et.forEach(rt=>{setRef(rt,tt)})},et)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(et){const{type:tt,tagName:rt}=et;return!!(rt==="INPUT"&&inputTypesWhitelist[tt]&&!et.readOnly||rt==="TEXTAREA"&&!et.readOnly||et.isContentEditable)}function handleKeyDown(et){et.metaKey||et.altKey||et.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(et){et.addEventListener("keydown",handleKeyDown,!0),et.addEventListener("mousedown",handlePointerDown,!0),et.addEventListener("pointerdown",handlePointerDown,!0),et.addEventListener("touchstart",handlePointerDown,!0),et.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(et){const{target:tt}=et;try{return tt.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(tt)}function useIsFocusVisible(){const et=reactExports.useCallback(it=>{it!=null&&prepare(it.ownerDocument)},[]),tt=reactExports.useRef(!1);function rt(){return tt.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),tt.current=!1,!0):!1}function nt(it){return isFocusVisible(it)?(tt.current=!0,!0):!1}return{isFocusVisibleRef:tt,onFocus:nt,onBlur:rt,ref:et}}function resolveProps(et,tt){const rt=_extends({},tt);return Object.keys(et).forEach(nt=>{if(nt.toString().match(/^(components|slots)$/))rt[nt]=_extends({},et[nt],rt[nt]);else if(nt.toString().match(/^(componentsProps|slotProps)$/)){const it=et[nt]||{},st=tt[nt];rt[nt]={},!st||!Object.keys(st)?rt[nt]=it:!it||!Object.keys(it)?rt[nt]=st:(rt[nt]=_extends({},st),Object.keys(it).forEach(at=>{rt[nt][at]=resolveProps(it[at],st[at])}))}else rt[nt]===void 0&&(rt[nt]=et[nt])}),rt}function composeClasses(et,tt,rt=void 0){const nt={};return Object.keys(et).forEach(it=>{nt[it]=et[it].reduce((st,at)=>{if(at){const ot=tt(at);ot!==""&&st.push(ot),rt&&rt[at]&&st.push(rt[at])}return st},[]).join(" ")}),nt}const defaultGenerator=et=>et,createClassNameGenerator=()=>{let et=defaultGenerator;return{configure(tt){et=tt},generate(tt){return et(tt)},reset(){et=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(et,tt,rt="Mui"){const nt=globalStateClassesMapping[tt];return nt?`${rt}-${nt}`:`${ClassNameGenerator$1.generate(et)}-${tt}`}function generateUtilityClasses(et,tt,rt="Mui"){const nt={};return tt.forEach(it=>{nt[it]=generateUtilityClass(et,it,rt)}),nt}const THEME_ID="$$material";function _objectWithoutPropertiesLoose(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),it,st;for(st=0;st=0)&&(rt[it]=et[it]);return rt}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(et){return reactPropsRegex.test(et)||et.charCodeAt(0)===111&&et.charCodeAt(1)===110&&et.charCodeAt(2)<91});function sheetForTag(et){if(et.sheet)return et.sheet;for(var tt=0;tt0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(et,tt){for(;--tt&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(et,caret()+(tt<6&&peek()==32&&next()==32))}function delimiter(et){for(;next();)switch(character){case et:return position;case 34:case 39:et!==34&&et!==39&&delimiter(character);break;case 40:et===41&&delimiter(et);break;case 92:next();break}return position}function commenter(et,tt){for(;next()&&et+character!==47+10;)if(et+character===42+42&&peek()===47)break;return"/*"+slice(tt,position-1)+"*"+from(et===47?et:next())}function identifier(et){for(;!token(peek());)next();return slice(et,position)}function compile(et){return dealloc(parse$1("",null,null,null,[""],et=alloc(et),0,[0],et))}function parse$1(et,tt,rt,nt,it,st,at,ot,lt){for(var ut=0,dt=0,bt=at,gt=0,kt=0,pt=0,yt=1,$t=1,mt=1,wt=0,St="",Bt=it,Ft=st,Dt=nt,zt=St;$t;)switch(pt=wt,wt=next()){case 40:if(pt!=108&&charat(zt,bt-1)==58){indexof(zt+=replace(delimit(wt),"&","&\f"),"&\f")!=-1&&(mt=-1);break}case 34:case 39:case 91:zt+=delimit(wt);break;case 9:case 10:case 13:case 32:zt+=whitespace(pt);break;case 92:zt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),tt,rt),lt);break;default:zt+="/"}break;case 123*yt:ot[ut++]=strlen(zt)*mt;case 125*yt:case 59:case 0:switch(wt){case 0:case 125:$t=0;case 59+dt:mt==-1&&(zt=replace(zt,/\f/g,"")),kt>0&&strlen(zt)-bt&&append(kt>32?declaration(zt+";",nt,rt,bt-1):declaration(replace(zt," ","")+";",nt,rt,bt-2),lt);break;case 59:zt+=";";default:if(append(Dt=ruleset(zt,tt,rt,ut,dt,it,ot,St,Bt=[],Ft=[],bt),st),wt===123)if(dt===0)parse$1(zt,tt,Dt,Dt,Bt,st,bt,ot,Ft);else switch(gt===99&&charat(zt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1(et,Dt,Dt,nt&&append(ruleset(et,Dt,Dt,0,0,it,ot,St,it,Bt=[],bt),Ft),it,Ft,bt,ot,nt?Bt:Ft);break;default:parse$1(zt,Dt,Dt,Dt,[""],Ft,0,ot,Ft)}}ut=dt=kt=0,yt=mt=1,St=zt="",bt=at;break;case 58:bt=1+strlen(zt),kt=pt;default:if(yt<1){if(wt==123)--yt;else if(wt==125&&yt++==0&&prev$1()==125)continue}switch(zt+=from(wt),wt*yt){case 38:mt=dt>0?1:(zt+="\f",-1);break;case 44:ot[ut++]=(strlen(zt)-1)*mt,mt=1;break;case 64:peek()===45&&(zt+=delimit(next())),gt=peek(),dt=bt=strlen(St=zt+=identifier(caret())),wt++;break;case 45:pt===45&&strlen(zt)==2&&(yt=0)}}return st}function ruleset(et,tt,rt,nt,it,st,at,ot,lt,ut,dt){for(var bt=it-1,gt=it===0?st:[""],kt=sizeof(gt),pt=0,yt=0,$t=0;pt0?gt[mt]+" "+wt:replace(wt,/&\f/g,gt[mt])))&&(lt[$t++]=St);return node(et,tt,rt,it===0?RULESET:ot,lt,ut,dt)}function comment(et,tt,rt){return node(et,tt,rt,COMMENT,from(char()),substr(et,2,-2),0)}function declaration(et,tt,rt,nt){return node(et,tt,rt,DECLARATION,substr(et,0,nt),substr(et,nt+1,-1),nt)}function serialize(et,tt){for(var rt="",nt=sizeof(et),it=0;it6)switch(charat(et,tt+1)){case 109:if(charat(et,tt+4)!==45)break;case 102:return replace(et,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(et,tt+3)==108?"$3":"$2-$3"))+et;case 115:return~indexof(et,"stretch")?prefix(replace(et,"stretch","fill-available"),tt)+et:et}break;case 4949:if(charat(et,tt+1)!==115)break;case 6444:switch(charat(et,strlen(et)-3-(~indexof(et,"!important")&&10))){case 107:return replace(et,":",":"+WEBKIT)+et;case 101:return replace(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(et,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+et}break;case 5936:switch(charat(et,tt+11)){case 114:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return WEBKIT+et+MS+et+et}return et}var prefixer=function(tt,rt,nt,it){if(tt.length>-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length);break;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],it);case RULESET:if(tt.length)return combine(tt.props,function(st){switch(match(st,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(st,/:(read-\w+)/,":"+MOZ+"$1")]})],it);case"::placeholder":return serialize([copy(tt,{props:[replace(st,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,MS+"input-$1")]})],it)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(tt){var rt=tt.key;if(rt==="css"){var nt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(nt,function(yt){var $t=yt.getAttribute("data-emotion");$t.indexOf(" ")!==-1&&(document.head.appendChild(yt),yt.setAttribute("data-s",""))})}var it=tt.stylisPlugins||defaultStylisPlugins,st={},at,ot=[];at=tt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+rt+' "]'),function(yt){for(var $t=yt.getAttribute("data-emotion").split(" "),mt=1;mt<$t.length;mt++)st[$t[mt]]=!0;ot.push(yt)});var lt,ut=[compat,removeLabel];{var dt,bt=[stringify,rulesheet(function(yt){dt.insert(yt)})],gt=middleware(ut.concat(it,bt)),kt=function($t){return serialize(compile($t),gt)};lt=function($t,mt,wt,St){dt=wt,kt($t?$t+"{"+mt.styles+"}":mt.styles),St&&(pt.inserted[mt.name]=!0)}}var pt={key:rt,sheet:new StyleSheet({key:rt,container:at,nonce:tt.nonce,speedy:tt.speedy,prepend:tt.prepend,insertionPoint:tt.insertionPoint}),nonce:tt.nonce,inserted:st,registered:{},insert:lt};return pt.sheet.hydrate(ot),pt},isBrowser=!0;function getRegisteredStyles(et,tt,rt){var nt="";return rt.split(" ").forEach(function(it){et[it]!==void 0?tt.push(et[it]+";"):nt+=it+" "}),nt}var registerStyles=function(tt,rt,nt){var it=tt.key+"-"+rt.name;(nt===!1||isBrowser===!1)&&tt.registered[it]===void 0&&(tt.registered[it]=rt.styles)},insertStyles=function(tt,rt,nt){registerStyles(tt,rt,nt);var it=tt.key+"-"+rt.name;if(tt.inserted[rt.name]===void 0){var st=rt;do tt.insert(rt===st?"."+it:"",st,tt.sheet,!0),st=st.next;while(st!==void 0)}};function murmur2(et){for(var tt=0,rt,nt=0,it=et.length;it>=4;++nt,it-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(it){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(tt){return tt.charCodeAt(1)===45},isProcessableValue=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName=memoize$1(function(et){return isCustomProperty(et)?et:et.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex,function(nt,it,st){return cursor={name:it,styles:st,next:cursor},it})}return unitlessKeys[tt]!==1&&!isCustomProperty(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(et,tt,rt){if(rt==null)return"";if(rt.__emotion_styles!==void 0)return rt;switch(typeof rt){case"boolean":return"";case"object":{if(rt.anim===1)return cursor={name:rt.name,styles:rt.styles,next:cursor},rt.name;if(rt.styles!==void 0){var nt=rt.next;if(nt!==void 0)for(;nt!==void 0;)cursor={name:nt.name,styles:nt.styles,next:cursor},nt=nt.next;var it=rt.styles+";";return it}return createStringFromObject(et,tt,rt)}case"function":{if(et!==void 0){var st=cursor,at=rt(et);return cursor=st,handleInterpolation(et,tt,at)}break}}if(tt==null)return rt;var ot=tt[rt];return ot!==void 0?ot:rt}function createStringFromObject(et,tt,rt){var nt="";if(Array.isArray(rt))for(var it=0;it96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tt,rt,nt){var it;if(rt){var st=rt.shouldForwardProp;it=tt.__emotion_forwardProp&&st?function(at){return tt.__emotion_forwardProp(at)&&st(at)}:st}return typeof it!="function"&&nt&&(it=tt.__emotion_forwardProp),it},Insertion=function(tt){var rt=tt.cache,nt=tt.serialized,it=tt.isStringTag;return registerStyles(rt,nt,it),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(rt,nt,it)}),null},createStyled$1=function et(tt,rt){var nt=tt.__emotion_real===tt,it=nt&&tt.__emotion_base||tt,st,at;rt!==void 0&&(st=rt.label,at=rt.target);var ot=composeShouldForwardProps(tt,rt,nt),lt=ot||getDefaultShouldForwardProp(it),ut=!lt("as");return function(){var dt=arguments,bt=nt&&tt.__emotion_styles!==void 0?tt.__emotion_styles.slice(0):[];if(st!==void 0&&bt.push("label:"+st+";"),dt[0]==null||dt[0].raw===void 0)bt.push.apply(bt,dt);else{bt.push(dt[0][0]);for(var gt=dt.length,kt=1;kt{const tt=typeof et=="function"?createStore(et):et,rt=(nt,it)=>useStore(tt,nt,it);return Object.assign(rt,tt),rt},create=et=>et?createImpl(et):createImpl;var react=et=>create(et);const defaultData$6={isAdmin:!1,isAuthenticated:!1,pubKey:"",budget:0,nodeCount:0,tribeHost:"",tribeUuid:"",signedToken:"",swarmUiUrl:""},useUserStore=create(et=>({...defaultData$6,setIsAdmin:tt=>et({isAdmin:tt}),setPubKey:tt=>et({pubKey:tt}),setBudget:tt=>et({budget:tt}),setNodeCount:tt=>et(rt=>tt==="INCREMENT"?{nodeCount:rt.nodeCount+1}:{nodeCount:0}),setTribeUuid:tt=>et({tribeUuid:tt}),setTribeHost:tt=>et({tribeHost:tt}),setIsAuthenticated:tt=>et({isAuthenticated:tt}),setSignedToken:tt=>et({signedToken:tt}),setSwarmUiUrl:tt=>et({swarmUiUrl:tt})})),executeIfTetsRunning=et=>{isE2E&&et()};function executeIfProd(et){return isDevelopment||isE2E?null:et()}function addToGlobalForE2e(et,tt){executeIfTetsRunning(()=>{window.e2e||(window.e2e={}),window.e2e[tt]=et})}const E2E=()=>{const et=useUserStore();return reactExports.useEffect(()=>{isE2E&&addToGlobalForE2e(et,"userStore")},[et]),jsxRuntimeExports.jsx("div",{id:"e2e-check"})},E2ETests=reactExports.memo(()=>isE2E?jsxRuntimeExports.jsx(E2E,{}):null);async function getBalance(et){return api$1.get("/balance",{Authorization:et})}async function updateBudget(et){const tt=await getLSat();if(!tt){et(0);return}try{const rt=await getBalance(tt);et(rt.balance)}catch{et(0)}}const common={black:"#000",white:"#fff"},common$1=common,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},purple$1=purple,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lightBlue$1=lightBlue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey;function _extends(){return _extends=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt{tt[rt]=deepClone(et[rt])}),tt}function deepmerge(et,tt,rt={clone:!0}){const nt=rt.clone?_extends({},et):et;return isPlainObject$1(et)&&isPlainObject$1(tt)&&Object.keys(tt).forEach(it=>{it!=="__proto__"&&(isPlainObject$1(tt[it])&&it in et&&isPlainObject$1(et[it])?nt[it]=deepmerge(et[it],tt[it],rt):rt.clone?nt[it]=isPlainObject$1(tt[it])?deepClone(tt[it]):tt[it]:nt[it]=tt[it])}),nt}function formatMuiErrorMessage(et){let tt="https://mui.com/production-error/?code="+et;for(let rt=1;rt{tt.current=et}),reactExports.useRef((...rt)=>(0,tt.current)(...rt)).current}function useForkRef(...et){return reactExports.useMemo(()=>et.every(tt=>tt==null)?null:tt=>{et.forEach(rt=>{setRef(rt,tt)})},et)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(et){const{type:tt,tagName:rt}=et;return!!(rt==="INPUT"&&inputTypesWhitelist[tt]&&!et.readOnly||rt==="TEXTAREA"&&!et.readOnly||et.isContentEditable)}function handleKeyDown(et){et.metaKey||et.altKey||et.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(et){et.addEventListener("keydown",handleKeyDown,!0),et.addEventListener("mousedown",handlePointerDown,!0),et.addEventListener("pointerdown",handlePointerDown,!0),et.addEventListener("touchstart",handlePointerDown,!0),et.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(et){const{target:tt}=et;try{return tt.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(tt)}function useIsFocusVisible(){const et=reactExports.useCallback(it=>{it!=null&&prepare(it.ownerDocument)},[]),tt=reactExports.useRef(!1);function rt(){return tt.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),tt.current=!1,!0):!1}function nt(it){return isFocusVisible(it)?(tt.current=!0,!0):!1}return{isFocusVisibleRef:tt,onFocus:nt,onBlur:rt,ref:et}}function resolveProps(et,tt){const rt=_extends({},tt);return Object.keys(et).forEach(nt=>{if(nt.toString().match(/^(components|slots)$/))rt[nt]=_extends({},et[nt],rt[nt]);else if(nt.toString().match(/^(componentsProps|slotProps)$/)){const it=et[nt]||{},st=tt[nt];rt[nt]={},!st||!Object.keys(st)?rt[nt]=it:!it||!Object.keys(it)?rt[nt]=st:(rt[nt]=_extends({},st),Object.keys(it).forEach(at=>{rt[nt][at]=resolveProps(it[at],st[at])}))}else rt[nt]===void 0&&(rt[nt]=et[nt])}),rt}function composeClasses(et,tt,rt=void 0){const nt={};return Object.keys(et).forEach(it=>{nt[it]=et[it].reduce((st,at)=>{if(at){const ot=tt(at);ot!==""&&st.push(ot),rt&&rt[at]&&st.push(rt[at])}return st},[]).join(" ")}),nt}const defaultGenerator=et=>et,createClassNameGenerator=()=>{let et=defaultGenerator;return{configure(tt){et=tt},generate(tt){return et(tt)},reset(){et=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(et,tt,rt="Mui"){const nt=globalStateClassesMapping[tt];return nt?`${rt}-${nt}`:`${ClassNameGenerator$1.generate(et)}-${tt}`}function generateUtilityClasses(et,tt,rt="Mui"){const nt={};return tt.forEach(it=>{nt[it]=generateUtilityClass(et,it,rt)}),nt}const THEME_ID="$$material";function _objectWithoutPropertiesLoose(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),it,st;for(st=0;st=0)&&(rt[it]=et[it]);return rt}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(et){return reactPropsRegex.test(et)||et.charCodeAt(0)===111&&et.charCodeAt(1)===110&&et.charCodeAt(2)<91});function sheetForTag(et){if(et.sheet)return et.sheet;for(var tt=0;tt0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(et,tt){for(;--tt&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(et,caret()+(tt<6&&peek()==32&&next()==32))}function delimiter(et){for(;next();)switch(character){case et:return position;case 34:case 39:et!==34&&et!==39&&delimiter(character);break;case 40:et===41&&delimiter(et);break;case 92:next();break}return position}function commenter(et,tt){for(;next()&&et+character!==47+10;)if(et+character===42+42&&peek()===47)break;return"/*"+slice(tt,position-1)+"*"+from(et===47?et:next())}function identifier(et){for(;!token(peek());)next();return slice(et,position)}function compile(et){return dealloc(parse$1("",null,null,null,[""],et=alloc(et),0,[0],et))}function parse$1(et,tt,rt,nt,it,st,at,ot,lt){for(var ut=0,dt=0,bt=at,gt=0,kt=0,pt=0,yt=1,$t=1,mt=1,wt=0,St="",Bt=it,Ft=st,Lt=nt,zt=St;$t;)switch(pt=wt,wt=next()){case 40:if(pt!=108&&charat(zt,bt-1)==58){indexof(zt+=replace(delimit(wt),"&","&\f"),"&\f")!=-1&&(mt=-1);break}case 34:case 39:case 91:zt+=delimit(wt);break;case 9:case 10:case 13:case 32:zt+=whitespace(pt);break;case 92:zt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),tt,rt),lt);break;default:zt+="/"}break;case 123*yt:ot[ut++]=strlen(zt)*mt;case 125*yt:case 59:case 0:switch(wt){case 0:case 125:$t=0;case 59+dt:mt==-1&&(zt=replace(zt,/\f/g,"")),kt>0&&strlen(zt)-bt&&append(kt>32?declaration(zt+";",nt,rt,bt-1):declaration(replace(zt," ","")+";",nt,rt,bt-2),lt);break;case 59:zt+=";";default:if(append(Lt=ruleset(zt,tt,rt,ut,dt,it,ot,St,Bt=[],Ft=[],bt),st),wt===123)if(dt===0)parse$1(zt,tt,Lt,Lt,Bt,st,bt,ot,Ft);else switch(gt===99&&charat(zt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1(et,Lt,Lt,nt&&append(ruleset(et,Lt,Lt,0,0,it,ot,St,it,Bt=[],bt),Ft),it,Ft,bt,ot,nt?Bt:Ft);break;default:parse$1(zt,Lt,Lt,Lt,[""],Ft,0,ot,Ft)}}ut=dt=kt=0,yt=mt=1,St=zt="",bt=at;break;case 58:bt=1+strlen(zt),kt=pt;default:if(yt<1){if(wt==123)--yt;else if(wt==125&&yt++==0&&prev$1()==125)continue}switch(zt+=from(wt),wt*yt){case 38:mt=dt>0?1:(zt+="\f",-1);break;case 44:ot[ut++]=(strlen(zt)-1)*mt,mt=1;break;case 64:peek()===45&&(zt+=delimit(next())),gt=peek(),dt=bt=strlen(St=zt+=identifier(caret())),wt++;break;case 45:pt===45&&strlen(zt)==2&&(yt=0)}}return st}function ruleset(et,tt,rt,nt,it,st,at,ot,lt,ut,dt){for(var bt=it-1,gt=it===0?st:[""],kt=sizeof(gt),pt=0,yt=0,$t=0;pt0?gt[mt]+" "+wt:replace(wt,/&\f/g,gt[mt])))&&(lt[$t++]=St);return node(et,tt,rt,it===0?RULESET:ot,lt,ut,dt)}function comment(et,tt,rt){return node(et,tt,rt,COMMENT,from(char()),substr(et,2,-2),0)}function declaration(et,tt,rt,nt){return node(et,tt,rt,DECLARATION,substr(et,0,nt),substr(et,nt+1,-1),nt)}function serialize(et,tt){for(var rt="",nt=sizeof(et),it=0;it6)switch(charat(et,tt+1)){case 109:if(charat(et,tt+4)!==45)break;case 102:return replace(et,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(et,tt+3)==108?"$3":"$2-$3"))+et;case 115:return~indexof(et,"stretch")?prefix(replace(et,"stretch","fill-available"),tt)+et:et}break;case 4949:if(charat(et,tt+1)!==115)break;case 6444:switch(charat(et,strlen(et)-3-(~indexof(et,"!important")&&10))){case 107:return replace(et,":",":"+WEBKIT)+et;case 101:return replace(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(et,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+et}break;case 5936:switch(charat(et,tt+11)){case 114:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return WEBKIT+et+MS+et+et}return et}var prefixer=function(tt,rt,nt,it){if(tt.length>-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length);break;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],it);case RULESET:if(tt.length)return combine(tt.props,function(st){switch(match(st,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(st,/:(read-\w+)/,":"+MOZ+"$1")]})],it);case"::placeholder":return serialize([copy(tt,{props:[replace(st,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,MS+"input-$1")]})],it)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(tt){var rt=tt.key;if(rt==="css"){var nt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(nt,function(yt){var $t=yt.getAttribute("data-emotion");$t.indexOf(" ")!==-1&&(document.head.appendChild(yt),yt.setAttribute("data-s",""))})}var it=tt.stylisPlugins||defaultStylisPlugins,st={},at,ot=[];at=tt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+rt+' "]'),function(yt){for(var $t=yt.getAttribute("data-emotion").split(" "),mt=1;mt<$t.length;mt++)st[$t[mt]]=!0;ot.push(yt)});var lt,ut=[compat,removeLabel];{var dt,bt=[stringify,rulesheet(function(yt){dt.insert(yt)})],gt=middleware(ut.concat(it,bt)),kt=function($t){return serialize(compile($t),gt)};lt=function($t,mt,wt,St){dt=wt,kt($t?$t+"{"+mt.styles+"}":mt.styles),St&&(pt.inserted[mt.name]=!0)}}var pt={key:rt,sheet:new StyleSheet({key:rt,container:at,nonce:tt.nonce,speedy:tt.speedy,prepend:tt.prepend,insertionPoint:tt.insertionPoint}),nonce:tt.nonce,inserted:st,registered:{},insert:lt};return pt.sheet.hydrate(ot),pt},isBrowser=!0;function getRegisteredStyles(et,tt,rt){var nt="";return rt.split(" ").forEach(function(it){et[it]!==void 0?tt.push(et[it]+";"):nt+=it+" "}),nt}var registerStyles=function(tt,rt,nt){var it=tt.key+"-"+rt.name;(nt===!1||isBrowser===!1)&&tt.registered[it]===void 0&&(tt.registered[it]=rt.styles)},insertStyles=function(tt,rt,nt){registerStyles(tt,rt,nt);var it=tt.key+"-"+rt.name;if(tt.inserted[rt.name]===void 0){var st=rt;do tt.insert(rt===st?"."+it:"",st,tt.sheet,!0),st=st.next;while(st!==void 0)}};function murmur2(et){for(var tt=0,rt,nt=0,it=et.length;it>=4;++nt,it-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(it){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(tt){return tt.charCodeAt(1)===45},isProcessableValue=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName=memoize$1(function(et){return isCustomProperty(et)?et:et.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex,function(nt,it,st){return cursor={name:it,styles:st,next:cursor},it})}return unitlessKeys[tt]!==1&&!isCustomProperty(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(et,tt,rt){if(rt==null)return"";if(rt.__emotion_styles!==void 0)return rt;switch(typeof rt){case"boolean":return"";case"object":{if(rt.anim===1)return cursor={name:rt.name,styles:rt.styles,next:cursor},rt.name;if(rt.styles!==void 0){var nt=rt.next;if(nt!==void 0)for(;nt!==void 0;)cursor={name:nt.name,styles:nt.styles,next:cursor},nt=nt.next;var it=rt.styles+";";return it}return createStringFromObject(et,tt,rt)}case"function":{if(et!==void 0){var st=cursor,at=rt(et);return cursor=st,handleInterpolation(et,tt,at)}break}}if(tt==null)return rt;var ot=tt[rt];return ot!==void 0?ot:rt}function createStringFromObject(et,tt,rt){var nt="";if(Array.isArray(rt))for(var it=0;it96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tt,rt,nt){var it;if(rt){var st=rt.shouldForwardProp;it=tt.__emotion_forwardProp&&st?function(at){return tt.__emotion_forwardProp(at)&&st(at)}:st}return typeof it!="function"&&nt&&(it=tt.__emotion_forwardProp),it},Insertion=function(tt){var rt=tt.cache,nt=tt.serialized,it=tt.isStringTag;return registerStyles(rt,nt,it),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(rt,nt,it)}),null},createStyled$1=function et(tt,rt){var nt=tt.__emotion_real===tt,it=nt&&tt.__emotion_base||tt,st,at;rt!==void 0&&(st=rt.label,at=rt.target);var ot=composeShouldForwardProps(tt,rt,nt),lt=ot||getDefaultShouldForwardProp(it),ut=!lt("as");return function(){var dt=arguments,bt=nt&&tt.__emotion_styles!==void 0?tt.__emotion_styles.slice(0):[];if(st!==void 0&&bt.push("label:"+st+";"),dt[0]==null||dt[0].raw===void 0)bt.push.apply(bt,dt);else{bt.push(dt[0][0]);for(var gt=dt.length,kt=1;kt{Array.isArray(et.__emotion_styles)&&(et.__emotion_styles=tt(et.__emotion_styles))},_excluded$d=["values","unit","step"],sortBreakpointsValues=et=>{const tt=Object.keys(et).map(rt=>({key:rt,val:et[rt]}))||[];return tt.sort((rt,nt)=>rt.val-nt.val),tt.reduce((rt,nt)=>_extends({},rt,{[nt.key]:nt.val}),{})};function createBreakpoints(et){const{values:tt={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:rt="px",step:nt=5}=et,it=_objectWithoutPropertiesLoose(et,_excluded$d),st=sortBreakpointsValues(tt),at=Object.keys(st);function ot(gt){return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt})`}function lt(gt){return`@media (max-width:${(typeof tt[gt]=="number"?tt[gt]:gt)-nt/100}${rt})`}function ut(gt,kt){const pt=at.indexOf(kt);return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt}) and (max-width:${(pt!==-1&&typeof tt[at[pt]]=="number"?tt[at[pt]]:kt)-nt/100}${rt})`}function dt(gt){return at.indexOf(gt)+1`@media (min-width:${values$1[et]}px)`};function handleBreakpoints(et,tt,rt){const nt=et.theme||{};if(Array.isArray(tt)){const st=nt.breakpoints||defaultBreakpoints;return tt.reduce((at,ot,lt)=>(at[st.up(st.keys[lt])]=rt(tt[lt]),at),{})}if(typeof tt=="object"){const st=nt.breakpoints||defaultBreakpoints;return Object.keys(tt).reduce((at,ot)=>{if(Object.keys(st.values||values$1).indexOf(ot)!==-1){const lt=st.up(ot);at[lt]=rt(tt[ot],ot)}else{const lt=ot;at[lt]=tt[lt]}return at},{})}return rt(tt)}function createEmptyBreakpointObject(et={}){var tt;return((tt=et.keys)==null?void 0:tt.reduce((nt,it)=>{const st=et.up(it);return nt[st]={},nt},{}))||{}}function removeUnusedBreakpoints(et,tt){return et.reduce((rt,nt)=>{const it=rt[nt];return(!it||Object.keys(it).length===0)&&delete rt[nt],rt},tt)}function mergeBreakpointsInOrder(et,...tt){const rt=createEmptyBreakpointObject(et),nt=[rt,...tt].reduce((it,st)=>deepmerge(it,st),{});return removeUnusedBreakpoints(Object.keys(rt),nt)}function computeBreakpointsBase(et,tt){if(typeof et!="object")return{};const rt={},nt=Object.keys(tt);return Array.isArray(et)?nt.forEach((it,st)=>{st{et[it]!=null&&(rt[it]=!0)}),rt}function resolveBreakpointValues({values:et,breakpoints:tt,base:rt}){const nt=rt||computeBreakpointsBase(et,tt),it=Object.keys(nt);if(it.length===0)return et;let st;return it.reduce((at,ot,lt)=>(Array.isArray(et)?(at[ot]=et[lt]!=null?et[lt]:et[st],st=lt):typeof et=="object"?(at[ot]=et[ot]!=null?et[ot]:et[st],st=ot):at[ot]=et,at),{})}function getPath(et,tt,rt=!0){if(!tt||typeof tt!="string")return null;if(et&&et.vars&&rt){const nt=`vars.${tt}`.split(".").reduce((it,st)=>it&&it[st]?it[st]:null,et);if(nt!=null)return nt}return tt.split(".").reduce((nt,it)=>nt&&nt[it]!=null?nt[it]:null,et)}function getStyleValue(et,tt,rt,nt=rt){let it;return typeof et=="function"?it=et(rt):Array.isArray(et)?it=et[rt]||nt:it=getPath(et,rt)||nt,tt&&(it=tt(it,nt,et)),it}function style$2(et){const{prop:tt,cssProperty:rt=et.prop,themeKey:nt,transform:it}=et,st=at=>{if(at[tt]==null)return null;const ot=at[tt],lt=at.theme,ut=getPath(lt,nt)||{};return handleBreakpoints(at,ot,bt=>{let gt=getStyleValue(ut,it,bt);return bt===gt&&typeof bt=="string"&&(gt=getStyleValue(ut,it,`${tt}${bt==="default"?"":capitalize(bt)}`,bt)),rt===!1?gt:{[rt]:gt}})};return st.propTypes={},st.filterProps=[tt],st}function memoize(et){const tt={};return rt=>(tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(et=>{if(et.length>2)if(aliases[et])et=aliases[et];else return[et];const[tt,rt]=et.split(""),nt=properties[tt],it=directions[rt]||"";return Array.isArray(it)?it.map(st=>nt+st):[nt+it]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(et,tt,rt,nt){var it;const st=(it=getPath(et,tt,!1))!=null?it:rt;return typeof st=="number"?at=>typeof at=="string"?at:st*at:Array.isArray(st)?at=>typeof at=="string"?at:st[at]:typeof st=="function"?st:()=>{}}function createUnarySpacing(et){return createUnaryUnit(et,"spacing",8)}function getValue(et,tt){if(typeof tt=="string"||tt==null)return tt;const rt=Math.abs(tt),nt=et(rt);return tt>=0?nt:typeof nt=="number"?-nt:`-${nt}`}function getStyleFromPropValue(et,tt){return rt=>et.reduce((nt,it)=>(nt[it]=getValue(tt,rt),nt),{})}function resolveCssProperty(et,tt,rt,nt){if(tt.indexOf(rt)===-1)return null;const it=getCssProperties(rt),st=getStyleFromPropValue(it,nt),at=et[rt];return handleBreakpoints(et,at,st)}function style$1(et,tt){const rt=createUnarySpacing(et.theme);return Object.keys(et).map(nt=>resolveCssProperty(et,tt,nt,rt)).reduce(merge,{})}function margin$1(et){return style$1(et,marginKeys)}margin$1.propTypes={};margin$1.filterProps=marginKeys;function padding$1(et){return style$1(et,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(et=8){if(et.mui)return et;const tt=createUnarySpacing({spacing:et}),rt=(...nt)=>(nt.length===0?[1]:nt).map(st=>{const at=tt(st);return typeof at=="number"?`${at}px`:at}).join(" ");return rt.mui=!0,rt}function compose(...et){const tt=et.reduce((nt,it)=>(it.filterProps.forEach(st=>{nt[st]=it}),nt),{}),rt=nt=>Object.keys(nt).reduce((it,st)=>tt[st]?merge(it,tt[st](nt)):it,{});return rt.propTypes={},rt.filterProps=et.reduce((nt,it)=>nt.concat(it.filterProps),[]),rt}function borderTransform(et){return typeof et!="number"?et:`${et}px solid`}function createBorderStyle(et,tt){return style$2({prop:et,themeKey:"borders",transform:tt})}const border$1=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=et=>{if(et.borderRadius!==void 0&&et.borderRadius!==null){const tt=createUnaryUnit(et.theme,"shape.borderRadius",4),rt=nt=>({borderRadius:getValue(tt,nt)});return handleBreakpoints(et,et.borderRadius,rt)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border$1,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=et=>{if(et.gap!==void 0&&et.gap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({gap:getValue(tt,nt)});return handleBreakpoints(et,et.gap,rt)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=et=>{if(et.columnGap!==void 0&&et.columnGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({columnGap:getValue(tt,nt)});return handleBreakpoints(et,et.columnGap,rt)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=et=>{if(et.rowGap!==void 0&&et.rowGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({rowGap:getValue(tt,nt)});return handleBreakpoints(et,et.rowGap,rt)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(et,tt){return tt==="grey"?tt:et}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(et){return et<=1&&et!==0?`${et*100}%`:et}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=et=>{if(et.maxWidth!==void 0&&et.maxWidth!==null){const tt=rt=>{var nt,it;const st=((nt=et.theme)==null||(nt=nt.breakpoints)==null||(nt=nt.values)==null?void 0:nt[rt])||values$1[rt];return st?((it=et.theme)==null||(it=it.breakpoints)==null?void 0:it.unit)!=="px"?{maxWidth:`${st}${et.theme.breakpoints.unit}`}:{maxWidth:st}:{maxWidth:sizingTransform(rt)}};return handleBreakpoints(et,et.maxWidth,tt)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin$1},mt:{style:margin$1},mr:{style:margin$1},mb:{style:margin$1},ml:{style:margin$1},mx:{style:margin$1},my:{style:margin$1},margin:{style:margin$1},marginTop:{style:margin$1},marginRight:{style:margin$1},marginBottom:{style:margin$1},marginLeft:{style:margin$1},marginX:{style:margin$1},marginY:{style:margin$1},marginInline:{style:margin$1},marginInlineStart:{style:margin$1},marginInlineEnd:{style:margin$1},marginBlock:{style:margin$1},marginBlockStart:{style:margin$1},marginBlockEnd:{style:margin$1},displayPrint:{cssProperty:!1,transform:et=>({"@media print":{display:et}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...et){const tt=et.reduce((nt,it)=>nt.concat(Object.keys(it)),[]),rt=new Set(tt);return et.every(nt=>rt.size===Object.keys(nt).length)}function callIfFn(et,tt){return typeof et=="function"?et(tt):et}function unstable_createStyleFunctionSx(){function et(rt,nt,it,st){const at={[rt]:nt,theme:it},ot=st[rt];if(!ot)return{[rt]:nt};const{cssProperty:lt=rt,themeKey:ut,transform:dt,style:bt}=ot;if(nt==null)return null;if(ut==="typography"&&nt==="inherit")return{[rt]:nt};const gt=getPath(it,ut)||{};return bt?bt(at):handleBreakpoints(at,nt,pt=>{let yt=getStyleValue(gt,dt,pt);return pt===yt&&typeof pt=="string"&&(yt=getStyleValue(gt,dt,`${rt}${pt==="default"?"":capitalize(pt)}`,pt)),lt===!1?yt:{[lt]:yt}})}function tt(rt){var nt;const{sx:it,theme:st={}}=rt||{};if(!it)return null;const at=(nt=st.unstable_sxConfig)!=null?nt:defaultSxConfig$1;function ot(lt){let ut=lt;if(typeof lt=="function")ut=lt(st);else if(typeof lt!="object")return lt;if(!ut)return null;const dt=createEmptyBreakpointObject(st.breakpoints),bt=Object.keys(dt);let gt=dt;return Object.keys(ut).forEach(kt=>{const pt=callIfFn(ut[kt],st);if(pt!=null)if(typeof pt=="object")if(at[kt])gt=merge(gt,et(kt,pt,st,at));else{const yt=handleBreakpoints({theme:st},pt,$t=>({[kt]:$t}));objectsHaveSameKeys(yt,pt)?gt[kt]=tt({sx:pt,theme:st}):gt=merge(gt,yt)}else gt=merge(gt,et(kt,pt,st,at))}),removeUnusedBreakpoints(bt,gt)}return Array.isArray(it)?it.map(ot):ot(it)}return tt}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx,_excluded$c=["breakpoints","palette","spacing","shape"];function createTheme$1(et={},...tt){const{breakpoints:rt={},palette:nt={},spacing:it,shape:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$c),ot=createBreakpoints(rt),lt=createSpacing(it);let ut=deepmerge({breakpoints:ot,direction:"ltr",components:{},palette:_extends({mode:"light"},nt),spacing:lt,shape:_extends({},shape$1,st)},at);return ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}function isObjectEmpty(et){return Object.keys(et).length===0}function useTheme$3(et=null){const tt=reactExports.useContext(ThemeContext$2);return!tt||isObjectEmpty(tt)?et:tt}const systemDefaultTheme$1=createTheme$1();function useTheme$2(et=systemDefaultTheme$1){return useTheme$3(et)}const _excluded$b=["variant"];function isEmpty$1(et){return et.length===0}function propsToClassKey(et){const{variant:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$b);let nt=tt||"";return Object.keys(rt).sort().forEach(it=>{it==="color"?nt+=isEmpty$1(nt)?et[it]:capitalize(et[it]):nt+=`${isEmpty$1(nt)?it:capitalize(it)}${capitalize(et[it].toString())}`}),nt}const _excluded$a=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty(et){return Object.keys(et).length===0}function isStringTag(et){return typeof et=="string"&&et.charCodeAt(0)>96}const getStyleOverrides=(et,tt)=>tt.components&&tt.components[et]&&tt.components[et].styleOverrides?tt.components[et].styleOverrides:null,transformVariants=et=>{const tt={};return et&&et.forEach(rt=>{const nt=propsToClassKey(rt.props);tt[nt]=rt.style}),tt},getVariantStyles=(et,tt)=>{let rt=[];return tt&&tt.components&&tt.components[et]&&tt.components[et].variants&&(rt=tt.components[et].variants),transformVariants(rt)},variantsResolver=(et,tt,rt)=>{const{ownerState:nt={}}=et,it=[];return rt&&rt.forEach(st=>{let at=!0;Object.keys(st.props).forEach(ot=>{nt[ot]!==st.props[ot]&&et[ot]!==st.props[ot]&&(at=!1)}),at&&it.push(tt[propsToClassKey(st.props)])}),it},themeVariantsResolver=(et,tt,rt,nt)=>{var it;const st=rt==null||(it=rt.components)==null||(it=it[nt])==null?void 0:it.variants;return variantsResolver(et,tt,st)};function shouldForwardProp(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const systemDefaultTheme=createTheme$1(),lowercaseFirstLetter=et=>et&&et.charAt(0).toLowerCase()+et.slice(1);function resolveTheme({defaultTheme:et,theme:tt,themeId:rt}){return isEmpty(tt)?et:tt[rt]||tt}function defaultOverridesResolver(et){return et?(tt,rt)=>rt[et]:null}const muiStyledFunctionResolver=({styledArg:et,props:tt,defaultTheme:rt,themeId:nt})=>{const it=et(_extends({},tt,{theme:resolveTheme(_extends({},tt,{defaultTheme:rt,themeId:nt}))}));let st;if(it&&it.variants&&(st=it.variants,delete it.variants),st){const at=variantsResolver(tt,transformVariants(st),st);return[it,...at]}return it};function createStyled(et={}){const{themeId:tt,defaultTheme:rt=systemDefaultTheme,rootShouldForwardProp:nt=shouldForwardProp,slotShouldForwardProp:it=shouldForwardProp}=et,st=at=>styleFunctionSx$1(_extends({},at,{theme:resolveTheme(_extends({},at,{defaultTheme:rt,themeId:tt}))}));return st.__mui_systemSx=!0,(at,ot={})=>{internal_processStyles(at,Bt=>Bt.filter(Ft=>!(Ft!=null&&Ft.__mui_systemSx)));const{name:lt,slot:ut,skipVariantsResolver:dt,skipSx:bt,overridesResolver:gt=defaultOverridesResolver(lowercaseFirstLetter(ut))}=ot,kt=_objectWithoutPropertiesLoose(ot,_excluded$a),pt=dt!==void 0?dt:ut&&ut!=="Root"&&ut!=="root"||!1,yt=bt||!1;let $t,mt=shouldForwardProp;ut==="Root"||ut==="root"?mt=nt:ut?mt=it:isStringTag(at)&&(mt=void 0);const wt=styled$2(at,_extends({shouldForwardProp:mt,label:$t},kt)),St=(Bt,...Ft)=>{const Dt=Ft?Ft.map(lr=>{if(typeof lr=="function"&&lr.__emotion_real!==lr)return qt=>muiStyledFunctionResolver({styledArg:lr,props:qt,defaultTheme:rt,themeId:tt});if(isPlainObject$1(lr)){let qt=lr,Ot;return lr&&lr.variants&&(Ot=lr.variants,delete qt.variants,qt=Mt=>{let ht=lr;return variantsResolver(Mt,transformVariants(Ot),Ot).forEach(Tt=>{ht=deepmerge(ht,Tt)}),ht}),qt}return lr}):[];let zt=Bt;if(isPlainObject$1(Bt)){let lr;Bt&&Bt.variants&&(lr=Bt.variants,delete zt.variants,zt=qt=>{let Ot=Bt;return variantsResolver(qt,transformVariants(lr),lr).forEach(ht=>{Ot=deepmerge(Ot,ht)}),Ot})}else typeof Bt=="function"&&Bt.__emotion_real!==Bt&&(zt=lr=>muiStyledFunctionResolver({styledArg:Bt,props:lr,defaultTheme:rt,themeId:tt}));lt&>&&Dt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt})),Ot=getStyleOverrides(lt,qt);if(Ot){const Mt={};return Object.entries(Ot).forEach(([ht,Et])=>{Mt[ht]=typeof Et=="function"?Et(_extends({},lr,{theme:qt})):Et}),gt(lr,Mt)}return null}),lt&&!pt&&Dt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt}));return themeVariantsResolver(lr,getVariantStyles(lt,qt),qt,lt)}),yt||Dt.push(st);const Ht=Dt.length-Ft.length;if(Array.isArray(Bt)&&Ht>0){const lr=new Array(Ht).fill("");zt=[...Bt,...lr],zt.raw=[...Bt.raw,...lr]}const Wt=wt(zt,...Dt);return at.muiName&&(Wt.muiName=at.muiName),Wt};return wt.withConfig&&(St.withConfig=wt.withConfig),St}}function getThemeProps(et){const{theme:tt,name:rt,props:nt}=et;return!tt||!tt.components||!tt.components[rt]||!tt.components[rt].defaultProps?nt:resolveProps(tt.components[rt].defaultProps,nt)}function useThemeProps$1({props:et,name:tt,defaultTheme:rt,themeId:nt}){let it=useTheme$2(rt);return nt&&(it=it[nt]||it),getThemeProps({theme:it,name:tt,props:et})}function clamp(et,tt=0,rt=1){return Math.min(Math.max(tt,et),rt)}function hexToRgb(et){et=et.slice(1);const tt=new RegExp(`.{1,${et.length>=6?2:1}}`,"g");let rt=et.match(tt);return rt&&rt[0].length===1&&(rt=rt.map(nt=>nt+nt)),rt?`rgb${rt.length===4?"a":""}(${rt.map((nt,it)=>it<3?parseInt(nt,16):Math.round(parseInt(nt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(et){if(et.type)return et;if(et.charAt(0)==="#")return decomposeColor(hexToRgb(et));const tt=et.indexOf("("),rt=et.substring(0,tt);if(["rgb","rgba","hsl","hsla","color"].indexOf(rt)===-1)throw new Error(formatMuiErrorMessage(9,et));let nt=et.substring(tt+1,et.length-1),it;if(rt==="color"){if(nt=nt.split(" "),it=nt.shift(),nt.length===4&&nt[3].charAt(0)==="/"&&(nt[3]=nt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(it)===-1)throw new Error(formatMuiErrorMessage(10,it))}else nt=nt.split(",");return nt=nt.map(st=>parseFloat(st)),{type:rt,values:nt,colorSpace:it}}function recomposeColor(et){const{type:tt,colorSpace:rt}=et;let{values:nt}=et;return tt.indexOf("rgb")!==-1?nt=nt.map((it,st)=>st<3?parseInt(it,10):it):tt.indexOf("hsl")!==-1&&(nt[1]=`${nt[1]}%`,nt[2]=`${nt[2]}%`),tt.indexOf("color")!==-1?nt=`${rt} ${nt.join(" ")}`:nt=`${nt.join(", ")}`,`${tt}(${nt})`}function hslToRgb(et){et=decomposeColor(et);const{values:tt}=et,rt=tt[0],nt=tt[1]/100,it=tt[2]/100,st=nt*Math.min(it,1-it),at=(ut,dt=(ut+rt/30)%12)=>it-st*Math.max(Math.min(dt-3,9-dt,1),-1);let ot="rgb";const lt=[Math.round(at(0)*255),Math.round(at(8)*255),Math.round(at(4)*255)];return et.type==="hsla"&&(ot+="a",lt.push(tt[3])),recomposeColor({type:ot,values:lt})}function getLuminance(et){et=decomposeColor(et);let tt=et.type==="hsl"||et.type==="hsla"?decomposeColor(hslToRgb(et)).values:et.values;return tt=tt.map(rt=>(et.type!=="color"&&(rt/=255),rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4)),Number((.2126*tt[0]+.7152*tt[1]+.0722*tt[2]).toFixed(3))}function getContrastRatio(et,tt){const rt=getLuminance(et),nt=getLuminance(tt);return(Math.max(rt,nt)+.05)/(Math.min(rt,nt)+.05)}function alpha(et,tt){return et=decomposeColor(et),tt=clamp(tt),(et.type==="rgb"||et.type==="hsl")&&(et.type+="a"),et.type==="color"?et.values[3]=`/${tt}`:et.values[3]=tt,recomposeColor(et)}function darken(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]*=1-tt;else if(et.type.indexOf("rgb")!==-1||et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]*=1-tt;return recomposeColor(et)}function lighten(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]+=(100-et.values[2])*tt;else if(et.type.indexOf("rgb")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(255-et.values[rt])*tt;else if(et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(1-et.values[rt])*tt;return recomposeColor(et)}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$1(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(et,tt){return typeof tt=="function"?tt(et):_extends({},et,tt)}function ThemeProvider$2(et){const{children:tt,theme:rt}=et,nt=useTheme$1(),it=reactExports.useMemo(()=>{const st=nt===null?rt:mergeOuterLocalTheme(nt,rt);return st!=null&&(st[nested]=nt!==null),st},[rt,nt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:it,children:tt})}const EMPTY_THEME={};function useThemeScoping(et,tt,rt,nt=!1){return reactExports.useMemo(()=>{const it=et&&tt[et]||tt;if(typeof rt=="function"){const st=rt(it),at=et?_extends({},tt,{[et]:st}):st;return nt?()=>at:at}return et?_extends({},tt,{[et]:rt}):_extends({},tt,rt)},[et,tt,rt,nt])}function ThemeProvider$1(et){const{children:tt,theme:rt,themeId:nt}=et,it=useTheme$3(EMPTY_THEME),st=useTheme$1()||EMPTY_THEME,at=useThemeScoping(nt,it,rt),ot=useThemeScoping(nt,st,rt,!0);return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:at,children:tt})})}function createMixins(et,tt){return _extends({toolbar:{minHeight:56,[et.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[et.up("sm")]:{minHeight:64}}},tt)}const _excluded$9=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(et,tt,rt,nt){const it=nt.light||nt,st=nt.dark||nt*1.5;et[tt]||(et.hasOwnProperty(rt)?et[tt]=et[rt]:tt==="light"?et.light=lighten(et.main,it):tt==="dark"&&(et.dark=darken(et.main,st)))}function getDefaultPrimary(et="light"){return et==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(et="light"){return et==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(et="light"){return et==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(et="light"){return et==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(et="light"){return et==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(et="light"){return et==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(et){const{mode:tt="light",contrastThreshold:rt=3,tonalOffset:nt=.2}=et,it=_objectWithoutPropertiesLoose(et,_excluded$9),st=et.primary||getDefaultPrimary(tt),at=et.secondary||getDefaultSecondary(tt),ot=et.error||getDefaultError(tt),lt=et.info||getDefaultInfo(tt),ut=et.success||getDefaultSuccess(tt),dt=et.warning||getDefaultWarning(tt);function bt(yt){return getContrastRatio(yt,dark.text.primary)>=rt?dark.text.primary:light.text.primary}const gt=({color:yt,name:$t,mainShade:mt=500,lightShade:wt=300,darkShade:St=700})=>{if(yt=_extends({},yt),!yt.main&&yt[mt]&&(yt.main=yt[mt]),!yt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,$t?` (${$t})`:"",mt));if(typeof yt.main!="string")throw new Error(formatMuiErrorMessage(12,$t?` (${$t})`:"",JSON.stringify(yt.main)));return addLightOrDark(yt,"light",wt,nt),addLightOrDark(yt,"dark",St,nt),yt.contrastText||(yt.contrastText=bt(yt.main)),yt},kt={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:tt,primary:gt({color:st,name:"primary"}),secondary:gt({color:at,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:gt({color:ot,name:"error"}),warning:gt({color:dt,name:"warning"}),info:gt({color:lt,name:"info"}),success:gt({color:ut,name:"success"}),grey:grey$1,contrastThreshold:rt,getContrastText:bt,augmentColor:gt,tonalOffset:nt},kt[tt]),it)}const _excluded$8=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(et){return Math.round(et*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(et,tt){const rt=typeof tt=="function"?tt(et):tt,{fontFamily:nt=defaultFontFamily,fontSize:it=14,fontWeightLight:st=300,fontWeightRegular:at=400,fontWeightMedium:ot=500,fontWeightBold:lt=700,htmlFontSize:ut=16,allVariants:dt,pxToRem:bt}=rt,gt=_objectWithoutPropertiesLoose(rt,_excluded$8),kt=it/14,pt=bt||(mt=>`${mt/ut*kt}rem`),yt=(mt,wt,St,Bt,Ft)=>_extends({fontFamily:nt,fontWeight:mt,fontSize:pt(wt),lineHeight:St},nt===defaultFontFamily?{letterSpacing:`${round(Bt/wt)}em`}:{},Ft,dt),$t={h1:yt(st,96,1.167,-1.5),h2:yt(st,60,1.2,-.5),h3:yt(at,48,1.167,0),h4:yt(at,34,1.235,.25),h5:yt(at,24,1.334,0),h6:yt(ot,20,1.6,.15),subtitle1:yt(at,16,1.75,.15),subtitle2:yt(ot,14,1.57,.1),body1:yt(at,16,1.5,.15),body2:yt(at,14,1.43,.15),button:yt(ot,14,1.75,.4,caseAllCaps),caption:yt(at,12,1.66,.4),overline:yt(at,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends({htmlFontSize:ut,pxToRem:pt,fontFamily:nt,fontSize:it,fontWeightLight:st,fontWeightRegular:at,fontWeightMedium:ot,fontWeightBold:lt},$t),gt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...et){return[`${et[0]}px ${et[1]}px ${et[2]}px ${et[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${et[4]}px ${et[5]}px ${et[6]}px ${et[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${et[8]}px ${et[9]}px ${et[10]}px ${et[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$7=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(et){return`${Math.round(et)}ms`}function getAutoHeightDuration(et){if(!et)return 0;const tt=et/36;return Math.round((4+15*tt**.25+tt/5)*10)}function createTransitions(et){const tt=_extends({},easing,et.easing),rt=_extends({},duration,et.duration);return _extends({getAutoHeightDuration,create:(it=["all"],st={})=>{const{duration:at=rt.standard,easing:ot=tt.easeInOut,delay:lt=0}=st;return _objectWithoutPropertiesLoose(st,_excluded$7),(Array.isArray(it)?it:[it]).map(ut=>`${ut} ${typeof at=="string"?at:formatMs(at)} ${ot} ${typeof lt=="string"?lt:formatMs(lt)}`).join(",")}},et,{easing:tt,duration:rt})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(et={},...tt){const{mixins:rt={},palette:nt={},transitions:it={},typography:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$6);if(et.vars)throw new Error(formatMuiErrorMessage(18));const ot=createPalette(nt),lt=createTheme$1(et);let ut=deepmerge(lt,{mixins:createMixins(lt.breakpoints,rt),palette:ot,shadows:shadows$1.slice(),typography:createTypography(ot,st),transitions:createTransitions(it),zIndex:_extends({},zIndex$1)});return ut=deepmerge(ut,at),ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useTheme(){const et=useTheme$2(defaultTheme$1);return et[THEME_ID]||et}function useThemeProps({props:et,name:tt}){return useThemeProps$1({props:et,name:tt,defaultTheme:defaultTheme$1,themeId:THEME_ID})}const rootShouldForwardProp=et=>shouldForwardProp(et)&&et!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled,_excluded$5=["theme"];function ThemeProvider(et){let{theme:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$5);const nt=tt[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends({},rt,{themeId:nt?THEME_ID:void 0,theme:nt||tt}))}function r$3(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{if(!ot&<!=null){const yt=setTimeout(lt,ut);return()=>{clearTimeout(yt)}}},[lt,ot,ut]),jsxRuntimeExports.jsx("span",{className:gt,style:kt,children:jsxRuntimeExports.jsx("span",{className:pt})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),touchRippleClasses$1=touchRippleClasses,_excluded$4=["center","classes","className"];let _$2=et=>et,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$2` + */function styled$2(et,tt){return newStyled(et,tt)}const internal_processStyles=(et,tt)=>{Array.isArray(et.__emotion_styles)&&(et.__emotion_styles=tt(et.__emotion_styles))},_excluded$d=["values","unit","step"],sortBreakpointsValues=et=>{const tt=Object.keys(et).map(rt=>({key:rt,val:et[rt]}))||[];return tt.sort((rt,nt)=>rt.val-nt.val),tt.reduce((rt,nt)=>_extends({},rt,{[nt.key]:nt.val}),{})};function createBreakpoints(et){const{values:tt={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:rt="px",step:nt=5}=et,it=_objectWithoutPropertiesLoose(et,_excluded$d),st=sortBreakpointsValues(tt),at=Object.keys(st);function ot(gt){return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt})`}function lt(gt){return`@media (max-width:${(typeof tt[gt]=="number"?tt[gt]:gt)-nt/100}${rt})`}function ut(gt,kt){const pt=at.indexOf(kt);return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt}) and (max-width:${(pt!==-1&&typeof tt[at[pt]]=="number"?tt[at[pt]]:kt)-nt/100}${rt})`}function dt(gt){return at.indexOf(gt)+1`@media (min-width:${values$1[et]}px)`};function handleBreakpoints(et,tt,rt){const nt=et.theme||{};if(Array.isArray(tt)){const st=nt.breakpoints||defaultBreakpoints;return tt.reduce((at,ot,lt)=>(at[st.up(st.keys[lt])]=rt(tt[lt]),at),{})}if(typeof tt=="object"){const st=nt.breakpoints||defaultBreakpoints;return Object.keys(tt).reduce((at,ot)=>{if(Object.keys(st.values||values$1).indexOf(ot)!==-1){const lt=st.up(ot);at[lt]=rt(tt[ot],ot)}else{const lt=ot;at[lt]=tt[lt]}return at},{})}return rt(tt)}function createEmptyBreakpointObject(et={}){var tt;return((tt=et.keys)==null?void 0:tt.reduce((nt,it)=>{const st=et.up(it);return nt[st]={},nt},{}))||{}}function removeUnusedBreakpoints(et,tt){return et.reduce((rt,nt)=>{const it=rt[nt];return(!it||Object.keys(it).length===0)&&delete rt[nt],rt},tt)}function mergeBreakpointsInOrder(et,...tt){const rt=createEmptyBreakpointObject(et),nt=[rt,...tt].reduce((it,st)=>deepmerge(it,st),{});return removeUnusedBreakpoints(Object.keys(rt),nt)}function computeBreakpointsBase(et,tt){if(typeof et!="object")return{};const rt={},nt=Object.keys(tt);return Array.isArray(et)?nt.forEach((it,st)=>{st{et[it]!=null&&(rt[it]=!0)}),rt}function resolveBreakpointValues({values:et,breakpoints:tt,base:rt}){const nt=rt||computeBreakpointsBase(et,tt),it=Object.keys(nt);if(it.length===0)return et;let st;return it.reduce((at,ot,lt)=>(Array.isArray(et)?(at[ot]=et[lt]!=null?et[lt]:et[st],st=lt):typeof et=="object"?(at[ot]=et[ot]!=null?et[ot]:et[st],st=ot):at[ot]=et,at),{})}function getPath(et,tt,rt=!0){if(!tt||typeof tt!="string")return null;if(et&&et.vars&&rt){const nt=`vars.${tt}`.split(".").reduce((it,st)=>it&&it[st]?it[st]:null,et);if(nt!=null)return nt}return tt.split(".").reduce((nt,it)=>nt&&nt[it]!=null?nt[it]:null,et)}function getStyleValue(et,tt,rt,nt=rt){let it;return typeof et=="function"?it=et(rt):Array.isArray(et)?it=et[rt]||nt:it=getPath(et,rt)||nt,tt&&(it=tt(it,nt,et)),it}function style$2(et){const{prop:tt,cssProperty:rt=et.prop,themeKey:nt,transform:it}=et,st=at=>{if(at[tt]==null)return null;const ot=at[tt],lt=at.theme,ut=getPath(lt,nt)||{};return handleBreakpoints(at,ot,bt=>{let gt=getStyleValue(ut,it,bt);return bt===gt&&typeof bt=="string"&&(gt=getStyleValue(ut,it,`${tt}${bt==="default"?"":capitalize(bt)}`,bt)),rt===!1?gt:{[rt]:gt}})};return st.propTypes={},st.filterProps=[tt],st}function memoize(et){const tt={};return rt=>(tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(et=>{if(et.length>2)if(aliases[et])et=aliases[et];else return[et];const[tt,rt]=et.split(""),nt=properties[tt],it=directions[rt]||"";return Array.isArray(it)?it.map(st=>nt+st):[nt+it]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(et,tt,rt,nt){var it;const st=(it=getPath(et,tt,!1))!=null?it:rt;return typeof st=="number"?at=>typeof at=="string"?at:st*at:Array.isArray(st)?at=>typeof at=="string"?at:st[at]:typeof st=="function"?st:()=>{}}function createUnarySpacing(et){return createUnaryUnit(et,"spacing",8)}function getValue(et,tt){if(typeof tt=="string"||tt==null)return tt;const rt=Math.abs(tt),nt=et(rt);return tt>=0?nt:typeof nt=="number"?-nt:`-${nt}`}function getStyleFromPropValue(et,tt){return rt=>et.reduce((nt,it)=>(nt[it]=getValue(tt,rt),nt),{})}function resolveCssProperty(et,tt,rt,nt){if(tt.indexOf(rt)===-1)return null;const it=getCssProperties(rt),st=getStyleFromPropValue(it,nt),at=et[rt];return handleBreakpoints(et,at,st)}function style$1(et,tt){const rt=createUnarySpacing(et.theme);return Object.keys(et).map(nt=>resolveCssProperty(et,tt,nt,rt)).reduce(merge,{})}function margin$1(et){return style$1(et,marginKeys)}margin$1.propTypes={};margin$1.filterProps=marginKeys;function padding$1(et){return style$1(et,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(et=8){if(et.mui)return et;const tt=createUnarySpacing({spacing:et}),rt=(...nt)=>(nt.length===0?[1]:nt).map(st=>{const at=tt(st);return typeof at=="number"?`${at}px`:at}).join(" ");return rt.mui=!0,rt}function compose(...et){const tt=et.reduce((nt,it)=>(it.filterProps.forEach(st=>{nt[st]=it}),nt),{}),rt=nt=>Object.keys(nt).reduce((it,st)=>tt[st]?merge(it,tt[st](nt)):it,{});return rt.propTypes={},rt.filterProps=et.reduce((nt,it)=>nt.concat(it.filterProps),[]),rt}function borderTransform(et){return typeof et!="number"?et:`${et}px solid`}function createBorderStyle(et,tt){return style$2({prop:et,themeKey:"borders",transform:tt})}const border$1=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=et=>{if(et.borderRadius!==void 0&&et.borderRadius!==null){const tt=createUnaryUnit(et.theme,"shape.borderRadius",4),rt=nt=>({borderRadius:getValue(tt,nt)});return handleBreakpoints(et,et.borderRadius,rt)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border$1,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=et=>{if(et.gap!==void 0&&et.gap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({gap:getValue(tt,nt)});return handleBreakpoints(et,et.gap,rt)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=et=>{if(et.columnGap!==void 0&&et.columnGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({columnGap:getValue(tt,nt)});return handleBreakpoints(et,et.columnGap,rt)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=et=>{if(et.rowGap!==void 0&&et.rowGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({rowGap:getValue(tt,nt)});return handleBreakpoints(et,et.rowGap,rt)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(et,tt){return tt==="grey"?tt:et}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(et){return et<=1&&et!==0?`${et*100}%`:et}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=et=>{if(et.maxWidth!==void 0&&et.maxWidth!==null){const tt=rt=>{var nt,it;const st=((nt=et.theme)==null||(nt=nt.breakpoints)==null||(nt=nt.values)==null?void 0:nt[rt])||values$1[rt];return st?((it=et.theme)==null||(it=it.breakpoints)==null?void 0:it.unit)!=="px"?{maxWidth:`${st}${et.theme.breakpoints.unit}`}:{maxWidth:st}:{maxWidth:sizingTransform(rt)}};return handleBreakpoints(et,et.maxWidth,tt)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin$1},mt:{style:margin$1},mr:{style:margin$1},mb:{style:margin$1},ml:{style:margin$1},mx:{style:margin$1},my:{style:margin$1},margin:{style:margin$1},marginTop:{style:margin$1},marginRight:{style:margin$1},marginBottom:{style:margin$1},marginLeft:{style:margin$1},marginX:{style:margin$1},marginY:{style:margin$1},marginInline:{style:margin$1},marginInlineStart:{style:margin$1},marginInlineEnd:{style:margin$1},marginBlock:{style:margin$1},marginBlockStart:{style:margin$1},marginBlockEnd:{style:margin$1},displayPrint:{cssProperty:!1,transform:et=>({"@media print":{display:et}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...et){const tt=et.reduce((nt,it)=>nt.concat(Object.keys(it)),[]),rt=new Set(tt);return et.every(nt=>rt.size===Object.keys(nt).length)}function callIfFn(et,tt){return typeof et=="function"?et(tt):et}function unstable_createStyleFunctionSx(){function et(rt,nt,it,st){const at={[rt]:nt,theme:it},ot=st[rt];if(!ot)return{[rt]:nt};const{cssProperty:lt=rt,themeKey:ut,transform:dt,style:bt}=ot;if(nt==null)return null;if(ut==="typography"&&nt==="inherit")return{[rt]:nt};const gt=getPath(it,ut)||{};return bt?bt(at):handleBreakpoints(at,nt,pt=>{let yt=getStyleValue(gt,dt,pt);return pt===yt&&typeof pt=="string"&&(yt=getStyleValue(gt,dt,`${rt}${pt==="default"?"":capitalize(pt)}`,pt)),lt===!1?yt:{[lt]:yt}})}function tt(rt){var nt;const{sx:it,theme:st={}}=rt||{};if(!it)return null;const at=(nt=st.unstable_sxConfig)!=null?nt:defaultSxConfig$1;function ot(lt){let ut=lt;if(typeof lt=="function")ut=lt(st);else if(typeof lt!="object")return lt;if(!ut)return null;const dt=createEmptyBreakpointObject(st.breakpoints),bt=Object.keys(dt);let gt=dt;return Object.keys(ut).forEach(kt=>{const pt=callIfFn(ut[kt],st);if(pt!=null)if(typeof pt=="object")if(at[kt])gt=merge(gt,et(kt,pt,st,at));else{const yt=handleBreakpoints({theme:st},pt,$t=>({[kt]:$t}));objectsHaveSameKeys(yt,pt)?gt[kt]=tt({sx:pt,theme:st}):gt=merge(gt,yt)}else gt=merge(gt,et(kt,pt,st,at))}),removeUnusedBreakpoints(bt,gt)}return Array.isArray(it)?it.map(ot):ot(it)}return tt}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx,_excluded$c=["breakpoints","palette","spacing","shape"];function createTheme$1(et={},...tt){const{breakpoints:rt={},palette:nt={},spacing:it,shape:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$c),ot=createBreakpoints(rt),lt=createSpacing(it);let ut=deepmerge({breakpoints:ot,direction:"ltr",components:{},palette:_extends({mode:"light"},nt),spacing:lt,shape:_extends({},shape$1,st)},at);return ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}function isObjectEmpty(et){return Object.keys(et).length===0}function useTheme$3(et=null){const tt=reactExports.useContext(ThemeContext$2);return!tt||isObjectEmpty(tt)?et:tt}const systemDefaultTheme$1=createTheme$1();function useTheme$2(et=systemDefaultTheme$1){return useTheme$3(et)}const _excluded$b=["variant"];function isEmpty$1(et){return et.length===0}function propsToClassKey(et){const{variant:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$b);let nt=tt||"";return Object.keys(rt).sort().forEach(it=>{it==="color"?nt+=isEmpty$1(nt)?et[it]:capitalize(et[it]):nt+=`${isEmpty$1(nt)?it:capitalize(it)}${capitalize(et[it].toString())}`}),nt}const _excluded$a=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty(et){return Object.keys(et).length===0}function isStringTag(et){return typeof et=="string"&&et.charCodeAt(0)>96}const getStyleOverrides=(et,tt)=>tt.components&&tt.components[et]&&tt.components[et].styleOverrides?tt.components[et].styleOverrides:null,transformVariants=et=>{const tt={};return et&&et.forEach(rt=>{const nt=propsToClassKey(rt.props);tt[nt]=rt.style}),tt},getVariantStyles=(et,tt)=>{let rt=[];return tt&&tt.components&&tt.components[et]&&tt.components[et].variants&&(rt=tt.components[et].variants),transformVariants(rt)},variantsResolver=(et,tt,rt)=>{const{ownerState:nt={}}=et,it=[];return rt&&rt.forEach(st=>{let at=!0;Object.keys(st.props).forEach(ot=>{nt[ot]!==st.props[ot]&&et[ot]!==st.props[ot]&&(at=!1)}),at&&it.push(tt[propsToClassKey(st.props)])}),it},themeVariantsResolver=(et,tt,rt,nt)=>{var it;const st=rt==null||(it=rt.components)==null||(it=it[nt])==null?void 0:it.variants;return variantsResolver(et,tt,st)};function shouldForwardProp(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const systemDefaultTheme=createTheme$1(),lowercaseFirstLetter=et=>et&&et.charAt(0).toLowerCase()+et.slice(1);function resolveTheme({defaultTheme:et,theme:tt,themeId:rt}){return isEmpty(tt)?et:tt[rt]||tt}function defaultOverridesResolver(et){return et?(tt,rt)=>rt[et]:null}const muiStyledFunctionResolver=({styledArg:et,props:tt,defaultTheme:rt,themeId:nt})=>{const it=et(_extends({},tt,{theme:resolveTheme(_extends({},tt,{defaultTheme:rt,themeId:nt}))}));let st;if(it&&it.variants&&(st=it.variants,delete it.variants),st){const at=variantsResolver(tt,transformVariants(st),st);return[it,...at]}return it};function createStyled(et={}){const{themeId:tt,defaultTheme:rt=systemDefaultTheme,rootShouldForwardProp:nt=shouldForwardProp,slotShouldForwardProp:it=shouldForwardProp}=et,st=at=>styleFunctionSx$1(_extends({},at,{theme:resolveTheme(_extends({},at,{defaultTheme:rt,themeId:tt}))}));return st.__mui_systemSx=!0,(at,ot={})=>{internal_processStyles(at,Bt=>Bt.filter(Ft=>!(Ft!=null&&Ft.__mui_systemSx)));const{name:lt,slot:ut,skipVariantsResolver:dt,skipSx:bt,overridesResolver:gt=defaultOverridesResolver(lowercaseFirstLetter(ut))}=ot,kt=_objectWithoutPropertiesLoose(ot,_excluded$a),pt=dt!==void 0?dt:ut&&ut!=="Root"&&ut!=="root"||!1,yt=bt||!1;let $t,mt=shouldForwardProp;ut==="Root"||ut==="root"?mt=nt:ut?mt=it:isStringTag(at)&&(mt=void 0);const wt=styled$2(at,_extends({shouldForwardProp:mt,label:$t},kt)),St=(Bt,...Ft)=>{const Lt=Ft?Ft.map(lr=>{if(typeof lr=="function"&&lr.__emotion_real!==lr)return qt=>muiStyledFunctionResolver({styledArg:lr,props:qt,defaultTheme:rt,themeId:tt});if(isPlainObject$1(lr)){let qt=lr,Ot;return lr&&lr.variants&&(Ot=lr.variants,delete qt.variants,qt=Mt=>{let ht=lr;return variantsResolver(Mt,transformVariants(Ot),Ot).forEach(Tt=>{ht=deepmerge(ht,Tt)}),ht}),qt}return lr}):[];let zt=Bt;if(isPlainObject$1(Bt)){let lr;Bt&&Bt.variants&&(lr=Bt.variants,delete zt.variants,zt=qt=>{let Ot=Bt;return variantsResolver(qt,transformVariants(lr),lr).forEach(ht=>{Ot=deepmerge(Ot,ht)}),Ot})}else typeof Bt=="function"&&Bt.__emotion_real!==Bt&&(zt=lr=>muiStyledFunctionResolver({styledArg:Bt,props:lr,defaultTheme:rt,themeId:tt}));lt&>&&Lt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt})),Ot=getStyleOverrides(lt,qt);if(Ot){const Mt={};return Object.entries(Ot).forEach(([ht,Et])=>{Mt[ht]=typeof Et=="function"?Et(_extends({},lr,{theme:qt})):Et}),gt(lr,Mt)}return null}),lt&&!pt&&Lt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt}));return themeVariantsResolver(lr,getVariantStyles(lt,qt),qt,lt)}),yt||Lt.push(st);const Ht=Lt.length-Ft.length;if(Array.isArray(Bt)&&Ht>0){const lr=new Array(Ht).fill("");zt=[...Bt,...lr],zt.raw=[...Bt.raw,...lr]}const Wt=wt(zt,...Lt);return at.muiName&&(Wt.muiName=at.muiName),Wt};return wt.withConfig&&(St.withConfig=wt.withConfig),St}}function getThemeProps(et){const{theme:tt,name:rt,props:nt}=et;return!tt||!tt.components||!tt.components[rt]||!tt.components[rt].defaultProps?nt:resolveProps(tt.components[rt].defaultProps,nt)}function useThemeProps$1({props:et,name:tt,defaultTheme:rt,themeId:nt}){let it=useTheme$2(rt);return nt&&(it=it[nt]||it),getThemeProps({theme:it,name:tt,props:et})}function clamp(et,tt=0,rt=1){return Math.min(Math.max(tt,et),rt)}function hexToRgb(et){et=et.slice(1);const tt=new RegExp(`.{1,${et.length>=6?2:1}}`,"g");let rt=et.match(tt);return rt&&rt[0].length===1&&(rt=rt.map(nt=>nt+nt)),rt?`rgb${rt.length===4?"a":""}(${rt.map((nt,it)=>it<3?parseInt(nt,16):Math.round(parseInt(nt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(et){if(et.type)return et;if(et.charAt(0)==="#")return decomposeColor(hexToRgb(et));const tt=et.indexOf("("),rt=et.substring(0,tt);if(["rgb","rgba","hsl","hsla","color"].indexOf(rt)===-1)throw new Error(formatMuiErrorMessage(9,et));let nt=et.substring(tt+1,et.length-1),it;if(rt==="color"){if(nt=nt.split(" "),it=nt.shift(),nt.length===4&&nt[3].charAt(0)==="/"&&(nt[3]=nt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(it)===-1)throw new Error(formatMuiErrorMessage(10,it))}else nt=nt.split(",");return nt=nt.map(st=>parseFloat(st)),{type:rt,values:nt,colorSpace:it}}function recomposeColor(et){const{type:tt,colorSpace:rt}=et;let{values:nt}=et;return tt.indexOf("rgb")!==-1?nt=nt.map((it,st)=>st<3?parseInt(it,10):it):tt.indexOf("hsl")!==-1&&(nt[1]=`${nt[1]}%`,nt[2]=`${nt[2]}%`),tt.indexOf("color")!==-1?nt=`${rt} ${nt.join(" ")}`:nt=`${nt.join(", ")}`,`${tt}(${nt})`}function hslToRgb(et){et=decomposeColor(et);const{values:tt}=et,rt=tt[0],nt=tt[1]/100,it=tt[2]/100,st=nt*Math.min(it,1-it),at=(ut,dt=(ut+rt/30)%12)=>it-st*Math.max(Math.min(dt-3,9-dt,1),-1);let ot="rgb";const lt=[Math.round(at(0)*255),Math.round(at(8)*255),Math.round(at(4)*255)];return et.type==="hsla"&&(ot+="a",lt.push(tt[3])),recomposeColor({type:ot,values:lt})}function getLuminance(et){et=decomposeColor(et);let tt=et.type==="hsl"||et.type==="hsla"?decomposeColor(hslToRgb(et)).values:et.values;return tt=tt.map(rt=>(et.type!=="color"&&(rt/=255),rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4)),Number((.2126*tt[0]+.7152*tt[1]+.0722*tt[2]).toFixed(3))}function getContrastRatio(et,tt){const rt=getLuminance(et),nt=getLuminance(tt);return(Math.max(rt,nt)+.05)/(Math.min(rt,nt)+.05)}function alpha(et,tt){return et=decomposeColor(et),tt=clamp(tt),(et.type==="rgb"||et.type==="hsl")&&(et.type+="a"),et.type==="color"?et.values[3]=`/${tt}`:et.values[3]=tt,recomposeColor(et)}function darken(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]*=1-tt;else if(et.type.indexOf("rgb")!==-1||et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]*=1-tt;return recomposeColor(et)}function lighten(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]+=(100-et.values[2])*tt;else if(et.type.indexOf("rgb")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(255-et.values[rt])*tt;else if(et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(1-et.values[rt])*tt;return recomposeColor(et)}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$1(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(et,tt){return typeof tt=="function"?tt(et):_extends({},et,tt)}function ThemeProvider$2(et){const{children:tt,theme:rt}=et,nt=useTheme$1(),it=reactExports.useMemo(()=>{const st=nt===null?rt:mergeOuterLocalTheme(nt,rt);return st!=null&&(st[nested]=nt!==null),st},[rt,nt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:it,children:tt})}const EMPTY_THEME={};function useThemeScoping(et,tt,rt,nt=!1){return reactExports.useMemo(()=>{const it=et&&tt[et]||tt;if(typeof rt=="function"){const st=rt(it),at=et?_extends({},tt,{[et]:st}):st;return nt?()=>at:at}return et?_extends({},tt,{[et]:rt}):_extends({},tt,rt)},[et,tt,rt,nt])}function ThemeProvider$1(et){const{children:tt,theme:rt,themeId:nt}=et,it=useTheme$3(EMPTY_THEME),st=useTheme$1()||EMPTY_THEME,at=useThemeScoping(nt,it,rt),ot=useThemeScoping(nt,st,rt,!0);return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:at,children:tt})})}function createMixins(et,tt){return _extends({toolbar:{minHeight:56,[et.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[et.up("sm")]:{minHeight:64}}},tt)}const _excluded$9=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(et,tt,rt,nt){const it=nt.light||nt,st=nt.dark||nt*1.5;et[tt]||(et.hasOwnProperty(rt)?et[tt]=et[rt]:tt==="light"?et.light=lighten(et.main,it):tt==="dark"&&(et.dark=darken(et.main,st)))}function getDefaultPrimary(et="light"){return et==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(et="light"){return et==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(et="light"){return et==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(et="light"){return et==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(et="light"){return et==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(et="light"){return et==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(et){const{mode:tt="light",contrastThreshold:rt=3,tonalOffset:nt=.2}=et,it=_objectWithoutPropertiesLoose(et,_excluded$9),st=et.primary||getDefaultPrimary(tt),at=et.secondary||getDefaultSecondary(tt),ot=et.error||getDefaultError(tt),lt=et.info||getDefaultInfo(tt),ut=et.success||getDefaultSuccess(tt),dt=et.warning||getDefaultWarning(tt);function bt(yt){return getContrastRatio(yt,dark.text.primary)>=rt?dark.text.primary:light.text.primary}const gt=({color:yt,name:$t,mainShade:mt=500,lightShade:wt=300,darkShade:St=700})=>{if(yt=_extends({},yt),!yt.main&&yt[mt]&&(yt.main=yt[mt]),!yt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,$t?` (${$t})`:"",mt));if(typeof yt.main!="string")throw new Error(formatMuiErrorMessage(12,$t?` (${$t})`:"",JSON.stringify(yt.main)));return addLightOrDark(yt,"light",wt,nt),addLightOrDark(yt,"dark",St,nt),yt.contrastText||(yt.contrastText=bt(yt.main)),yt},kt={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:tt,primary:gt({color:st,name:"primary"}),secondary:gt({color:at,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:gt({color:ot,name:"error"}),warning:gt({color:dt,name:"warning"}),info:gt({color:lt,name:"info"}),success:gt({color:ut,name:"success"}),grey:grey$1,contrastThreshold:rt,getContrastText:bt,augmentColor:gt,tonalOffset:nt},kt[tt]),it)}const _excluded$8=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(et){return Math.round(et*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(et,tt){const rt=typeof tt=="function"?tt(et):tt,{fontFamily:nt=defaultFontFamily,fontSize:it=14,fontWeightLight:st=300,fontWeightRegular:at=400,fontWeightMedium:ot=500,fontWeightBold:lt=700,htmlFontSize:ut=16,allVariants:dt,pxToRem:bt}=rt,gt=_objectWithoutPropertiesLoose(rt,_excluded$8),kt=it/14,pt=bt||(mt=>`${mt/ut*kt}rem`),yt=(mt,wt,St,Bt,Ft)=>_extends({fontFamily:nt,fontWeight:mt,fontSize:pt(wt),lineHeight:St},nt===defaultFontFamily?{letterSpacing:`${round(Bt/wt)}em`}:{},Ft,dt),$t={h1:yt(st,96,1.167,-1.5),h2:yt(st,60,1.2,-.5),h3:yt(at,48,1.167,0),h4:yt(at,34,1.235,.25),h5:yt(at,24,1.334,0),h6:yt(ot,20,1.6,.15),subtitle1:yt(at,16,1.75,.15),subtitle2:yt(ot,14,1.57,.1),body1:yt(at,16,1.5,.15),body2:yt(at,14,1.43,.15),button:yt(ot,14,1.75,.4,caseAllCaps),caption:yt(at,12,1.66,.4),overline:yt(at,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends({htmlFontSize:ut,pxToRem:pt,fontFamily:nt,fontSize:it,fontWeightLight:st,fontWeightRegular:at,fontWeightMedium:ot,fontWeightBold:lt},$t),gt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...et){return[`${et[0]}px ${et[1]}px ${et[2]}px ${et[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${et[4]}px ${et[5]}px ${et[6]}px ${et[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${et[8]}px ${et[9]}px ${et[10]}px ${et[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$7=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(et){return`${Math.round(et)}ms`}function getAutoHeightDuration(et){if(!et)return 0;const tt=et/36;return Math.round((4+15*tt**.25+tt/5)*10)}function createTransitions(et){const tt=_extends({},easing,et.easing),rt=_extends({},duration,et.duration);return _extends({getAutoHeightDuration,create:(it=["all"],st={})=>{const{duration:at=rt.standard,easing:ot=tt.easeInOut,delay:lt=0}=st;return _objectWithoutPropertiesLoose(st,_excluded$7),(Array.isArray(it)?it:[it]).map(ut=>`${ut} ${typeof at=="string"?at:formatMs(at)} ${ot} ${typeof lt=="string"?lt:formatMs(lt)}`).join(",")}},et,{easing:tt,duration:rt})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(et={},...tt){const{mixins:rt={},palette:nt={},transitions:it={},typography:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$6);if(et.vars)throw new Error(formatMuiErrorMessage(18));const ot=createPalette(nt),lt=createTheme$1(et);let ut=deepmerge(lt,{mixins:createMixins(lt.breakpoints,rt),palette:ot,shadows:shadows$1.slice(),typography:createTypography(ot,st),transitions:createTransitions(it),zIndex:_extends({},zIndex$1)});return ut=deepmerge(ut,at),ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useTheme(){const et=useTheme$2(defaultTheme$1);return et[THEME_ID]||et}function useThemeProps({props:et,name:tt}){return useThemeProps$1({props:et,name:tt,defaultTheme:defaultTheme$1,themeId:THEME_ID})}const rootShouldForwardProp=et=>shouldForwardProp(et)&&et!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled,_excluded$5=["theme"];function ThemeProvider(et){let{theme:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$5);const nt=tt[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends({},rt,{themeId:nt?THEME_ID:void 0,theme:nt||tt}))}function r$3(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{if(!ot&<!=null){const yt=setTimeout(lt,ut);return()=>{clearTimeout(yt)}}},[lt,ot,ut]),jsxRuntimeExports.jsx("span",{className:gt,style:kt,children:jsxRuntimeExports.jsx("span",{className:pt})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),touchRippleClasses$1=touchRippleClasses,_excluded$4=["center","classes","className"];let _$2=et=>et,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$2` 0% { transform: scale(0); opacity: 0.1; @@ -343,7 +343,7 @@ PROCEED WITH CAUTION! animation-iteration-count: infinite; animation-delay: 200ms; } -`),touchRippleClasses$1.rippleVisible,enterKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.ripplePulsate,({theme:et})=>et.transitions.duration.shorter,touchRippleClasses$1.child,touchRippleClasses$1.childLeaving,exitKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.childPulsate,pulsateKeyframe,({theme:et})=>et.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiTouchRipple"}),{center:it=!1,classes:st={},className:at}=nt,ot=_objectWithoutPropertiesLoose(nt,_excluded$4),[lt,ut]=reactExports.useState([]),dt=reactExports.useRef(0),bt=reactExports.useRef(null);reactExports.useEffect(()=>{bt.current&&(bt.current(),bt.current=null)},[lt]);const gt=reactExports.useRef(!1),kt=reactExports.useRef(0),pt=reactExports.useRef(null),yt=reactExports.useRef(null);reactExports.useEffect(()=>()=>{kt.current&&clearTimeout(kt.current)},[]);const $t=reactExports.useCallback(Bt=>{const{pulsate:Ft,rippleX:Dt,rippleY:zt,rippleSize:Ht,cb:Wt}=Bt;ut(lr=>[...lr,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx$2(st.ripple,touchRippleClasses$1.ripple),rippleVisible:clsx$2(st.rippleVisible,touchRippleClasses$1.rippleVisible),ripplePulsate:clsx$2(st.ripplePulsate,touchRippleClasses$1.ripplePulsate),child:clsx$2(st.child,touchRippleClasses$1.child),childLeaving:clsx$2(st.childLeaving,touchRippleClasses$1.childLeaving),childPulsate:clsx$2(st.childPulsate,touchRippleClasses$1.childPulsate)},timeout:DURATION,pulsate:Ft,rippleX:Dt,rippleY:zt,rippleSize:Ht},dt.current)]),dt.current+=1,bt.current=Wt},[st]),mt=reactExports.useCallback((Bt={},Ft={},Dt=()=>{})=>{const{pulsate:zt=!1,center:Ht=it||Ft.pulsate,fakeElement:Wt=!1}=Ft;if((Bt==null?void 0:Bt.type)==="mousedown"&>.current){gt.current=!1;return}(Bt==null?void 0:Bt.type)==="touchstart"&&(gt.current=!0);const lr=Wt?null:yt.current,qt=lr?lr.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Ot,Mt,ht;if(Ht||Bt===void 0||Bt.clientX===0&&Bt.clientY===0||!Bt.clientX&&!Bt.touches)Ot=Math.round(qt.width/2),Mt=Math.round(qt.height/2);else{const{clientX:Et,clientY:Tt}=Bt.touches&&Bt.touches.length>0?Bt.touches[0]:Bt;Ot=Math.round(Et-qt.left),Mt=Math.round(Tt-qt.top)}if(Ht)ht=Math.sqrt((2*qt.width**2+qt.height**2)/3),ht%2===0&&(ht+=1);else{const Et=Math.max(Math.abs((lr?lr.clientWidth:0)-Ot),Ot)*2+2,Tt=Math.max(Math.abs((lr?lr.clientHeight:0)-Mt),Mt)*2+2;ht=Math.sqrt(Et**2+Tt**2)}Bt!=null&&Bt.touches?pt.current===null&&(pt.current=()=>{$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Dt})},kt.current=setTimeout(()=>{pt.current&&(pt.current(),pt.current=null)},DELAY_RIPPLE)):$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Dt})},[it,$t]),wt=reactExports.useCallback(()=>{mt({},{pulsate:!0})},[mt]),St=reactExports.useCallback((Bt,Ft)=>{if(clearTimeout(kt.current),(Bt==null?void 0:Bt.type)==="touchend"&&pt.current){pt.current(),pt.current=null,kt.current=setTimeout(()=>{St(Bt,Ft)});return}pt.current=null,ut(Dt=>Dt.length>0?Dt.slice(1):Dt),bt.current=Ft},[]);return reactExports.useImperativeHandle(rt,()=>({pulsate:wt,start:mt,stop:St}),[wt,mt,St]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends({className:clsx$2(touchRippleClasses$1.root,st.root,at),ref:yt},ot,{children:jsxRuntimeExports.jsx(TransitionGroup$1,{component:null,exit:!0,children:lt})}))}),TouchRipple$1=TouchRipple;function getButtonBaseUtilityClass(et){return generateUtilityClass("MuiButtonBase",et)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),buttonBaseClasses$1=buttonBaseClasses,_excluded$3=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$2=et=>{const{disabled:tt,focusVisible:rt,focusVisibleClassName:nt,classes:it}=et,at=composeClasses({root:["root",tt&&"disabled",rt&&"focusVisible"]},getButtonBaseUtilityClass,it);return rt&&nt&&(at.root+=` ${nt}`),at},ButtonBaseRoot=styled$1("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses$1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiButtonBase"}),{action:it,centerRipple:st=!1,children:at,className:ot,component:lt="button",disabled:ut=!1,disableRipple:dt=!1,disableTouchRipple:bt=!1,focusRipple:gt=!1,LinkComponent:kt="a",onBlur:pt,onClick:yt,onContextMenu:$t,onDragLeave:mt,onFocus:wt,onFocusVisible:St,onKeyDown:Bt,onKeyUp:Ft,onMouseDown:Dt,onMouseLeave:zt,onMouseUp:Ht,onTouchEnd:Wt,onTouchMove:lr,onTouchStart:qt,tabIndex:Ot=0,TouchRippleProps:Mt,touchRippleRef:ht,type:Et}=nt,Tt=_objectWithoutPropertiesLoose(nt,_excluded$3),Rt=reactExports.useRef(null),At=reactExports.useRef(null),Pt=useForkRef(At,ht),{isFocusVisibleRef:It,onFocus:Ct,onBlur:xt,ref:Lt}=useIsFocusVisible(),[tr,pr]=reactExports.useState(!1);ut&&tr&&pr(!1),reactExports.useImperativeHandle(it,()=>({focusVisible:()=>{pr(!0),Rt.current.focus()}}),[]);const[Kt,Qt]=reactExports.useState(!1);reactExports.useEffect(()=>{Qt(!0)},[]);const Zt=Kt&&!dt&&!ut;reactExports.useEffect(()=>{tr&>&&!dt&&Kt&&At.current.pulsate()},[dt,gt,tr,Kt]);function ur(Vt,ir,kr=bt){return useEventCallback($r=>(ir&&ir($r),!kr&&At.current&&At.current[Vt]($r),!0))}const _r=ur("start",Dt),er=ur("stop",$t),Jt=ur("stop",mt),Ar=ur("stop",Ht),Er=ur("stop",Vt=>{tr&&Vt.preventDefault(),zt&&zt(Vt)}),Dr=ur("start",qt),Xr=ur("stop",Wt),Vr=ur("stop",lr),wr=ur("stop",Vt=>{xt(Vt),It.current===!1&&pr(!1),pt&&pt(Vt)},!1),br=useEventCallback(Vt=>{Rt.current||(Rt.current=Vt.currentTarget),Ct(Vt),It.current===!0&&(pr(!0),St&&St(Vt)),wt&&wt(Vt)}),or=()=>{const Vt=Rt.current;return lt&<!=="button"&&!(Vt.tagName==="A"&&Vt.href)},xr=reactExports.useRef(!1),Pr=useEventCallback(Vt=>{gt&&!xr.current&&tr&&At.current&&Vt.key===" "&&(xr.current=!0,At.current.stop(Vt,()=>{At.current.start(Vt)})),Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&Vt.preventDefault(),Bt&&Bt(Vt),Vt.target===Vt.currentTarget&&or()&&Vt.key==="Enter"&&!ut&&(Vt.preventDefault(),yt&&yt(Vt))}),Or=useEventCallback(Vt=>{gt&&Vt.key===" "&&At.current&&tr&&!Vt.defaultPrevented&&(xr.current=!1,At.current.stop(Vt,()=>{At.current.pulsate(Vt)})),Ft&&Ft(Vt),yt&&Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&!Vt.defaultPrevented&&yt(Vt)});let rr=lt;rr==="button"&&(Tt.href||Tt.to)&&(rr=kt);const gr={};rr==="button"?(gr.type=Et===void 0?"button":Et,gr.disabled=ut):(!Tt.href&&!Tt.to&&(gr.role="button"),ut&&(gr["aria-disabled"]=ut));const Ir=useForkRef(rt,Lt,Rt),Yt=_extends({},nt,{centerRipple:st,component:lt,disabled:ut,disableRipple:dt,disableTouchRipple:bt,focusRipple:gt,tabIndex:Ot,focusVisible:tr}),Ut=useUtilityClasses$2(Yt);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends({as:rr,className:clsx$2(Ut.root,ot),ownerState:Yt,onBlur:wr,onClick:yt,onContextMenu:er,onFocus:br,onKeyDown:Pr,onKeyUp:Or,onMouseDown:_r,onMouseLeave:Er,onMouseUp:Ar,onDragLeave:Jt,onTouchEnd:Xr,onTouchMove:Vr,onTouchStart:Dr,ref:Ir,tabIndex:ut?-1:Ot,type:Et},gr,Tt,{children:[at,Zt?jsxRuntimeExports.jsx(TouchRipple$1,_extends({ref:Pt,center:st},Mt)):null]}))}),ButtonBase$1=ButtonBase;function getButtonUtilityClass(et){return generateUtilityClass("MuiButton",et)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),buttonClasses$1=buttonClasses,ButtonGroupContext=reactExports.createContext({}),ButtonGroupContext$1=ButtonGroupContext,ButtonGroupButtonContext=reactExports.createContext(void 0),ButtonGroupButtonContext$1=ButtonGroupButtonContext,_excluded$2=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$1=et=>{const{color:tt,disableElevation:rt,fullWidth:nt,size:it,variant:st,classes:at}=et,ot={root:["root",st,`${st}${capitalize(tt)}`,`size${capitalize(it)}`,`${st}Size${capitalize(it)}`,tt==="inherit"&&"colorInherit",rt&&"disableElevation",nt&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${capitalize(it)}`],endIcon:["endIcon",`iconSize${capitalize(it)}`]},lt=composeClasses(ot,getButtonUtilityClass,at);return _extends({},at,lt)},commonIconStyles=et=>_extends({},et.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},et.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},et.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled$1(ButtonBase$1,{shouldForwardProp:et=>rootShouldForwardProp(et)||et==="classes",name:"MuiButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`${rt.variant}${capitalize(rt.color)}`],tt[`size${capitalize(rt.size)}`],tt[`${rt.variant}Size${capitalize(rt.size)}`],rt.color==="inherit"&&tt.colorInherit,rt.disableElevation&&tt.disableElevation,rt.fullWidth&&tt.fullWidth]}})(({theme:et,ownerState:tt})=>{var rt,nt;const it=et.palette.mode==="light"?et.palette.grey[300]:et.palette.grey[800],st=et.palette.mode==="light"?et.palette.grey.A100:et.palette.grey[700];return _extends({},et.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create(["background-color","box-shadow","border-color","color"],{duration:et.transitions.duration.short}),"&:hover":_extends({textDecoration:"none",backgroundColor:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette.text.primary,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="text"&&tt.color!=="inherit"&&{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="outlined"&&tt.color!=="inherit"&&{border:`1px solid ${(et.vars||et).palette[tt.color].main}`,backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="contained"&&{backgroundColor:et.vars?et.vars.palette.Button.inheritContainedHoverBg:st,boxShadow:(et.vars||et).shadows[4],"@media (hover: none)":{boxShadow:(et.vars||et).shadows[2],backgroundColor:(et.vars||et).palette.grey[300]}},tt.variant==="contained"&&tt.color!=="inherit"&&{backgroundColor:(et.vars||et).palette[tt.color].dark,"@media (hover: none)":{backgroundColor:(et.vars||et).palette[tt.color].main}}),"&:active":_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[8]}),[`&.${buttonClasses$1.focusVisible}`]:_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[6]}),[`&.${buttonClasses$1.disabled}`]:_extends({color:(et.vars||et).palette.action.disabled},tt.variant==="outlined"&&{border:`1px solid ${(et.vars||et).palette.action.disabledBackground}`},tt.variant==="contained"&&{color:(et.vars||et).palette.action.disabled,boxShadow:(et.vars||et).shadows[0],backgroundColor:(et.vars||et).palette.action.disabledBackground})},tt.variant==="text"&&{padding:"6px 8px"},tt.variant==="text"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main},tt.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},tt.variant==="outlined"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main,border:et.vars?`1px solid rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:`1px solid ${alpha(et.palette[tt.color].main,.5)}`},tt.variant==="contained"&&{color:et.vars?et.vars.palette.text.primary:(rt=(nt=et.palette).getContrastText)==null?void 0:rt.call(nt,et.palette.grey[300]),backgroundColor:et.vars?et.vars.palette.Button.inheritContainedBg:it,boxShadow:(et.vars||et).shadows[2]},tt.variant==="contained"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].contrastText,backgroundColor:(et.vars||et).palette[tt.color].main},tt.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},tt.size==="small"&&tt.variant==="text"&&{padding:"4px 5px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="text"&&{padding:"8px 11px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="outlined"&&{padding:"3px 9px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="outlined"&&{padding:"7px 21px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="contained"&&{padding:"4px 10px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="contained"&&{padding:"8px 22px",fontSize:et.typography.pxToRem(15)},tt.fullWidth&&{width:"100%"})},({ownerState:et})=>et.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses$1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses$1.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled$1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.startIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:8,marginLeft:-4},et.size==="small"&&{marginLeft:-2},commonIconStyles(et))),ButtonEndIcon=styled$1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.endIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:-4,marginLeft:8},et.size==="small"&&{marginRight:-2},commonIconStyles(et))),Button=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ButtonGroupContext$1),it=reactExports.useContext(ButtonGroupButtonContext$1),st=resolveProps(nt,tt),at=useThemeProps({props:st,name:"MuiButton"}),{children:ot,color:lt="primary",component:ut="button",className:dt,disabled:bt=!1,disableElevation:gt=!1,disableFocusRipple:kt=!1,endIcon:pt,focusVisibleClassName:yt,fullWidth:$t=!1,size:mt="medium",startIcon:wt,type:St,variant:Bt="text"}=at,Ft=_objectWithoutPropertiesLoose(at,_excluded$2),Dt=_extends({},at,{color:lt,component:ut,disabled:bt,disableElevation:gt,disableFocusRipple:kt,fullWidth:$t,size:mt,type:St,variant:Bt}),zt=useUtilityClasses$1(Dt),Ht=wt&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:zt.startIcon,ownerState:Dt,children:wt}),Wt=pt&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:zt.endIcon,ownerState:Dt,children:pt}),lr=it||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends({ownerState:Dt,className:clsx$2(nt.className,zt.root,dt,lr),component:ut,disabled:bt,focusRipple:!kt,focusVisibleClassName:clsx$2(zt.focusVisible,yt),ref:rt,type:St},Ft,{classes:zt,children:[Ht,ot,Wt]}))}),Button$1=Button;function getLinearProgressUtilityClass(et){return generateUtilityClass("MuiLinearProgress",et)}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$1=["className","color","value","valueBuffer","variant"];let _$1=et=>et,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_$1` +`),touchRippleClasses$1.rippleVisible,enterKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.ripplePulsate,({theme:et})=>et.transitions.duration.shorter,touchRippleClasses$1.child,touchRippleClasses$1.childLeaving,exitKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.childPulsate,pulsateKeyframe,({theme:et})=>et.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiTouchRipple"}),{center:it=!1,classes:st={},className:at}=nt,ot=_objectWithoutPropertiesLoose(nt,_excluded$4),[lt,ut]=reactExports.useState([]),dt=reactExports.useRef(0),bt=reactExports.useRef(null);reactExports.useEffect(()=>{bt.current&&(bt.current(),bt.current=null)},[lt]);const gt=reactExports.useRef(!1),kt=reactExports.useRef(0),pt=reactExports.useRef(null),yt=reactExports.useRef(null);reactExports.useEffect(()=>()=>{kt.current&&clearTimeout(kt.current)},[]);const $t=reactExports.useCallback(Bt=>{const{pulsate:Ft,rippleX:Lt,rippleY:zt,rippleSize:Ht,cb:Wt}=Bt;ut(lr=>[...lr,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx$2(st.ripple,touchRippleClasses$1.ripple),rippleVisible:clsx$2(st.rippleVisible,touchRippleClasses$1.rippleVisible),ripplePulsate:clsx$2(st.ripplePulsate,touchRippleClasses$1.ripplePulsate),child:clsx$2(st.child,touchRippleClasses$1.child),childLeaving:clsx$2(st.childLeaving,touchRippleClasses$1.childLeaving),childPulsate:clsx$2(st.childPulsate,touchRippleClasses$1.childPulsate)},timeout:DURATION,pulsate:Ft,rippleX:Lt,rippleY:zt,rippleSize:Ht},dt.current)]),dt.current+=1,bt.current=Wt},[st]),mt=reactExports.useCallback((Bt={},Ft={},Lt=()=>{})=>{const{pulsate:zt=!1,center:Ht=it||Ft.pulsate,fakeElement:Wt=!1}=Ft;if((Bt==null?void 0:Bt.type)==="mousedown"&>.current){gt.current=!1;return}(Bt==null?void 0:Bt.type)==="touchstart"&&(gt.current=!0);const lr=Wt?null:yt.current,qt=lr?lr.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Ot,Mt,ht;if(Ht||Bt===void 0||Bt.clientX===0&&Bt.clientY===0||!Bt.clientX&&!Bt.touches)Ot=Math.round(qt.width/2),Mt=Math.round(qt.height/2);else{const{clientX:Et,clientY:Tt}=Bt.touches&&Bt.touches.length>0?Bt.touches[0]:Bt;Ot=Math.round(Et-qt.left),Mt=Math.round(Tt-qt.top)}if(Ht)ht=Math.sqrt((2*qt.width**2+qt.height**2)/3),ht%2===0&&(ht+=1);else{const Et=Math.max(Math.abs((lr?lr.clientWidth:0)-Ot),Ot)*2+2,Tt=Math.max(Math.abs((lr?lr.clientHeight:0)-Mt),Mt)*2+2;ht=Math.sqrt(Et**2+Tt**2)}Bt!=null&&Bt.touches?pt.current===null&&(pt.current=()=>{$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Lt})},kt.current=setTimeout(()=>{pt.current&&(pt.current(),pt.current=null)},DELAY_RIPPLE)):$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Lt})},[it,$t]),wt=reactExports.useCallback(()=>{mt({},{pulsate:!0})},[mt]),St=reactExports.useCallback((Bt,Ft)=>{if(clearTimeout(kt.current),(Bt==null?void 0:Bt.type)==="touchend"&&pt.current){pt.current(),pt.current=null,kt.current=setTimeout(()=>{St(Bt,Ft)});return}pt.current=null,ut(Lt=>Lt.length>0?Lt.slice(1):Lt),bt.current=Ft},[]);return reactExports.useImperativeHandle(rt,()=>({pulsate:wt,start:mt,stop:St}),[wt,mt,St]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends({className:clsx$2(touchRippleClasses$1.root,st.root,at),ref:yt},ot,{children:jsxRuntimeExports.jsx(TransitionGroup$1,{component:null,exit:!0,children:lt})}))}),TouchRipple$1=TouchRipple;function getButtonBaseUtilityClass(et){return generateUtilityClass("MuiButtonBase",et)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),buttonBaseClasses$1=buttonBaseClasses,_excluded$3=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$2=et=>{const{disabled:tt,focusVisible:rt,focusVisibleClassName:nt,classes:it}=et,at=composeClasses({root:["root",tt&&"disabled",rt&&"focusVisible"]},getButtonBaseUtilityClass,it);return rt&&nt&&(at.root+=` ${nt}`),at},ButtonBaseRoot=styled$1("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses$1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiButtonBase"}),{action:it,centerRipple:st=!1,children:at,className:ot,component:lt="button",disabled:ut=!1,disableRipple:dt=!1,disableTouchRipple:bt=!1,focusRipple:gt=!1,LinkComponent:kt="a",onBlur:pt,onClick:yt,onContextMenu:$t,onDragLeave:mt,onFocus:wt,onFocusVisible:St,onKeyDown:Bt,onKeyUp:Ft,onMouseDown:Lt,onMouseLeave:zt,onMouseUp:Ht,onTouchEnd:Wt,onTouchMove:lr,onTouchStart:qt,tabIndex:Ot=0,TouchRippleProps:Mt,touchRippleRef:ht,type:Et}=nt,Tt=_objectWithoutPropertiesLoose(nt,_excluded$3),Rt=reactExports.useRef(null),At=reactExports.useRef(null),Pt=useForkRef(At,ht),{isFocusVisibleRef:It,onFocus:Ct,onBlur:xt,ref:Dt}=useIsFocusVisible(),[tr,pr]=reactExports.useState(!1);ut&&tr&&pr(!1),reactExports.useImperativeHandle(it,()=>({focusVisible:()=>{pr(!0),Rt.current.focus()}}),[]);const[Kt,Qt]=reactExports.useState(!1);reactExports.useEffect(()=>{Qt(!0)},[]);const Zt=Kt&&!dt&&!ut;reactExports.useEffect(()=>{tr&>&&!dt&&Kt&&At.current.pulsate()},[dt,gt,tr,Kt]);function ur(Vt,ir,kr=bt){return useEventCallback($r=>(ir&&ir($r),!kr&&At.current&&At.current[Vt]($r),!0))}const _r=ur("start",Lt),er=ur("stop",$t),Jt=ur("stop",mt),Ar=ur("stop",Ht),Er=ur("stop",Vt=>{tr&&Vt.preventDefault(),zt&&zt(Vt)}),Dr=ur("start",qt),Xr=ur("stop",Wt),Vr=ur("stop",lr),wr=ur("stop",Vt=>{xt(Vt),It.current===!1&&pr(!1),pt&&pt(Vt)},!1),br=useEventCallback(Vt=>{Rt.current||(Rt.current=Vt.currentTarget),Ct(Vt),It.current===!0&&(pr(!0),St&&St(Vt)),wt&&wt(Vt)}),or=()=>{const Vt=Rt.current;return lt&<!=="button"&&!(Vt.tagName==="A"&&Vt.href)},xr=reactExports.useRef(!1),Pr=useEventCallback(Vt=>{gt&&!xr.current&&tr&&At.current&&Vt.key===" "&&(xr.current=!0,At.current.stop(Vt,()=>{At.current.start(Vt)})),Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&Vt.preventDefault(),Bt&&Bt(Vt),Vt.target===Vt.currentTarget&&or()&&Vt.key==="Enter"&&!ut&&(Vt.preventDefault(),yt&&yt(Vt))}),Or=useEventCallback(Vt=>{gt&&Vt.key===" "&&At.current&&tr&&!Vt.defaultPrevented&&(xr.current=!1,At.current.stop(Vt,()=>{At.current.pulsate(Vt)})),Ft&&Ft(Vt),yt&&Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&!Vt.defaultPrevented&&yt(Vt)});let rr=lt;rr==="button"&&(Tt.href||Tt.to)&&(rr=kt);const gr={};rr==="button"?(gr.type=Et===void 0?"button":Et,gr.disabled=ut):(!Tt.href&&!Tt.to&&(gr.role="button"),ut&&(gr["aria-disabled"]=ut));const Ir=useForkRef(rt,Dt,Rt),Yt=_extends({},nt,{centerRipple:st,component:lt,disabled:ut,disableRipple:dt,disableTouchRipple:bt,focusRipple:gt,tabIndex:Ot,focusVisible:tr}),Ut=useUtilityClasses$2(Yt);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends({as:rr,className:clsx$2(Ut.root,ot),ownerState:Yt,onBlur:wr,onClick:yt,onContextMenu:er,onFocus:br,onKeyDown:Pr,onKeyUp:Or,onMouseDown:_r,onMouseLeave:Er,onMouseUp:Ar,onDragLeave:Jt,onTouchEnd:Xr,onTouchMove:Vr,onTouchStart:Dr,ref:Ir,tabIndex:ut?-1:Ot,type:Et},gr,Tt,{children:[at,Zt?jsxRuntimeExports.jsx(TouchRipple$1,_extends({ref:Pt,center:st},Mt)):null]}))}),ButtonBase$1=ButtonBase;function getButtonUtilityClass(et){return generateUtilityClass("MuiButton",et)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),buttonClasses$1=buttonClasses,ButtonGroupContext=reactExports.createContext({}),ButtonGroupContext$1=ButtonGroupContext,ButtonGroupButtonContext=reactExports.createContext(void 0),ButtonGroupButtonContext$1=ButtonGroupButtonContext,_excluded$2=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$1=et=>{const{color:tt,disableElevation:rt,fullWidth:nt,size:it,variant:st,classes:at}=et,ot={root:["root",st,`${st}${capitalize(tt)}`,`size${capitalize(it)}`,`${st}Size${capitalize(it)}`,tt==="inherit"&&"colorInherit",rt&&"disableElevation",nt&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${capitalize(it)}`],endIcon:["endIcon",`iconSize${capitalize(it)}`]},lt=composeClasses(ot,getButtonUtilityClass,at);return _extends({},at,lt)},commonIconStyles=et=>_extends({},et.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},et.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},et.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled$1(ButtonBase$1,{shouldForwardProp:et=>rootShouldForwardProp(et)||et==="classes",name:"MuiButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`${rt.variant}${capitalize(rt.color)}`],tt[`size${capitalize(rt.size)}`],tt[`${rt.variant}Size${capitalize(rt.size)}`],rt.color==="inherit"&&tt.colorInherit,rt.disableElevation&&tt.disableElevation,rt.fullWidth&&tt.fullWidth]}})(({theme:et,ownerState:tt})=>{var rt,nt;const it=et.palette.mode==="light"?et.palette.grey[300]:et.palette.grey[800],st=et.palette.mode==="light"?et.palette.grey.A100:et.palette.grey[700];return _extends({},et.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create(["background-color","box-shadow","border-color","color"],{duration:et.transitions.duration.short}),"&:hover":_extends({textDecoration:"none",backgroundColor:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette.text.primary,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="text"&&tt.color!=="inherit"&&{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="outlined"&&tt.color!=="inherit"&&{border:`1px solid ${(et.vars||et).palette[tt.color].main}`,backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="contained"&&{backgroundColor:et.vars?et.vars.palette.Button.inheritContainedHoverBg:st,boxShadow:(et.vars||et).shadows[4],"@media (hover: none)":{boxShadow:(et.vars||et).shadows[2],backgroundColor:(et.vars||et).palette.grey[300]}},tt.variant==="contained"&&tt.color!=="inherit"&&{backgroundColor:(et.vars||et).palette[tt.color].dark,"@media (hover: none)":{backgroundColor:(et.vars||et).palette[tt.color].main}}),"&:active":_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[8]}),[`&.${buttonClasses$1.focusVisible}`]:_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[6]}),[`&.${buttonClasses$1.disabled}`]:_extends({color:(et.vars||et).palette.action.disabled},tt.variant==="outlined"&&{border:`1px solid ${(et.vars||et).palette.action.disabledBackground}`},tt.variant==="contained"&&{color:(et.vars||et).palette.action.disabled,boxShadow:(et.vars||et).shadows[0],backgroundColor:(et.vars||et).palette.action.disabledBackground})},tt.variant==="text"&&{padding:"6px 8px"},tt.variant==="text"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main},tt.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},tt.variant==="outlined"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main,border:et.vars?`1px solid rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:`1px solid ${alpha(et.palette[tt.color].main,.5)}`},tt.variant==="contained"&&{color:et.vars?et.vars.palette.text.primary:(rt=(nt=et.palette).getContrastText)==null?void 0:rt.call(nt,et.palette.grey[300]),backgroundColor:et.vars?et.vars.palette.Button.inheritContainedBg:it,boxShadow:(et.vars||et).shadows[2]},tt.variant==="contained"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].contrastText,backgroundColor:(et.vars||et).palette[tt.color].main},tt.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},tt.size==="small"&&tt.variant==="text"&&{padding:"4px 5px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="text"&&{padding:"8px 11px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="outlined"&&{padding:"3px 9px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="outlined"&&{padding:"7px 21px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="contained"&&{padding:"4px 10px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="contained"&&{padding:"8px 22px",fontSize:et.typography.pxToRem(15)},tt.fullWidth&&{width:"100%"})},({ownerState:et})=>et.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses$1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses$1.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled$1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.startIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:8,marginLeft:-4},et.size==="small"&&{marginLeft:-2},commonIconStyles(et))),ButtonEndIcon=styled$1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.endIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:-4,marginLeft:8},et.size==="small"&&{marginRight:-2},commonIconStyles(et))),Button=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ButtonGroupContext$1),it=reactExports.useContext(ButtonGroupButtonContext$1),st=resolveProps(nt,tt),at=useThemeProps({props:st,name:"MuiButton"}),{children:ot,color:lt="primary",component:ut="button",className:dt,disabled:bt=!1,disableElevation:gt=!1,disableFocusRipple:kt=!1,endIcon:pt,focusVisibleClassName:yt,fullWidth:$t=!1,size:mt="medium",startIcon:wt,type:St,variant:Bt="text"}=at,Ft=_objectWithoutPropertiesLoose(at,_excluded$2),Lt=_extends({},at,{color:lt,component:ut,disabled:bt,disableElevation:gt,disableFocusRipple:kt,fullWidth:$t,size:mt,type:St,variant:Bt}),zt=useUtilityClasses$1(Lt),Ht=wt&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:zt.startIcon,ownerState:Lt,children:wt}),Wt=pt&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:zt.endIcon,ownerState:Lt,children:pt}),lr=it||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends({ownerState:Lt,className:clsx$2(nt.className,zt.root,dt,lr),component:ut,disabled:bt,focusRipple:!kt,focusVisibleClassName:clsx$2(zt.focusVisible,yt),ref:rt,type:St},Ft,{classes:zt,children:[Ht,ot,Wt]}))}),Button$1=Button;function getLinearProgressUtilityClass(et){return generateUtilityClass("MuiLinearProgress",et)}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$1=["className","color","value","valueBuffer","variant"];let _$1=et=>et,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_$1` 0% { left: -35%; right: 100%; @@ -478,7 +478,7 @@ PROCEED WITH CAUTION! ${style} ${({color:et="primaryText1"})=>`color: ${colors[et]};`} -`;var isCheckBoxInput=et=>et.type==="checkbox",isDateObject=et=>et instanceof Date,isNullOrUndefined=et=>et==null;const isObjectType=et=>typeof et=="object";var isObject=et=>!isNullOrUndefined(et)&&!Array.isArray(et)&&isObjectType(et)&&!isDateObject(et),getEventValue=et=>isObject(et)&&et.target?isCheckBoxInput(et.target)?et.target.checked:et.target.value:et,getNodeParentName=et=>et.substring(0,et.search(/\.\d+(\.|$)/))||et,isNameInFieldArray=(et,tt)=>et.has(getNodeParentName(tt)),isPlainObject=et=>{const tt=et.constructor&&et.constructor.prototype;return isObject(tt)&&tt.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(et){let tt;const rt=Array.isArray(et);if(et instanceof Date)tt=new Date(et);else if(et instanceof Set)tt=new Set(et);else if(!(isWeb&&(et instanceof Blob||et instanceof FileList))&&(rt||isObject(et)))if(tt=rt?[]:{},!rt&&!isPlainObject(et))tt=et;else for(const nt in et)et.hasOwnProperty(nt)&&(tt[nt]=cloneObject(et[nt]));else return et;return tt}var compact=et=>Array.isArray(et)?et.filter(Boolean):[],isUndefined=et=>et===void 0,get=(et,tt,rt)=>{if(!tt||!isObject(et))return rt;const nt=compact(tt.split(/[,[\].]+?/)).reduce((it,st)=>isNullOrUndefined(it)?it:it[st],et);return isUndefined(nt)||nt===et?isUndefined(et[tt])?rt:et[tt]:nt},isBoolean=et=>typeof et=="boolean";const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React.createContext(null),useFormContext=()=>React.useContext(HookFormContext),FormProvider=et=>{const{children:tt,...rt}=et;return React.createElement(HookFormContext.Provider,{value:rt},tt)};var getProxyFormState=(et,tt,rt,nt=!0)=>{const it={defaultValues:tt._defaultValues};for(const st in et)Object.defineProperty(it,st,{get:()=>{const at=st;return tt._proxyFormState[at]!==VALIDATION_MODE.all&&(tt._proxyFormState[at]=!nt||VALIDATION_MODE.all),rt&&(rt[at]=!0),et[at]}});return it},isEmptyObject=et=>isObject(et)&&!Object.keys(et).length,shouldRenderFormState=(et,tt,rt,nt)=>{rt(et);const{name:it,...st}=et;return isEmptyObject(st)||Object.keys(st).length>=Object.keys(tt).length||Object.keys(st).find(at=>tt[at]===(!nt||VALIDATION_MODE.all))},convertToArrayPayload=et=>Array.isArray(et)?et:[et],shouldSubscribeByName=(et,tt,rt)=>!et||!tt||et===tt||convertToArrayPayload(et).some(nt=>nt&&(rt?nt===tt:nt.startsWith(tt)||tt.startsWith(nt)));function useSubscribe(et){const tt=React.useRef(et);tt.current=et,React.useEffect(()=>{const rt=!et.disabled&&tt.current.subject&&tt.current.subject.subscribe({next:tt.current.next});return()=>{rt&&rt.unsubscribe()}},[et.disabled])}function useFormState(et){const tt=useFormContext(),{control:rt=tt.control,disabled:nt,name:it,exact:st}=et||{},[at,ot]=React.useState(rt._formState),lt=React.useRef(!0),ut=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),dt=React.useRef(it);return dt.current=it,useSubscribe({disabled:nt,next:bt=>lt.current&&shouldSubscribeByName(dt.current,bt.name,st)&&shouldRenderFormState(bt,ut.current,rt._updateFormState)&&ot({...rt._formState,...bt}),subject:rt._subjects.state}),React.useEffect(()=>(lt.current=!0,ut.current.isValid&&rt._updateValid(!0),()=>{lt.current=!1}),[rt]),getProxyFormState(at,rt,ut.current,!1)}var isString=et=>typeof et=="string",generateWatchOutput=(et,tt,rt,nt,it)=>isString(et)?(nt&&tt.watch.add(et),get(rt,et,it)):Array.isArray(et)?et.map(st=>(nt&&tt.watch.add(st),get(rt,st))):(nt&&(tt.watchAll=!0),rt);function useWatch(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,defaultValue:it,disabled:st,exact:at}=et||{},ot=React.useRef(nt);ot.current=nt,useSubscribe({disabled:st,subject:rt._subjects.values,next:dt=>{shouldSubscribeByName(ot.current,dt.name,at)&&ut(cloneObject(generateWatchOutput(ot.current,rt._names,dt.values||rt._formValues,!1,it)))}});const[lt,ut]=React.useState(rt._getWatch(nt,it));return React.useEffect(()=>rt._removeUnmounted()),lt}var isKey=et=>/^\w*$/.test(et),stringToPath=et=>compact(et.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(et,tt,rt)=>{let nt=-1;const it=isKey(tt)?[tt]:stringToPath(tt),st=it.length,at=st-1;for(;++nt{const dt=it._options.shouldUnregister||st,bt=(gt,kt)=>{const pt=get(it._fields,gt);pt&&(pt._f.mount=kt)};if(bt(rt,!0),dt){const gt=cloneObject(get(it._options.defaultValues,rt));set(it._defaultValues,rt,gt),isUndefined(get(it._formValues,rt))&&set(it._formValues,rt,gt)}return()=>{(at?dt&&!it._state.action:dt)?it.unregister(rt):bt(rt,!1)}},[rt,it,at,st]),React.useEffect(()=>{get(it._fields,rt)&&it._updateDisabledField({disabled:nt,fields:it._fields,name:rt,value:get(it._fields,rt)._f.value})},[nt,rt,it]),{field:{name:rt,value:ot,...isBoolean(nt)||isBoolean(lt.disabled)?{disabled:lt.disabled||nt}:{},onChange:React.useCallback(dt=>ut.current.onChange({target:{value:getEventValue(dt),name:rt},type:EVENTS.CHANGE}),[rt]),onBlur:React.useCallback(()=>ut.current.onBlur({target:{value:get(it._formValues,rt),name:rt},type:EVENTS.BLUR}),[rt,it]),ref:dt=>{const bt=get(it._fields,rt);bt&&dt&&(bt._f.ref={focus:()=>dt.focus(),select:()=>dt.select(),setCustomValidity:gt=>dt.setCustomValidity(gt),reportValidity:()=>dt.reportValidity()})}},formState:lt,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(lt.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get(lt.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get(lt.touchedFields,rt)},error:{enumerable:!0,get:()=>get(lt.errors,rt)}})}}const Controller=et=>et.render(useController(et));var appendErrors=(et,tt,rt,nt,it)=>tt?{...rt[et],types:{...rt[et]&&rt[et].types?rt[et].types:{},[nt]:it||!0}}:{},generateId=()=>{const et=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,tt=>{const rt=(Math.random()*16+et)%16|0;return(tt=="x"?rt:rt&3|8).toString(16)})},getFocusFieldName=(et,tt,rt={})=>rt.shouldFocus||isUndefined(rt.shouldFocus)?rt.focusName||`${et}.${isUndefined(rt.focusIndex)?tt:rt.focusIndex}.`:"",getValidationModes=et=>({isOnSubmit:!et||et===VALIDATION_MODE.onSubmit,isOnBlur:et===VALIDATION_MODE.onBlur,isOnChange:et===VALIDATION_MODE.onChange,isOnAll:et===VALIDATION_MODE.all,isOnTouch:et===VALIDATION_MODE.onTouched}),isWatched=(et,tt,rt)=>!rt&&(tt.watchAll||tt.watch.has(et)||[...tt.watch].some(nt=>et.startsWith(nt)&&/^\.\w+/.test(et.slice(nt.length))));const iterateFieldsByAction=(et,tt,rt,nt)=>{for(const it of rt||Object.keys(et)){const st=get(et,it);if(st){const{_f:at,...ot}=st;if(at){if(at.refs&&at.refs[0]&&tt(at.refs[0],it)&&!nt)break;if(at.ref&&tt(at.ref,at.name)&&!nt)break;iterateFieldsByAction(ot,tt)}else isObject(ot)&&iterateFieldsByAction(ot,tt)}}};var updateFieldArrayRootError=(et,tt,rt)=>{const nt=compact(get(et,rt));return set(nt,"root",tt[rt]),set(et,rt,nt),et},isFileInput=et=>et.type==="file",isFunction=et=>typeof et=="function",isHTMLElement=et=>{if(!isWeb)return!1;const tt=et?et.ownerDocument:0;return et instanceof(tt&&tt.defaultView?tt.defaultView.HTMLElement:HTMLElement)},isMessage=et=>isString(et),isRadioInput=et=>et.type==="radio",isRegex=et=>et instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=et=>{if(Array.isArray(et)){if(et.length>1){const tt=et.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:tt,isValid:!!tt.length}}return et[0].checked&&!et[0].disabled?et[0].attributes&&!isUndefined(et[0].attributes.value)?isUndefined(et[0].value)||et[0].value===""?validResult:{value:et[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=et=>Array.isArray(et)?et.reduce((tt,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:tt,defaultReturn):defaultReturn;function getValidateError(et,tt,rt="validate"){if(isMessage(et)||Array.isArray(et)&&et.every(isMessage)||isBoolean(et)&&!et)return{type:rt,message:isMessage(et)?et:"",ref:tt}}var getValueAndMessage=et=>isObject(et)&&!isRegex(et)?et:{value:et,message:""},validateField=async(et,tt,rt,nt,it)=>{const{ref:st,refs:at,required:ot,maxLength:lt,minLength:ut,min:dt,max:bt,pattern:gt,validate:kt,name:pt,valueAsNumber:yt,mount:$t,disabled:mt}=et._f,wt=get(tt,pt);if(!$t||mt)return{};const St=at?at[0]:st,Bt=Ot=>{nt&&St.reportValidity&&(St.setCustomValidity(isBoolean(Ot)?"":Ot||""),St.reportValidity())},Ft={},Dt=isRadioInput(st),zt=isCheckBoxInput(st),Ht=Dt||zt,Wt=(yt||isFileInput(st))&&isUndefined(st.value)&&isUndefined(wt)||isHTMLElement(st)&&st.value===""||wt===""||Array.isArray(wt)&&!wt.length,lr=appendErrors.bind(null,pt,rt,Ft),qt=(Ot,Mt,ht,Et=INPUT_VALIDATION_RULES.maxLength,Tt=INPUT_VALIDATION_RULES.minLength)=>{const Rt=Ot?Mt:ht;Ft[pt]={type:Ot?Et:Tt,message:Rt,ref:st,...lr(Ot?Et:Tt,Rt)}};if(it?!Array.isArray(wt)||!wt.length:ot&&(!Ht&&(Wt||isNullOrUndefined(wt))||isBoolean(wt)&&!wt||zt&&!getCheckboxValue(at).isValid||Dt&&!getRadioValue(at).isValid)){const{value:Ot,message:Mt}=isMessage(ot)?{value:!!ot,message:ot}:getValueAndMessage(ot);if(Ot&&(Ft[pt]={type:INPUT_VALIDATION_RULES.required,message:Mt,ref:St,...lr(INPUT_VALIDATION_RULES.required,Mt)},!rt))return Bt(Mt),Ft}if(!Wt&&(!isNullOrUndefined(dt)||!isNullOrUndefined(bt))){let Ot,Mt;const ht=getValueAndMessage(bt),Et=getValueAndMessage(dt);if(!isNullOrUndefined(wt)&&!isNaN(wt)){const Tt=st.valueAsNumber||wt&&+wt;isNullOrUndefined(ht.value)||(Ot=Tt>ht.value),isNullOrUndefined(Et.value)||(Mt=Ttnew Date(new Date().toDateString()+" "+It),At=st.type=="time",Pt=st.type=="week";isString(ht.value)&&wt&&(Ot=At?Rt(wt)>Rt(ht.value):Pt?wt>ht.value:Tt>new Date(ht.value)),isString(Et.value)&&wt&&(Mt=At?Rt(wt)+Ot.value,Et=!isNullOrUndefined(Mt.value)&&wt.length<+Mt.value;if((ht||Et)&&(qt(ht,Ot.message,Mt.message),!rt))return Bt(Ft[pt].message),Ft}if(gt&&!Wt&&isString(wt)){const{value:Ot,message:Mt}=getValueAndMessage(gt);if(isRegex(Ot)&&!wt.match(Ot)&&(Ft[pt]={type:INPUT_VALIDATION_RULES.pattern,message:Mt,ref:st,...lr(INPUT_VALIDATION_RULES.pattern,Mt)},!rt))return Bt(Mt),Ft}if(kt){if(isFunction(kt)){const Ot=await kt(wt,tt),Mt=getValidateError(Ot,St);if(Mt&&(Ft[pt]={...Mt,...lr(INPUT_VALIDATION_RULES.validate,Mt.message)},!rt))return Bt(Mt.message),Ft}else if(isObject(kt)){let Ot={};for(const Mt in kt){if(!isEmptyObject(Ot)&&!rt)break;const ht=getValidateError(await kt[Mt](wt,tt),St,Mt);ht&&(Ot={...ht,...lr(Mt,ht.message)},Bt(ht.message),rt&&(Ft[pt]=Ot))}if(!isEmptyObject(Ot)&&(Ft[pt]={ref:St,...Ot},!rt))return Ft}}return Bt(!0),Ft},appendAt=(et,tt)=>[...et,...convertToArrayPayload(tt)],fillEmptyArray=et=>Array.isArray(et)?et.map(()=>{}):void 0;function insert(et,tt,rt){return[...et.slice(0,tt),...convertToArrayPayload(rt),...et.slice(tt)]}var moveArrayAt=(et,tt,rt)=>Array.isArray(et)?(isUndefined(et[rt])&&(et[rt]=void 0),et.splice(rt,0,et.splice(tt,1)[0]),et):[],prependAt=(et,tt)=>[...convertToArrayPayload(tt),...convertToArrayPayload(et)];function removeAtIndexes(et,tt){let rt=0;const nt=[...et];for(const it of tt)nt.splice(it-rt,1),rt++;return compact(nt).length?nt:[]}var removeArrayAt=(et,tt)=>isUndefined(tt)?[]:removeAtIndexes(et,convertToArrayPayload(tt).sort((rt,nt)=>rt-nt)),swapArrayAt=(et,tt,rt)=>{[et[tt],et[rt]]=[et[rt],et[tt]]};function baseGet(et,tt){const rt=tt.slice(0,-1).length;let nt=0;for(;nt(et[tt]=rt,et);function useFieldArray(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,keyName:it="id",shouldUnregister:st}=et,[at,ot]=React.useState(rt._getFieldArray(nt)),lt=React.useRef(rt._getFieldArray(nt).map(generateId)),ut=React.useRef(at),dt=React.useRef(nt),bt=React.useRef(!1);dt.current=nt,ut.current=at,rt._names.array.add(nt),et.rules&&rt.register(nt,et.rules),useSubscribe({next:({values:Ft,name:Dt})=>{if(Dt===dt.current||!Dt){const zt=get(Ft,dt.current);Array.isArray(zt)&&(ot(zt),lt.current=zt.map(generateId))}},subject:rt._subjects.array});const gt=React.useCallback(Ft=>{bt.current=!0,rt._updateFieldArray(nt,Ft)},[rt,nt]),kt=(Ft,Dt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=appendAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,Ht.length-1,Dt),lt.current=appendAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,appendAt,{argA:fillEmptyArray(Ft)})},pt=(Ft,Dt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=prependAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,0,Dt),lt.current=prependAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,prependAt,{argA:fillEmptyArray(Ft)})},yt=Ft=>{const Dt=removeArrayAt(rt._getFieldArray(nt),Ft);lt.current=removeArrayAt(lt.current,Ft),gt(Dt),ot(Dt),rt._updateFieldArray(nt,Dt,removeArrayAt,{argA:Ft})},$t=(Ft,Dt,zt)=>{const Ht=convertToArrayPayload(cloneObject(Dt)),Wt=insert(rt._getFieldArray(nt),Ft,Ht);rt._names.focus=getFocusFieldName(nt,Ft,zt),lt.current=insert(lt.current,Ft,Ht.map(generateId)),gt(Wt),ot(Wt),rt._updateFieldArray(nt,Wt,insert,{argA:Ft,argB:fillEmptyArray(Dt)})},mt=(Ft,Dt)=>{const zt=rt._getFieldArray(nt);swapArrayAt(zt,Ft,Dt),swapArrayAt(lt.current,Ft,Dt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,swapArrayAt,{argA:Ft,argB:Dt},!1)},wt=(Ft,Dt)=>{const zt=rt._getFieldArray(nt);moveArrayAt(zt,Ft,Dt),moveArrayAt(lt.current,Ft,Dt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,moveArrayAt,{argA:Ft,argB:Dt},!1)},St=(Ft,Dt)=>{const zt=cloneObject(Dt),Ht=updateAt(rt._getFieldArray(nt),Ft,zt);lt.current=[...Ht].map((Wt,lr)=>!Wt||lr===Ft?generateId():lt.current[lr]),gt(Ht),ot([...Ht]),rt._updateFieldArray(nt,Ht,updateAt,{argA:Ft,argB:zt},!0,!1)},Bt=Ft=>{const Dt=convertToArrayPayload(cloneObject(Ft));lt.current=Dt.map(generateId),gt([...Dt]),ot([...Dt]),rt._updateFieldArray(nt,[...Dt],zt=>zt,{},!0,!1)};return React.useEffect(()=>{if(rt._state.action=!1,isWatched(nt,rt._names)&&rt._subjects.state.next({...rt._formState}),bt.current&&(!getValidationModes(rt._options.mode).isOnSubmit||rt._formState.isSubmitted))if(rt._options.resolver)rt._executeSchema([nt]).then(Ft=>{const Dt=get(Ft.errors,nt),zt=get(rt._formState.errors,nt);(zt?!Dt&&zt.type||Dt&&(zt.type!==Dt.type||zt.message!==Dt.message):Dt&&Dt.type)&&(Dt?set(rt._formState.errors,nt,Dt):unset(rt._formState.errors,nt),rt._subjects.state.next({errors:rt._formState.errors}))});else{const Ft=get(rt._fields,nt);Ft&&Ft._f&&validateField(Ft,rt._formValues,rt._options.criteriaMode===VALIDATION_MODE.all,rt._options.shouldUseNativeValidation,!0).then(Dt=>!isEmptyObject(Dt)&&rt._subjects.state.next({errors:updateFieldArrayRootError(rt._formState.errors,Dt,nt)}))}rt._subjects.values.next({name:nt,values:{...rt._formValues}}),rt._names.focus&&iterateFieldsByAction(rt._fields,(Ft,Dt)=>{if(rt._names.focus&&Dt.startsWith(rt._names.focus)&&Ft.focus)return Ft.focus(),1}),rt._names.focus="",rt._updateValid(),bt.current=!1},[at,nt,rt]),React.useEffect(()=>(!get(rt._formValues,nt)&&rt._updateFieldArray(nt),()=>{(rt._options.shouldUnregister||st)&&rt.unregister(nt)}),[nt,rt,it,st]),{swap:React.useCallback(mt,[gt,nt,rt]),move:React.useCallback(wt,[gt,nt,rt]),prepend:React.useCallback(pt,[gt,nt,rt]),append:React.useCallback(kt,[gt,nt,rt]),remove:React.useCallback(yt,[gt,nt,rt]),insert:React.useCallback($t,[gt,nt,rt]),update:React.useCallback(St,[gt,nt,rt]),replace:React.useCallback(Bt,[gt,nt,rt]),fields:React.useMemo(()=>at.map((Ft,Dt)=>({...Ft,[it]:lt.current[Dt]||generateId()})),[at,it])}}var createSubject=()=>{let et=[];return{get observers(){return et},next:it=>{for(const st of et)st.next&&st.next(it)},subscribe:it=>(et.push(it),{unsubscribe:()=>{et=et.filter(st=>st!==it)}}),unsubscribe:()=>{et=[]}}},isPrimitive=et=>isNullOrUndefined(et)||!isObjectType(et);function deepEqual(et,tt){if(isPrimitive(et)||isPrimitive(tt))return et===tt;if(isDateObject(et)&&isDateObject(tt))return et.getTime()===tt.getTime();const rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(const it of rt){const st=et[it];if(!nt.includes(it))return!1;if(it!=="ref"){const at=tt[it];if(isDateObject(st)&&isDateObject(at)||isObject(st)&&isObject(at)||Array.isArray(st)&&Array.isArray(at)?!deepEqual(st,at):st!==at)return!1}}return!0}var isMultipleSelect=et=>et.type==="select-multiple",isRadioOrCheckbox=et=>isRadioInput(et)||isCheckBoxInput(et),live=et=>isHTMLElement(et)&&et.isConnected,objectHasFunction=et=>{for(const tt in et)if(isFunction(et[tt]))return!0;return!1};function markFieldsDirty(et,tt={}){const rt=Array.isArray(et);if(isObject(et)||rt)for(const nt in et)Array.isArray(et[nt])||isObject(et[nt])&&!objectHasFunction(et[nt])?(tt[nt]=Array.isArray(et[nt])?[]:{},markFieldsDirty(et[nt],tt[nt])):isNullOrUndefined(et[nt])||(tt[nt]=!0);return tt}function getDirtyFieldsFromDefaultValues(et,tt,rt){const nt=Array.isArray(et);if(isObject(et)||nt)for(const it in et)Array.isArray(et[it])||isObject(et[it])&&!objectHasFunction(et[it])?isUndefined(tt)||isPrimitive(rt[it])?rt[it]=Array.isArray(et[it])?markFieldsDirty(et[it],[]):{...markFieldsDirty(et[it])}:getDirtyFieldsFromDefaultValues(et[it],isNullOrUndefined(tt)?{}:tt[it],rt[it]):rt[it]=!deepEqual(et[it],tt[it]);return rt}var getDirtyFields=(et,tt)=>getDirtyFieldsFromDefaultValues(et,tt,markFieldsDirty(tt)),getFieldValueAs=(et,{valueAsNumber:tt,valueAsDate:rt,setValueAs:nt})=>isUndefined(et)?et:tt?et===""?NaN:et&&+et:rt&&isString(et)?new Date(et):nt?nt(et):et;function getFieldValue(et){const tt=et.ref;if(!(et.refs?et.refs.every(rt=>rt.disabled):tt.disabled))return isFileInput(tt)?tt.files:isRadioInput(tt)?getRadioValue(et.refs).value:isMultipleSelect(tt)?[...tt.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(tt)?getCheckboxValue(et.refs).value:getFieldValueAs(isUndefined(tt.value)?et.ref.value:tt.value,et)}var getResolverOptions=(et,tt,rt,nt)=>{const it={};for(const st of et){const at=get(tt,st);at&&set(it,st,at._f)}return{criteriaMode:rt,names:[...et],fields:it,shouldUseNativeValidation:nt}},getRuleValue=et=>isUndefined(et)?et:isRegex(et)?et.source:isObject(et)?isRegex(et.value)?et.value.source:et.value:et,hasValidation=et=>et.mount&&(et.required||et.min||et.max||et.maxLength||et.minLength||et.pattern||et.validate);function schemaErrorLookup(et,tt,rt){const nt=get(et,rt);if(nt||isKey(rt))return{error:nt,name:rt};const it=rt.split(".");for(;it.length;){const st=it.join("."),at=get(tt,st),ot=get(et,st);if(at&&!Array.isArray(at)&&rt!==st)return{name:rt};if(ot&&ot.type)return{name:st,error:ot};it.pop()}return{name:rt}}var skipValidation=(et,tt,rt,nt,it)=>it.isOnAll?!1:!rt&&it.isOnTouch?!(tt||et):(rt?nt.isOnBlur:it.isOnBlur)?!et:(rt?nt.isOnChange:it.isOnChange)?et:!0,unsetEmptyArray=(et,tt)=>!compact(get(et,tt)).length&&unset(et,tt);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(et={},tt){let rt={...defaultOptions,...et},nt={submitCount:0,isDirty:!1,isLoading:isFunction(rt.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:rt.errors||{},disabled:!1},it={},st=isObject(rt.defaultValues)||isObject(rt.values)?cloneObject(rt.defaultValues||rt.values)||{}:{},at=rt.shouldUnregister?{}:cloneObject(st),ot={action:!1,mount:!1,watch:!1},lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set},ut,dt=0;const bt={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},gt={values:createSubject(),array:createSubject(),state:createSubject()},kt=et.resetOptions&&et.resetOptions.keepDirtyValues,pt=getValidationModes(rt.mode),yt=getValidationModes(rt.reValidateMode),$t=rt.criteriaMode===VALIDATION_MODE.all,mt=or=>xr=>{clearTimeout(dt),dt=setTimeout(or,xr)},wt=async or=>{if(bt.isValid||or){const xr=rt.resolver?isEmptyObject((await lr()).errors):await Ot(it,!0);xr!==nt.isValid&>.state.next({isValid:xr})}},St=or=>bt.isValidating&>.state.next({isValidating:or}),Bt=(or,xr=[],Pr,Or,rr=!0,gr=!0)=>{if(Or&&Pr){if(ot.action=!0,gr&&Array.isArray(get(it,or))){const Ir=Pr(get(it,or),Or.argA,Or.argB);rr&&set(it,or,Ir)}if(gr&&Array.isArray(get(nt.errors,or))){const Ir=Pr(get(nt.errors,or),Or.argA,Or.argB);rr&&set(nt.errors,or,Ir),unsetEmptyArray(nt.errors,or)}if(bt.touchedFields&&gr&&Array.isArray(get(nt.touchedFields,or))){const Ir=Pr(get(nt.touchedFields,or),Or.argA,Or.argB);rr&&set(nt.touchedFields,or,Ir)}bt.dirtyFields&&(nt.dirtyFields=getDirtyFields(st,at)),gt.state.next({name:or,isDirty:ht(or,xr),dirtyFields:nt.dirtyFields,errors:nt.errors,isValid:nt.isValid})}else set(at,or,xr)},Ft=(or,xr)=>{set(nt.errors,or,xr),gt.state.next({errors:nt.errors})},Dt=or=>{nt.errors=or,gt.state.next({errors:nt.errors,isValid:!1})},zt=(or,xr,Pr,Or)=>{const rr=get(it,or);if(rr){const gr=get(at,or,isUndefined(Pr)?get(st,or):Pr);isUndefined(gr)||Or&&Or.defaultChecked||xr?set(at,or,xr?gr:getFieldValue(rr._f)):Rt(or,gr),ot.mount&&wt()}},Ht=(or,xr,Pr,Or,rr)=>{let gr=!1,Ir=!1;const Yt={name:or},Ut=!!(get(it,or)&&get(it,or)._f.disabled);if(!Pr||Or){bt.isDirty&&(Ir=nt.isDirty,nt.isDirty=Yt.isDirty=ht(),gr=Ir!==Yt.isDirty);const Vt=Ut||deepEqual(get(st,or),xr);Ir=!!(!Ut&&get(nt.dirtyFields,or)),Vt||Ut?unset(nt.dirtyFields,or):set(nt.dirtyFields,or,!0),Yt.dirtyFields=nt.dirtyFields,gr=gr||bt.dirtyFields&&Ir!==!Vt}if(Pr){const Vt=get(nt.touchedFields,or);Vt||(set(nt.touchedFields,or,Pr),Yt.touchedFields=nt.touchedFields,gr=gr||bt.touchedFields&&Vt!==Pr)}return gr&&rr&>.state.next(Yt),gr?Yt:{}},Wt=(or,xr,Pr,Or)=>{const rr=get(nt.errors,or),gr=bt.isValid&&isBoolean(xr)&&nt.isValid!==xr;if(et.delayError&&Pr?(ut=mt(()=>Ft(or,Pr)),ut(et.delayError)):(clearTimeout(dt),ut=null,Pr?set(nt.errors,or,Pr):unset(nt.errors,or)),(Pr?!deepEqual(rr,Pr):rr)||!isEmptyObject(Or)||gr){const Ir={...Or,...gr&&isBoolean(xr)?{isValid:xr}:{},errors:nt.errors,name:or};nt={...nt,...Ir},gt.state.next(Ir)}St(!1)},lr=async or=>rt.resolver(at,rt.context,getResolverOptions(or||lt.mount,it,rt.criteriaMode,rt.shouldUseNativeValidation)),qt=async or=>{const{errors:xr}=await lr(or);if(or)for(const Pr of or){const Or=get(xr,Pr);Or?set(nt.errors,Pr,Or):unset(nt.errors,Pr)}else nt.errors=xr;return xr},Ot=async(or,xr,Pr={valid:!0})=>{for(const Or in or){const rr=or[Or];if(rr){const{_f:gr,...Ir}=rr;if(gr){const Yt=lt.array.has(gr.name),Ut=await validateField(rr,at,$t,rt.shouldUseNativeValidation&&!xr,Yt);if(Ut[gr.name]&&(Pr.valid=!1,xr))break;!xr&&(get(Ut,gr.name)?Yt?updateFieldArrayRootError(nt.errors,Ut,gr.name):set(nt.errors,gr.name,Ut[gr.name]):unset(nt.errors,gr.name))}Ir&&await Ot(Ir,xr,Pr)}}return Pr.valid},Mt=()=>{for(const or of lt.unMount){const xr=get(it,or);xr&&(xr._f.refs?xr._f.refs.every(Pr=>!live(Pr)):!live(xr._f.ref))&&Zt(or)}lt.unMount=new Set},ht=(or,xr)=>(or&&xr&&set(at,or,xr),!deepEqual(Lt(),st)),Et=(or,xr,Pr)=>generateWatchOutput(or,lt,{...ot.mount?at:isUndefined(xr)?st:isString(or)?{[or]:xr}:xr},Pr,xr),Tt=or=>compact(get(ot.mount?at:st,or,et.shouldUnregister?get(st,or,[]):[])),Rt=(or,xr,Pr={})=>{const Or=get(it,or);let rr=xr;if(Or){const gr=Or._f;gr&&(!gr.disabled&&set(at,or,getFieldValueAs(xr,gr)),rr=isHTMLElement(gr.ref)&&isNullOrUndefined(xr)?"":xr,isMultipleSelect(gr.ref)?[...gr.ref.options].forEach(Ir=>Ir.selected=rr.includes(Ir.value)):gr.refs?isCheckBoxInput(gr.ref)?gr.refs.length>1?gr.refs.forEach(Ir=>(!Ir.defaultChecked||!Ir.disabled)&&(Ir.checked=Array.isArray(rr)?!!rr.find(Yt=>Yt===Ir.value):rr===Ir.value)):gr.refs[0]&&(gr.refs[0].checked=!!rr):gr.refs.forEach(Ir=>Ir.checked=Ir.value===rr):isFileInput(gr.ref)?gr.ref.value="":(gr.ref.value=rr,gr.ref.type||gt.values.next({name:or,values:{...at}})))}(Pr.shouldDirty||Pr.shouldTouch)&&Ht(or,rr,Pr.shouldTouch,Pr.shouldDirty,!0),Pr.shouldValidate&&xt(or)},At=(or,xr,Pr)=>{for(const Or in xr){const rr=xr[Or],gr=`${or}.${Or}`,Ir=get(it,gr);(lt.array.has(or)||!isPrimitive(rr)||Ir&&!Ir._f)&&!isDateObject(rr)?At(gr,rr,Pr):Rt(gr,rr,Pr)}},Pt=(or,xr,Pr={})=>{const Or=get(it,or),rr=lt.array.has(or),gr=cloneObject(xr);set(at,or,gr),rr?(gt.array.next({name:or,values:{...at}}),(bt.isDirty||bt.dirtyFields)&&Pr.shouldDirty&>.state.next({name:or,dirtyFields:getDirtyFields(st,at),isDirty:ht(or,gr)})):Or&&!Or._f&&!isNullOrUndefined(gr)?At(or,gr,Pr):Rt(or,gr,Pr),isWatched(or,lt)&>.state.next({...nt}),gt.values.next({name:or,values:{...at}}),!ot.mount&&tt()},It=async or=>{const xr=or.target;let Pr=xr.name,Or=!0;const rr=get(it,Pr),gr=()=>xr.type?getFieldValue(rr._f):getEventValue(or),Ir=Yt=>{Or=Number.isNaN(Yt)||Yt===get(at,Pr,Yt)};if(rr){let Yt,Ut;const Vt=gr(),ir=or.type===EVENTS.BLUR||or.type===EVENTS.FOCUS_OUT,kr=!hasValidation(rr._f)&&!rt.resolver&&!get(nt.errors,Pr)&&!rr._f.deps||skipValidation(ir,get(nt.touchedFields,Pr),nt.isSubmitted,yt,pt),$r=isWatched(Pr,lt,ir);set(at,Pr,Vt),ir?(rr._f.onBlur&&rr._f.onBlur(or),ut&&ut(0)):rr._f.onChange&&rr._f.onChange(or);const Br=Ht(Pr,Vt,ir,!1),an=!isEmptyObject(Br)||$r;if(!ir&>.values.next({name:Pr,type:or.type,values:{...at}}),kr)return bt.isValid&&wt(),an&>.state.next({name:Pr,...$r?{}:Br});if(!ir&&$r&>.state.next({...nt}),St(!0),rt.resolver){const{errors:ln}=await lr([Pr]);if(Ir(Vt),Or){const rn=schemaErrorLookup(nt.errors,it,Pr),kn=schemaErrorLookup(ln,it,rn.name||Pr);Yt=kn.error,Pr=kn.name,Ut=isEmptyObject(ln)}}else Yt=(await validateField(rr,at,$t,rt.shouldUseNativeValidation))[Pr],Ir(Vt),Or&&(Yt?Ut=!1:bt.isValid&&(Ut=await Ot(it,!0)));Or&&(rr._f.deps&&xt(rr._f.deps),Wt(Pr,Ut,Yt,Br))}},Ct=(or,xr)=>{if(get(nt.errors,xr)&&or.focus)return or.focus(),1},xt=async(or,xr={})=>{let Pr,Or;const rr=convertToArrayPayload(or);if(St(!0),rt.resolver){const gr=await qt(isUndefined(or)?or:rr);Pr=isEmptyObject(gr),Or=or?!rr.some(Ir=>get(gr,Ir)):Pr}else or?(Or=(await Promise.all(rr.map(async gr=>{const Ir=get(it,gr);return await Ot(Ir&&Ir._f?{[gr]:Ir}:Ir)}))).every(Boolean),!(!Or&&!nt.isValid)&&wt()):Or=Pr=await Ot(it);return gt.state.next({...!isString(or)||bt.isValid&&Pr!==nt.isValid?{}:{name:or},...rt.resolver||!or?{isValid:Pr}:{},errors:nt.errors,isValidating:!1}),xr.shouldFocus&&!Or&&iterateFieldsByAction(it,Ct,or?rr:lt.mount),Or},Lt=or=>{const xr={...st,...ot.mount?at:{}};return isUndefined(or)?xr:isString(or)?get(xr,or):or.map(Pr=>get(xr,Pr))},tr=(or,xr)=>({invalid:!!get((xr||nt).errors,or),isDirty:!!get((xr||nt).dirtyFields,or),isTouched:!!get((xr||nt).touchedFields,or),error:get((xr||nt).errors,or)}),pr=or=>{or&&convertToArrayPayload(or).forEach(xr=>unset(nt.errors,xr)),gt.state.next({errors:or?nt.errors:{}})},Kt=(or,xr,Pr)=>{const Or=(get(it,or,{_f:{}})._f||{}).ref;set(nt.errors,or,{...xr,ref:Or}),gt.state.next({name:or,errors:nt.errors,isValid:!1}),Pr&&Pr.shouldFocus&&Or&&Or.focus&&Or.focus()},Qt=(or,xr)=>isFunction(or)?gt.values.subscribe({next:Pr=>or(Et(void 0,xr),Pr)}):Et(or,xr,!0),Zt=(or,xr={})=>{for(const Pr of or?convertToArrayPayload(or):lt.mount)lt.mount.delete(Pr),lt.array.delete(Pr),xr.keepValue||(unset(it,Pr),unset(at,Pr)),!xr.keepError&&unset(nt.errors,Pr),!xr.keepDirty&&unset(nt.dirtyFields,Pr),!xr.keepTouched&&unset(nt.touchedFields,Pr),!rt.shouldUnregister&&!xr.keepDefaultValue&&unset(st,Pr);gt.values.next({values:{...at}}),gt.state.next({...nt,...xr.keepDirty?{isDirty:ht()}:{}}),!xr.keepIsValid&&wt()},ur=({disabled:or,name:xr,field:Pr,fields:Or,value:rr})=>{if(isBoolean(or)){const gr=or?void 0:isUndefined(rr)?getFieldValue(Pr?Pr._f:get(Or,xr)._f):rr;set(at,xr,gr),Ht(xr,gr,!1,!1,!0)}},_r=(or,xr={})=>{let Pr=get(it,or);const Or=isBoolean(xr.disabled);return set(it,or,{...Pr||{},_f:{...Pr&&Pr._f?Pr._f:{ref:{name:or}},name:or,mount:!0,...xr}}),lt.mount.add(or),Pr?ur({field:Pr,disabled:xr.disabled,name:or,value:xr.value}):zt(or,!0,xr.value),{...Or?{disabled:xr.disabled}:{},...rt.progressive?{required:!!xr.required,min:getRuleValue(xr.min),max:getRuleValue(xr.max),minLength:getRuleValue(xr.minLength),maxLength:getRuleValue(xr.maxLength),pattern:getRuleValue(xr.pattern)}:{},name:or,onChange:It,onBlur:It,ref:rr=>{if(rr){_r(or,xr),Pr=get(it,or);const gr=isUndefined(rr.value)&&rr.querySelectorAll&&rr.querySelectorAll("input,select,textarea")[0]||rr,Ir=isRadioOrCheckbox(gr),Yt=Pr._f.refs||[];if(Ir?Yt.find(Ut=>Ut===gr):gr===Pr._f.ref)return;set(it,or,{_f:{...Pr._f,...Ir?{refs:[...Yt.filter(live),gr,...Array.isArray(get(st,or))?[{}]:[]],ref:{type:gr.type,name:or}}:{ref:gr}}}),zt(or,!1,void 0,gr)}else Pr=get(it,or,{}),Pr._f&&(Pr._f.mount=!1),(rt.shouldUnregister||xr.shouldUnregister)&&!(isNameInFieldArray(lt.array,or)&&ot.action)&<.unMount.add(or)}}},er=()=>rt.shouldFocusError&&iterateFieldsByAction(it,Ct,lt.mount),Jt=or=>{isBoolean(or)&&(gt.state.next({disabled:or}),iterateFieldsByAction(it,(xr,Pr)=>{let Or=or;const rr=get(it,Pr);rr&&isBoolean(rr._f.disabled)&&(Or||(Or=rr._f.disabled)),xr.disabled=Or},0,!1))},Ar=(or,xr)=>async Pr=>{Pr&&(Pr.preventDefault&&Pr.preventDefault(),Pr.persist&&Pr.persist());let Or=cloneObject(at);if(gt.state.next({isSubmitting:!0}),rt.resolver){const{errors:rr,values:gr}=await lr();nt.errors=rr,Or=gr}else await Ot(it);unset(nt.errors,"root"),isEmptyObject(nt.errors)?(gt.state.next({errors:{}}),await or(Or,Pr)):(xr&&await xr({...nt.errors},Pr),er(),setTimeout(er)),gt.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(nt.errors),submitCount:nt.submitCount+1,errors:nt.errors})},Er=(or,xr={})=>{get(it,or)&&(isUndefined(xr.defaultValue)?Pt(or,get(st,or)):(Pt(or,xr.defaultValue),set(st,or,xr.defaultValue)),xr.keepTouched||unset(nt.touchedFields,or),xr.keepDirty||(unset(nt.dirtyFields,or),nt.isDirty=xr.defaultValue?ht(or,get(st,or)):ht()),xr.keepError||(unset(nt.errors,or),bt.isValid&&wt()),gt.state.next({...nt}))},Dr=(or,xr={})=>{const Pr=or?cloneObject(or):st,Or=cloneObject(Pr),rr=or&&!isEmptyObject(or)?Or:st;if(xr.keepDefaultValues||(st=Pr),!xr.keepValues){if(xr.keepDirtyValues||kt)for(const gr of lt.mount)get(nt.dirtyFields,gr)?set(rr,gr,get(at,gr)):Pt(gr,get(rr,gr));else{if(isWeb&&isUndefined(or))for(const gr of lt.mount){const Ir=get(it,gr);if(Ir&&Ir._f){const Yt=Array.isArray(Ir._f.refs)?Ir._f.refs[0]:Ir._f.ref;if(isHTMLElement(Yt)){const Ut=Yt.closest("form");if(Ut){Ut.reset();break}}}}it={}}at=et.shouldUnregister?xr.keepDefaultValues?cloneObject(st):{}:cloneObject(rr),gt.array.next({values:{...rr}}),gt.values.next({values:{...rr}})}lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!ot.mount&&tt(),ot.mount=!bt.isValid||!!xr.keepIsValid,ot.watch=!!et.shouldUnregister,gt.state.next({submitCount:xr.keepSubmitCount?nt.submitCount:0,isDirty:xr.keepDirty?nt.isDirty:!!(xr.keepDefaultValues&&!deepEqual(or,st)),isSubmitted:xr.keepIsSubmitted?nt.isSubmitted:!1,dirtyFields:xr.keepDirtyValues?nt.dirtyFields:xr.keepDefaultValues&&or?getDirtyFields(st,or):{},touchedFields:xr.keepTouched?nt.touchedFields:{},errors:xr.keepErrors?nt.errors:{},isSubmitSuccessful:xr.keepIsSubmitSuccessful?nt.isSubmitSuccessful:!1,isSubmitting:!1})},Xr=(or,xr)=>Dr(isFunction(or)?or(at):or,xr);return{control:{register:_r,unregister:Zt,getFieldState:tr,handleSubmit:Ar,setError:Kt,_executeSchema:lr,_getWatch:Et,_getDirty:ht,_updateValid:wt,_removeUnmounted:Mt,_updateFieldArray:Bt,_updateDisabledField:ur,_getFieldArray:Tt,_reset:Dr,_resetDefaultValues:()=>isFunction(rt.defaultValues)&&rt.defaultValues().then(or=>{Xr(or,rt.resetOptions),gt.state.next({isLoading:!1})}),_updateFormState:or=>{nt={...nt,...or}},_disableForm:Jt,_subjects:gt,_proxyFormState:bt,_setErrors:Dt,get _fields(){return it},get _formValues(){return at},get _state(){return ot},set _state(or){ot=or},get _defaultValues(){return st},get _names(){return lt},set _names(or){lt=or},get _formState(){return nt},set _formState(or){nt=or},get _options(){return rt},set _options(or){rt={...rt,...or}}},trigger:xt,register:_r,handleSubmit:Ar,watch:Qt,setValue:Pt,getValues:Lt,reset:Xr,resetField:Er,clearErrors:pr,unregister:Zt,setError:Kt,setFocus:(or,xr={})=>{const Pr=get(it,or),Or=Pr&&Pr._f;if(Or){const rr=Or.refs?Or.refs[0]:Or.ref;rr.focus&&(rr.focus(),xr.shouldSelect&&rr.select())}},getFieldState:tr}}function useForm(et={}){const tt=React.useRef(),rt=React.useRef(),[nt,it]=React.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(et.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:et.errors||{},disabled:!1,defaultValues:isFunction(et.defaultValues)?void 0:et.defaultValues});tt.current||(tt.current={...createFormControl(et,()=>it(at=>({...at}))),formState:nt});const st=tt.current.control;return st._options=et,useSubscribe({subject:st._subjects.state,next:at=>{shouldRenderFormState(at,st._proxyFormState,st._updateFormState,!0)&&it({...st._formState})}}),React.useEffect(()=>st._disableForm(et.disabled),[st,et.disabled]),React.useEffect(()=>{if(st._proxyFormState.isDirty){const at=st._getDirty();at!==nt.isDirty&&st._subjects.state.next({isDirty:at})}},[st,nt.isDirty]),React.useEffect(()=>{et.values&&!deepEqual(et.values,rt.current)?(st._reset(et.values,st._options.resetOptions),rt.current=et.values,it(at=>({...at}))):st._resetDefaultValues()},[et.values,st]),React.useEffect(()=>{et.errors&&st._setErrors(et.errors)},[et.errors,st]),React.useEffect(()=>{st._state.mount||(st._updateValid(),st._state.mount=!0),st._state.watch&&(st._state.watch=!1,st._subjects.state.next({...st._formState})),st._removeUnmounted()}),tt.current.formState=getProxyFormState(nt,st),tt.current}var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),__assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(et){for(var tt,rt=1,nt=arguments.length;rttypeof et=="number"&&!isNaN(et),d$1=et=>typeof et=="string",u$1=et=>typeof et=="function",p$1=et=>d$1(et)||u$1(et)?et:null,m$1=et=>reactExports.isValidElement(et)||d$1(et)||u$1(et)||c$1(et);function f$1(et,tt,rt){rt===void 0&&(rt=300);const{scrollHeight:nt,style:it}=et;requestAnimationFrame(()=>{it.minHeight="initial",it.height=nt+"px",it.transition=`all ${rt}ms`,requestAnimationFrame(()=>{it.height="0",it.padding="0",it.margin="0",setTimeout(tt,rt)})})}function g$1(et){let{enter:tt,exit:rt,appendPosition:nt=!1,collapse:it=!0,collapseDuration:st=300}=et;return function(at){let{children:ot,position:lt,preventExitTransition:ut,done:dt,nodeRef:bt,isIn:gt,playToast:kt}=at;const pt=nt?`${tt}--${lt}`:tt,yt=nt?`${rt}--${lt}`:rt,$t=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const mt=bt.current,wt=pt.split(" "),St=Bt=>{Bt.target===bt.current&&(kt(),mt.removeEventListener("animationend",St),mt.removeEventListener("animationcancel",St),$t.current===0&&Bt.type!=="animationcancel"&&mt.classList.remove(...wt))};mt.classList.add(...wt),mt.addEventListener("animationend",St),mt.addEventListener("animationcancel",St)},[]),reactExports.useEffect(()=>{const mt=bt.current,wt=()=>{mt.removeEventListener("animationend",wt),it?f$1(mt,dt,st):dt()};gt||(ut?wt():($t.current=1,mt.className+=` ${yt}`,mt.addEventListener("animationend",wt)))},[gt]),React.createElement(React.Fragment,null,ot)}}function y(et,tt){return et!=null?{content:et.content,containerId:et.props.containerId,id:et.props.toastId,theme:et.props.theme,type:et.props.type,data:et.props.data||{},isLoading:et.props.isLoading,icon:et.props.icon,status:tt}:{}}const v$2=new Map;let h$2=[];const T=new Set,E=et=>T.forEach(tt=>tt(et)),b$1=()=>v$2.size>0;function I(et,tt){var rt;if(tt)return!((rt=v$2.get(tt))==null||!rt.isToastActive(et));let nt=!1;return v$2.forEach(it=>{it.isToastActive(et)&&(nt=!0)}),nt}function _(et,tt){m$1(et)&&(b$1()||h$2.push({content:et,options:tt}),v$2.forEach(rt=>{rt.buildToast(et,tt)}))}function C(et,tt){v$2.forEach(rt=>{tt!=null&&tt!=null&&tt.containerId?(tt==null?void 0:tt.containerId)===rt.id&&rt.toggle(et,tt==null?void 0:tt.id):rt.toggle(et,tt==null?void 0:tt.id)})}function L(et){const{subscribe:tt,getSnapshot:rt,setProps:nt}=reactExports.useRef(function(st){const at=st.containerId||1;return{subscribe(ot){const lt=function(dt,bt,gt){let kt=1,pt=0,yt=[],$t=[],mt=[],wt=bt;const St=new Map,Bt=new Set,Ft=()=>{mt=Array.from(St.values()),Bt.forEach(Ht=>Ht())},Dt=Ht=>{$t=Ht==null?[]:$t.filter(Wt=>Wt!==Ht),Ft()},zt=Ht=>{const{toastId:Wt,onOpen:lr,updateId:qt,children:Ot}=Ht.props,Mt=qt==null;Ht.staleId&&St.delete(Ht.staleId),St.set(Wt,Ht),$t=[...$t,Ht.props.toastId].filter(ht=>ht!==Ht.staleId),Ft(),gt(y(Ht,Mt?"added":"updated")),Mt&&u$1(lr)&&lr(reactExports.isValidElement(Ot)&&Ot.props)};return{id:dt,props:wt,observe:Ht=>(Bt.add(Ht),()=>Bt.delete(Ht)),toggle:(Ht,Wt)=>{St.forEach(lr=>{Wt!=null&&Wt!==lr.props.toastId||u$1(lr.toggle)&&lr.toggle(Ht)})},removeToast:Dt,toasts:St,clearQueue:()=>{pt-=yt.length,yt=[]},buildToast:(Ht,Wt)=>{if((xt=>{let{containerId:Lt,toastId:tr,updateId:pr}=xt;const Kt=Lt?Lt!==dt:dt!==1,Qt=St.has(tr)&&pr==null;return Kt||Qt})(Wt))return;const{toastId:lr,updateId:qt,data:Ot,staleId:Mt,delay:ht}=Wt,Et=()=>{Dt(lr)},Tt=qt==null;Tt&&pt++;const Rt={...wt,style:wt.toastStyle,key:kt++,...Object.fromEntries(Object.entries(Wt).filter(xt=>{let[Lt,tr]=xt;return tr!=null})),toastId:lr,updateId:qt,data:Ot,closeToast:Et,isIn:!1,className:p$1(Wt.className||wt.toastClassName),bodyClassName:p$1(Wt.bodyClassName||wt.bodyClassName),progressClassName:p$1(Wt.progressClassName||wt.progressClassName),autoClose:!Wt.isLoading&&(At=Wt.autoClose,Pt=wt.autoClose,At===!1||c$1(At)&&At>0?At:Pt),deleteToast(){const xt=St.get(lr),{onClose:Lt,children:tr}=xt.props;u$1(Lt)&&Lt(reactExports.isValidElement(tr)&&tr.props),gt(y(xt,"removed")),St.delete(lr),pt--,pt<0&&(pt=0),yt.length>0?zt(yt.shift()):Ft()}};var At,Pt;Rt.closeButton=wt.closeButton,Wt.closeButton===!1||m$1(Wt.closeButton)?Rt.closeButton=Wt.closeButton:Wt.closeButton===!0&&(Rt.closeButton=!m$1(wt.closeButton)||wt.closeButton);let It=Ht;reactExports.isValidElement(Ht)&&!d$1(Ht.type)?It=reactExports.cloneElement(Ht,{closeToast:Et,toastProps:Rt,data:Ot}):u$1(Ht)&&(It=Ht({closeToast:Et,toastProps:Rt,data:Ot}));const Ct={content:It,props:Rt,staleId:Mt};wt.limit&&wt.limit>0&&pt>wt.limit&&Tt?yt.push(Ct):c$1(ht)?setTimeout(()=>{zt(Ct)},ht):zt(Ct)},setProps(Ht){wt=Ht},setToggle:(Ht,Wt)=>{St.get(Ht).toggle=Wt},isToastActive:Ht=>$t.some(Wt=>Wt===Ht),getSnapshot:()=>wt.newestOnTop?mt.reverse():mt}}(at,st,E);v$2.set(at,lt);const ut=lt.observe(ot);return h$2.forEach(dt=>_(dt.content,dt.options)),h$2=[],()=>{ut(),v$2.delete(at)}},setProps(ot){var lt;(lt=v$2.get(at))==null||lt.setProps(ot)},getSnapshot(){var ot;return(ot=v$2.get(at))==null?void 0:ot.getSnapshot()}}}(et)).current;nt(et);const it=reactExports.useSyncExternalStore(tt,rt,rt);return{getToastToRender:function(st){if(!it)return[];const at=new Map;return it.forEach(ot=>{const{position:lt}=ot.props;at.has(lt)||at.set(lt,[]),at.get(lt).push(ot)}),Array.from(at,ot=>st(ot[0],ot[1]))},isToastActive:I,count:it==null?void 0:it.length}}function N(et){const[tt,rt]=reactExports.useState(!1),[nt,it]=reactExports.useState(!1),st=reactExports.useRef(null),at=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:ot,pauseOnHover:lt,closeToast:ut,onClick:dt,closeOnClick:bt}=et;var gt,kt;function pt(){rt(!0)}function yt(){rt(!1)}function $t(St){const Bt=st.current;at.canDrag&&Bt&&(at.didMove=!0,tt&&yt(),at.delta=et.draggableDirection==="x"?St.clientX-at.start:St.clientY-at.start,at.start!==St.clientX&&(at.canCloseOnClick=!1),Bt.style.transform=`translate3d(${et.draggableDirection==="x"?`${at.delta}px, var(--y)`:`0, calc(${at.delta}px + var(--y))`},0)`,Bt.style.opacity=""+(1-Math.abs(at.delta/at.removalDistance)))}function mt(){document.removeEventListener("pointermove",$t),document.removeEventListener("pointerup",mt);const St=st.current;if(at.canDrag&&at.didMove&&St){if(at.canDrag=!1,Math.abs(at.delta)>at.removalDistance)return it(!0),et.closeToast(),void et.collapseAll();St.style.transition="transform 0.2s, opacity 0.2s",St.style.removeProperty("transform"),St.style.removeProperty("opacity")}}(kt=v$2.get((gt={id:et.toastId,containerId:et.containerId,fn:rt}).containerId||1))==null||kt.setToggle(gt.id,gt.fn),reactExports.useEffect(()=>{if(et.pauseOnFocusLoss)return document.hasFocus()||yt(),window.addEventListener("focus",pt),window.addEventListener("blur",yt),()=>{window.removeEventListener("focus",pt),window.removeEventListener("blur",yt)}},[et.pauseOnFocusLoss]);const wt={onPointerDown:function(St){if(et.draggable===!0||et.draggable===St.pointerType){at.didMove=!1,document.addEventListener("pointermove",$t),document.addEventListener("pointerup",mt);const Bt=st.current;at.canCloseOnClick=!0,at.canDrag=!0,Bt.style.transition="none",et.draggableDirection==="x"?(at.start=St.clientX,at.removalDistance=Bt.offsetWidth*(et.draggablePercent/100)):(at.start=St.clientY,at.removalDistance=Bt.offsetHeight*(et.draggablePercent===80?1.5*et.draggablePercent:et.draggablePercent)/100)}},onPointerUp:function(St){const{top:Bt,bottom:Ft,left:Dt,right:zt}=st.current.getBoundingClientRect();St.nativeEvent.type!=="touchend"&&et.pauseOnHover&&St.clientX>=Dt&&St.clientX<=zt&&St.clientY>=Bt&&St.clientY<=Ft?yt():pt()}};return ot&<&&(wt.onMouseEnter=yt,et.stacked||(wt.onMouseLeave=pt)),bt&&(wt.onClick=St=>{dt&&dt(St),at.canCloseOnClick&&ut()}),{playToast:pt,pauseToast:yt,isRunning:tt,preventExitTransition:nt,toastRef:st,eventHandlers:wt}}function $(et){let{delay:tt,isRunning:rt,closeToast:nt,type:it="default",hide:st,className:at,style:ot,controlledProgress:lt,progress:ut,rtl:dt,isIn:bt,theme:gt}=et;const kt=st||lt&&ut===0,pt={...ot,animationDuration:`${tt}ms`,animationPlayState:rt?"running":"paused"};lt&&(pt.transform=`scaleX(${ut})`);const yt=clsx$1("Toastify__progress-bar",lt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${gt}`,`Toastify__progress-bar--${it}`,{"Toastify__progress-bar--rtl":dt}),$t=u$1(at)?at({rtl:dt,type:it,defaultClassName:yt}):clsx$1(yt,at),mt={[lt&&ut>=1?"onTransitionEnd":"onAnimationEnd"]:lt&&ut<1?null:()=>{bt&&nt()}};return React.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":kt},React.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${gt} Toastify__progress-bar--${it}`}),React.createElement("div",{role:"progressbar","aria-hidden":kt?"true":"false","aria-label":"notification timer",className:$t,style:pt,...mt}))}let w$1=1;const k$1=()=>""+w$1++;function P$1(et){return et&&(d$1(et.toastId)||c$1(et.toastId))?et.toastId:k$1()}function M(et,tt){return _(et,tt),tt.toastId}function x(et,tt){return{...tt,type:tt&&tt.type||et,toastId:P$1(tt)}}function A(et){return(tt,rt)=>M(tt,x(et,rt))}function B(et,tt){return M(et,x("default",tt))}B.loading=(et,tt)=>M(et,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...tt})),B.promise=function(et,tt,rt){let nt,{pending:it,error:st,success:at}=tt;it&&(nt=d$1(it)?B.loading(it,rt):B.loading(it.render,{...rt,...it}));const ot={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},lt=(dt,bt,gt)=>{if(bt==null)return void B.dismiss(nt);const kt={type:dt,...ot,...rt,data:gt},pt=d$1(bt)?{render:bt}:bt;return nt?B.update(nt,{...kt,...pt}):B(pt.render,{...kt,...pt}),gt},ut=u$1(et)?et():et;return ut.then(dt=>lt("success",at,dt)).catch(dt=>lt("error",st,dt)),ut},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(et,tt)=>M(et,x("default",{theme:"dark",...tt})),B.dismiss=function(et){(function(tt){var rt;if(b$1()){if(tt==null||d$1(rt=tt)||c$1(rt))v$2.forEach(it=>{it.removeToast(tt)});else if(tt&&("containerId"in tt||"id"in tt)){var nt;(nt=v$2.get(tt.containerId))!=null&&nt.removeToast(tt.id)||v$2.forEach(it=>{it.removeToast(tt.id)})}}else h$2=h$2.filter(it=>tt!=null&&it.options.toastId!==tt)})(et)},B.clearWaitingQueue=function(et){et===void 0&&(et={}),v$2.forEach(tt=>{!tt.props.limit||et.containerId&&tt.id!==et.containerId||tt.clearQueue()})},B.isActive=I,B.update=function(et,tt){tt===void 0&&(tt={});const rt=((nt,it)=>{var st;let{containerId:at}=it;return(st=v$2.get(at||1))==null?void 0:st.toasts.get(nt)})(et,tt);if(rt){const{props:nt,content:it}=rt,st={delay:100,...nt,...tt,toastId:tt.toastId||et,updateId:k$1()};st.toastId!==et&&(st.staleId=et);const at=st.render||it;delete st.render,M(at,st)}},B.done=et=>{B.update(et,{progress:1})},B.onChange=function(et){return T.add(et),()=>{T.delete(et)}},B.play=et=>C(!0,et),B.pause=et=>C(!1,et);const O=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D=et=>{let{theme:tt,type:rt,isLoading:nt,...it}=et;return React.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:tt==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...it})},z={info:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React.createElement("div",{className:"Toastify__spinner"})}},R=et=>{const{isRunning:tt,preventExitTransition:rt,toastRef:nt,eventHandlers:it,playToast:st}=N(et),{closeButton:at,children:ot,autoClose:lt,onClick:ut,type:dt,hideProgressBar:bt,closeToast:gt,transition:kt,position:pt,className:yt,style:$t,bodyClassName:mt,bodyStyle:wt,progressClassName:St,progressStyle:Bt,updateId:Ft,role:Dt,progress:zt,rtl:Ht,toastId:Wt,deleteToast:lr,isIn:qt,isLoading:Ot,closeOnClick:Mt,theme:ht}=et,Et=clsx$1("Toastify__toast",`Toastify__toast-theme--${ht}`,`Toastify__toast--${dt}`,{"Toastify__toast--rtl":Ht},{"Toastify__toast--close-on-click":Mt}),Tt=u$1(yt)?yt({rtl:Ht,position:pt,type:dt,defaultClassName:Et}):clsx$1(Et,yt),Rt=function(Ct){let{theme:xt,type:Lt,isLoading:tr,icon:pr}=Ct,Kt=null;const Qt={theme:xt,type:Lt};return pr===!1||(u$1(pr)?Kt=pr({...Qt,isLoading:tr}):reactExports.isValidElement(pr)?Kt=reactExports.cloneElement(pr,Qt):tr?Kt=z.spinner():(Zt=>Zt in z)(Lt)&&(Kt=z[Lt](Qt))),Kt}(et),At=!!zt||!lt,Pt={closeToast:gt,type:dt,theme:ht};let It=null;return at===!1||(It=u$1(at)?at(Pt):reactExports.isValidElement(at)?reactExports.cloneElement(at,Pt):function(Ct){let{closeToast:xt,theme:Lt,ariaLabel:tr="close"}=Ct;return React.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Lt}`,type:"button",onClick:pr=>{pr.stopPropagation(),xt(pr)},"aria-label":tr},React.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Pt)),React.createElement(kt,{isIn:qt,done:lr,position:pt,preventExitTransition:rt,nodeRef:nt,playToast:st},React.createElement("div",{id:Wt,onClick:ut,"data-in":qt,className:Tt,...it,style:$t,ref:nt},React.createElement("div",{...qt&&{role:Dt},className:u$1(mt)?mt({type:dt}):clsx$1("Toastify__toast-body",mt),style:wt},Rt!=null&&React.createElement("div",{className:clsx$1("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ot})},Rt),React.createElement("div",null,ot)),It,React.createElement($,{...Ft&&!At?{key:`pb-${Ft}`}:{},rtl:Ht,theme:ht,delay:lt,isRunning:tt,isIn:qt,closeToast:gt,hide:bt,type:dt,style:Bt,className:St,controlledProgress:At,progress:zt||0})))},S=function(et,tt){return tt===void 0&&(tt=!1),{enter:`Toastify--animate Toastify__${et}-enter`,exit:`Toastify--animate Toastify__${et}-exit`,appendPosition:tt}},H=g$1(S("bounce",!0));g$1(S("slide",!0));g$1(S("zoom"));g$1(S("flip"));const q={position:"top-right",transition:H,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q(et){let tt={...q,...et};const rt=et.stacked,[nt,it]=reactExports.useState(!0),st=reactExports.useRef(null),{getToastToRender:at,isToastActive:ot,count:lt}=L(tt),{className:ut,style:dt,rtl:bt,containerId:gt}=tt;function kt(yt){const $t=clsx$1("Toastify__toast-container",`Toastify__toast-container--${yt}`,{"Toastify__toast-container--rtl":bt});return u$1(ut)?ut({position:yt,rtl:bt,defaultClassName:$t}):clsx$1($t,p$1(ut))}function pt(){rt&&(it(!0),B.play())}return O(()=>{if(rt){var yt;const $t=st.current.querySelectorAll('[data-in="true"]'),mt=12,wt=(yt=tt.position)==null?void 0:yt.includes("top");let St=0,Bt=0;Array.from($t).reverse().forEach((Ft,Dt)=>{const zt=Ft;zt.classList.add("Toastify__toast--stacked"),Dt>0&&(zt.dataset.collapsed=`${nt}`),zt.dataset.pos||(zt.dataset.pos=wt?"top":"bot");const Ht=St*(nt?.2:1)+(nt?0:mt*Dt);zt.style.setProperty("--y",`${wt?Ht:-1*Ht}px`),zt.style.setProperty("--g",`${mt}`),zt.style.setProperty("--s",""+(1-(nt?Bt:0))),St+=zt.offsetHeight,Bt+=.025})}},[nt,lt,rt]),React.createElement("div",{ref:st,className:"Toastify",id:gt,onMouseEnter:()=>{rt&&(it(!1),B.pause())},onMouseLeave:pt},at((yt,$t)=>{const mt=$t.length?{...dt}:{...dt,pointerEvents:"none"};return React.createElement("div",{className:kt(yt),style:mt,key:`container-${yt}`},$t.map(wt=>{let{content:St,props:Bt}=wt;return React.createElement(R,{...Bt,stacked:rt,collapseAll:pt,isIn:ot(Bt.toastId,Bt.containerId),style:Bt.style,key:`toast-${Bt.key}`},St)}))}))}const ReactToastify="",StyledDiv=styled$3.div` +`;var isCheckBoxInput=et=>et.type==="checkbox",isDateObject=et=>et instanceof Date,isNullOrUndefined=et=>et==null;const isObjectType=et=>typeof et=="object";var isObject=et=>!isNullOrUndefined(et)&&!Array.isArray(et)&&isObjectType(et)&&!isDateObject(et),getEventValue=et=>isObject(et)&&et.target?isCheckBoxInput(et.target)?et.target.checked:et.target.value:et,getNodeParentName=et=>et.substring(0,et.search(/\.\d+(\.|$)/))||et,isNameInFieldArray=(et,tt)=>et.has(getNodeParentName(tt)),isPlainObject=et=>{const tt=et.constructor&&et.constructor.prototype;return isObject(tt)&&tt.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(et){let tt;const rt=Array.isArray(et);if(et instanceof Date)tt=new Date(et);else if(et instanceof Set)tt=new Set(et);else if(!(isWeb&&(et instanceof Blob||et instanceof FileList))&&(rt||isObject(et)))if(tt=rt?[]:{},!rt&&!isPlainObject(et))tt=et;else for(const nt in et)et.hasOwnProperty(nt)&&(tt[nt]=cloneObject(et[nt]));else return et;return tt}var compact=et=>Array.isArray(et)?et.filter(Boolean):[],isUndefined=et=>et===void 0,get=(et,tt,rt)=>{if(!tt||!isObject(et))return rt;const nt=compact(tt.split(/[,[\].]+?/)).reduce((it,st)=>isNullOrUndefined(it)?it:it[st],et);return isUndefined(nt)||nt===et?isUndefined(et[tt])?rt:et[tt]:nt},isBoolean=et=>typeof et=="boolean";const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React.createContext(null),useFormContext=()=>React.useContext(HookFormContext),FormProvider=et=>{const{children:tt,...rt}=et;return React.createElement(HookFormContext.Provider,{value:rt},tt)};var getProxyFormState=(et,tt,rt,nt=!0)=>{const it={defaultValues:tt._defaultValues};for(const st in et)Object.defineProperty(it,st,{get:()=>{const at=st;return tt._proxyFormState[at]!==VALIDATION_MODE.all&&(tt._proxyFormState[at]=!nt||VALIDATION_MODE.all),rt&&(rt[at]=!0),et[at]}});return it},isEmptyObject=et=>isObject(et)&&!Object.keys(et).length,shouldRenderFormState=(et,tt,rt,nt)=>{rt(et);const{name:it,...st}=et;return isEmptyObject(st)||Object.keys(st).length>=Object.keys(tt).length||Object.keys(st).find(at=>tt[at]===(!nt||VALIDATION_MODE.all))},convertToArrayPayload=et=>Array.isArray(et)?et:[et],shouldSubscribeByName=(et,tt,rt)=>!et||!tt||et===tt||convertToArrayPayload(et).some(nt=>nt&&(rt?nt===tt:nt.startsWith(tt)||tt.startsWith(nt)));function useSubscribe(et){const tt=React.useRef(et);tt.current=et,React.useEffect(()=>{const rt=!et.disabled&&tt.current.subject&&tt.current.subject.subscribe({next:tt.current.next});return()=>{rt&&rt.unsubscribe()}},[et.disabled])}function useFormState(et){const tt=useFormContext(),{control:rt=tt.control,disabled:nt,name:it,exact:st}=et||{},[at,ot]=React.useState(rt._formState),lt=React.useRef(!0),ut=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),dt=React.useRef(it);return dt.current=it,useSubscribe({disabled:nt,next:bt=>lt.current&&shouldSubscribeByName(dt.current,bt.name,st)&&shouldRenderFormState(bt,ut.current,rt._updateFormState)&&ot({...rt._formState,...bt}),subject:rt._subjects.state}),React.useEffect(()=>(lt.current=!0,ut.current.isValid&&rt._updateValid(!0),()=>{lt.current=!1}),[rt]),getProxyFormState(at,rt,ut.current,!1)}var isString=et=>typeof et=="string",generateWatchOutput=(et,tt,rt,nt,it)=>isString(et)?(nt&&tt.watch.add(et),get(rt,et,it)):Array.isArray(et)?et.map(st=>(nt&&tt.watch.add(st),get(rt,st))):(nt&&(tt.watchAll=!0),rt);function useWatch(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,defaultValue:it,disabled:st,exact:at}=et||{},ot=React.useRef(nt);ot.current=nt,useSubscribe({disabled:st,subject:rt._subjects.values,next:dt=>{shouldSubscribeByName(ot.current,dt.name,at)&&ut(cloneObject(generateWatchOutput(ot.current,rt._names,dt.values||rt._formValues,!1,it)))}});const[lt,ut]=React.useState(rt._getWatch(nt,it));return React.useEffect(()=>rt._removeUnmounted()),lt}var isKey=et=>/^\w*$/.test(et),stringToPath=et=>compact(et.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(et,tt,rt)=>{let nt=-1;const it=isKey(tt)?[tt]:stringToPath(tt),st=it.length,at=st-1;for(;++nt{const dt=it._options.shouldUnregister||st,bt=(gt,kt)=>{const pt=get(it._fields,gt);pt&&(pt._f.mount=kt)};if(bt(rt,!0),dt){const gt=cloneObject(get(it._options.defaultValues,rt));set(it._defaultValues,rt,gt),isUndefined(get(it._formValues,rt))&&set(it._formValues,rt,gt)}return()=>{(at?dt&&!it._state.action:dt)?it.unregister(rt):bt(rt,!1)}},[rt,it,at,st]),React.useEffect(()=>{get(it._fields,rt)&&it._updateDisabledField({disabled:nt,fields:it._fields,name:rt,value:get(it._fields,rt)._f.value})},[nt,rt,it]),{field:{name:rt,value:ot,...isBoolean(nt)||isBoolean(lt.disabled)?{disabled:lt.disabled||nt}:{},onChange:React.useCallback(dt=>ut.current.onChange({target:{value:getEventValue(dt),name:rt},type:EVENTS.CHANGE}),[rt]),onBlur:React.useCallback(()=>ut.current.onBlur({target:{value:get(it._formValues,rt),name:rt},type:EVENTS.BLUR}),[rt,it]),ref:dt=>{const bt=get(it._fields,rt);bt&&dt&&(bt._f.ref={focus:()=>dt.focus(),select:()=>dt.select(),setCustomValidity:gt=>dt.setCustomValidity(gt),reportValidity:()=>dt.reportValidity()})}},formState:lt,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(lt.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get(lt.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get(lt.touchedFields,rt)},error:{enumerable:!0,get:()=>get(lt.errors,rt)}})}}const Controller=et=>et.render(useController(et));var appendErrors=(et,tt,rt,nt,it)=>tt?{...rt[et],types:{...rt[et]&&rt[et].types?rt[et].types:{},[nt]:it||!0}}:{},generateId=()=>{const et=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,tt=>{const rt=(Math.random()*16+et)%16|0;return(tt=="x"?rt:rt&3|8).toString(16)})},getFocusFieldName=(et,tt,rt={})=>rt.shouldFocus||isUndefined(rt.shouldFocus)?rt.focusName||`${et}.${isUndefined(rt.focusIndex)?tt:rt.focusIndex}.`:"",getValidationModes=et=>({isOnSubmit:!et||et===VALIDATION_MODE.onSubmit,isOnBlur:et===VALIDATION_MODE.onBlur,isOnChange:et===VALIDATION_MODE.onChange,isOnAll:et===VALIDATION_MODE.all,isOnTouch:et===VALIDATION_MODE.onTouched}),isWatched=(et,tt,rt)=>!rt&&(tt.watchAll||tt.watch.has(et)||[...tt.watch].some(nt=>et.startsWith(nt)&&/^\.\w+/.test(et.slice(nt.length))));const iterateFieldsByAction=(et,tt,rt,nt)=>{for(const it of rt||Object.keys(et)){const st=get(et,it);if(st){const{_f:at,...ot}=st;if(at){if(at.refs&&at.refs[0]&&tt(at.refs[0],it)&&!nt)break;if(at.ref&&tt(at.ref,at.name)&&!nt)break;iterateFieldsByAction(ot,tt)}else isObject(ot)&&iterateFieldsByAction(ot,tt)}}};var updateFieldArrayRootError=(et,tt,rt)=>{const nt=compact(get(et,rt));return set(nt,"root",tt[rt]),set(et,rt,nt),et},isFileInput=et=>et.type==="file",isFunction=et=>typeof et=="function",isHTMLElement=et=>{if(!isWeb)return!1;const tt=et?et.ownerDocument:0;return et instanceof(tt&&tt.defaultView?tt.defaultView.HTMLElement:HTMLElement)},isMessage=et=>isString(et),isRadioInput=et=>et.type==="radio",isRegex=et=>et instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=et=>{if(Array.isArray(et)){if(et.length>1){const tt=et.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:tt,isValid:!!tt.length}}return et[0].checked&&!et[0].disabled?et[0].attributes&&!isUndefined(et[0].attributes.value)?isUndefined(et[0].value)||et[0].value===""?validResult:{value:et[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=et=>Array.isArray(et)?et.reduce((tt,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:tt,defaultReturn):defaultReturn;function getValidateError(et,tt,rt="validate"){if(isMessage(et)||Array.isArray(et)&&et.every(isMessage)||isBoolean(et)&&!et)return{type:rt,message:isMessage(et)?et:"",ref:tt}}var getValueAndMessage=et=>isObject(et)&&!isRegex(et)?et:{value:et,message:""},validateField=async(et,tt,rt,nt,it)=>{const{ref:st,refs:at,required:ot,maxLength:lt,minLength:ut,min:dt,max:bt,pattern:gt,validate:kt,name:pt,valueAsNumber:yt,mount:$t,disabled:mt}=et._f,wt=get(tt,pt);if(!$t||mt)return{};const St=at?at[0]:st,Bt=Ot=>{nt&&St.reportValidity&&(St.setCustomValidity(isBoolean(Ot)?"":Ot||""),St.reportValidity())},Ft={},Lt=isRadioInput(st),zt=isCheckBoxInput(st),Ht=Lt||zt,Wt=(yt||isFileInput(st))&&isUndefined(st.value)&&isUndefined(wt)||isHTMLElement(st)&&st.value===""||wt===""||Array.isArray(wt)&&!wt.length,lr=appendErrors.bind(null,pt,rt,Ft),qt=(Ot,Mt,ht,Et=INPUT_VALIDATION_RULES.maxLength,Tt=INPUT_VALIDATION_RULES.minLength)=>{const Rt=Ot?Mt:ht;Ft[pt]={type:Ot?Et:Tt,message:Rt,ref:st,...lr(Ot?Et:Tt,Rt)}};if(it?!Array.isArray(wt)||!wt.length:ot&&(!Ht&&(Wt||isNullOrUndefined(wt))||isBoolean(wt)&&!wt||zt&&!getCheckboxValue(at).isValid||Lt&&!getRadioValue(at).isValid)){const{value:Ot,message:Mt}=isMessage(ot)?{value:!!ot,message:ot}:getValueAndMessage(ot);if(Ot&&(Ft[pt]={type:INPUT_VALIDATION_RULES.required,message:Mt,ref:St,...lr(INPUT_VALIDATION_RULES.required,Mt)},!rt))return Bt(Mt),Ft}if(!Wt&&(!isNullOrUndefined(dt)||!isNullOrUndefined(bt))){let Ot,Mt;const ht=getValueAndMessage(bt),Et=getValueAndMessage(dt);if(!isNullOrUndefined(wt)&&!isNaN(wt)){const Tt=st.valueAsNumber||wt&&+wt;isNullOrUndefined(ht.value)||(Ot=Tt>ht.value),isNullOrUndefined(Et.value)||(Mt=Ttnew Date(new Date().toDateString()+" "+It),At=st.type=="time",Pt=st.type=="week";isString(ht.value)&&wt&&(Ot=At?Rt(wt)>Rt(ht.value):Pt?wt>ht.value:Tt>new Date(ht.value)),isString(Et.value)&&wt&&(Mt=At?Rt(wt)+Ot.value,Et=!isNullOrUndefined(Mt.value)&&wt.length<+Mt.value;if((ht||Et)&&(qt(ht,Ot.message,Mt.message),!rt))return Bt(Ft[pt].message),Ft}if(gt&&!Wt&&isString(wt)){const{value:Ot,message:Mt}=getValueAndMessage(gt);if(isRegex(Ot)&&!wt.match(Ot)&&(Ft[pt]={type:INPUT_VALIDATION_RULES.pattern,message:Mt,ref:st,...lr(INPUT_VALIDATION_RULES.pattern,Mt)},!rt))return Bt(Mt),Ft}if(kt){if(isFunction(kt)){const Ot=await kt(wt,tt),Mt=getValidateError(Ot,St);if(Mt&&(Ft[pt]={...Mt,...lr(INPUT_VALIDATION_RULES.validate,Mt.message)},!rt))return Bt(Mt.message),Ft}else if(isObject(kt)){let Ot={};for(const Mt in kt){if(!isEmptyObject(Ot)&&!rt)break;const ht=getValidateError(await kt[Mt](wt,tt),St,Mt);ht&&(Ot={...ht,...lr(Mt,ht.message)},Bt(ht.message),rt&&(Ft[pt]=Ot))}if(!isEmptyObject(Ot)&&(Ft[pt]={ref:St,...Ot},!rt))return Ft}}return Bt(!0),Ft},appendAt=(et,tt)=>[...et,...convertToArrayPayload(tt)],fillEmptyArray=et=>Array.isArray(et)?et.map(()=>{}):void 0;function insert(et,tt,rt){return[...et.slice(0,tt),...convertToArrayPayload(rt),...et.slice(tt)]}var moveArrayAt=(et,tt,rt)=>Array.isArray(et)?(isUndefined(et[rt])&&(et[rt]=void 0),et.splice(rt,0,et.splice(tt,1)[0]),et):[],prependAt=(et,tt)=>[...convertToArrayPayload(tt),...convertToArrayPayload(et)];function removeAtIndexes(et,tt){let rt=0;const nt=[...et];for(const it of tt)nt.splice(it-rt,1),rt++;return compact(nt).length?nt:[]}var removeArrayAt=(et,tt)=>isUndefined(tt)?[]:removeAtIndexes(et,convertToArrayPayload(tt).sort((rt,nt)=>rt-nt)),swapArrayAt=(et,tt,rt)=>{[et[tt],et[rt]]=[et[rt],et[tt]]};function baseGet(et,tt){const rt=tt.slice(0,-1).length;let nt=0;for(;nt(et[tt]=rt,et);function useFieldArray(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,keyName:it="id",shouldUnregister:st}=et,[at,ot]=React.useState(rt._getFieldArray(nt)),lt=React.useRef(rt._getFieldArray(nt).map(generateId)),ut=React.useRef(at),dt=React.useRef(nt),bt=React.useRef(!1);dt.current=nt,ut.current=at,rt._names.array.add(nt),et.rules&&rt.register(nt,et.rules),useSubscribe({next:({values:Ft,name:Lt})=>{if(Lt===dt.current||!Lt){const zt=get(Ft,dt.current);Array.isArray(zt)&&(ot(zt),lt.current=zt.map(generateId))}},subject:rt._subjects.array});const gt=React.useCallback(Ft=>{bt.current=!0,rt._updateFieldArray(nt,Ft)},[rt,nt]),kt=(Ft,Lt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=appendAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,Ht.length-1,Lt),lt.current=appendAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,appendAt,{argA:fillEmptyArray(Ft)})},pt=(Ft,Lt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=prependAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,0,Lt),lt.current=prependAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,prependAt,{argA:fillEmptyArray(Ft)})},yt=Ft=>{const Lt=removeArrayAt(rt._getFieldArray(nt),Ft);lt.current=removeArrayAt(lt.current,Ft),gt(Lt),ot(Lt),rt._updateFieldArray(nt,Lt,removeArrayAt,{argA:Ft})},$t=(Ft,Lt,zt)=>{const Ht=convertToArrayPayload(cloneObject(Lt)),Wt=insert(rt._getFieldArray(nt),Ft,Ht);rt._names.focus=getFocusFieldName(nt,Ft,zt),lt.current=insert(lt.current,Ft,Ht.map(generateId)),gt(Wt),ot(Wt),rt._updateFieldArray(nt,Wt,insert,{argA:Ft,argB:fillEmptyArray(Lt)})},mt=(Ft,Lt)=>{const zt=rt._getFieldArray(nt);swapArrayAt(zt,Ft,Lt),swapArrayAt(lt.current,Ft,Lt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,swapArrayAt,{argA:Ft,argB:Lt},!1)},wt=(Ft,Lt)=>{const zt=rt._getFieldArray(nt);moveArrayAt(zt,Ft,Lt),moveArrayAt(lt.current,Ft,Lt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,moveArrayAt,{argA:Ft,argB:Lt},!1)},St=(Ft,Lt)=>{const zt=cloneObject(Lt),Ht=updateAt(rt._getFieldArray(nt),Ft,zt);lt.current=[...Ht].map((Wt,lr)=>!Wt||lr===Ft?generateId():lt.current[lr]),gt(Ht),ot([...Ht]),rt._updateFieldArray(nt,Ht,updateAt,{argA:Ft,argB:zt},!0,!1)},Bt=Ft=>{const Lt=convertToArrayPayload(cloneObject(Ft));lt.current=Lt.map(generateId),gt([...Lt]),ot([...Lt]),rt._updateFieldArray(nt,[...Lt],zt=>zt,{},!0,!1)};return React.useEffect(()=>{if(rt._state.action=!1,isWatched(nt,rt._names)&&rt._subjects.state.next({...rt._formState}),bt.current&&(!getValidationModes(rt._options.mode).isOnSubmit||rt._formState.isSubmitted))if(rt._options.resolver)rt._executeSchema([nt]).then(Ft=>{const Lt=get(Ft.errors,nt),zt=get(rt._formState.errors,nt);(zt?!Lt&&zt.type||Lt&&(zt.type!==Lt.type||zt.message!==Lt.message):Lt&&Lt.type)&&(Lt?set(rt._formState.errors,nt,Lt):unset(rt._formState.errors,nt),rt._subjects.state.next({errors:rt._formState.errors}))});else{const Ft=get(rt._fields,nt);Ft&&Ft._f&&validateField(Ft,rt._formValues,rt._options.criteriaMode===VALIDATION_MODE.all,rt._options.shouldUseNativeValidation,!0).then(Lt=>!isEmptyObject(Lt)&&rt._subjects.state.next({errors:updateFieldArrayRootError(rt._formState.errors,Lt,nt)}))}rt._subjects.values.next({name:nt,values:{...rt._formValues}}),rt._names.focus&&iterateFieldsByAction(rt._fields,(Ft,Lt)=>{if(rt._names.focus&&Lt.startsWith(rt._names.focus)&&Ft.focus)return Ft.focus(),1}),rt._names.focus="",rt._updateValid(),bt.current=!1},[at,nt,rt]),React.useEffect(()=>(!get(rt._formValues,nt)&&rt._updateFieldArray(nt),()=>{(rt._options.shouldUnregister||st)&&rt.unregister(nt)}),[nt,rt,it,st]),{swap:React.useCallback(mt,[gt,nt,rt]),move:React.useCallback(wt,[gt,nt,rt]),prepend:React.useCallback(pt,[gt,nt,rt]),append:React.useCallback(kt,[gt,nt,rt]),remove:React.useCallback(yt,[gt,nt,rt]),insert:React.useCallback($t,[gt,nt,rt]),update:React.useCallback(St,[gt,nt,rt]),replace:React.useCallback(Bt,[gt,nt,rt]),fields:React.useMemo(()=>at.map((Ft,Lt)=>({...Ft,[it]:lt.current[Lt]||generateId()})),[at,it])}}var createSubject=()=>{let et=[];return{get observers(){return et},next:it=>{for(const st of et)st.next&&st.next(it)},subscribe:it=>(et.push(it),{unsubscribe:()=>{et=et.filter(st=>st!==it)}}),unsubscribe:()=>{et=[]}}},isPrimitive=et=>isNullOrUndefined(et)||!isObjectType(et);function deepEqual(et,tt){if(isPrimitive(et)||isPrimitive(tt))return et===tt;if(isDateObject(et)&&isDateObject(tt))return et.getTime()===tt.getTime();const rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(const it of rt){const st=et[it];if(!nt.includes(it))return!1;if(it!=="ref"){const at=tt[it];if(isDateObject(st)&&isDateObject(at)||isObject(st)&&isObject(at)||Array.isArray(st)&&Array.isArray(at)?!deepEqual(st,at):st!==at)return!1}}return!0}var isMultipleSelect=et=>et.type==="select-multiple",isRadioOrCheckbox=et=>isRadioInput(et)||isCheckBoxInput(et),live=et=>isHTMLElement(et)&&et.isConnected,objectHasFunction=et=>{for(const tt in et)if(isFunction(et[tt]))return!0;return!1};function markFieldsDirty(et,tt={}){const rt=Array.isArray(et);if(isObject(et)||rt)for(const nt in et)Array.isArray(et[nt])||isObject(et[nt])&&!objectHasFunction(et[nt])?(tt[nt]=Array.isArray(et[nt])?[]:{},markFieldsDirty(et[nt],tt[nt])):isNullOrUndefined(et[nt])||(tt[nt]=!0);return tt}function getDirtyFieldsFromDefaultValues(et,tt,rt){const nt=Array.isArray(et);if(isObject(et)||nt)for(const it in et)Array.isArray(et[it])||isObject(et[it])&&!objectHasFunction(et[it])?isUndefined(tt)||isPrimitive(rt[it])?rt[it]=Array.isArray(et[it])?markFieldsDirty(et[it],[]):{...markFieldsDirty(et[it])}:getDirtyFieldsFromDefaultValues(et[it],isNullOrUndefined(tt)?{}:tt[it],rt[it]):rt[it]=!deepEqual(et[it],tt[it]);return rt}var getDirtyFields=(et,tt)=>getDirtyFieldsFromDefaultValues(et,tt,markFieldsDirty(tt)),getFieldValueAs=(et,{valueAsNumber:tt,valueAsDate:rt,setValueAs:nt})=>isUndefined(et)?et:tt?et===""?NaN:et&&+et:rt&&isString(et)?new Date(et):nt?nt(et):et;function getFieldValue(et){const tt=et.ref;if(!(et.refs?et.refs.every(rt=>rt.disabled):tt.disabled))return isFileInput(tt)?tt.files:isRadioInput(tt)?getRadioValue(et.refs).value:isMultipleSelect(tt)?[...tt.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(tt)?getCheckboxValue(et.refs).value:getFieldValueAs(isUndefined(tt.value)?et.ref.value:tt.value,et)}var getResolverOptions=(et,tt,rt,nt)=>{const it={};for(const st of et){const at=get(tt,st);at&&set(it,st,at._f)}return{criteriaMode:rt,names:[...et],fields:it,shouldUseNativeValidation:nt}},getRuleValue=et=>isUndefined(et)?et:isRegex(et)?et.source:isObject(et)?isRegex(et.value)?et.value.source:et.value:et,hasValidation=et=>et.mount&&(et.required||et.min||et.max||et.maxLength||et.minLength||et.pattern||et.validate);function schemaErrorLookup(et,tt,rt){const nt=get(et,rt);if(nt||isKey(rt))return{error:nt,name:rt};const it=rt.split(".");for(;it.length;){const st=it.join("."),at=get(tt,st),ot=get(et,st);if(at&&!Array.isArray(at)&&rt!==st)return{name:rt};if(ot&&ot.type)return{name:st,error:ot};it.pop()}return{name:rt}}var skipValidation=(et,tt,rt,nt,it)=>it.isOnAll?!1:!rt&&it.isOnTouch?!(tt||et):(rt?nt.isOnBlur:it.isOnBlur)?!et:(rt?nt.isOnChange:it.isOnChange)?et:!0,unsetEmptyArray=(et,tt)=>!compact(get(et,tt)).length&&unset(et,tt);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(et={},tt){let rt={...defaultOptions,...et},nt={submitCount:0,isDirty:!1,isLoading:isFunction(rt.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:rt.errors||{},disabled:!1},it={},st=isObject(rt.defaultValues)||isObject(rt.values)?cloneObject(rt.defaultValues||rt.values)||{}:{},at=rt.shouldUnregister?{}:cloneObject(st),ot={action:!1,mount:!1,watch:!1},lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set},ut,dt=0;const bt={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},gt={values:createSubject(),array:createSubject(),state:createSubject()},kt=et.resetOptions&&et.resetOptions.keepDirtyValues,pt=getValidationModes(rt.mode),yt=getValidationModes(rt.reValidateMode),$t=rt.criteriaMode===VALIDATION_MODE.all,mt=or=>xr=>{clearTimeout(dt),dt=setTimeout(or,xr)},wt=async or=>{if(bt.isValid||or){const xr=rt.resolver?isEmptyObject((await lr()).errors):await Ot(it,!0);xr!==nt.isValid&>.state.next({isValid:xr})}},St=or=>bt.isValidating&>.state.next({isValidating:or}),Bt=(or,xr=[],Pr,Or,rr=!0,gr=!0)=>{if(Or&&Pr){if(ot.action=!0,gr&&Array.isArray(get(it,or))){const Ir=Pr(get(it,or),Or.argA,Or.argB);rr&&set(it,or,Ir)}if(gr&&Array.isArray(get(nt.errors,or))){const Ir=Pr(get(nt.errors,or),Or.argA,Or.argB);rr&&set(nt.errors,or,Ir),unsetEmptyArray(nt.errors,or)}if(bt.touchedFields&&gr&&Array.isArray(get(nt.touchedFields,or))){const Ir=Pr(get(nt.touchedFields,or),Or.argA,Or.argB);rr&&set(nt.touchedFields,or,Ir)}bt.dirtyFields&&(nt.dirtyFields=getDirtyFields(st,at)),gt.state.next({name:or,isDirty:ht(or,xr),dirtyFields:nt.dirtyFields,errors:nt.errors,isValid:nt.isValid})}else set(at,or,xr)},Ft=(or,xr)=>{set(nt.errors,or,xr),gt.state.next({errors:nt.errors})},Lt=or=>{nt.errors=or,gt.state.next({errors:nt.errors,isValid:!1})},zt=(or,xr,Pr,Or)=>{const rr=get(it,or);if(rr){const gr=get(at,or,isUndefined(Pr)?get(st,or):Pr);isUndefined(gr)||Or&&Or.defaultChecked||xr?set(at,or,xr?gr:getFieldValue(rr._f)):Rt(or,gr),ot.mount&&wt()}},Ht=(or,xr,Pr,Or,rr)=>{let gr=!1,Ir=!1;const Yt={name:or},Ut=!!(get(it,or)&&get(it,or)._f.disabled);if(!Pr||Or){bt.isDirty&&(Ir=nt.isDirty,nt.isDirty=Yt.isDirty=ht(),gr=Ir!==Yt.isDirty);const Vt=Ut||deepEqual(get(st,or),xr);Ir=!!(!Ut&&get(nt.dirtyFields,or)),Vt||Ut?unset(nt.dirtyFields,or):set(nt.dirtyFields,or,!0),Yt.dirtyFields=nt.dirtyFields,gr=gr||bt.dirtyFields&&Ir!==!Vt}if(Pr){const Vt=get(nt.touchedFields,or);Vt||(set(nt.touchedFields,or,Pr),Yt.touchedFields=nt.touchedFields,gr=gr||bt.touchedFields&&Vt!==Pr)}return gr&&rr&>.state.next(Yt),gr?Yt:{}},Wt=(or,xr,Pr,Or)=>{const rr=get(nt.errors,or),gr=bt.isValid&&isBoolean(xr)&&nt.isValid!==xr;if(et.delayError&&Pr?(ut=mt(()=>Ft(or,Pr)),ut(et.delayError)):(clearTimeout(dt),ut=null,Pr?set(nt.errors,or,Pr):unset(nt.errors,or)),(Pr?!deepEqual(rr,Pr):rr)||!isEmptyObject(Or)||gr){const Ir={...Or,...gr&&isBoolean(xr)?{isValid:xr}:{},errors:nt.errors,name:or};nt={...nt,...Ir},gt.state.next(Ir)}St(!1)},lr=async or=>rt.resolver(at,rt.context,getResolverOptions(or||lt.mount,it,rt.criteriaMode,rt.shouldUseNativeValidation)),qt=async or=>{const{errors:xr}=await lr(or);if(or)for(const Pr of or){const Or=get(xr,Pr);Or?set(nt.errors,Pr,Or):unset(nt.errors,Pr)}else nt.errors=xr;return xr},Ot=async(or,xr,Pr={valid:!0})=>{for(const Or in or){const rr=or[Or];if(rr){const{_f:gr,...Ir}=rr;if(gr){const Yt=lt.array.has(gr.name),Ut=await validateField(rr,at,$t,rt.shouldUseNativeValidation&&!xr,Yt);if(Ut[gr.name]&&(Pr.valid=!1,xr))break;!xr&&(get(Ut,gr.name)?Yt?updateFieldArrayRootError(nt.errors,Ut,gr.name):set(nt.errors,gr.name,Ut[gr.name]):unset(nt.errors,gr.name))}Ir&&await Ot(Ir,xr,Pr)}}return Pr.valid},Mt=()=>{for(const or of lt.unMount){const xr=get(it,or);xr&&(xr._f.refs?xr._f.refs.every(Pr=>!live(Pr)):!live(xr._f.ref))&&Zt(or)}lt.unMount=new Set},ht=(or,xr)=>(or&&xr&&set(at,or,xr),!deepEqual(Dt(),st)),Et=(or,xr,Pr)=>generateWatchOutput(or,lt,{...ot.mount?at:isUndefined(xr)?st:isString(or)?{[or]:xr}:xr},Pr,xr),Tt=or=>compact(get(ot.mount?at:st,or,et.shouldUnregister?get(st,or,[]):[])),Rt=(or,xr,Pr={})=>{const Or=get(it,or);let rr=xr;if(Or){const gr=Or._f;gr&&(!gr.disabled&&set(at,or,getFieldValueAs(xr,gr)),rr=isHTMLElement(gr.ref)&&isNullOrUndefined(xr)?"":xr,isMultipleSelect(gr.ref)?[...gr.ref.options].forEach(Ir=>Ir.selected=rr.includes(Ir.value)):gr.refs?isCheckBoxInput(gr.ref)?gr.refs.length>1?gr.refs.forEach(Ir=>(!Ir.defaultChecked||!Ir.disabled)&&(Ir.checked=Array.isArray(rr)?!!rr.find(Yt=>Yt===Ir.value):rr===Ir.value)):gr.refs[0]&&(gr.refs[0].checked=!!rr):gr.refs.forEach(Ir=>Ir.checked=Ir.value===rr):isFileInput(gr.ref)?gr.ref.value="":(gr.ref.value=rr,gr.ref.type||gt.values.next({name:or,values:{...at}})))}(Pr.shouldDirty||Pr.shouldTouch)&&Ht(or,rr,Pr.shouldTouch,Pr.shouldDirty,!0),Pr.shouldValidate&&xt(or)},At=(or,xr,Pr)=>{for(const Or in xr){const rr=xr[Or],gr=`${or}.${Or}`,Ir=get(it,gr);(lt.array.has(or)||!isPrimitive(rr)||Ir&&!Ir._f)&&!isDateObject(rr)?At(gr,rr,Pr):Rt(gr,rr,Pr)}},Pt=(or,xr,Pr={})=>{const Or=get(it,or),rr=lt.array.has(or),gr=cloneObject(xr);set(at,or,gr),rr?(gt.array.next({name:or,values:{...at}}),(bt.isDirty||bt.dirtyFields)&&Pr.shouldDirty&>.state.next({name:or,dirtyFields:getDirtyFields(st,at),isDirty:ht(or,gr)})):Or&&!Or._f&&!isNullOrUndefined(gr)?At(or,gr,Pr):Rt(or,gr,Pr),isWatched(or,lt)&>.state.next({...nt}),gt.values.next({name:or,values:{...at}}),!ot.mount&&tt()},It=async or=>{const xr=or.target;let Pr=xr.name,Or=!0;const rr=get(it,Pr),gr=()=>xr.type?getFieldValue(rr._f):getEventValue(or),Ir=Yt=>{Or=Number.isNaN(Yt)||Yt===get(at,Pr,Yt)};if(rr){let Yt,Ut;const Vt=gr(),ir=or.type===EVENTS.BLUR||or.type===EVENTS.FOCUS_OUT,kr=!hasValidation(rr._f)&&!rt.resolver&&!get(nt.errors,Pr)&&!rr._f.deps||skipValidation(ir,get(nt.touchedFields,Pr),nt.isSubmitted,yt,pt),$r=isWatched(Pr,lt,ir);set(at,Pr,Vt),ir?(rr._f.onBlur&&rr._f.onBlur(or),ut&&ut(0)):rr._f.onChange&&rr._f.onChange(or);const Br=Ht(Pr,Vt,ir,!1),an=!isEmptyObject(Br)||$r;if(!ir&>.values.next({name:Pr,type:or.type,values:{...at}}),kr)return bt.isValid&&wt(),an&>.state.next({name:Pr,...$r?{}:Br});if(!ir&&$r&>.state.next({...nt}),St(!0),rt.resolver){const{errors:ln}=await lr([Pr]);if(Ir(Vt),Or){const rn=schemaErrorLookup(nt.errors,it,Pr),kn=schemaErrorLookup(ln,it,rn.name||Pr);Yt=kn.error,Pr=kn.name,Ut=isEmptyObject(ln)}}else Yt=(await validateField(rr,at,$t,rt.shouldUseNativeValidation))[Pr],Ir(Vt),Or&&(Yt?Ut=!1:bt.isValid&&(Ut=await Ot(it,!0)));Or&&(rr._f.deps&&xt(rr._f.deps),Wt(Pr,Ut,Yt,Br))}},Ct=(or,xr)=>{if(get(nt.errors,xr)&&or.focus)return or.focus(),1},xt=async(or,xr={})=>{let Pr,Or;const rr=convertToArrayPayload(or);if(St(!0),rt.resolver){const gr=await qt(isUndefined(or)?or:rr);Pr=isEmptyObject(gr),Or=or?!rr.some(Ir=>get(gr,Ir)):Pr}else or?(Or=(await Promise.all(rr.map(async gr=>{const Ir=get(it,gr);return await Ot(Ir&&Ir._f?{[gr]:Ir}:Ir)}))).every(Boolean),!(!Or&&!nt.isValid)&&wt()):Or=Pr=await Ot(it);return gt.state.next({...!isString(or)||bt.isValid&&Pr!==nt.isValid?{}:{name:or},...rt.resolver||!or?{isValid:Pr}:{},errors:nt.errors,isValidating:!1}),xr.shouldFocus&&!Or&&iterateFieldsByAction(it,Ct,or?rr:lt.mount),Or},Dt=or=>{const xr={...st,...ot.mount?at:{}};return isUndefined(or)?xr:isString(or)?get(xr,or):or.map(Pr=>get(xr,Pr))},tr=(or,xr)=>({invalid:!!get((xr||nt).errors,or),isDirty:!!get((xr||nt).dirtyFields,or),isTouched:!!get((xr||nt).touchedFields,or),error:get((xr||nt).errors,or)}),pr=or=>{or&&convertToArrayPayload(or).forEach(xr=>unset(nt.errors,xr)),gt.state.next({errors:or?nt.errors:{}})},Kt=(or,xr,Pr)=>{const Or=(get(it,or,{_f:{}})._f||{}).ref;set(nt.errors,or,{...xr,ref:Or}),gt.state.next({name:or,errors:nt.errors,isValid:!1}),Pr&&Pr.shouldFocus&&Or&&Or.focus&&Or.focus()},Qt=(or,xr)=>isFunction(or)?gt.values.subscribe({next:Pr=>or(Et(void 0,xr),Pr)}):Et(or,xr,!0),Zt=(or,xr={})=>{for(const Pr of or?convertToArrayPayload(or):lt.mount)lt.mount.delete(Pr),lt.array.delete(Pr),xr.keepValue||(unset(it,Pr),unset(at,Pr)),!xr.keepError&&unset(nt.errors,Pr),!xr.keepDirty&&unset(nt.dirtyFields,Pr),!xr.keepTouched&&unset(nt.touchedFields,Pr),!rt.shouldUnregister&&!xr.keepDefaultValue&&unset(st,Pr);gt.values.next({values:{...at}}),gt.state.next({...nt,...xr.keepDirty?{isDirty:ht()}:{}}),!xr.keepIsValid&&wt()},ur=({disabled:or,name:xr,field:Pr,fields:Or,value:rr})=>{if(isBoolean(or)){const gr=or?void 0:isUndefined(rr)?getFieldValue(Pr?Pr._f:get(Or,xr)._f):rr;set(at,xr,gr),Ht(xr,gr,!1,!1,!0)}},_r=(or,xr={})=>{let Pr=get(it,or);const Or=isBoolean(xr.disabled);return set(it,or,{...Pr||{},_f:{...Pr&&Pr._f?Pr._f:{ref:{name:or}},name:or,mount:!0,...xr}}),lt.mount.add(or),Pr?ur({field:Pr,disabled:xr.disabled,name:or,value:xr.value}):zt(or,!0,xr.value),{...Or?{disabled:xr.disabled}:{},...rt.progressive?{required:!!xr.required,min:getRuleValue(xr.min),max:getRuleValue(xr.max),minLength:getRuleValue(xr.minLength),maxLength:getRuleValue(xr.maxLength),pattern:getRuleValue(xr.pattern)}:{},name:or,onChange:It,onBlur:It,ref:rr=>{if(rr){_r(or,xr),Pr=get(it,or);const gr=isUndefined(rr.value)&&rr.querySelectorAll&&rr.querySelectorAll("input,select,textarea")[0]||rr,Ir=isRadioOrCheckbox(gr),Yt=Pr._f.refs||[];if(Ir?Yt.find(Ut=>Ut===gr):gr===Pr._f.ref)return;set(it,or,{_f:{...Pr._f,...Ir?{refs:[...Yt.filter(live),gr,...Array.isArray(get(st,or))?[{}]:[]],ref:{type:gr.type,name:or}}:{ref:gr}}}),zt(or,!1,void 0,gr)}else Pr=get(it,or,{}),Pr._f&&(Pr._f.mount=!1),(rt.shouldUnregister||xr.shouldUnregister)&&!(isNameInFieldArray(lt.array,or)&&ot.action)&<.unMount.add(or)}}},er=()=>rt.shouldFocusError&&iterateFieldsByAction(it,Ct,lt.mount),Jt=or=>{isBoolean(or)&&(gt.state.next({disabled:or}),iterateFieldsByAction(it,(xr,Pr)=>{let Or=or;const rr=get(it,Pr);rr&&isBoolean(rr._f.disabled)&&(Or||(Or=rr._f.disabled)),xr.disabled=Or},0,!1))},Ar=(or,xr)=>async Pr=>{Pr&&(Pr.preventDefault&&Pr.preventDefault(),Pr.persist&&Pr.persist());let Or=cloneObject(at);if(gt.state.next({isSubmitting:!0}),rt.resolver){const{errors:rr,values:gr}=await lr();nt.errors=rr,Or=gr}else await Ot(it);unset(nt.errors,"root"),isEmptyObject(nt.errors)?(gt.state.next({errors:{}}),await or(Or,Pr)):(xr&&await xr({...nt.errors},Pr),er(),setTimeout(er)),gt.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(nt.errors),submitCount:nt.submitCount+1,errors:nt.errors})},Er=(or,xr={})=>{get(it,or)&&(isUndefined(xr.defaultValue)?Pt(or,get(st,or)):(Pt(or,xr.defaultValue),set(st,or,xr.defaultValue)),xr.keepTouched||unset(nt.touchedFields,or),xr.keepDirty||(unset(nt.dirtyFields,or),nt.isDirty=xr.defaultValue?ht(or,get(st,or)):ht()),xr.keepError||(unset(nt.errors,or),bt.isValid&&wt()),gt.state.next({...nt}))},Dr=(or,xr={})=>{const Pr=or?cloneObject(or):st,Or=cloneObject(Pr),rr=or&&!isEmptyObject(or)?Or:st;if(xr.keepDefaultValues||(st=Pr),!xr.keepValues){if(xr.keepDirtyValues||kt)for(const gr of lt.mount)get(nt.dirtyFields,gr)?set(rr,gr,get(at,gr)):Pt(gr,get(rr,gr));else{if(isWeb&&isUndefined(or))for(const gr of lt.mount){const Ir=get(it,gr);if(Ir&&Ir._f){const Yt=Array.isArray(Ir._f.refs)?Ir._f.refs[0]:Ir._f.ref;if(isHTMLElement(Yt)){const Ut=Yt.closest("form");if(Ut){Ut.reset();break}}}}it={}}at=et.shouldUnregister?xr.keepDefaultValues?cloneObject(st):{}:cloneObject(rr),gt.array.next({values:{...rr}}),gt.values.next({values:{...rr}})}lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!ot.mount&&tt(),ot.mount=!bt.isValid||!!xr.keepIsValid,ot.watch=!!et.shouldUnregister,gt.state.next({submitCount:xr.keepSubmitCount?nt.submitCount:0,isDirty:xr.keepDirty?nt.isDirty:!!(xr.keepDefaultValues&&!deepEqual(or,st)),isSubmitted:xr.keepIsSubmitted?nt.isSubmitted:!1,dirtyFields:xr.keepDirtyValues?nt.dirtyFields:xr.keepDefaultValues&&or?getDirtyFields(st,or):{},touchedFields:xr.keepTouched?nt.touchedFields:{},errors:xr.keepErrors?nt.errors:{},isSubmitSuccessful:xr.keepIsSubmitSuccessful?nt.isSubmitSuccessful:!1,isSubmitting:!1})},Xr=(or,xr)=>Dr(isFunction(or)?or(at):or,xr);return{control:{register:_r,unregister:Zt,getFieldState:tr,handleSubmit:Ar,setError:Kt,_executeSchema:lr,_getWatch:Et,_getDirty:ht,_updateValid:wt,_removeUnmounted:Mt,_updateFieldArray:Bt,_updateDisabledField:ur,_getFieldArray:Tt,_reset:Dr,_resetDefaultValues:()=>isFunction(rt.defaultValues)&&rt.defaultValues().then(or=>{Xr(or,rt.resetOptions),gt.state.next({isLoading:!1})}),_updateFormState:or=>{nt={...nt,...or}},_disableForm:Jt,_subjects:gt,_proxyFormState:bt,_setErrors:Lt,get _fields(){return it},get _formValues(){return at},get _state(){return ot},set _state(or){ot=or},get _defaultValues(){return st},get _names(){return lt},set _names(or){lt=or},get _formState(){return nt},set _formState(or){nt=or},get _options(){return rt},set _options(or){rt={...rt,...or}}},trigger:xt,register:_r,handleSubmit:Ar,watch:Qt,setValue:Pt,getValues:Dt,reset:Xr,resetField:Er,clearErrors:pr,unregister:Zt,setError:Kt,setFocus:(or,xr={})=>{const Pr=get(it,or),Or=Pr&&Pr._f;if(Or){const rr=Or.refs?Or.refs[0]:Or.ref;rr.focus&&(rr.focus(),xr.shouldSelect&&rr.select())}},getFieldState:tr}}function useForm(et={}){const tt=React.useRef(),rt=React.useRef(),[nt,it]=React.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(et.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:et.errors||{},disabled:!1,defaultValues:isFunction(et.defaultValues)?void 0:et.defaultValues});tt.current||(tt.current={...createFormControl(et,()=>it(at=>({...at}))),formState:nt});const st=tt.current.control;return st._options=et,useSubscribe({subject:st._subjects.state,next:at=>{shouldRenderFormState(at,st._proxyFormState,st._updateFormState,!0)&&it({...st._formState})}}),React.useEffect(()=>st._disableForm(et.disabled),[st,et.disabled]),React.useEffect(()=>{if(st._proxyFormState.isDirty){const at=st._getDirty();at!==nt.isDirty&&st._subjects.state.next({isDirty:at})}},[st,nt.isDirty]),React.useEffect(()=>{et.values&&!deepEqual(et.values,rt.current)?(st._reset(et.values,st._options.resetOptions),rt.current=et.values,it(at=>({...at}))):st._resetDefaultValues()},[et.values,st]),React.useEffect(()=>{et.errors&&st._setErrors(et.errors)},[et.errors,st]),React.useEffect(()=>{st._state.mount||(st._updateValid(),st._state.mount=!0),st._state.watch&&(st._state.watch=!1,st._subjects.state.next({...st._formState})),st._removeUnmounted()}),tt.current.formState=getProxyFormState(nt,st),tt.current}var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),__assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(et){for(var tt,rt=1,nt=arguments.length;rttypeof et=="number"&&!isNaN(et),d$1=et=>typeof et=="string",u$1=et=>typeof et=="function",p$1=et=>d$1(et)||u$1(et)?et:null,m$1=et=>reactExports.isValidElement(et)||d$1(et)||u$1(et)||c$1(et);function f$1(et,tt,rt){rt===void 0&&(rt=300);const{scrollHeight:nt,style:it}=et;requestAnimationFrame(()=>{it.minHeight="initial",it.height=nt+"px",it.transition=`all ${rt}ms`,requestAnimationFrame(()=>{it.height="0",it.padding="0",it.margin="0",setTimeout(tt,rt)})})}function g$1(et){let{enter:tt,exit:rt,appendPosition:nt=!1,collapse:it=!0,collapseDuration:st=300}=et;return function(at){let{children:ot,position:lt,preventExitTransition:ut,done:dt,nodeRef:bt,isIn:gt,playToast:kt}=at;const pt=nt?`${tt}--${lt}`:tt,yt=nt?`${rt}--${lt}`:rt,$t=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const mt=bt.current,wt=pt.split(" "),St=Bt=>{Bt.target===bt.current&&(kt(),mt.removeEventListener("animationend",St),mt.removeEventListener("animationcancel",St),$t.current===0&&Bt.type!=="animationcancel"&&mt.classList.remove(...wt))};mt.classList.add(...wt),mt.addEventListener("animationend",St),mt.addEventListener("animationcancel",St)},[]),reactExports.useEffect(()=>{const mt=bt.current,wt=()=>{mt.removeEventListener("animationend",wt),it?f$1(mt,dt,st):dt()};gt||(ut?wt():($t.current=1,mt.className+=` ${yt}`,mt.addEventListener("animationend",wt)))},[gt]),React.createElement(React.Fragment,null,ot)}}function y(et,tt){return et!=null?{content:et.content,containerId:et.props.containerId,id:et.props.toastId,theme:et.props.theme,type:et.props.type,data:et.props.data||{},isLoading:et.props.isLoading,icon:et.props.icon,status:tt}:{}}const v$2=new Map;let h$2=[];const T=new Set,E=et=>T.forEach(tt=>tt(et)),b$1=()=>v$2.size>0;function I(et,tt){var rt;if(tt)return!((rt=v$2.get(tt))==null||!rt.isToastActive(et));let nt=!1;return v$2.forEach(it=>{it.isToastActive(et)&&(nt=!0)}),nt}function _(et,tt){m$1(et)&&(b$1()||h$2.push({content:et,options:tt}),v$2.forEach(rt=>{rt.buildToast(et,tt)}))}function C(et,tt){v$2.forEach(rt=>{tt!=null&&tt!=null&&tt.containerId?(tt==null?void 0:tt.containerId)===rt.id&&rt.toggle(et,tt==null?void 0:tt.id):rt.toggle(et,tt==null?void 0:tt.id)})}function L(et){const{subscribe:tt,getSnapshot:rt,setProps:nt}=reactExports.useRef(function(st){const at=st.containerId||1;return{subscribe(ot){const lt=function(dt,bt,gt){let kt=1,pt=0,yt=[],$t=[],mt=[],wt=bt;const St=new Map,Bt=new Set,Ft=()=>{mt=Array.from(St.values()),Bt.forEach(Ht=>Ht())},Lt=Ht=>{$t=Ht==null?[]:$t.filter(Wt=>Wt!==Ht),Ft()},zt=Ht=>{const{toastId:Wt,onOpen:lr,updateId:qt,children:Ot}=Ht.props,Mt=qt==null;Ht.staleId&&St.delete(Ht.staleId),St.set(Wt,Ht),$t=[...$t,Ht.props.toastId].filter(ht=>ht!==Ht.staleId),Ft(),gt(y(Ht,Mt?"added":"updated")),Mt&&u$1(lr)&&lr(reactExports.isValidElement(Ot)&&Ot.props)};return{id:dt,props:wt,observe:Ht=>(Bt.add(Ht),()=>Bt.delete(Ht)),toggle:(Ht,Wt)=>{St.forEach(lr=>{Wt!=null&&Wt!==lr.props.toastId||u$1(lr.toggle)&&lr.toggle(Ht)})},removeToast:Lt,toasts:St,clearQueue:()=>{pt-=yt.length,yt=[]},buildToast:(Ht,Wt)=>{if((xt=>{let{containerId:Dt,toastId:tr,updateId:pr}=xt;const Kt=Dt?Dt!==dt:dt!==1,Qt=St.has(tr)&&pr==null;return Kt||Qt})(Wt))return;const{toastId:lr,updateId:qt,data:Ot,staleId:Mt,delay:ht}=Wt,Et=()=>{Lt(lr)},Tt=qt==null;Tt&&pt++;const Rt={...wt,style:wt.toastStyle,key:kt++,...Object.fromEntries(Object.entries(Wt).filter(xt=>{let[Dt,tr]=xt;return tr!=null})),toastId:lr,updateId:qt,data:Ot,closeToast:Et,isIn:!1,className:p$1(Wt.className||wt.toastClassName),bodyClassName:p$1(Wt.bodyClassName||wt.bodyClassName),progressClassName:p$1(Wt.progressClassName||wt.progressClassName),autoClose:!Wt.isLoading&&(At=Wt.autoClose,Pt=wt.autoClose,At===!1||c$1(At)&&At>0?At:Pt),deleteToast(){const xt=St.get(lr),{onClose:Dt,children:tr}=xt.props;u$1(Dt)&&Dt(reactExports.isValidElement(tr)&&tr.props),gt(y(xt,"removed")),St.delete(lr),pt--,pt<0&&(pt=0),yt.length>0?zt(yt.shift()):Ft()}};var At,Pt;Rt.closeButton=wt.closeButton,Wt.closeButton===!1||m$1(Wt.closeButton)?Rt.closeButton=Wt.closeButton:Wt.closeButton===!0&&(Rt.closeButton=!m$1(wt.closeButton)||wt.closeButton);let It=Ht;reactExports.isValidElement(Ht)&&!d$1(Ht.type)?It=reactExports.cloneElement(Ht,{closeToast:Et,toastProps:Rt,data:Ot}):u$1(Ht)&&(It=Ht({closeToast:Et,toastProps:Rt,data:Ot}));const Ct={content:It,props:Rt,staleId:Mt};wt.limit&&wt.limit>0&&pt>wt.limit&&Tt?yt.push(Ct):c$1(ht)?setTimeout(()=>{zt(Ct)},ht):zt(Ct)},setProps(Ht){wt=Ht},setToggle:(Ht,Wt)=>{St.get(Ht).toggle=Wt},isToastActive:Ht=>$t.some(Wt=>Wt===Ht),getSnapshot:()=>wt.newestOnTop?mt.reverse():mt}}(at,st,E);v$2.set(at,lt);const ut=lt.observe(ot);return h$2.forEach(dt=>_(dt.content,dt.options)),h$2=[],()=>{ut(),v$2.delete(at)}},setProps(ot){var lt;(lt=v$2.get(at))==null||lt.setProps(ot)},getSnapshot(){var ot;return(ot=v$2.get(at))==null?void 0:ot.getSnapshot()}}}(et)).current;nt(et);const it=reactExports.useSyncExternalStore(tt,rt,rt);return{getToastToRender:function(st){if(!it)return[];const at=new Map;return it.forEach(ot=>{const{position:lt}=ot.props;at.has(lt)||at.set(lt,[]),at.get(lt).push(ot)}),Array.from(at,ot=>st(ot[0],ot[1]))},isToastActive:I,count:it==null?void 0:it.length}}function N(et){const[tt,rt]=reactExports.useState(!1),[nt,it]=reactExports.useState(!1),st=reactExports.useRef(null),at=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:ot,pauseOnHover:lt,closeToast:ut,onClick:dt,closeOnClick:bt}=et;var gt,kt;function pt(){rt(!0)}function yt(){rt(!1)}function $t(St){const Bt=st.current;at.canDrag&&Bt&&(at.didMove=!0,tt&&yt(),at.delta=et.draggableDirection==="x"?St.clientX-at.start:St.clientY-at.start,at.start!==St.clientX&&(at.canCloseOnClick=!1),Bt.style.transform=`translate3d(${et.draggableDirection==="x"?`${at.delta}px, var(--y)`:`0, calc(${at.delta}px + var(--y))`},0)`,Bt.style.opacity=""+(1-Math.abs(at.delta/at.removalDistance)))}function mt(){document.removeEventListener("pointermove",$t),document.removeEventListener("pointerup",mt);const St=st.current;if(at.canDrag&&at.didMove&&St){if(at.canDrag=!1,Math.abs(at.delta)>at.removalDistance)return it(!0),et.closeToast(),void et.collapseAll();St.style.transition="transform 0.2s, opacity 0.2s",St.style.removeProperty("transform"),St.style.removeProperty("opacity")}}(kt=v$2.get((gt={id:et.toastId,containerId:et.containerId,fn:rt}).containerId||1))==null||kt.setToggle(gt.id,gt.fn),reactExports.useEffect(()=>{if(et.pauseOnFocusLoss)return document.hasFocus()||yt(),window.addEventListener("focus",pt),window.addEventListener("blur",yt),()=>{window.removeEventListener("focus",pt),window.removeEventListener("blur",yt)}},[et.pauseOnFocusLoss]);const wt={onPointerDown:function(St){if(et.draggable===!0||et.draggable===St.pointerType){at.didMove=!1,document.addEventListener("pointermove",$t),document.addEventListener("pointerup",mt);const Bt=st.current;at.canCloseOnClick=!0,at.canDrag=!0,Bt.style.transition="none",et.draggableDirection==="x"?(at.start=St.clientX,at.removalDistance=Bt.offsetWidth*(et.draggablePercent/100)):(at.start=St.clientY,at.removalDistance=Bt.offsetHeight*(et.draggablePercent===80?1.5*et.draggablePercent:et.draggablePercent)/100)}},onPointerUp:function(St){const{top:Bt,bottom:Ft,left:Lt,right:zt}=st.current.getBoundingClientRect();St.nativeEvent.type!=="touchend"&&et.pauseOnHover&&St.clientX>=Lt&&St.clientX<=zt&&St.clientY>=Bt&&St.clientY<=Ft?yt():pt()}};return ot&<&&(wt.onMouseEnter=yt,et.stacked||(wt.onMouseLeave=pt)),bt&&(wt.onClick=St=>{dt&&dt(St),at.canCloseOnClick&&ut()}),{playToast:pt,pauseToast:yt,isRunning:tt,preventExitTransition:nt,toastRef:st,eventHandlers:wt}}function $(et){let{delay:tt,isRunning:rt,closeToast:nt,type:it="default",hide:st,className:at,style:ot,controlledProgress:lt,progress:ut,rtl:dt,isIn:bt,theme:gt}=et;const kt=st||lt&&ut===0,pt={...ot,animationDuration:`${tt}ms`,animationPlayState:rt?"running":"paused"};lt&&(pt.transform=`scaleX(${ut})`);const yt=clsx$1("Toastify__progress-bar",lt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${gt}`,`Toastify__progress-bar--${it}`,{"Toastify__progress-bar--rtl":dt}),$t=u$1(at)?at({rtl:dt,type:it,defaultClassName:yt}):clsx$1(yt,at),mt={[lt&&ut>=1?"onTransitionEnd":"onAnimationEnd"]:lt&&ut<1?null:()=>{bt&&nt()}};return React.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":kt},React.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${gt} Toastify__progress-bar--${it}`}),React.createElement("div",{role:"progressbar","aria-hidden":kt?"true":"false","aria-label":"notification timer",className:$t,style:pt,...mt}))}let w$1=1;const k$1=()=>""+w$1++;function P$1(et){return et&&(d$1(et.toastId)||c$1(et.toastId))?et.toastId:k$1()}function M(et,tt){return _(et,tt),tt.toastId}function x(et,tt){return{...tt,type:tt&&tt.type||et,toastId:P$1(tt)}}function A(et){return(tt,rt)=>M(tt,x(et,rt))}function B(et,tt){return M(et,x("default",tt))}B.loading=(et,tt)=>M(et,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...tt})),B.promise=function(et,tt,rt){let nt,{pending:it,error:st,success:at}=tt;it&&(nt=d$1(it)?B.loading(it,rt):B.loading(it.render,{...rt,...it}));const ot={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},lt=(dt,bt,gt)=>{if(bt==null)return void B.dismiss(nt);const kt={type:dt,...ot,...rt,data:gt},pt=d$1(bt)?{render:bt}:bt;return nt?B.update(nt,{...kt,...pt}):B(pt.render,{...kt,...pt}),gt},ut=u$1(et)?et():et;return ut.then(dt=>lt("success",at,dt)).catch(dt=>lt("error",st,dt)),ut},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(et,tt)=>M(et,x("default",{theme:"dark",...tt})),B.dismiss=function(et){(function(tt){var rt;if(b$1()){if(tt==null||d$1(rt=tt)||c$1(rt))v$2.forEach(it=>{it.removeToast(tt)});else if(tt&&("containerId"in tt||"id"in tt)){var nt;(nt=v$2.get(tt.containerId))!=null&&nt.removeToast(tt.id)||v$2.forEach(it=>{it.removeToast(tt.id)})}}else h$2=h$2.filter(it=>tt!=null&&it.options.toastId!==tt)})(et)},B.clearWaitingQueue=function(et){et===void 0&&(et={}),v$2.forEach(tt=>{!tt.props.limit||et.containerId&&tt.id!==et.containerId||tt.clearQueue()})},B.isActive=I,B.update=function(et,tt){tt===void 0&&(tt={});const rt=((nt,it)=>{var st;let{containerId:at}=it;return(st=v$2.get(at||1))==null?void 0:st.toasts.get(nt)})(et,tt);if(rt){const{props:nt,content:it}=rt,st={delay:100,...nt,...tt,toastId:tt.toastId||et,updateId:k$1()};st.toastId!==et&&(st.staleId=et);const at=st.render||it;delete st.render,M(at,st)}},B.done=et=>{B.update(et,{progress:1})},B.onChange=function(et){return T.add(et),()=>{T.delete(et)}},B.play=et=>C(!0,et),B.pause=et=>C(!1,et);const O=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D=et=>{let{theme:tt,type:rt,isLoading:nt,...it}=et;return React.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:tt==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...it})},z={info:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React.createElement("div",{className:"Toastify__spinner"})}},R=et=>{const{isRunning:tt,preventExitTransition:rt,toastRef:nt,eventHandlers:it,playToast:st}=N(et),{closeButton:at,children:ot,autoClose:lt,onClick:ut,type:dt,hideProgressBar:bt,closeToast:gt,transition:kt,position:pt,className:yt,style:$t,bodyClassName:mt,bodyStyle:wt,progressClassName:St,progressStyle:Bt,updateId:Ft,role:Lt,progress:zt,rtl:Ht,toastId:Wt,deleteToast:lr,isIn:qt,isLoading:Ot,closeOnClick:Mt,theme:ht}=et,Et=clsx$1("Toastify__toast",`Toastify__toast-theme--${ht}`,`Toastify__toast--${dt}`,{"Toastify__toast--rtl":Ht},{"Toastify__toast--close-on-click":Mt}),Tt=u$1(yt)?yt({rtl:Ht,position:pt,type:dt,defaultClassName:Et}):clsx$1(Et,yt),Rt=function(Ct){let{theme:xt,type:Dt,isLoading:tr,icon:pr}=Ct,Kt=null;const Qt={theme:xt,type:Dt};return pr===!1||(u$1(pr)?Kt=pr({...Qt,isLoading:tr}):reactExports.isValidElement(pr)?Kt=reactExports.cloneElement(pr,Qt):tr?Kt=z.spinner():(Zt=>Zt in z)(Dt)&&(Kt=z[Dt](Qt))),Kt}(et),At=!!zt||!lt,Pt={closeToast:gt,type:dt,theme:ht};let It=null;return at===!1||(It=u$1(at)?at(Pt):reactExports.isValidElement(at)?reactExports.cloneElement(at,Pt):function(Ct){let{closeToast:xt,theme:Dt,ariaLabel:tr="close"}=Ct;return React.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Dt}`,type:"button",onClick:pr=>{pr.stopPropagation(),xt(pr)},"aria-label":tr},React.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Pt)),React.createElement(kt,{isIn:qt,done:lr,position:pt,preventExitTransition:rt,nodeRef:nt,playToast:st},React.createElement("div",{id:Wt,onClick:ut,"data-in":qt,className:Tt,...it,style:$t,ref:nt},React.createElement("div",{...qt&&{role:Lt},className:u$1(mt)?mt({type:dt}):clsx$1("Toastify__toast-body",mt),style:wt},Rt!=null&&React.createElement("div",{className:clsx$1("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ot})},Rt),React.createElement("div",null,ot)),It,React.createElement($,{...Ft&&!At?{key:`pb-${Ft}`}:{},rtl:Ht,theme:ht,delay:lt,isRunning:tt,isIn:qt,closeToast:gt,hide:bt,type:dt,style:Bt,className:St,controlledProgress:At,progress:zt||0})))},S=function(et,tt){return tt===void 0&&(tt=!1),{enter:`Toastify--animate Toastify__${et}-enter`,exit:`Toastify--animate Toastify__${et}-exit`,appendPosition:tt}},H=g$1(S("bounce",!0));g$1(S("slide",!0));g$1(S("zoom"));g$1(S("flip"));const q={position:"top-right",transition:H,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q(et){let tt={...q,...et};const rt=et.stacked,[nt,it]=reactExports.useState(!0),st=reactExports.useRef(null),{getToastToRender:at,isToastActive:ot,count:lt}=L(tt),{className:ut,style:dt,rtl:bt,containerId:gt}=tt;function kt(yt){const $t=clsx$1("Toastify__toast-container",`Toastify__toast-container--${yt}`,{"Toastify__toast-container--rtl":bt});return u$1(ut)?ut({position:yt,rtl:bt,defaultClassName:$t}):clsx$1($t,p$1(ut))}function pt(){rt&&(it(!0),B.play())}return O(()=>{if(rt){var yt;const $t=st.current.querySelectorAll('[data-in="true"]'),mt=12,wt=(yt=tt.position)==null?void 0:yt.includes("top");let St=0,Bt=0;Array.from($t).reverse().forEach((Ft,Lt)=>{const zt=Ft;zt.classList.add("Toastify__toast--stacked"),Lt>0&&(zt.dataset.collapsed=`${nt}`),zt.dataset.pos||(zt.dataset.pos=wt?"top":"bot");const Ht=St*(nt?.2:1)+(nt?0:mt*Lt);zt.style.setProperty("--y",`${wt?Ht:-1*Ht}px`),zt.style.setProperty("--g",`${mt}`),zt.style.setProperty("--s",""+(1-(nt?Bt:0))),St+=zt.offsetHeight,Bt+=.025})}},[nt,lt,rt]),React.createElement("div",{ref:st,className:"Toastify",id:gt,onMouseEnter:()=>{rt&&(it(!1),B.pause())},onMouseLeave:pt},at((yt,$t)=>{const mt=$t.length?{...dt}:{...dt,pointerEvents:"none"};return React.createElement("div",{className:kt(yt),style:mt,key:`container-${yt}`},$t.map(wt=>{let{content:St,props:Bt}=wt;return React.createElement(R,{...Bt,stacked:rt,collapseAll:pt,isIn:ot(Bt.toastId,Bt.containerId),style:Bt.style,key:`toast-${Bt.key}`},St)}))}))}const ReactToastify="",StyledDiv=styled$3.div` display: Flex; justify-content: center; align-items: center; @@ -556,7 +556,7 @@ PROCEED WITH CAUTION! color: ${colors.GRAY6}; cursor: pointer; z-index: 1; -`,BaseModal=({background:et="modalBg",children:tt,id:rt,hideBg:nt,kind:it,preventOutsideClose:st,noWrap:at=!1,onClose:ot})=>{const{visible:lt,close:ut}=useModal(rt);return reactExports.useEffect(()=>{const dt=bt=>{bt.keyCode===27&&ut()};return lt&&document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[lt,ut]),lt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Bg,{align:"center","data-testid":"modal-overlay",hideBg:nt,justify:"center",onClick:dt=>{st||(dt.stopPropagation(),ut())},children:jsxRuntimeExports.jsxs(ModalContainer,{background:et,borderRadius:9,id:rt,kind:it,onClick:dt=>{dt.stopPropagation()},px:at?0:20,py:at?0:20,children:[ot&&jsxRuntimeExports.jsx(CloseButton,{"data-testid":"close-modal",onClick:ot,children:jsxRuntimeExports.jsx(ClearIcon,{})}),tt]})})}):null},defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(et,tt)=>await api$1.put(`/schema/${et}`,JSON.stringify(tt)),changeNodeType=async(et,tt)=>api$1.put("/node",JSON.stringify({...tt,ref_id:et})),getFullTranscript=async et=>{const tt=`/node/text/${et}`;return await api$1.get(tt)},getSchemaAll=async()=>{const et="/schema/all";return await api$1.get(et)},getNodeContent=async et=>{const rt=`/node/content?${new URLSearchParams({...et}).toString()}`;return await api$1.get(rt)},getTotalProcessing=async()=>{const et="/node/content";return await api$1.get(et)},getRadarData=async(et=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...et}).toString()}`),getTopicsData=async(et=defaultParams,tt)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...et}).toString()}`,void 0,tt),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(et,tt)=>await api$1.get(`/curation/search/${et}?${new URLSearchParams({exact_match:"false",...tt}).toString()}`),postEdgeType=async et=>await api$1.post("/curation/edge",JSON.stringify(et)),postAboutData=async et=>await api$1.post("/about",JSON.stringify(et)),postMergeTopics=async et=>await api$1.post("/curation/merge",JSON.stringify(et)),putRadarData=async(et,tt)=>await api$1.put(`/radar/${et}`,JSON.stringify(tt)),putNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),approveRadarData=async(et,tt)=>await api$1.put(`/radar/${et}/approve`,JSON.stringify({approve:"True",pubkey:tt})),deleteRadarData=async et=>await api$1.delete(`/radar/${et}`),deleteNode=async et=>await api$1.delete(`/node/?ref_id=${et}`),getNode=async et=>await api$1.get(`/node/${et}`),getPriceData=async et=>await api$1.get(`/getprice?endpoint=${et}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async et=>await api$1.get(`/schema/${et}`),postBluePrintType=async et=>await api$1.post("/schema/edge",JSON.stringify(et)),updateEdgeType=async et=>await api$1.put(`/schema/edge/${et.ref_id}`,JSON.stringify({edge_type:et.edge_type})),deleteEdgeType=async et=>await api$1.delete(`/schema/edge/${et}`),initialValue={label:"Not Selected",value:"Not Selected"},NoParent={label:"No Parent",value:"No Parent"},OptionTypes=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],OPTIONS=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],noSpacePattern=/^[^\s].*$/;var reactInputMask={exports:{}},reactInputMask_production_min={exports:{}},invariant=function(et,tt,rt,nt,it,st,at,ot){if(!et){var lt;if(tt===void 0)lt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ut=[rt,nt,it,st,at,ot],dt=0;lt=new Error(tt.replace(/%s/g,function(){return ut[dt++]})),lt.name="Invariant Violation"}throw lt.framesToPop=1,lt}},browser=invariant;function t(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var e=reactExports,n=t(e),i=reactDomExports,r$1=t(browser);function a(){return(a=Object.assign||function(et){for(var tt=1;tt=0||(it[rt]=et[rt]);return it}function u(et){return requestAnimationFrame(et)}function s(et){cancelAnimationFrame(et)}function c(et){var tt=et.ownerDocument;return tt.hasFocus()&&tt.activeElement===et}function f(et){return et==null?void 0:et.ownerDocument}function h$1(et){var tt=function(rt){var nt;return(nt=f(rt))==null?void 0:nt.defaultView}(et);return!!tt&&et instanceof tt.HTMLElement}function g(et){return e.useCallback(function(){var tt=et.current,rt=typeof window<"u"&&h$1(tt);if(!tt||!rt)return null;if(tt.nodeName!=="INPUT"&&(tt=tt.querySelector("input")),!tt)throw new Error("react-input-mask: inputComponent doesn't contain input node");return tt},[et])}function v$1(et,tt){var rt,nt,it,st,at=e.useRef({start:null,end:null}),ot=g(et),lt=e.useCallback(function(){return function(yt){var $t=yt.selectionStart,mt=yt.selectionEnd;return{start:$t,end:mt,length:mt-$t}}(ot())},[ot]),ut=e.useCallback(function(){return at.current},[]),dt=e.useCallback(function(yt){var $t=ot();$t&&c($t)&&(function(mt,wt,St){St===void 0&&(St=wt),mt.setSelectionRange(wt,St)}($t,yt.start,yt.end),at.current=lt())},[ot,lt]),bt=e.useCallback(function(){at.current=lt()},[lt]),gt=(rt=bt,nt=e.useRef(null),it=e.useCallback(function(){nt.current===null&&function yt(){rt(),nt.current=u(yt)}()},[rt]),st=e.useCallback(function(){s(nt.current),nt.current=null},[]),e.useEffect(function(){nt.current&&(st(),it())},[it,st]),e.useEffect(s,[]),[it,st]),kt=gt[0],pt=gt[1];return e.useLayoutEffect(function(){if(tt){var yt=ot();return yt.addEventListener("focus",kt),yt.addEventListener("blur",pt),c(yt)&&kt(),function(){yt.removeEventListener("focus",kt),yt.removeEventListener("blur",pt),pt()}}}),{getSelection:lt,getLastSelection:ut,setSelection:dt}}function d(et,tt){var rt=e.useRef(),nt=v$1(rt,tt),it=nt.getSelection,st=nt.getLastSelection,at=nt.setSelection,ot=function(bt,gt){var kt=g(bt),pt=e.useRef(gt);return{getValue:e.useCallback(function(){return kt().value},[kt]),getLastValue:e.useCallback(function(){return pt.current},[]),setValue:e.useCallback(function(yt){pt.current=yt;var $t=kt();$t&&($t.value=yt)},[kt])}}(rt,et),lt=ot.getValue,ut=ot.getLastValue,dt=ot.setValue;return{inputRef:rt,getInputState:function(){return{value:lt(),selection:it()}},getLastInputState:function(){return{value:ut(),selection:st()}},setInputState:function(bt){var gt=bt.value,kt=bt.selection;dt(gt),at(kt)}}}var p=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},P=function(et){var tt=this;this.isCharacterAllowedAtPosition=function(rt,nt){var it=tt.maskOptions.maskPlaceholder;return!!tt.isCharacterFillingPosition(rt,nt)||!!it&&it[nt]===rt},this.isCharacterFillingPosition=function(rt,nt){var it=tt.maskOptions.mask;if(!rt||nt>=it.length)return!1;if(!tt.isPositionEditable(nt))return it[nt]===rt;var st=it[nt];return new RegExp(st).test(rt)},this.isPositionEditable=function(rt){var nt=tt.maskOptions,it=nt.mask,st=nt.permanents;return rt=0;st--)if(it(nt[st],st))return st;return-1}(rt.split(""),function(nt,it){return tt.isPositionEditable(it)&&tt.isCharacterFillingPosition(nt,it)})+1},this.getStringFillingLengthAtPosition=function(rt,nt){return rt.split("").reduce(function(it,st){return tt.insertCharacterAtPosition(it,st,it.length)},function(it,st){st===void 0&&(st=1);for(var at="",ot=0;ot=0;nt--)if(tt.isPositionEditable(nt))return nt;return null},this.getRightEditablePosition=function(rt){for(var nt=tt.maskOptions.mask,it=rt;it=st&&!gt?"":bt=st?dt:gt?ot?ot[bt]:"":lt[bt]}).join("");return tt.formatValue(ut)},this.insertCharacterAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(it>=at.length)return rt;var lt=tt.isCharacterAllowedAtPosition(nt,it),ut=tt.isPositionEditable(it),dt=tt.getRightEditablePosition(it),bt=ot&&dt?nt===ot[dt]:null,gt=rt.slice(0,it);return!lt&&ut||(rt=gt+(lt?nt:at[it])),lt||ut||bt||(rt=tt.insertCharacterAtPosition(rt,nt,it+1)),rt},this.insertStringAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(!nt||it>=at.length)return rt;var lt=nt.split(""),ut=tt.isValueFilled(rt)||!!ot,dt=rt.slice(it);return rt=lt.reduce(function(bt,gt){return tt.insertCharacterAtPosition(bt,gt,bt.length)},rt.slice(0,it)),ut?rt+=dt.slice(rt.length-it):tt.isValueFilled(rt)?rt+=at.slice(rt.length).join(""):rt=dt.split("").filter(function(bt,gt){return tt.isPositionEditable(it+gt)}).reduce(function(bt,gt){var kt=tt.getRightEditablePosition(bt.length);return kt===null?bt:(tt.isPositionEditable(bt.length)||(bt+=at.slice(bt.length,kt).join("")),tt.insertCharacterAtPosition(bt,gt,bt.length))},rt),rt},this.processChange=function(rt,nt){var it=tt.maskOptions,st=it.mask,at=it.prefix,ot=it.lastEditablePosition,lt=rt.value,ut=rt.selection,dt=nt.value,bt=nt.selection,gt=lt,kt="",pt=0,yt=0,$t=Math.min(bt.start,ut.start);return ut.end>bt.start?(kt=gt.slice(bt.start,ut.end),yt=(pt=tt.getStringFillingLengthAtPosition(kt,$t))?bt.length:0):gt.length=st.length?$t=st.length:$t=at.length&&$t{const{visible:lt,close:ut}=useModal(rt);return reactExports.useEffect(()=>{const dt=bt=>{bt.keyCode===27&&ut()};return lt&&document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[lt,ut]),lt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Bg,{align:"center","data-testid":"modal-overlay",hideBg:nt,justify:"center",onClick:dt=>{st||(dt.stopPropagation(),ut())},children:jsxRuntimeExports.jsxs(ModalContainer,{background:et,borderRadius:9,id:rt,kind:it,onClick:dt=>{dt.stopPropagation()},px:at?0:20,py:at?0:20,children:[ot&&jsxRuntimeExports.jsx(CloseButton,{"data-testid":"close-modal",onClick:ot,children:jsxRuntimeExports.jsx(ClearIcon,{})}),tt]})})}):null},defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(et,tt)=>await api$1.put(`/schema/${et}`,JSON.stringify(tt)),changeNodeType=async(et,tt)=>api$1.put("/node",JSON.stringify({...tt,ref_id:et})),getFullTranscript=async et=>{const tt=`/node/text/${et}`;return await api$1.get(tt)},getSchemaAll=async()=>{const et="/schema/all";return await api$1.get(et)},getNodeContent=async et=>{const rt=`/node/content?${new URLSearchParams({...et}).toString()}`;return await api$1.get(rt)},getTotalProcessing=async()=>{const et="/node/content";return await api$1.get(et)},getRadarData=async(et=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...et}).toString()}`),getTopicsData=async(et=defaultParams,tt)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...et}).toString()}`,void 0,tt),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(et,tt)=>await api$1.get(`/curation/search/${et}?${new URLSearchParams({exact_match:"false",...tt}).toString()}`),postEdgeType=async et=>await api$1.post("/curation/edge",JSON.stringify(et)),postAboutData=async et=>await api$1.post("/about",JSON.stringify(et)),postMergeTopics=async et=>await api$1.post("/curation/merge",JSON.stringify(et)),putRadarData=async(et,tt)=>await api$1.put(`/radar/${et}`,JSON.stringify(tt)),putNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),approveRadarData=async(et,tt)=>await api$1.put(`/radar/${et}/approve`,JSON.stringify({approve:"True",pubkey:tt})),deleteRadarData=async et=>await api$1.delete(`/radar/${et}`),deleteNode=async et=>await api$1.delete(`/node/?ref_id=${et}`),getNode=async et=>await api$1.get(`/node/${et}`),getPriceData=async et=>await api$1.get(`/getprice?endpoint=${et}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async et=>await api$1.get(`/schema/${et}`),postBluePrintType=async et=>await api$1.post("/schema/edge",JSON.stringify(et)),updateEdgeType=async et=>await api$1.put(`/schema/edge/${et.ref_id}`,JSON.stringify({edge_type:et.edge_type})),deleteEdgeType=async et=>await api$1.delete(`/schema/edge/${et}`),initialValue={label:"Not Selected",value:"Not Selected"},NoParent={label:"No Parent",value:"No Parent"},OptionTypes=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],OPTIONS=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],noSpacePattern=/^[^\s].*$/;var reactInputMask={exports:{}},reactInputMask_production_min={exports:{}},invariant=function(et,tt,rt,nt,it,st,at,ot){if(!et){var lt;if(tt===void 0)lt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ut=[rt,nt,it,st,at,ot],dt=0;lt=new Error(tt.replace(/%s/g,function(){return ut[dt++]})),lt.name="Invariant Violation"}throw lt.framesToPop=1,lt}},browser=invariant;function t(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var e=reactExports,n=t(e),i=reactDomExports,r$1=t(browser);function a(){return(a=Object.assign||function(et){for(var tt=1;tt=0||(it[rt]=et[rt]);return it}function u(et){return requestAnimationFrame(et)}function s(et){cancelAnimationFrame(et)}function c(et){var tt=et.ownerDocument;return tt.hasFocus()&&tt.activeElement===et}function f(et){return et==null?void 0:et.ownerDocument}function h$1(et){var tt=function(rt){var nt;return(nt=f(rt))==null?void 0:nt.defaultView}(et);return!!tt&&et instanceof tt.HTMLElement}function g(et){return e.useCallback(function(){var tt=et.current,rt=typeof window<"u"&&h$1(tt);if(!tt||!rt)return null;if(tt.nodeName!=="INPUT"&&(tt=tt.querySelector("input")),!tt)throw new Error("react-input-mask: inputComponent doesn't contain input node");return tt},[et])}function v$1(et,tt){var rt,nt,it,st,at=e.useRef({start:null,end:null}),ot=g(et),lt=e.useCallback(function(){return function(yt){var $t=yt.selectionStart,mt=yt.selectionEnd;return{start:$t,end:mt,length:mt-$t}}(ot())},[ot]),ut=e.useCallback(function(){return at.current},[]),dt=e.useCallback(function(yt){var $t=ot();$t&&c($t)&&(function(mt,wt,St){St===void 0&&(St=wt),mt.setSelectionRange(wt,St)}($t,yt.start,yt.end),at.current=lt())},[ot,lt]),bt=e.useCallback(function(){at.current=lt()},[lt]),gt=(rt=bt,nt=e.useRef(null),it=e.useCallback(function(){nt.current===null&&function yt(){rt(),nt.current=u(yt)}()},[rt]),st=e.useCallback(function(){s(nt.current),nt.current=null},[]),e.useEffect(function(){nt.current&&(st(),it())},[it,st]),e.useEffect(s,[]),[it,st]),kt=gt[0],pt=gt[1];return e.useLayoutEffect(function(){if(tt){var yt=ot();return yt.addEventListener("focus",kt),yt.addEventListener("blur",pt),c(yt)&&kt(),function(){yt.removeEventListener("focus",kt),yt.removeEventListener("blur",pt),pt()}}}),{getSelection:lt,getLastSelection:ut,setSelection:dt}}function d(et,tt){var rt=e.useRef(),nt=v$1(rt,tt),it=nt.getSelection,st=nt.getLastSelection,at=nt.setSelection,ot=function(bt,gt){var kt=g(bt),pt=e.useRef(gt);return{getValue:e.useCallback(function(){return kt().value},[kt]),getLastValue:e.useCallback(function(){return pt.current},[]),setValue:e.useCallback(function(yt){pt.current=yt;var $t=kt();$t&&($t.value=yt)},[kt])}}(rt,et),lt=ot.getValue,ut=ot.getLastValue,dt=ot.setValue;return{inputRef:rt,getInputState:function(){return{value:lt(),selection:it()}},getLastInputState:function(){return{value:ut(),selection:st()}},setInputState:function(bt){var gt=bt.value,kt=bt.selection;dt(gt),at(kt)}}}var p=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},P=function(et){var tt=this;this.isCharacterAllowedAtPosition=function(rt,nt){var it=tt.maskOptions.maskPlaceholder;return!!tt.isCharacterFillingPosition(rt,nt)||!!it&&it[nt]===rt},this.isCharacterFillingPosition=function(rt,nt){var it=tt.maskOptions.mask;if(!rt||nt>=it.length)return!1;if(!tt.isPositionEditable(nt))return it[nt]===rt;var st=it[nt];return new RegExp(st).test(rt)},this.isPositionEditable=function(rt){var nt=tt.maskOptions,it=nt.mask,st=nt.permanents;return rt=0;st--)if(it(nt[st],st))return st;return-1}(rt.split(""),function(nt,it){return tt.isPositionEditable(it)&&tt.isCharacterFillingPosition(nt,it)})+1},this.getStringFillingLengthAtPosition=function(rt,nt){return rt.split("").reduce(function(it,st){return tt.insertCharacterAtPosition(it,st,it.length)},function(it,st){st===void 0&&(st=1);for(var at="",ot=0;ot=0;nt--)if(tt.isPositionEditable(nt))return nt;return null},this.getRightEditablePosition=function(rt){for(var nt=tt.maskOptions.mask,it=rt;it=st&&!gt?"":bt=st?dt:gt?ot?ot[bt]:"":lt[bt]}).join("");return tt.formatValue(ut)},this.insertCharacterAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(it>=at.length)return rt;var lt=tt.isCharacterAllowedAtPosition(nt,it),ut=tt.isPositionEditable(it),dt=tt.getRightEditablePosition(it),bt=ot&&dt?nt===ot[dt]:null,gt=rt.slice(0,it);return!lt&&ut||(rt=gt+(lt?nt:at[it])),lt||ut||bt||(rt=tt.insertCharacterAtPosition(rt,nt,it+1)),rt},this.insertStringAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(!nt||it>=at.length)return rt;var lt=nt.split(""),ut=tt.isValueFilled(rt)||!!ot,dt=rt.slice(it);return rt=lt.reduce(function(bt,gt){return tt.insertCharacterAtPosition(bt,gt,bt.length)},rt.slice(0,it)),ut?rt+=dt.slice(rt.length-it):tt.isValueFilled(rt)?rt+=at.slice(rt.length).join(""):rt=dt.split("").filter(function(bt,gt){return tt.isPositionEditable(it+gt)}).reduce(function(bt,gt){var kt=tt.getRightEditablePosition(bt.length);return kt===null?bt:(tt.isPositionEditable(bt.length)||(bt+=at.slice(bt.length,kt).join("")),tt.insertCharacterAtPosition(bt,gt,bt.length))},rt),rt},this.processChange=function(rt,nt){var it=tt.maskOptions,st=it.mask,at=it.prefix,ot=it.lastEditablePosition,lt=rt.value,ut=rt.selection,dt=nt.value,bt=nt.selection,gt=lt,kt="",pt=0,yt=0,$t=Math.min(bt.start,ut.start);return ut.end>bt.start?(kt=gt.slice(bt.start,ut.end),yt=(pt=tt.getStringFillingLengthAtPosition(kt,$t))?bt.length:0):gt.length=st.length?$t=st.length:$t=at.length&&$tcolors[et]}; background: transparent; @@ -651,7 +651,7 @@ PROCEED WITH CAUTION! line-height: 20px; letter-spacing: 0.01em; text-align: left; -`,TextInput=({id:et,dataTestId:tt,label:rt,mask:nt="",message:it,name:st,rules:at,showMask:ot=!1,maskPlaceholder:lt=null,isTextArea:ut=!1,placeholder:dt="",maxLength:bt,...gt})=>{const{register:kt,control:pt,formState:{errors:yt},getValues:$t}=useFormContext()||{},mt=get(yt,st),wt=$t(st),[St,Bt]=reactExports.useState(!1),[Ft,Dt]=reactExports.useState(!1);return reactExports.useEffect(()=>{const zt=document.getElementById(et);zt&&zt.focus()},[et]),jsxRuntimeExports.jsxs(Flex,{shrink:1,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",children:[rt&&jsxRuntimeExports.jsx(Label,{htmlFor:et,children:rt}),it&&jsxRuntimeExports.jsxs(QuestionIcon,{name:st,role:"tooltip",children:[jsxRuntimeExports.jsx(InfoIcon,{}),jsxRuntimeExports.jsx("div",{className:"tooltip",children:it})]})]}),jsxRuntimeExports.jsx(Wrapper$1,{hasContent:!!wt,hasError:!!mt,isFocused:St,isHovered:Ft,onMouseEnter:()=>Dt(!0),onMouseLeave:()=>Dt(!1),children:jsxRuntimeExports.jsx(Controller,{control:pt,...kt(st),render:({field:{onBlur:zt,onChange:Ht,value:Wt,ref:lr}})=>{const{disabled:qt=defaultProps.disabled,textAlign:Ot=defaultProps.textAlign}=gt;return ut?jsxRuntimeExports.jsx(StyledTextArea,{ref:lr,"data-testid":tt,disabled:qt,id:et,maxLength:bt,onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,value:Wt||""}):nt?jsxRuntimeExports.jsx(InputMask,{alwaysShowMask:ot,disabled:!1,inputRef:lr,mask:nt,...kt(st),maskPlaceholder:lt,onBlur:zt,onChange:Ht,value:Wt,children:jsxRuntimeExports.jsx(WebTextInput,{colorName:"white","data-testid":tt,disabled:qt,...kt(st),id:et,onBlur:()=>Bt(!1),onFocus:()=>Bt(!0),placeholderTextColor:"inputPlaceholder",textAlign:Ot})}):jsxRuntimeExports.jsx(BaseTextInput,{...gt,colorName:"white",dataTestId:tt,id:et,...kt(st),onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,placeholderTextColor:"inputPlaceholder",value:Wt||""})},rules:at})}),mt&&jsxRuntimeExports.jsx(Flex,{pl:4,pt:8,shrink:1,tabIndex:0,children:jsxRuntimeExports.jsx(Text,{color:"primaryRed",kind:"regularBold",children:jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",shrink:1,children:[jsxRuntimeExports.jsx(MdError,{fontSize:18}),jsxRuntimeExports.jsx(Flex,{pl:4,shrink:1,children:mt.message!==""?mt.message:"Please enter a valid URL"})]})})})]})},GraphDetailsStep=({onSubmit:et,error:tt})=>{const{formState:{isSubmitting:rt},watch:nt}=useFormContext(),it=nt("title"),st=nt("description"),at=!!(it!=null&&it.trim())&&!!(st!=null&&st.trim());return reactExports.useEffect(()=>{const ot=document.getElementById("graph-title");ot&&ot.focus()},[]),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",justify:"space-between",children:[jsxRuntimeExports.jsx(StyledText$1,{children:"Welcome to SecondBrain"}),jsxRuntimeExports.jsx(StyledSubText,{children:"Set a name and short description for your graph."})]}),jsxRuntimeExports.jsx(StyledWrapper,{children:jsxRuntimeExports.jsxs(Flex,{className:"input__wrapper",children:[jsxRuntimeExports.jsx(TextInput,{id:"graph-title",label:"Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}}),jsxRuntimeExports.jsx(TextInput,{id:"graph-description",label:"Description",maxLength:100,name:"description",placeholder:"Type graph description here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}})]})}),jsxRuntimeExports.jsx(Flex,{mt:10,children:jsxRuntimeExports.jsx(Button$1,{color:"secondary",disabled:rt||!!tt||!at,onClick:et,size:"large",variant:"contained",children:"Confirm"})}),tt?jsxRuntimeExports.jsx(StyledError,{children:jsxRuntimeExports.jsxs(StyledErrorText,{children:[jsxRuntimeExports.jsx(MdError,{className:"errorIcon"}),jsxRuntimeExports.jsx("span",{children:tt})]})}):null]})},StyledText$1=styled$3(Text)` +`,TextInput=({id:et,dataTestId:tt,label:rt,mask:nt="",message:it,name:st,rules:at,showMask:ot=!1,maskPlaceholder:lt=null,isTextArea:ut=!1,placeholder:dt="",maxLength:bt,...gt})=>{const{register:kt,control:pt,formState:{errors:yt},getValues:$t}=useFormContext()||{},mt=get(yt,st),wt=$t(st),[St,Bt]=reactExports.useState(!1),[Ft,Lt]=reactExports.useState(!1);return reactExports.useEffect(()=>{const zt=document.getElementById(et);zt&&zt.focus()},[et]),jsxRuntimeExports.jsxs(Flex,{shrink:1,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",children:[rt&&jsxRuntimeExports.jsx(Label,{htmlFor:et,children:rt}),it&&jsxRuntimeExports.jsxs(QuestionIcon,{name:st,role:"tooltip",children:[jsxRuntimeExports.jsx(InfoIcon,{}),jsxRuntimeExports.jsx("div",{className:"tooltip",children:it})]})]}),jsxRuntimeExports.jsx(Wrapper$1,{hasContent:!!wt,hasError:!!mt,isFocused:St,isHovered:Ft,onMouseEnter:()=>Lt(!0),onMouseLeave:()=>Lt(!1),children:jsxRuntimeExports.jsx(Controller,{control:pt,...kt(st),render:({field:{onBlur:zt,onChange:Ht,value:Wt,ref:lr}})=>{const{disabled:qt=defaultProps.disabled,textAlign:Ot=defaultProps.textAlign}=gt;return ut?jsxRuntimeExports.jsx(StyledTextArea,{ref:lr,"data-testid":tt,disabled:qt,id:et,maxLength:bt,onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,value:Wt||""}):nt?jsxRuntimeExports.jsx(InputMask,{alwaysShowMask:ot,disabled:!1,inputRef:lr,mask:nt,...kt(st),maskPlaceholder:lt,onBlur:zt,onChange:Ht,value:Wt,children:jsxRuntimeExports.jsx(WebTextInput,{colorName:"white","data-testid":tt,disabled:qt,...kt(st),id:et,onBlur:()=>Bt(!1),onFocus:()=>Bt(!0),placeholderTextColor:"inputPlaceholder",textAlign:Ot})}):jsxRuntimeExports.jsx(BaseTextInput,{...gt,colorName:"white",dataTestId:tt,id:et,...kt(st),onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,placeholderTextColor:"inputPlaceholder",value:Wt||""})},rules:at})}),mt&&jsxRuntimeExports.jsx(Flex,{pl:4,pt:8,shrink:1,tabIndex:0,children:jsxRuntimeExports.jsx(Text,{color:"primaryRed",kind:"regularBold",children:jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",shrink:1,children:[jsxRuntimeExports.jsx(MdError,{fontSize:18}),jsxRuntimeExports.jsx(Flex,{pl:4,shrink:1,children:mt.message!==""?mt.message:"Please enter a valid URL"})]})})})]})},GraphDetailsStep=({onSubmit:et,error:tt})=>{const{formState:{isSubmitting:rt},watch:nt}=useFormContext(),it=nt("title"),st=nt("description"),at=!!(it!=null&&it.trim())&&!!(st!=null&&st.trim());return reactExports.useEffect(()=>{const ot=document.getElementById("graph-title");ot&&ot.focus()},[]),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",justify:"space-between",children:[jsxRuntimeExports.jsx(StyledText$1,{children:"Welcome to SecondBrain"}),jsxRuntimeExports.jsx(StyledSubText,{children:"Set a name and short description for your graph."})]}),jsxRuntimeExports.jsx(StyledWrapper,{children:jsxRuntimeExports.jsxs(Flex,{className:"input__wrapper",children:[jsxRuntimeExports.jsx(TextInput,{id:"graph-title",label:"Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}}),jsxRuntimeExports.jsx(TextInput,{id:"graph-description",label:"Description",maxLength:100,name:"description",placeholder:"Type graph description here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}})]})}),jsxRuntimeExports.jsx(Flex,{mt:10,children:jsxRuntimeExports.jsx(Button$1,{color:"secondary",disabled:rt||!!tt||!at,onClick:et,size:"large",variant:"contained",children:"Confirm"})}),tt?jsxRuntimeExports.jsx(StyledError,{children:jsxRuntimeExports.jsxs(StyledErrorText,{children:[jsxRuntimeExports.jsx(MdError,{className:"errorIcon"}),jsxRuntimeExports.jsx("span",{children:tt})]})}):null]})},StyledText$1=styled$3(Text)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -711,7 +711,7 @@ PROCEED WITH CAUTION! [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const wt=mt.state[ot];if(wt==null)return;JSON.stringify(it.getState())!==JSON.stringify(wt)&&kt(wt);return}it.dispatchFromDevtools&&typeof it.dispatch=="function"&&it.dispatch(mt)});case"DISPATCH":switch(yt.payload.type){case"RESET":return kt(pt),ot===void 0?dt==null?void 0:dt.init(it.getState()):dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"COMMIT":if(ot===void 0){dt==null||dt.init(it.getState());return}return dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"ROLLBACK":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt),dt==null||dt.init(it.getState());return}kt(mt[ot]),dt==null||dt.init(getTrackedConnectionState(lt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt);return}JSON.stringify(it.getState())!==JSON.stringify(mt[ot])&&kt(mt[ot])});case"IMPORT_STATE":{const{nextLiftedState:mt}=yt.payload,wt=($t=mt.computedStates.slice(-1)[0])==null?void 0:$t.state;if(!wt)return;kt(ot===void 0?wt:wt[ot]),dt==null||dt.send(null,mt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),pt},devtools=devtoolsImpl,parseJsonThen=(et,tt)=>{let rt;try{rt=JSON.parse(et)}catch(nt){console.error("[zustand devtools middleware] Could not parse the received json",nt)}rt!==void 0&&tt(rt)},fetchGraphData=async(et,tt,rt=!1,nt,it)=>fetchNodes(et,tt,rt,nt),fetchNodes=async(et,tt,rt=!1,nt,it)=>{const st=new URLSearchParams(tt).toString(),at=rt?"/prediction/graph/search/latest?":`/prediction/graph/search?${st}`,ot=async()=>{const lt=await getLSat();try{const ut=await api$1.get(at,{Authorization:lt},nt);return updateBudget(et),ut}catch(ut){if(ut.status===402)return await payLsat(et),fetchNodes(et,tt,rt,nt);throw ut}};return!tt.word||isDevelopment&&!isE2E?api$1.get(`${at}&free=true`,void 0,nt):ot()},fetchNodeEdges=async(et,tt,rt=5,nt={})=>{try{const{sortBy:it="edge_count",includeProperties:st=!0,includeContent:at=!0,depth:ot=1,useSubGraph:lt=!0,nodeType:ut=[]}=nt,dt=new URLSearchParams({skip:tt.toString(),limit:rt.toString(),sort_by:it,include_properties:st.toString(),includeContent:at.toString(),depth:ot.toString(),use_sub_graph:lt.toString(),...ut.length>0&&{node_type:JSON.stringify(ut)}}).toString();return await api$1.get(`/prediction/graph/edges/${et}?${dt}`)}catch(it){return console.error(it),null}},defaultData$4={aiSummaryAnswers:{},aiRefId:"",newLoading:null},useAiSummaryStore=create()(devtools((et,tt)=>({...defaultData$4,setAiSummaryAnswer:(rt,nt)=>{const it=tt().aiSummaryAnswers;it[rt]={...it[rt]||{},...nt};const st=structuredClone(it);et({aiSummaryAnswers:st})},setNewLoading:rt=>{et({newLoading:rt})},resetAiSummaryAnswer:()=>{et({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:rt=>tt().aiSummaryAnswers[rt].answer||"",setAiRefId:rt=>et({aiRefId:rt}),getKeyExist:rt=>rt in tt().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(et=>Object.values(et.aiSummaryAnswers).filter(tt=>tt.shouldRender).length||!!et.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(et=>{var rt;const tt=et.aiSummaryAnswers;return!!et.newLoading||((rt=Object.values(tt).at(-1))==null?void 0:rt.answerLoading)}),defaultData$3={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((et,tt)=>({...defaultData$3,clearSearch:()=>et({currentSearch:""}),setCurrentSearch:rt=>et({currentSearch:rt}),setSearchFormValue:rt=>et({searchFormValue:rt}),setFlagErrorOpen:rt=>et({flagErrorIsOpen:rt}),setRelevanceSelected:rt=>et({relevanceIsSelected:rt}),setCurrentPlayingAudio:rt=>et({currentPlayingAudio:rt}),setSecondarySidebarActiveTab:rt=>et({secondarySidebarActiveTab:rt}),setSidebarOpen:rt=>et({sidebarIsOpen:rt,transcriptIsOpen:rt?tt().transcriptIsOpen:!1}),setTranscriptOpen:rt=>et({transcriptIsOpen:rt}),setUniverseQuestionIsOpen:()=>et({universeQuestionIsOpen:!tt().universeQuestionIsOpen}),setAppMetaData:rt=>et({appMetaData:rt}),setShowCollapseButton:rt=>et({showCollapseButton:rt}),setSelectedColor:rt=>et({selectedColor:rt}),setSelectedIcon:rt=>et({selectedIcon:rt})})),deduplicateByRefId=et=>{const tt=new Map;return et.forEach(rt=>{tt.has(rt.ref_id)||tt.set(rt.ref_id,rt)}),Array.from(tt.values())},defaultData$2={categoryFilter:null,dataInitial:null,runningProjectMessages:[],filters:{skip:0,limit:300,depth:"2",sort_by:"score",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:"",hideNodeDetails:!1,nodeTypes:[]};let abortController=null;const useDataStore=create()(devtools((et,tt)=>({...defaultData$2,fetchData:async(rt,nt,it="")=>{var Ft,Dt,zt,Ht;const{dataInitial:st,filters:at}=tt(),ot=at.skip,lt=at.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=useAiSummaryStore.getState();let kt={ai_summary:String(!!it)};it||et(ot?{isLoadingNew:!0}:{isFetching:!0}),it&&(kt={...kt,ai_summary:String(!0)},bt({question:it,answerLoading:!0})),abortController&&abortController.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController=pt;const{node_type:$t,...mt}=at,wt=it||ut,St=lodashExports.isEqual(at,defaultData$2.filters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{}};try{const Wt=await fetchGraphData(rt,Bt,St,yt,nt);if(!(Wt!=null&&Wt.nodes))return;if((Ft=Wt==null?void 0:Wt.query_data)!=null&&Ft.ref_id){useAiSummaryStore.setState({aiRefId:(Dt=Wt==null?void 0:Wt.query_data)==null?void 0:Dt.ref_id});const{aiSummaryAnswers:xt}=useAiSummaryStore.getState(),{answer:Lt}=xt[(zt=Wt==null?void 0:Wt.query_data)==null?void 0:zt.ref_id]||{};dt((Ht=Wt==null?void 0:Wt.query_data)==null?void 0:Ht.ref_id,{question:it,answer:Lt||"",answerLoading:!Lt,sourcesLoading:!Lt,shouldRender:!0}),bt(null)}const lr=ot===0&&!gt?[]:[...(st==null?void 0:st.nodes)||[]],qt=ot===0&&!gt?[]:[...(st==null?void 0:st.links)||[]],Ot=((Wt==null?void 0:Wt.nodes)||[]).filter(xt=>!lr.some(Lt=>Lt.ref_id===xt.ref_id));lr.push(...Ot);const Mt=((Wt==null?void 0:Wt.edges)||[]).filter(xt=>!qt.some(Lt=>Lt.ref_id===xt.ref_id)).filter(xt=>{const{target:Lt,source:tr}=xt;return lr.some(pr=>pr.ref_id===Lt)&&lr.some(pr=>pr.ref_id===tr)});qt.push(...Mt);const ht=[...new Set(lr.map(xt=>xt.node_type))],Et=["all",...ht.map(xt=>xt.toLowerCase())],Tt=Et.map(xt=>({name:xt,count:lr.filter(Lt=>{var tr;return xt==="all"||((tr=Lt.node_type)==null?void 0:tr.toLowerCase())===xt}).length})),Rt=1,At=4,Pt=Math.min(...lr.map(xt=>xt.edge_count)),It=Math.max(...lr.map(xt=>xt.edge_count)),Ct=lr.map(xt=>{const{edge_count:Lt}=xt,pr=Math.round(((Lt||1)-Pt)/(It-Pt)*(At-Rt)+Rt);return{...xt,scale:pr}});et({dataInitial:{nodes:Ct,links:qt},dataNew:{nodes:Ot,links:Mt},isFetching:!1,isLoadingNew:!1,splashDataLoading:!1,nodeTypes:ht,sidebarFilters:Et,sidebarFilterCounts:Tt})}catch(Wt){console.error(Wt),Wt!=="abort"&&et({isLoadingNew:!1,isFetching:!1})}},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{const{setAbortRequests:rt}=tt(),{setBudget:nt}=useUserStore.getState();et({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),tt().fetchData(nt,rt)},resetData:()=>{et({dataNew:{nodes:[],links:[]},dataInitial:{nodes:[],links:[]},nodeTypes:[]})},nextPage:()=>{const{filters:rt,fetchData:nt,setAbortRequests:it}=tt(),{setBudget:st}=useUserStore.getState();et({filters:{...rt,skip:rt.skip+1}}),nt(st,it)},resetDataNew:()=>null,setFilters:rt=>{const{setBudget:nt}=useUserStore.getState();et(it=>({filters:{...it.filters,...rt,skip:0}})),tt().fetchData(nt,tt().setAbortRequests)},setSidebarFilterCounts:rt=>et({sidebarFilterCounts:rt}),setTrendingTopics:rt=>et({trendingTopics:rt}),setStats:rt=>et({stats:rt}),setIsFetching:rt=>et({isFetching:rt}),setCategoryFilter:rt=>et({categoryFilter:rt}),setQueuedSources:rt=>et({queuedSources:rt}),setSidebarFilter:rt=>et({sidebarFilter:rt}),setSelectedTimestamp:rt=>et({selectedTimestamp:rt}),setSources:rt=>et({sources:rt}),setHideNodeDetails:rt=>et({hideNodeDetails:rt}),setSeedQuestions:rt=>et({seedQuestions:rt}),updateNode:rt=>{console.info(rt)},addNewNode:rt=>{const{dataInitial:nt,filters:it}=tt();if(!(rt!=null&&rt.nodes))return;const st=it.node_type.length?rt.nodes.filter(St=>it.node_type.some(Bt=>Bt===St.node_type)):rt.nodes,at=deduplicateByRefId(st||[]),ot=deduplicateByRefId(rt.edges||[]),lt=nt!=null&&nt.nodes?[...nt.nodes]:[],ut=nt!=null&&nt.links?[...nt.links]:[],dt=new Set(lt.map(St=>St.ref_id)),bt=new Set(ut.map(St=>St.ref_id)),gt=at.filter(St=>!dt.has(St.ref_id)),kt=[...lt,...gt];gt.forEach(St=>dt.add(St.ref_id));const pt=ot.filter(St=>!bt.has(St.ref_id)).filter(St=>{const{source:Bt,target:Ft}=St;return dt.has(Bt)&&dt.has(Ft)}),yt=[...ut,...pt],$t=[...new Set(kt.map(St=>St.node_type))],mt=["all",...$t.map(St=>St.toLowerCase())],wt=mt.map(St=>({name:St,count:kt.filter(Bt=>{var Ft;return St==="all"||((Ft=Bt.node_type)==null?void 0:Ft.toLowerCase())===St}).length}));et({dataInitial:{nodes:kt,links:yt},dataNew:{nodes:gt,links:pt},nodeTypes:$t,sidebarFilters:mt,sidebarFilterCounts:wt})},removeNode:rt=>{console.log(rt)},setRunningProjectId:rt=>et({runningProjectId:rt,runningProjectMessages:[]}),setRunningProjectMessages:rt=>{const{runningProjectMessages:nt}=tt();et({runningProjectMessages:[...nt,rt]})},resetRunningProjectMessages:()=>et({runningProjectMessages:[]}),setAbortRequests:rt=>et({abortRequest:rt})}))),useFilteredNodes=()=>useDataStore(et=>{var tt,rt;return et.sidebarFilter==="all"?((tt=et.dataInitial)==null?void 0:tt.nodes)||[]:(((rt=et.dataInitial)==null?void 0:rt.nodes)||[]).filter(nt=>{var it;return((it=nt.node_type)==null?void 0:it.toLowerCase())===et.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(et=>et.nodeTypes),defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(et=>({...defaultData$1,setTrendingTopicsFeatureFlag:tt=>et({trendingTopicsFeatureFlag:tt}),setV2FeatureFlag:tt=>et({v2FeatureFlag:tt}),setQueuedSourcesFeatureFlag:tt=>et({queuedSourcesFeatureFlag:tt}),setCustomSchemaFeatureFlag:tt=>et({customSchemaFeatureFlag:tt}),setGraphBluePrintFeatureFlag:tt=>et({graphBluePrintFeatureFlag:tt}),setChangeNodeTypeFeatureFlag:tt=>et({changeNodeTypeFeatureFlag:tt}),setRealtimeGraphFeatureFlag:tt=>et({realtimeGraphFeatureFlag:tt}),setUserFeedbackFeatureFlag:tt=>et({userFeedbackFeatureFlag:tt}),setChatInterfaceFeatureFlag:tt=>et({chatInterfaceFeatureFlag:tt}),setFastFiltersFeatureFlag:tt=>et({fastFiltersFeatureFlag:tt})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((et,tt)=>({...defaultData,setSchemas:rt=>{const nt=rt.reduce((it,st)=>(it[st.type]=st,it),{});et({schemas:rt.map(it=>({...it})),normalizedSchemasByType:nt})},setSchemaLinks:rt=>{et({links:rt})},getPrimaryColorByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.primary_color:void 0},getIndexByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index:"name"},getNodeKeysByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index||nt.node_key:void 0},getSchemaByType:rt=>tt().normalizedSchemasByType[rt]})));function r(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{const[tt,rt]=reactExports.useState(0),nt=et.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>rt(st=>(st+1)%et.length),1e3);return()=>clearInterval(it)},[tt]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:nt.map(({key:it,value:st},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:tt===at}),children:st},it))}),jsxRuntimeExports.jsx(Flex,{children:nt.map(({key:it,label:st},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:tt===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:st})},it))})]})},TextWrapper=styled$3.div` + `);const wt=mt.state[ot];if(wt==null)return;JSON.stringify(it.getState())!==JSON.stringify(wt)&&kt(wt);return}it.dispatchFromDevtools&&typeof it.dispatch=="function"&&it.dispatch(mt)});case"DISPATCH":switch(yt.payload.type){case"RESET":return kt(pt),ot===void 0?dt==null?void 0:dt.init(it.getState()):dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"COMMIT":if(ot===void 0){dt==null||dt.init(it.getState());return}return dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"ROLLBACK":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt),dt==null||dt.init(it.getState());return}kt(mt[ot]),dt==null||dt.init(getTrackedConnectionState(lt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt);return}JSON.stringify(it.getState())!==JSON.stringify(mt[ot])&&kt(mt[ot])});case"IMPORT_STATE":{const{nextLiftedState:mt}=yt.payload,wt=($t=mt.computedStates.slice(-1)[0])==null?void 0:$t.state;if(!wt)return;kt(ot===void 0?wt:wt[ot]),dt==null||dt.send(null,mt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),pt},devtools=devtoolsImpl,parseJsonThen=(et,tt)=>{let rt;try{rt=JSON.parse(et)}catch(nt){console.error("[zustand devtools middleware] Could not parse the received json",nt)}rt!==void 0&&tt(rt)},fetchGraphData=async(et,tt,rt=!1,nt,it)=>fetchNodes(et,tt,rt,nt),fetchNodes=async(et,tt,rt=!1,nt,it)=>{const st=new URLSearchParams(tt).toString(),at=rt?"/prediction/graph/search/latest?":`/prediction/graph/search?${st}`,ot=async()=>{const lt=await getLSat();try{const ut=await api$1.get(at,{Authorization:lt},nt);return updateBudget(et),ut}catch(ut){if(ut.status===402)return await payLsat(et),fetchNodes(et,tt,rt,nt);throw ut}};return!tt.word||isDevelopment&&!isE2E?api$1.get(`${at}&free=true`,void 0,nt):ot()},fetchNodeEdges=async(et,tt,rt=5,nt={})=>{try{const{sortBy:it="edge_count",includeProperties:st=!0,includeContent:at=!0,depth:ot=1,useSubGraph:lt=!0,nodeType:ut=[]}=nt,dt=new URLSearchParams({skip:tt.toString(),limit:rt.toString(),sort_by:it,include_properties:st.toString(),includeContent:at.toString(),depth:ot.toString(),use_sub_graph:lt.toString(),...ut.length>0&&{node_type:JSON.stringify(ut)}}).toString();return await api$1.get(`/prediction/graph/edges/${et}?${dt}`)}catch(it){return console.error(it),null}},defaultData$4={aiSummaryAnswers:{},aiRefId:"",newLoading:null},useAiSummaryStore=create()(devtools((et,tt)=>({...defaultData$4,setAiSummaryAnswer:(rt,nt)=>{const it=tt().aiSummaryAnswers;it[rt]={...it[rt]||{},...nt};const st=structuredClone(it);et({aiSummaryAnswers:st})},setNewLoading:rt=>{et({newLoading:rt})},resetAiSummaryAnswer:()=>{et({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:rt=>tt().aiSummaryAnswers[rt].answer||"",setAiRefId:rt=>et({aiRefId:rt}),getKeyExist:rt=>rt in tt().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(et=>Object.values(et.aiSummaryAnswers).filter(tt=>tt.shouldRender).length||!!et.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(et=>{var rt;const tt=et.aiSummaryAnswers;return!!et.newLoading||((rt=Object.values(tt).at(-1))==null?void 0:rt.answerLoading)}),defaultData$3={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((et,tt)=>({...defaultData$3,clearSearch:()=>et({currentSearch:""}),setCurrentSearch:rt=>et({currentSearch:rt}),setSearchFormValue:rt=>et({searchFormValue:rt}),setFlagErrorOpen:rt=>et({flagErrorIsOpen:rt}),setRelevanceSelected:rt=>et({relevanceIsSelected:rt}),setCurrentPlayingAudio:rt=>et({currentPlayingAudio:rt}),setSecondarySidebarActiveTab:rt=>et({secondarySidebarActiveTab:rt}),setSidebarOpen:rt=>et({sidebarIsOpen:rt,transcriptIsOpen:rt?tt().transcriptIsOpen:!1}),setTranscriptOpen:rt=>et({transcriptIsOpen:rt}),setUniverseQuestionIsOpen:()=>et({universeQuestionIsOpen:!tt().universeQuestionIsOpen}),setAppMetaData:rt=>et({appMetaData:rt}),setShowCollapseButton:rt=>et({showCollapseButton:rt}),setSelectedColor:rt=>et({selectedColor:rt}),setSelectedIcon:rt=>et({selectedIcon:rt})})),defaultData$2={categoryFilter:null,dataInitial:null,runningProjectMessages:[],filters:{skip:0,limit:300,depth:"2",sort_by:"score",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:"",hideNodeDetails:!1,nodeTypes:[],nodesNormalized:new Map,linksNormalized:new Map};let abortController=null;const useDataStore=create()(devtools((et,tt)=>({...defaultData$2,fetchData:async(rt,nt,it="")=>{var Ft;const{filters:st,addNewNode:at}=tt(),ot=st.skip,lt=st.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=useAiSummaryStore.getState(),kt={ai_summary:String(!!it)};it||et(ot===0?{isFetching:!0}:{isLoadingNew:!0}),it&&bt({question:it,answerLoading:!0}),abortController&&abortController.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController=pt;const{node_type:$t,...mt}=st,wt=it||ut,St=lodashExports.isEqual(st,defaultData$2.filters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{}};try{const Lt=await fetchGraphData(rt,Bt,St,yt,nt);if((Ft=Lt==null?void 0:Lt.query_data)!=null&&Ft.ref_id){useAiSummaryStore.setState({aiRefId:Lt.query_data.ref_id});const{aiSummaryAnswers:zt}=useAiSummaryStore.getState(),{answer:Ht}=zt[Lt.query_data.ref_id]||{};dt(Lt.query_data.ref_id,{question:it,answer:Ht||"",answerLoading:!Ht,sourcesLoading:!Ht,shouldRender:!0}),bt(null)}Lt!=null&&Lt.nodes&&at(Lt),et({isFetching:!1,isLoadingNew:!1,splashDataLoading:!1})}catch(Lt){console.error(Lt),Lt!=="abort"&&et({isFetching:!1,isLoadingNew:!1})}},addNewNode:rt=>{const{dataInitial:nt,filters:it,nodesNormalized:st,linksNormalized:at}=tt();if(!(rt!=null&&rt.nodes))return;const ot=st||new Map,lt=at||new Map,ut=it.node_type.length?rt.nodes.filter(Bt=>it.node_type.includes(Bt.node_type)):rt.nodes,dt=[];ut.forEach(Bt=>{ot.has(Bt.ref_id)||(ot.set(Bt.ref_id,Bt),dt.push(Bt))});const gt=[...(nt==null?void 0:nt.nodes)||[],...dt],kt=[];(rt.edges||[]).forEach(Bt=>{!lt.has(Bt.ref_id)&&ot.has(Bt.source)&&ot.has(Bt.target)&&(lt.set(Bt.ref_id,Bt),kt.push(Bt))});const $t=[...(nt==null?void 0:nt.links)||[],...kt],mt=[...new Set(gt.map(Bt=>Bt.node_type))],wt=["all",...mt.map(Bt=>Bt.toLowerCase())],St=wt.map(Bt=>({name:Bt,count:gt.filter(Ft=>{var Lt;return Bt==="all"||((Lt=Ft.node_type)==null?void 0:Lt.toLowerCase())===Bt}).length}));et({dataInitial:{nodes:gt,links:$t},dataNew:{nodes:dt,links:kt},nodeTypes:mt,sidebarFilters:wt,sidebarFilterCounts:St,nodesNormalized:ot,linksNormalized:lt})},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{const{setAbortRequests:rt}=tt(),{setBudget:nt}=useUserStore.getState();et({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),tt().fetchData(nt,rt)},resetData:()=>{et({dataNew:{nodes:[],links:[]},dataInitial:{nodes:[],links:[]},nodeTypes:[]})},nextPage:()=>{const{filters:rt,fetchData:nt,setAbortRequests:it}=tt(),{setBudget:st}=useUserStore.getState();et({filters:{...rt,skip:rt.skip+1}}),nt(st,it)},resetDataNew:()=>null,setFilters:rt=>{const{setBudget:nt}=useUserStore.getState();et(it=>({filters:{...it.filters,...rt,skip:0}})),tt().fetchData(nt,tt().setAbortRequests)},setSidebarFilterCounts:rt=>et({sidebarFilterCounts:rt}),setTrendingTopics:rt=>et({trendingTopics:rt}),setStats:rt=>et({stats:rt}),setIsFetching:rt=>et({isFetching:rt}),setCategoryFilter:rt=>et({categoryFilter:rt}),setQueuedSources:rt=>et({queuedSources:rt}),setSidebarFilter:rt=>et({sidebarFilter:rt}),setSelectedTimestamp:rt=>et({selectedTimestamp:rt}),setSources:rt=>et({sources:rt}),setHideNodeDetails:rt=>et({hideNodeDetails:rt}),setSeedQuestions:rt=>et({seedQuestions:rt}),updateNode:rt=>{console.info(rt)},removeNode:rt=>{console.log(rt)},setRunningProjectId:rt=>et({runningProjectId:rt,runningProjectMessages:[]}),setRunningProjectMessages:rt=>{const{runningProjectMessages:nt}=tt();et({runningProjectMessages:[...nt,rt]})},resetRunningProjectMessages:()=>et({runningProjectMessages:[]}),setAbortRequests:rt=>et({abortRequest:rt})}))),useFilteredNodes=()=>useDataStore(et=>{var tt,rt;return et.sidebarFilter==="all"?((tt=et.dataInitial)==null?void 0:tt.nodes)||[]:(((rt=et.dataInitial)==null?void 0:rt.nodes)||[]).filter(nt=>{var it;return((it=nt.node_type)==null?void 0:it.toLowerCase())===et.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(et=>et.nodeTypes),defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(et=>({...defaultData$1,setTrendingTopicsFeatureFlag:tt=>et({trendingTopicsFeatureFlag:tt}),setV2FeatureFlag:tt=>et({v2FeatureFlag:tt}),setQueuedSourcesFeatureFlag:tt=>et({queuedSourcesFeatureFlag:tt}),setCustomSchemaFeatureFlag:tt=>et({customSchemaFeatureFlag:tt}),setGraphBluePrintFeatureFlag:tt=>et({graphBluePrintFeatureFlag:tt}),setChangeNodeTypeFeatureFlag:tt=>et({changeNodeTypeFeatureFlag:tt}),setRealtimeGraphFeatureFlag:tt=>et({realtimeGraphFeatureFlag:tt}),setUserFeedbackFeatureFlag:tt=>et({userFeedbackFeatureFlag:tt}),setChatInterfaceFeatureFlag:tt=>et({chatInterfaceFeatureFlag:tt}),setFastFiltersFeatureFlag:tt=>et({fastFiltersFeatureFlag:tt})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((et,tt)=>({...defaultData,setSchemas:rt=>{const nt=rt.reduce((it,st)=>(it[st.type]=st,it),{});et({schemas:rt.map(it=>({...it})),normalizedSchemasByType:nt})},setSchemaLinks:rt=>{et({links:rt})},getPrimaryColorByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.primary_color:void 0},getIndexByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index:"name"},getNodeKeysByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index||nt.node_key:void 0},getSchemaByType:rt=>tt().normalizedSchemasByType[rt]})));function r(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{const[tt,rt]=reactExports.useState(0),nt=et.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>rt(st=>(st+1)%et.length),1e3);return()=>clearInterval(it)},[tt]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:nt.map(({key:it,value:st},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:tt===at}),children:st},it))}),jsxRuntimeExports.jsx(Flex,{children:nt.map(({key:it,label:st},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:tt===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:st})},it))})]})},TextWrapper=styled$3.div` height: 16px; display: flex; justify-content: space-between; @@ -777,15 +777,15 @@ PROCEED WITH CAUTION! font-weight: 500; line-height: normal; } -`;var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(et,tt){module.exports=tt()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(tt){_useWebWorker=!!tt},getWebWorker=function(){return _useWebWorker},setLocationHref=function(tt){locationHref=tt},getLocationHref=function(){return locationHref};function createTag(et){return document.createElement(et)}function extendPrototype(et,tt){var rt,nt=et.length,it;for(rt=0;rt1?rt[1]=1:rt[1]<=0&&(rt[1]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addBrightnessToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[2]+=tt,rt[2]>1?rt[2]=1:rt[2]<0&&(rt[2]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addHueToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[0]+=tt/360,rt[0]>1?rt[0]-=1:rt[0]<0&&(rt[0]+=1),HSVtoRGB(rt[0],rt[1],rt[2])}var rgbToHex=function(){var et=[],tt,rt;for(tt=0;tt<256;tt+=1)rt=tt.toString(16),et[tt]=rt.length===1?"0"+rt:rt;return function(nt,it,st){return nt<0&&(nt=0),it<0&&(it=0),st<0&&(st=0),"#"+et[nt]+et[it]+et[st]}}(),setSubframeEnabled=function(tt){subframeEnabled=!!tt},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(tt){expressionsPlugin=tt},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(tt){expressionsInterfaces=tt},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(tt){defaultCurveSegments=tt},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(tt){idPrefix$1=tt};function createNS(et){return document.createElementNS(svgNS,et)}function _typeof$5(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(rt){return typeof rt}:_typeof$5=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$5(et)}var dataManager=function(){var et=1,tt=[],rt,nt,it={onmessage:function(){},postMessage:function(kt){rt({data:kt})}},st={postMessage:function(kt){it.onmessage({data:kt})}};function at(gt){if(window.Worker&&window.Blob&&getWebWorker()){var kt=new Blob(["var _workerSelf = self; self.onmessage = ",gt.toString()],{type:"text/javascript"}),pt=URL.createObjectURL(kt);return new Worker(pt)}return rt=gt,it}function ot(){nt||(nt=at(function(kt){function pt(){function $t(Et,Tt){var Rt,At,Pt=Et.length,It,Ct,xt,Lt;for(At=0;At=0;Tt-=1)if(Et[Tt].ty==="sh")if(Et[Tt].ks.k.i)Ft(Et[Tt].ks.k);else for(Pt=Et[Tt].ks.k.length,At=0;AtRt[0]?!0:Rt[0]>Et[0]?!1:Et[1]>Rt[1]?!0:Rt[1]>Et[1]?!1:Et[2]>Rt[2]?!0:Rt[2]>Et[2]?!1:null}var zt=function(){var Et=[4,4,14];function Tt(At){var Pt=At.t.d;At.t.d={k:[{s:Pt,t:0}]}}function Rt(At){var Pt,It=At.length;for(Pt=0;Pt=0;Pt-=1)if(At[Pt].ty==="sh")if(At[Pt].ks.k.i)At[Pt].ks.k.c=At[Pt].closed;else for(xt=At[Pt].ks.k.length,Ct=0;Ct500)&&(this._imageLoaded(),clearInterval(St)),wt+=1}).bind(this),50)}function st(mt){var wt=nt(mt,this.assetsPath,this.path),St=createNS("image");isSafari?this.testImageLoaded(St):St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.setAttributeNS("http://www.w3.org/1999/xlink","href",wt),this._elementHelper.append?this._elementHelper.append(St):this._elementHelper.appendChild(St);var Bt={img:St,assetData:mt};return Bt}function at(mt){var wt=nt(mt,this.assetsPath,this.path),St=createTag("img");St.crossOrigin="anonymous",St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.src=wt;var Bt={img:St,assetData:mt};return Bt}function ot(mt){var wt={assetData:mt},St=nt(mt,this.assetsPath,this.path);return dataManager.loadData(St,(function(Bt){wt.img=Bt,this._footageLoaded()}).bind(this),(function(){wt.img={},this._footageLoaded()}).bind(this)),wt}function lt(mt,wt){this.imagesLoadedCb=wt;var St,Bt=mt.length;for(St=0;Stthis.animationData.op&&(this.animationData.op=et.op,this.totalFrames=Math.floor(et.op-this.animationData.ip));var tt=this.animationData.layers,rt,nt=tt.length,it=et.layers,st,at=it.length;for(st=0;stthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(et){this.triggerRenderFrameError(et)}},AnimationItem.prototype.play=function(et){et&&this.name!==et||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(et){et&&this.name!==et||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(et){et&&this.name!==et||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(et){et&&this.name!==et||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(et){for(var tt,rt=0;rt=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(tt>this.totalFrames?tt%this.totalFrames:0)||(rt=!0,tt=this.totalFrames-1):tt>=this.totalFrames?(this.playCount+=1,this.checkSegments(tt%this.totalFrames)||(this.setCurrentRawFrameValue(tt%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(tt):tt<0?this.checkSegments(tt%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+tt%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(rt=!0,tt=0)):this.setCurrentRawFrameValue(tt),rt&&(this.setCurrentRawFrameValue(tt),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(et,tt){this.playCount=0,et[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=et[0]-et[1],this.timeCompleted=this.totalFrames,this.firstFrame=et[1],this.setCurrentRawFrameValue(this.totalFrames-.001-tt)):et[1]>et[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=et[1]-et[0],this.timeCompleted=this.totalFrames,this.firstFrame=et[0],this.setCurrentRawFrameValue(.001+tt)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(et,tt){var rt=-1;this.isPaused&&(this.currentRawFrame+this.firstFramett&&(rt=tt-et)),this.firstFrame=et,this.totalFrames=tt-et,this.timeCompleted=this.totalFrames,rt!==-1&&this.goToAndStop(rt,!0)},AnimationItem.prototype.playSegments=function(et,tt){if(tt&&(this.segments.length=0),_typeof$4(et[0])==="object"){var rt,nt=et.length;for(rt=0;rt=0;Rt-=1)tt[Rt].animation.destroy(Tt)}function Ht(Tt,Rt,At){var Pt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),It,Ct=Pt.length;for(It=0;It0?Bt=Ht:St=Ht;while(Math.abs(zt)>st&&++Wt=it?$t(St,qt,Bt,Ft):Ot===0?qt:yt(St,zt,zt+lt,Bt,Ft)}},et}(),pooling=function(){function et(tt){return tt.concat(createSizedArray(tt.length))}return{double:et}}(),poolFactory=function(){return function(et,tt,rt){var nt=0,it=et,st=createSizedArray(it),at={newElement:ot,release:lt};function ot(){var ut;return nt?(nt-=1,ut=st[nt]):ut=tt(),ut}function lt(ut){nt===it&&(st=pooling.double(st),it*=2),rt&&rt(ut),st[nt]=ut,nt+=1}return at}}(),bezierLengthPool=function(){function et(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,et)}(),segmentsLengthPool=function(){function et(){return{lengths:[],totalLength:0}}function tt(rt){var nt,it=rt.lengths.length;for(nt=0;nt-.001&&wt<.001}function rt(gt,kt,pt,yt,$t,mt,wt,St,Bt){if(pt===0&&mt===0&&Bt===0)return tt(gt,kt,yt,$t,wt,St);var Ft=et.sqrt(et.pow(yt-gt,2)+et.pow($t-kt,2)+et.pow(mt-pt,2)),Dt=et.sqrt(et.pow(wt-gt,2)+et.pow(St-kt,2)+et.pow(Bt-pt,2)),zt=et.sqrt(et.pow(wt-yt,2)+et.pow(St-$t,2)+et.pow(Bt-mt,2)),Ht;return Ft>Dt?Ft>zt?Ht=Ft-Dt-zt:Ht=zt-Dt-Ft:zt>Dt?Ht=zt-Dt-Ft:Ht=Dt-Ft-zt,Ht>-1e-4&&Ht<1e-4}var nt=function(){return function(gt,kt,pt,yt){var $t=getDefaultCurveSegments(),mt,wt,St,Bt,Ft,Dt=0,zt,Ht=[],Wt=[],lr=bezierLengthPool.newElement();for(St=pt.length,mt=0;mt<$t;mt+=1){for(Ft=mt/($t-1),zt=0,wt=0;wtwt?-1:1,Ft=!0;Ft;)if(yt[mt]<=wt&&yt[mt+1]>wt?(St=(wt-yt[mt])/(yt[mt+1]-yt[mt]),Ft=!1):mt+=Bt,mt<0||mt>=$t-1){if(mt===$t-1)return pt[mt];Ft=!1}return pt[mt]+(pt[mt+1]-pt[mt])*St}function ut(gt,kt,pt,yt,$t,mt){var wt=lt($t,mt),St=1-wt,Bt=et.round((St*St*St*gt[0]+(wt*St*St+St*wt*St+St*St*wt)*pt[0]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[0]+wt*wt*wt*kt[0])*1e3)/1e3,Ft=et.round((St*St*St*gt[1]+(wt*St*St+St*wt*St+St*St*wt)*pt[1]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[1]+wt*wt*wt*kt[1])*1e3)/1e3;return[Bt,Ft]}var dt=createTypedArray("float32",8);function bt(gt,kt,pt,yt,$t,mt,wt){$t<0?$t=0:$t>1&&($t=1);var St=lt($t,wt);mt=mt>1?1:mt;var Bt=lt(mt,wt),Ft,Dt=gt.length,zt=1-St,Ht=1-Bt,Wt=zt*zt*zt,lr=St*zt*zt*3,qt=St*St*zt*3,Ot=St*St*St,Mt=zt*zt*Ht,ht=St*zt*Ht+zt*St*Ht+zt*zt*Bt,Et=St*St*Ht+zt*St*Bt+St*zt*Bt,Tt=St*St*Bt,Rt=zt*Ht*Ht,At=St*Ht*Ht+zt*Bt*Ht+zt*Ht*Bt,Pt=St*Bt*Ht+zt*Bt*Bt+St*Ht*Bt,It=St*Bt*Bt,Ct=Ht*Ht*Ht,xt=Bt*Ht*Ht+Ht*Bt*Ht+Ht*Ht*Bt,Lt=Bt*Bt*Ht+Ht*Bt*Bt+Bt*Ht*Bt,tr=Bt*Bt*Bt;for(Ft=0;Ft=ut.t-rt){lt.h&&(lt=ut),it=0;break}if(ut.t-rt>et){it=st;break}st=mt||et=mt?Bt.points.length-1:0;for(gt=Bt.points[Ft].point.length,bt=0;bt=Ht&&Dt=mt)nt[0]=St[0],nt[1]=St[1],nt[2]=St[2];else if(et<=wt)nt[0]=lt.s[0],nt[1]=lt.s[1],nt[2]=lt.s[2];else{var ht=createQuaternion(lt.s),Et=createQuaternion(St),Tt=(et-wt)/(mt-wt);quaternionToEuler(nt,slerp(ht,Et,Tt))}else for(st=0;st=mt?kt=1:et1e-6?(gt=Math.acos(kt),pt=Math.sin(gt),yt=Math.sin((1-rt)*gt)/pt,$t=Math.sin(rt*gt)/pt):(yt=1-rt,$t=rt),nt[0]=yt*it+$t*lt,nt[1]=yt*st+$t*ut,nt[2]=yt*at+$t*dt,nt[3]=yt*ot+$t*bt,nt}function quaternionToEuler(et,tt){var rt=tt[0],nt=tt[1],it=tt[2],st=tt[3],at=Math.atan2(2*nt*st-2*rt*it,1-2*nt*nt-2*it*it),ot=Math.asin(2*rt*nt+2*it*st),lt=Math.atan2(2*rt*st-2*nt*it,1-2*rt*rt-2*it*it);et[0]=at/degToRads,et[1]=ot/degToRads,et[2]=lt/degToRads}function createQuaternion(et){var tt=et[0]*degToRads,rt=et[1]*degToRads,nt=et[2]*degToRads,it=Math.cos(tt/2),st=Math.cos(rt/2),at=Math.cos(nt/2),ot=Math.sin(tt/2),lt=Math.sin(rt/2),ut=Math.sin(nt/2),dt=it*st*at-ot*lt*ut,bt=ot*lt*at+it*st*ut,gt=ot*st*at+it*lt*ut,kt=it*lt*at-ot*st*ut;return[bt,gt,kt,dt]}function getValueAtCurrentTime(){var et=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,rt=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(et===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=rt&&et>=rt||this._caching.lastFrame=et&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var nt=this.interpolateValue(et,this._caching);this.pv=nt}return this._caching.lastFrame=et,this.pv}function setVValue(et){var tt;if(this.propType==="unidimensional")tt=et*this.mult,mathAbs(this.v-tt)>1e-5&&(this.v=tt,this._mdf=!0);else for(var rt=0,nt=this.v.length;rt1e-5&&(this.v[rt]=tt,this._mdf=!0),rt+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var et,tt=this.effectsSequence.length,rt=this.kf?this.pv:this.data.k;for(et=0;et=this._maxLength&&this.doubleArrayLength(),rt){case"v":st=this.v;break;case"i":st=this.i;break;case"o":st=this.o;break;default:st=[];break}(!st[nt]||st[nt]&&!it)&&(st[nt]=pointPool.newElement()),st[nt][0]=et,st[nt][1]=tt},ShapePath.prototype.setTripleAt=function(et,tt,rt,nt,it,st,at,ot){this.setXYAt(et,tt,"v",at,ot),this.setXYAt(rt,nt,"o",at,ot),this.setXYAt(it,st,"i",at,ot)},ShapePath.prototype.reverse=function(){var et=new ShapePath;et.setPathData(this.c,this._length);var tt=this.v,rt=this.o,nt=this.i,it=0;this.c&&(et.setTripleAt(tt[0][0],tt[0][1],nt[0][0],nt[0][1],rt[0][0],rt[0][1],0,!1),it=1);var st=this._length-1,at=this._length,ot;for(ot=it;ot=ht[ht.length-1].t-this.offsetTime)Ft=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],zt=!0;else{for(var Et=Bt,Tt=ht.length-1,Rt=!0,At,Pt,It;Rt&&(At=ht[Et],Pt=ht[Et+1],!(Pt.t-this.offsetTime>mt));)Et=Pt.t-this.offsetTime)Ot=1;else if(mtSt&&mt>St)||(this._caching.lastIndex=Bt1?rt[1]=1:rt[1]<=0&&(rt[1]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addBrightnessToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[2]+=tt,rt[2]>1?rt[2]=1:rt[2]<0&&(rt[2]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addHueToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[0]+=tt/360,rt[0]>1?rt[0]-=1:rt[0]<0&&(rt[0]+=1),HSVtoRGB(rt[0],rt[1],rt[2])}var rgbToHex=function(){var et=[],tt,rt;for(tt=0;tt<256;tt+=1)rt=tt.toString(16),et[tt]=rt.length===1?"0"+rt:rt;return function(nt,it,st){return nt<0&&(nt=0),it<0&&(it=0),st<0&&(st=0),"#"+et[nt]+et[it]+et[st]}}(),setSubframeEnabled=function(tt){subframeEnabled=!!tt},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(tt){expressionsPlugin=tt},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(tt){expressionsInterfaces=tt},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(tt){defaultCurveSegments=tt},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(tt){idPrefix$1=tt};function createNS(et){return document.createElementNS(svgNS,et)}function _typeof$5(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(rt){return typeof rt}:_typeof$5=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$5(et)}var dataManager=function(){var et=1,tt=[],rt,nt,it={onmessage:function(){},postMessage:function(kt){rt({data:kt})}},st={postMessage:function(kt){it.onmessage({data:kt})}};function at(gt){if(window.Worker&&window.Blob&&getWebWorker()){var kt=new Blob(["var _workerSelf = self; self.onmessage = ",gt.toString()],{type:"text/javascript"}),pt=URL.createObjectURL(kt);return new Worker(pt)}return rt=gt,it}function ot(){nt||(nt=at(function(kt){function pt(){function $t(Et,Tt){var Rt,At,Pt=Et.length,It,Ct,xt,Dt;for(At=0;At=0;Tt-=1)if(Et[Tt].ty==="sh")if(Et[Tt].ks.k.i)Ft(Et[Tt].ks.k);else for(Pt=Et[Tt].ks.k.length,At=0;AtRt[0]?!0:Rt[0]>Et[0]?!1:Et[1]>Rt[1]?!0:Rt[1]>Et[1]?!1:Et[2]>Rt[2]?!0:Rt[2]>Et[2]?!1:null}var zt=function(){var Et=[4,4,14];function Tt(At){var Pt=At.t.d;At.t.d={k:[{s:Pt,t:0}]}}function Rt(At){var Pt,It=At.length;for(Pt=0;Pt=0;Pt-=1)if(At[Pt].ty==="sh")if(At[Pt].ks.k.i)At[Pt].ks.k.c=At[Pt].closed;else for(xt=At[Pt].ks.k.length,Ct=0;Ct500)&&(this._imageLoaded(),clearInterval(St)),wt+=1}).bind(this),50)}function st(mt){var wt=nt(mt,this.assetsPath,this.path),St=createNS("image");isSafari?this.testImageLoaded(St):St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.setAttributeNS("http://www.w3.org/1999/xlink","href",wt),this._elementHelper.append?this._elementHelper.append(St):this._elementHelper.appendChild(St);var Bt={img:St,assetData:mt};return Bt}function at(mt){var wt=nt(mt,this.assetsPath,this.path),St=createTag("img");St.crossOrigin="anonymous",St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.src=wt;var Bt={img:St,assetData:mt};return Bt}function ot(mt){var wt={assetData:mt},St=nt(mt,this.assetsPath,this.path);return dataManager.loadData(St,(function(Bt){wt.img=Bt,this._footageLoaded()}).bind(this),(function(){wt.img={},this._footageLoaded()}).bind(this)),wt}function lt(mt,wt){this.imagesLoadedCb=wt;var St,Bt=mt.length;for(St=0;Stthis.animationData.op&&(this.animationData.op=et.op,this.totalFrames=Math.floor(et.op-this.animationData.ip));var tt=this.animationData.layers,rt,nt=tt.length,it=et.layers,st,at=it.length;for(st=0;stthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(et){this.triggerRenderFrameError(et)}},AnimationItem.prototype.play=function(et){et&&this.name!==et||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(et){et&&this.name!==et||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(et){et&&this.name!==et||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(et){et&&this.name!==et||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(et){for(var tt,rt=0;rt=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(tt>this.totalFrames?tt%this.totalFrames:0)||(rt=!0,tt=this.totalFrames-1):tt>=this.totalFrames?(this.playCount+=1,this.checkSegments(tt%this.totalFrames)||(this.setCurrentRawFrameValue(tt%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(tt):tt<0?this.checkSegments(tt%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+tt%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(rt=!0,tt=0)):this.setCurrentRawFrameValue(tt),rt&&(this.setCurrentRawFrameValue(tt),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(et,tt){this.playCount=0,et[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=et[0]-et[1],this.timeCompleted=this.totalFrames,this.firstFrame=et[1],this.setCurrentRawFrameValue(this.totalFrames-.001-tt)):et[1]>et[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=et[1]-et[0],this.timeCompleted=this.totalFrames,this.firstFrame=et[0],this.setCurrentRawFrameValue(.001+tt)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(et,tt){var rt=-1;this.isPaused&&(this.currentRawFrame+this.firstFramett&&(rt=tt-et)),this.firstFrame=et,this.totalFrames=tt-et,this.timeCompleted=this.totalFrames,rt!==-1&&this.goToAndStop(rt,!0)},AnimationItem.prototype.playSegments=function(et,tt){if(tt&&(this.segments.length=0),_typeof$4(et[0])==="object"){var rt,nt=et.length;for(rt=0;rt=0;Rt-=1)tt[Rt].animation.destroy(Tt)}function Ht(Tt,Rt,At){var Pt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),It,Ct=Pt.length;for(It=0;It0?Bt=Ht:St=Ht;while(Math.abs(zt)>st&&++Wt=it?$t(St,qt,Bt,Ft):Ot===0?qt:yt(St,zt,zt+lt,Bt,Ft)}},et}(),pooling=function(){function et(tt){return tt.concat(createSizedArray(tt.length))}return{double:et}}(),poolFactory=function(){return function(et,tt,rt){var nt=0,it=et,st=createSizedArray(it),at={newElement:ot,release:lt};function ot(){var ut;return nt?(nt-=1,ut=st[nt]):ut=tt(),ut}function lt(ut){nt===it&&(st=pooling.double(st),it*=2),rt&&rt(ut),st[nt]=ut,nt+=1}return at}}(),bezierLengthPool=function(){function et(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,et)}(),segmentsLengthPool=function(){function et(){return{lengths:[],totalLength:0}}function tt(rt){var nt,it=rt.lengths.length;for(nt=0;nt-.001&&wt<.001}function rt(gt,kt,pt,yt,$t,mt,wt,St,Bt){if(pt===0&&mt===0&&Bt===0)return tt(gt,kt,yt,$t,wt,St);var Ft=et.sqrt(et.pow(yt-gt,2)+et.pow($t-kt,2)+et.pow(mt-pt,2)),Lt=et.sqrt(et.pow(wt-gt,2)+et.pow(St-kt,2)+et.pow(Bt-pt,2)),zt=et.sqrt(et.pow(wt-yt,2)+et.pow(St-$t,2)+et.pow(Bt-mt,2)),Ht;return Ft>Lt?Ft>zt?Ht=Ft-Lt-zt:Ht=zt-Lt-Ft:zt>Lt?Ht=zt-Lt-Ft:Ht=Lt-Ft-zt,Ht>-1e-4&&Ht<1e-4}var nt=function(){return function(gt,kt,pt,yt){var $t=getDefaultCurveSegments(),mt,wt,St,Bt,Ft,Lt=0,zt,Ht=[],Wt=[],lr=bezierLengthPool.newElement();for(St=pt.length,mt=0;mt<$t;mt+=1){for(Ft=mt/($t-1),zt=0,wt=0;wtwt?-1:1,Ft=!0;Ft;)if(yt[mt]<=wt&&yt[mt+1]>wt?(St=(wt-yt[mt])/(yt[mt+1]-yt[mt]),Ft=!1):mt+=Bt,mt<0||mt>=$t-1){if(mt===$t-1)return pt[mt];Ft=!1}return pt[mt]+(pt[mt+1]-pt[mt])*St}function ut(gt,kt,pt,yt,$t,mt){var wt=lt($t,mt),St=1-wt,Bt=et.round((St*St*St*gt[0]+(wt*St*St+St*wt*St+St*St*wt)*pt[0]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[0]+wt*wt*wt*kt[0])*1e3)/1e3,Ft=et.round((St*St*St*gt[1]+(wt*St*St+St*wt*St+St*St*wt)*pt[1]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[1]+wt*wt*wt*kt[1])*1e3)/1e3;return[Bt,Ft]}var dt=createTypedArray("float32",8);function bt(gt,kt,pt,yt,$t,mt,wt){$t<0?$t=0:$t>1&&($t=1);var St=lt($t,wt);mt=mt>1?1:mt;var Bt=lt(mt,wt),Ft,Lt=gt.length,zt=1-St,Ht=1-Bt,Wt=zt*zt*zt,lr=St*zt*zt*3,qt=St*St*zt*3,Ot=St*St*St,Mt=zt*zt*Ht,ht=St*zt*Ht+zt*St*Ht+zt*zt*Bt,Et=St*St*Ht+zt*St*Bt+St*zt*Bt,Tt=St*St*Bt,Rt=zt*Ht*Ht,At=St*Ht*Ht+zt*Bt*Ht+zt*Ht*Bt,Pt=St*Bt*Ht+zt*Bt*Bt+St*Ht*Bt,It=St*Bt*Bt,Ct=Ht*Ht*Ht,xt=Bt*Ht*Ht+Ht*Bt*Ht+Ht*Ht*Bt,Dt=Bt*Bt*Ht+Ht*Bt*Bt+Bt*Ht*Bt,tr=Bt*Bt*Bt;for(Ft=0;Ft=ut.t-rt){lt.h&&(lt=ut),it=0;break}if(ut.t-rt>et){it=st;break}st=mt||et=mt?Bt.points.length-1:0;for(gt=Bt.points[Ft].point.length,bt=0;bt=Ht&&Lt=mt)nt[0]=St[0],nt[1]=St[1],nt[2]=St[2];else if(et<=wt)nt[0]=lt.s[0],nt[1]=lt.s[1],nt[2]=lt.s[2];else{var ht=createQuaternion(lt.s),Et=createQuaternion(St),Tt=(et-wt)/(mt-wt);quaternionToEuler(nt,slerp(ht,Et,Tt))}else for(st=0;st=mt?kt=1:et1e-6?(gt=Math.acos(kt),pt=Math.sin(gt),yt=Math.sin((1-rt)*gt)/pt,$t=Math.sin(rt*gt)/pt):(yt=1-rt,$t=rt),nt[0]=yt*it+$t*lt,nt[1]=yt*st+$t*ut,nt[2]=yt*at+$t*dt,nt[3]=yt*ot+$t*bt,nt}function quaternionToEuler(et,tt){var rt=tt[0],nt=tt[1],it=tt[2],st=tt[3],at=Math.atan2(2*nt*st-2*rt*it,1-2*nt*nt-2*it*it),ot=Math.asin(2*rt*nt+2*it*st),lt=Math.atan2(2*rt*st-2*nt*it,1-2*rt*rt-2*it*it);et[0]=at/degToRads,et[1]=ot/degToRads,et[2]=lt/degToRads}function createQuaternion(et){var tt=et[0]*degToRads,rt=et[1]*degToRads,nt=et[2]*degToRads,it=Math.cos(tt/2),st=Math.cos(rt/2),at=Math.cos(nt/2),ot=Math.sin(tt/2),lt=Math.sin(rt/2),ut=Math.sin(nt/2),dt=it*st*at-ot*lt*ut,bt=ot*lt*at+it*st*ut,gt=ot*st*at+it*lt*ut,kt=it*lt*at-ot*st*ut;return[bt,gt,kt,dt]}function getValueAtCurrentTime(){var et=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,rt=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(et===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=rt&&et>=rt||this._caching.lastFrame=et&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var nt=this.interpolateValue(et,this._caching);this.pv=nt}return this._caching.lastFrame=et,this.pv}function setVValue(et){var tt;if(this.propType==="unidimensional")tt=et*this.mult,mathAbs(this.v-tt)>1e-5&&(this.v=tt,this._mdf=!0);else for(var rt=0,nt=this.v.length;rt1e-5&&(this.v[rt]=tt,this._mdf=!0),rt+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var et,tt=this.effectsSequence.length,rt=this.kf?this.pv:this.data.k;for(et=0;et=this._maxLength&&this.doubleArrayLength(),rt){case"v":st=this.v;break;case"i":st=this.i;break;case"o":st=this.o;break;default:st=[];break}(!st[nt]||st[nt]&&!it)&&(st[nt]=pointPool.newElement()),st[nt][0]=et,st[nt][1]=tt},ShapePath.prototype.setTripleAt=function(et,tt,rt,nt,it,st,at,ot){this.setXYAt(et,tt,"v",at,ot),this.setXYAt(rt,nt,"o",at,ot),this.setXYAt(it,st,"i",at,ot)},ShapePath.prototype.reverse=function(){var et=new ShapePath;et.setPathData(this.c,this._length);var tt=this.v,rt=this.o,nt=this.i,it=0;this.c&&(et.setTripleAt(tt[0][0],tt[0][1],nt[0][0],nt[0][1],rt[0][0],rt[0][1],0,!1),it=1);var st=this._length-1,at=this._length,ot;for(ot=it;ot=ht[ht.length-1].t-this.offsetTime)Ft=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],zt=!0;else{for(var Et=Bt,Tt=ht.length-1,Rt=!0,At,Pt,It;Rt&&(At=ht[Et],Pt=ht[Et+1],!(Pt.t-this.offsetTime>mt));)Et=Pt.t-this.offsetTime)Ot=1;else if(mtSt&&mt>St)||(this._caching.lastIndex=Bt0||At>-1e-6&&At<0?nt(At*Pt)/Pt:At}function Rt(){var At=this.props,Pt=Tt(At[0]),It=Tt(At[1]),Ct=Tt(At[4]),xt=Tt(At[5]),Lt=Tt(At[12]),tr=Tt(At[13]);return"matrix("+Pt+","+It+","+Ct+","+xt+","+Lt+","+tr+")"}return function(){this.reset=it,this.rotate=st,this.rotateX=at,this.rotateY=ot,this.rotateZ=lt,this.skew=dt,this.skewFromAxis=bt,this.shear=ut,this.scale=gt,this.setTransform=kt,this.translate=pt,this.transform=yt,this.multiply=$t,this.applyToPoint=Ft,this.applyToX=Dt,this.applyToY=zt,this.applyToZ=Ht,this.applyToPointArray=Mt,this.applyToTriplePoints=Ot,this.applyToPointStringified=ht,this.toCSS=Et,this.to2dCSS=Rt,this.clone=St,this.cloneFromProps=Bt,this.equals=wt,this.inversePoints=qt,this.inversePoint=lr,this.getInverseMatrix=Wt,this._t=this.transform,this.isIdentity=mt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(rt){return typeof rt}:_typeof$3=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$3(et)}var lottie={};function setLocation(et){setLocationHref(et)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(et){setSubframeEnabled(et)}function setPrefix(et){setIdPrefix(et)}function loadAnimation(et){return animationManager.loadAnimation(et)}function setQuality(et){if(typeof et=="string")switch(et){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(et)&&et>1&&setDefaultCurveSegments(et)}function inBrowser(){return typeof navigator<"u"}function installPlugin(et,tt){et==="expressions"&&setExpressionsPlugin(tt)}function getFactory(et){switch(et){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(et){for(var tt=queryString.split("&"),rt=0;rt=1?st.push({s:et-1,e:tt-1}):(st.push({s:et,e:1}),st.push({s:0,e:tt-1}));var at=[],ot,lt=st.length,ut;for(ot=0;otnt+rt)){var dt,bt;ut.s*it<=nt?dt=0:dt=(ut.s*it-nt)/rt,ut.e*it>=nt+rt?bt=1:bt=(ut.e*it-nt)/rt,at.push([dt,bt])}return at.length||at.push([0,0]),at},TrimModifier.prototype.releasePathsData=function(et){var tt,rt=et.length;for(tt=0;tt1?tt=1+nt:this.s.v<0?tt=0+nt:tt=this.s.v+nt,this.e.v>1?rt=1+nt:this.e.v<0?rt=0+nt:rt=this.e.v+nt,tt>rt){var it=tt;tt=rt,rt=it}tt=Math.round(tt*1e4)*1e-4,rt=Math.round(rt*1e4)*1e-4,this.sValue=tt,this.eValue=rt}else tt=this.sValue,rt=this.eValue;var st,at,ot=this.shapes.length,lt,ut,dt,bt,gt,kt=0;if(rt===tt)for(at=0;at=0;at-=1)if(yt=this.shapes[at],yt.shape._mdf){for($t=yt.localShapeCollection,$t.releaseShapes(),this.m===2&&ot>1?(Bt=this.calculateShapeEdges(tt,rt,yt.totalShapeLength,St,kt),St+=yt.totalShapeLength):Bt=[[mt,wt]],ut=Bt.length,lt=0;lt=1?pt.push({s:yt.totalShapeLength*(mt-1),e:yt.totalShapeLength*(wt-1)}):(pt.push({s:yt.totalShapeLength*mt,e:yt.totalShapeLength}),pt.push({s:0,e:yt.totalShapeLength*(wt-1)}));var Ft=this.addShapes(yt,pt[0]);if(pt[0].s!==pt[0].e){if(pt.length>1){var Dt=yt.shape.paths.shapes[yt.shape.paths._length-1];if(Dt.c){var zt=Ft.pop();this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1],zt)}else this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1])}this.addPaths(Ft,$t)}}yt.shape.paths=$t}}},TrimModifier.prototype.addPaths=function(et,tt){var rt,nt=et.length;for(rt=0;rttt.e){rt.c=!1;break}else tt.s<=ut&&tt.e>=ut+dt.addedLength?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[ot],it[st].v[ot],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[ot],it[st].o[ot-1],it[st].i[ot],(tt.s-ut)/dt.addedLength,(tt.e-ut)/dt.addedLength,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1),ut+=dt.addedLength,bt+=1;if(it[st].c&>.length){if(dt=gt[ot-1],ut<=tt.e){var mt=gt[ot-1].addedLength;tt.s<=ut&&tt.e>=ut+mt?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[0],it[st].v[0],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[0],it[st].o[ot-1],it[st].i[0],(tt.s-ut)/mt,(tt.e-ut)/mt,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1)}else rt.c=!1;ut+=dt.addedLength,bt+=1}if(rt._length&&(rt.setXYAt(rt.v[yt][0],rt.v[yt][1],"i",yt),rt.setXYAt(rt.v[rt._length-1][0],rt.v[rt._length-1][1],"o",rt._length-1)),ut>tt.e)break;st=this.p.keyframes[this.p.keyframes.length-1].t?(dt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ut,0),bt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ut,0)):(dt=this.p.pv,bt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ut,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){dt=[],bt=[];var gt=this.px,kt=this.py;gt._caching.lastFrame+gt.offsetTime<=gt.keyframes[0].t?(dt[0]=gt.getValueAtTime((gt.keyframes[0].t+.01)/ut,0),dt[1]=kt.getValueAtTime((kt.keyframes[0].t+.01)/ut,0),bt[0]=gt.getValueAtTime(gt.keyframes[0].t/ut,0),bt[1]=kt.getValueAtTime(kt.keyframes[0].t/ut,0)):gt._caching.lastFrame+gt.offsetTime>=gt.keyframes[gt.keyframes.length-1].t?(dt[0]=gt.getValueAtTime(gt.keyframes[gt.keyframes.length-1].t/ut,0),dt[1]=kt.getValueAtTime(kt.keyframes[kt.keyframes.length-1].t/ut,0),bt[0]=gt.getValueAtTime((gt.keyframes[gt.keyframes.length-1].t-.01)/ut,0),bt[1]=kt.getValueAtTime((kt.keyframes[kt.keyframes.length-1].t-.01)/ut,0)):(dt=[gt.pv,kt.pv],bt[0]=gt.getValueAtTime((gt._caching.lastFrame+gt.offsetTime-.01)/ut,gt.offsetTime),bt[1]=kt.getValueAtTime((kt._caching.lastFrame+kt.offsetTime-.01)/ut,kt.offsetTime))}else bt=et,dt=bt;this.v.rotate(-Math.atan2(dt[1]-bt[1],dt[0]-bt[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function nt(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function it(){}function st(lt){this._addDynamicProperty(lt),this.elem.addDynamicProperty(lt),this._isDirty=!0}function at(lt,ut,dt){if(this.elem=lt,this.frameId=-1,this.propType="transform",this.data=ut,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(dt||lt),ut.p&&ut.p.s?(this.px=PropertyFactory.getProp(lt,ut.p.x,0,0,this),this.py=PropertyFactory.getProp(lt,ut.p.y,0,0,this),ut.p.z&&(this.pz=PropertyFactory.getProp(lt,ut.p.z,0,0,this))):this.p=PropertyFactory.getProp(lt,ut.p||{k:[0,0,0]},1,0,this),ut.rx){if(this.rx=PropertyFactory.getProp(lt,ut.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(lt,ut.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(lt,ut.rz,0,degToRads,this),ut.or.k[0].ti){var bt,gt=ut.or.k.length;for(bt=0;bt0;)rt-=1,this._elements.unshift(tt[rt]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(et){var tt,rt=et.length;for(tt=0;tt0?Math.floor(gt):Math.ceil(gt),yt=this.pMatrix.props,$t=this.rMatrix.props,mt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var wt=0;if(gt>0){for(;wtpt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),wt-=1;kt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-kt,!0),wt-=kt)}nt=this.data.m===1?0:this._currentCopies-1,it=this.data.m===1?1:-1,st=this._currentCopies;for(var St,Bt;st;){if(tt=this.elemsData[nt].it,rt=tt[tt.length-1].transform.mProps.v.props,Bt=rt.length,tt[tt.length-1].transform.mProps._mdf=!0,tt[tt.length-1].transform.op._mdf=!0,tt[tt.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(nt/(this._currentCopies-1)),wt!==0){for((nt!==0&&it===1||nt!==this._currentCopies-1&&it===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform($t[0],$t[1],$t[2],$t[3],$t[4],$t[5],$t[6],$t[7],$t[8],$t[9],$t[10],$t[11],$t[12],$t[13],$t[14],$t[15]),this.matrix.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15]),this.matrix.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15]),St=0;St0&&nt<1?[tt]:[]:[tt-nt,tt+nt].filter(function(it){return it>0&&it<1})},PolynomialBezier.prototype.split=function(et){if(et<=0)return[singlePoint(this.points[0]),this];if(et>=1)return[this,singlePoint(this.points[this.points.length-1])];var tt=lerpPoint(this.points[0],this.points[1],et),rt=lerpPoint(this.points[1],this.points[2],et),nt=lerpPoint(this.points[2],this.points[3],et),it=lerpPoint(tt,rt,et),st=lerpPoint(rt,nt,et),at=lerpPoint(it,st,et);return[new PolynomialBezier(this.points[0],tt,it,at,!0),new PolynomialBezier(at,st,nt,this.points[3],!0)]};function extrema(et,tt){var rt=et.points[0][tt],nt=et.points[et.points.length-1][tt];if(rt>nt){var it=nt;nt=rt,rt=it}for(var st=quadRoots(3*et.a[tt],2*et.b[tt],et.c[tt]),at=0;at0&&st[at]<1){var ot=et.point(st[at])[tt];otnt&&(nt=ot)}return{min:rt,max:nt}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var et=this.bounds();return{left:et.x.min,right:et.x.max,top:et.y.min,bottom:et.y.max,width:et.x.max-et.x.min,height:et.y.max-et.y.min,cx:(et.x.max+et.x.min)/2,cy:(et.y.max+et.y.min)/2}};function intersectData(et,tt,rt){var nt=et.boundingBox();return{cx:nt.cx,cy:nt.cy,width:nt.width,height:nt.height,bez:et,t:(tt+rt)/2,t1:tt,t2:rt}}function splitData(et){var tt=et.bez.split(.5);return[intersectData(tt[0],et.t1,et.t),intersectData(tt[1],et.t,et.t2)]}function boxIntersect(et,tt){return Math.abs(et.cx-tt.cx)*2=st||et.width<=nt&&et.height<=nt&&tt.width<=nt&&tt.height<=nt){it.push([et.t,tt.t]);return}var at=splitData(et),ot=splitData(tt);intersectsImpl(at[0],ot[0],rt+1,nt,it,st),intersectsImpl(at[0],ot[1],rt+1,nt,it,st),intersectsImpl(at[1],ot[0],rt+1,nt,it,st),intersectsImpl(at[1],ot[1],rt+1,nt,it,st)}}PolynomialBezier.prototype.intersections=function(et,tt,rt){tt===void 0&&(tt=2),rt===void 0&&(rt=7);var nt=[];return intersectsImpl(intersectData(this,0,1),intersectData(et,0,1),0,tt,nt,rt),nt},PolynomialBezier.shapeSegment=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[tt],et.o[tt],et.i[rt],et.v[rt],!0)},PolynomialBezier.shapeSegmentInverted=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[rt],et.i[rt],et.o[tt],et.v[tt],!0)};function crossProduct(et,tt){return[et[1]*tt[2]-et[2]*tt[1],et[2]*tt[0]-et[0]*tt[2],et[0]*tt[1]-et[1]*tt[0]]}function lineIntersection(et,tt,rt,nt){var it=[et[0],et[1],1],st=[tt[0],tt[1],1],at=[rt[0],rt[1],1],ot=[nt[0],nt[1],1],lt=crossProduct(crossProduct(it,st),crossProduct(at,ot));return floatZero(lt[2])?null:[lt[0]/lt[2],lt[1]/lt[2]]}function polarOffset(et,tt,rt){return[et[0]+Math.cos(tt)*rt,et[1]-Math.sin(tt)*rt]}function pointDistance(et,tt){return Math.hypot(et[0]-tt[0],et[1]-tt[1])}function pointEqual(et,tt){return floatEqual(et[0],tt[0])&&floatEqual(et[1],tt[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(et,tt.s,0,null,this),this.frequency=PropertyFactory.getProp(et,tt.r,0,null,this),this.pointsType=PropertyFactory.getProp(et,tt.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(et,tt,rt,nt,it,st,at){var ot=rt-Math.PI/2,lt=rt+Math.PI/2,ut=tt[0]+Math.cos(rt)*nt*it,dt=tt[1]-Math.sin(rt)*nt*it;et.setTripleAt(ut,dt,ut+Math.cos(ot)*st,dt-Math.sin(ot)*st,ut+Math.cos(lt)*at,dt-Math.sin(lt)*at,et.length())}function getPerpendicularVector(et,tt){var rt=[tt[0]-et[0],tt[1]-et[1]],nt=-Math.PI*.5,it=[Math.cos(nt)*rt[0]-Math.sin(nt)*rt[1],Math.sin(nt)*rt[0]+Math.cos(nt)*rt[1]];return it}function getProjectingAngle(et,tt){var rt=tt===0?et.length()-1:tt-1,nt=(tt+1)%et.length(),it=et.v[rt],st=et.v[nt],at=getPerpendicularVector(it,st);return Math.atan2(0,1)-Math.atan2(at[1],at[0])}function zigZagCorner(et,tt,rt,nt,it,st,at){var ot=getProjectingAngle(tt,rt),lt=tt.v[rt%tt._length],ut=tt.v[rt===0?tt._length-1:rt-1],dt=tt.v[(rt+1)%tt._length],bt=st===2?Math.sqrt(Math.pow(lt[0]-ut[0],2)+Math.pow(lt[1]-ut[1],2)):0,gt=st===2?Math.sqrt(Math.pow(lt[0]-dt[0],2)+Math.pow(lt[1]-dt[1],2)):0;setPoint(et,tt.v[rt%tt._length],ot,at,nt,gt/((it+1)*2),bt/((it+1)*2))}function zigZagSegment(et,tt,rt,nt,it,st){for(var at=0;at1&&tt.length>1&&(it=getIntersection(et[0],tt[tt.length-1]),it)?[[et[0].split(it[0])[0]],[tt[tt.length-1].split(it[1])[1]]]:[rt,nt]}function pruneIntersections(et){for(var tt,rt=1;rt1&&(tt=pruneSegmentIntersection(et[et.length-1],et[0]),et[et.length-1]=tt[0],et[0]=tt[1]),et}function offsetSegmentSplit(et,tt){var rt=et.inflectionPoints(),nt,it,st,at;if(rt.length===0)return[offsetSegment(et,tt)];if(rt.length===1||floatEqual(rt[1],1))return st=et.split(rt[0]),nt=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(it,tt)];st=et.split(rt[0]),nt=st[0];var ot=(rt[1]-rt[0])/(1-rt[0]);return st=st[1].split(ot),at=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(at,tt),offsetSegment(it,tt)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(et,tt.a,0,null,this),this.miterLimit=PropertyFactory.getProp(et,tt.ml,0,null,this),this.lineJoin=tt.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(et,tt,rt,nt){var it=shapePool.newElement();it.c=et.c;var st=et.length();et.c||(st-=1);var at,ot,lt,ut=[];for(at=0;at=0;at-=1)lt=PolynomialBezier.shapeSegmentInverted(et,at),ut.push(offsetSegmentSplit(lt,tt));ut=pruneIntersections(ut);var dt=null,bt=null;for(at=0;at0&&(xt=!1),xt){var pr=createTag("style");pr.setAttribute("f-forigin",At[Pt].fOrigin),pr.setAttribute("f-origin",At[Pt].origin),pr.setAttribute("f-family",At[Pt].fFamily),pr.type="text/css",pr.innerText="@font-face {font-family: "+At[Pt].fFamily+"; font-style: normal; src: url('"+At[Pt].fPath+"');}",Rt.appendChild(pr)}}else if(At[Pt].fOrigin==="g"||At[Pt].origin===1){for(Lt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),tr=0;tr=55296&&At<=56319){var Pt=Tt.charCodeAt(1);Pt>=56320&&Pt<=57343&&(Rt=(At-55296)*1024+Pt-56320+65536)}return Rt}function Dt(Tt,Rt){var At=Tt.toString(16)+Rt.toString(16);return bt.indexOf(At)!==-1}function zt(Tt){return Tt===lt}function Ht(Tt){return Tt===ot}function Wt(Tt){var Rt=Ft(Tt);return Rt>=ut&&Rt<=dt}function lr(Tt){return Wt(Tt.substr(0,2))&&Wt(Tt.substr(2,2))}function qt(Tt){return rt.indexOf(Tt)!==-1}function Ot(Tt,Rt){var At=Ft(Tt.substr(Rt,2));if(At!==nt)return!1;var Pt=0;for(Rt+=2;Pt<5;){if(At=Ft(Tt.substr(Rt,2)),Atat)return!1;Pt+=1,Rt+=2}return Ft(Tt.substr(Rt,2))===it}function Mt(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=Dt,ht.isZeroWidthJoiner=zt,ht.isFlagEmoji=lr,ht.isRegionalCode=Wt,ht.isCombinedCharacter=qt,ht.isRegionalFlag=Ot,ht.isVariationSelector=Ht,ht.BLACK_FLAG_CODE_POINT=nt;var Et={addChars:mt,addFonts:$t,getCharData:wt,getFontByName:Bt,measureText:St,checkLoadedFonts:pt,setIsLoaded:Mt};return ht.prototype=Et,ht}();function SlotManager(et){this.animationData=et}SlotManager.prototype.getProp=function(et){return this.animationData.slots&&this.animationData.slots[et.sid]?Object.assign(et,this.animationData.slots[et.sid].p):et};function slotFactory(et){return new SlotManager(et)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)===-1&&this.renderableComponents.push(tt)},removeRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(tt),1)},prepareRenderableFrame:function(tt){this.checkLayerLimits(tt)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(tt){this.data.ip-this.data.st<=tt&&this.data.op-this.data.st>tt?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var tt,rt=this.renderableComponents.length;for(tt=0;tt.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(et){this.audio.rate(et)},AudioElement.prototype.volume=function(et){this._volumeMultiplier=et,this._previousVolume=et*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(et){var tt,rt=this.layers.length,nt;for(this.completeLayers=!0,tt=rt-1;tt>=0;tt-=1)this.elements[tt]||(nt=this.layers[tt],nt.ip-nt.st<=et-this.layers[tt].st&&nt.op-nt.st>et-this.layers[tt].st&&this.buildItem(tt)),this.completeLayers=this.elements[tt]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(et){switch(et.ty){case 2:return this.createImage(et);case 0:return this.createComp(et);case 1:return this.createSolid(et);case 3:return this.createNull(et);case 4:return this.createShape(et);case 5:return this.createText(et);case 6:return this.createAudio(et);case 13:return this.createCamera(et);case 15:return this.createFootage(et);default:return this.createNull(et)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(et){return new AudioElement(et,this.globalData,this)},BaseRenderer.prototype.createFootage=function(et){return new FootageElement(et,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var et,tt=this.layers.length;for(et=0;et0&&(this.maskElement.setAttribute("id",gt),this.element.maskedElement.setAttribute(wt,"url("+getLocationHref()+"#"+gt+")"),nt.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(et){return this.viewData[et].prop},MaskElement.prototype.renderFrame=function(et){var tt=this.element.finalTransform.mat,rt,nt=this.masksProperties.length;for(rt=0;rt1&&(nt+=" C"+tt.o[it-1][0]+","+tt.o[it-1][1]+" "+tt.i[0][0]+","+tt.i[0][1]+" "+tt.v[0][0]+","+tt.v[0][1]),rt.lastPath!==nt){var at="";rt.elem&&(tt.c&&(at=et.inv?this.solidPath+nt:nt),rt.elem.setAttribute("d",at)),rt.lastPath=nt}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var et={};et.createFilter=tt,et.createAlphaToLuminanceFilter=rt;function tt(nt,it){var st=createNS("filter");return st.setAttribute("id",nt),it!==!0&&(st.setAttribute("filterUnits","objectBoundingBox"),st.setAttribute("x","0%"),st.setAttribute("y","0%"),st.setAttribute("width","100%"),st.setAttribute("height","100%")),st}function rt(){var nt=createNS("feColorMatrix");return nt.setAttribute("type","matrix"),nt.setAttribute("color-interpolation-filters","sRGB"),nt.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),nt}return et}(),featureSupport=function(){var et={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(et.maskType=!1),/firefox/i.test(navigator.userAgent)&&(et.svgLumaHidden=!1),et}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(et){var tt,rt="SourceGraphic",nt=et.data.ef?et.data.ef.length:0,it=createElementID(),st=filtersFactory.createFilter(it,!0),at=0;this.filters=[];var ot;for(tt=0;tt=0&&(nt=this.shapeModifiers[tt].processShapes(this._isFirstFrame),!nt);tt-=1);}},searchProcessedElement:function(tt){for(var rt=this.processedElements,nt=0,it=rt.length;nt.01)return!1;rt+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var et=0,tt=this.data.k.k.length;et0;)mt=gt.transformers[Wt].mProps._mdf||mt,Ht-=1,Wt-=1;if(mt)for(Ht=Ft-gt.styles[St].lvl,Wt=gt.transformers.length-1;Ht>0;)zt.multiply(gt.transformers[Wt].mProps.v),Ht-=1,Wt-=1}else zt=et;if(Dt=gt.sh.paths,yt=Dt._length,mt){for($t="",pt=0;pt=1?Mt=.99:Mt<=-1&&(Mt=-.99);var ht=qt*Mt,Et=Math.cos(Ot+gt.a.v)*ht+$t[0],Tt=Math.sin(Ot+gt.a.v)*ht+$t[1];pt.setAttribute("fx",Et),pt.setAttribute("fy",Tt),yt&&!gt.g._collapsable&&(gt.of.setAttribute("fx",Et),gt.of.setAttribute("fy",Tt))}}}function dt(bt,gt,kt){var pt=gt.style,yt=gt.d;yt&&(yt._mdf||kt)&&yt.dashStr&&(pt.pElem.setAttribute("stroke-dasharray",yt.dashStr),pt.pElem.setAttribute("stroke-dashoffset",yt.dashoffset[0])),gt.c&&(gt.c._mdf||kt)&&pt.pElem.setAttribute("stroke","rgb("+bmFloor(gt.c.v[0])+","+bmFloor(gt.c.v[1])+","+bmFloor(gt.c.v[2])+")"),(gt.o._mdf||kt)&&pt.pElem.setAttribute("stroke-opacity",gt.o.v),(gt.w._mdf||kt)&&(pt.pElem.setAttribute("stroke-width",gt.w.v),pt.msElem&&pt.msElem.setAttribute("stroke-width",gt.w.v))}return rt}();function SVGShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(et,tt,rt),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var et,tt=this.shapes.length,rt,nt,it=this.stylesList.length,st,at=[],ot=!1;for(nt=0;nt1&&ot&&this.setShapesAsAnimated(at)}},SVGShapeElement.prototype.setShapesAsAnimated=function(et){var tt,rt=et.length;for(tt=0;tt=0;lt-=1){if($t=this.searchProcessedElement(et[lt]),$t?tt[lt]=rt[$t-1]:et[lt]._render=at,et[lt].ty==="fl"||et[lt].ty==="st"||et[lt].ty==="gf"||et[lt].ty==="gs"||et[lt].ty==="no")$t?tt[lt].style.closed=!1:tt[lt]=this.createStyleElement(et[lt],it),et[lt]._render&&tt[lt].style.pElem.parentNode!==nt&&nt.appendChild(tt[lt].style.pElem),gt.push(tt[lt].style);else if(et[lt].ty==="gr"){if(!$t)tt[lt]=this.createGroupElement(et[lt]);else for(bt=tt[lt].it.length,dt=0;dt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(et){this.effectsSequence.push(et),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(et){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!et)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var tt=this.currentData,rt=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var nt,it=this.effectsSequence.length,st=et||this.data.d.k[this.keysIndex].s;for(nt=0;nttt);)rt+=1;return this.keysIndex!==rt&&(this.keysIndex=rt),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(et){for(var tt=[],rt=0,nt=et.length,it,st,at=!1,ot=!1,lt="";rt=55296&&it<=56319?FontManager.isRegionalFlag(et,rt)?lt=et.substr(rt,14):(st=et.charCodeAt(rt+1),st>=56320&&st<=57343&&(FontManager.isModifier(it,st)?(lt=et.substr(rt,2),at=!0):FontManager.isFlagEmoji(et.substr(rt,4))?lt=et.substr(rt,4):lt=et.substr(rt,2))):it>56319?(st=et.charCodeAt(rt+1),FontManager.isVariationSelector(it)&&(at=!0)):FontManager.isZeroWidthJoiner(it)&&(at=!0,ot=!0),at?(tt[tt.length-1]+=lt,at=!1):tt.push(lt),rt+=lt.length;return tt},TextProperty.prototype.completeTextData=function(et){et.__complete=!0;var tt=this.elem.globalData.fontManager,rt=this.data,nt=[],it,st,at,ot=0,lt,ut=rt.m.g,dt=0,bt=0,gt=0,kt=[],pt=0,yt=0,$t,mt,wt=tt.getFontByName(et.f),St,Bt=0,Ft=getFontProperties(wt);et.fWeight=Ft.weight,et.fStyle=Ft.style,et.finalSize=et.s,et.finalText=this.buildFinalText(et.t),st=et.finalText.length,et.finalLineHeight=et.lh;var Dt=et.tr/1e3*et.finalSize,zt;if(et.sz)for(var Ht=!0,Wt=et.sz[0],lr=et.sz[1],qt,Ot;Ht;){Ot=this.buildFinalText(et.t),qt=0,pt=0,st=Ot.length,Dt=et.tr/1e3*et.finalSize;var Mt=-1;for(it=0;itWt&&Ot[it]!==" "?(Mt===-1?st+=1:it=Mt,qt+=et.finalLineHeight||et.finalSize*1.2,Ot.splice(it,Mt===it?1:0,"\r"),Mt=-1,pt=0):(pt+=Bt,pt+=Dt);qt+=wt.ascent*et.finalSize/100,this.canResize&&et.finalSize>this.minimumFontSize&&lryt?pt:yt,pt=-2*Dt,lt="",at=!0,gt+=1):lt=Et,tt.chars?(St=tt.getCharData(Et,wt.fStyle,tt.getFontByName(et.f).fFamily),Bt=at?0:St.w*et.finalSize/100):Bt=tt.measureText(lt,et.f,et.finalSize),Et===" "?ht+=Bt+Dt:(pt+=Bt+Dt+ht,ht=0),nt.push({l:Bt,an:Bt,add:dt,n:at,anIndexes:[],val:lt,line:gt,animatorJustifyOffset:0}),ut==2){if(dt+=Bt,lt===""||lt===" "||it===st-1){for((lt===""||lt===" ")&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;ot+=1,dt=0}}else if(ut==3){if(dt+=Bt,lt===""||it===st-1){for(lt===""&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;dt=0,ot+=1}}else nt[ot].ind=ot,nt[ot].extra=0,ot+=1;if(et.l=nt,yt=pt>yt?pt:yt,kt.push(pt),et.sz)et.boxWidth=et.sz[0],et.justifyOffset=0;else switch(et.boxWidth=yt,et.j){case 1:et.justifyOffset=-et.boxWidth;break;case 2:et.justifyOffset=-et.boxWidth/2;break;default:et.justifyOffset=0}et.lineWidths=kt;var Tt=rt.a,Rt,At;mt=Tt.length;var Pt,It,Ct=[];for($t=0;$t0?ot=this.ne.v/100:lt=-this.ne.v/100,this.xe.v>0?ut=1-this.xe.v/100:dt=1+this.xe.v/100;var bt=BezierFactory.getBezierEasing(ot,lt,ut,dt).get,gt=0,kt=this.finalS,pt=this.finalE,yt=this.data.sh;if(yt===2)pt===kt?gt=at>=pt?1:0:gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===3)pt===kt?gt=at>=pt?0:1:gt=1-et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===4)pt===kt?gt=0:(gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt<.5?gt*=2:gt=1-2*(gt-.5)),gt=bt(gt);else if(yt===5){if(pt===kt)gt=0;else{var $t=pt-kt;at=tt(et(0,at+.5-kt),pt-kt);var mt=-$t/2+at,wt=$t/2;gt=Math.sqrt(1-mt*mt/(wt*wt))}gt=bt(gt)}else yt===6?(pt===kt?gt=0:(at=tt(et(0,at+.5-kt),pt-kt),gt=(1+Math.cos(Math.PI+Math.PI*2*at/(pt-kt)))/2),gt=bt(gt)):(at>=rt(kt)&&(at-kt<0?gt=et(0,tt(tt(pt,1)-(kt-at),1)):gt=et(0,tt(pt-at,1))),gt=bt(gt));if(this.sm.v!==100){var St=this.sm.v*.01;St===0&&(St=1e-8);var Bt=.5-St*.5;gt1&&(gt=1))}return gt*this.a.v},getValue:function(at){this.iterateDynamicProperties(),this._mdf=at||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,at&&this.data.r===2&&(this.e.v=this._currentTextLength);var ot=this.data.r===2?1:100/this.data.totalChars,lt=this.o.v/ot,ut=this.s.v/ot+lt,dt=this.e.v/ot+lt;if(ut>dt){var bt=ut;ut=dt,dt=bt}this.finalS=ut,this.finalE=dt}},extendPrototype([DynamicPropertyContainer],nt);function it(st,at,ot){return new nt(st,at)}return{getTextSelectorProp:it}}();function TextAnimatorDataProperty(et,tt,rt){var nt={propType:!1},it=PropertyFactory.getProp,st=tt.a;this.a={r:st.r?it(et,st.r,0,degToRads,rt):nt,rx:st.rx?it(et,st.rx,0,degToRads,rt):nt,ry:st.ry?it(et,st.ry,0,degToRads,rt):nt,sk:st.sk?it(et,st.sk,0,degToRads,rt):nt,sa:st.sa?it(et,st.sa,0,degToRads,rt):nt,s:st.s?it(et,st.s,1,.01,rt):nt,a:st.a?it(et,st.a,1,0,rt):nt,o:st.o?it(et,st.o,0,.01,rt):nt,p:st.p?it(et,st.p,1,0,rt):nt,sw:st.sw?it(et,st.sw,0,0,rt):nt,sc:st.sc?it(et,st.sc,1,0,rt):nt,fc:st.fc?it(et,st.fc,1,0,rt):nt,fh:st.fh?it(et,st.fh,0,0,rt):nt,fs:st.fs?it(et,st.fs,0,.01,rt):nt,fb:st.fb?it(et,st.fb,0,.01,rt):nt,t:st.t?it(et,st.t,0,0,rt):nt},this.s=TextSelectorProp.getTextSelectorProp(et,tt.s,rt),this.s.t=tt.s.t}function TextAnimatorProperty(et,tt,rt){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=et,this._renderType=tt,this._elem=rt,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(rt)}TextAnimatorProperty.prototype.searchProperties=function(){var et,tt=this._textData.a.length,rt,nt=PropertyFactory.getProp;for(et=0;et=pt+Ir||!Ft?(Wt=(pt+Ir-$t)/yt.partialLength,tr=Bt.point[0]+(yt.point[0]-Bt.point[0])*Wt,pr=Bt.point[1]+(yt.point[1]-Bt.point[1])*Wt,st.translate(-rt[0]*gt[dt].an*.005,-(rt[1]*ht)*.01),mt=!1):Ft&&($t+=yt.partialLength,wt+=1,wt>=Ft.length&&(wt=0,St+=1,Dt[St]?Ft=Dt[St].points:qt.v.c?(wt=0,St=0,Ft=Dt[St].points):($t-=yt.partialLength,Ft=null)),Ft&&(Bt=yt,yt=Ft[wt],zt=yt.partialLength));Lt=gt[dt].an/2-gt[dt].add,st.translate(-Lt,0,0)}else Lt=gt[dt].an/2-gt[dt].add,st.translate(-Lt,0,0),st.translate(-rt[0]*gt[dt].an*.005,-rt[1]*ht*.01,0);for(At=0;Atet?this.textSpans[et].span:createNS(ot?"g":"text"),St<=et){if(lt.setAttribute("stroke-linecap","butt"),lt.setAttribute("stroke-linejoin","round"),lt.setAttribute("stroke-miterlimit","4"),this.textSpans[et].span=lt,ot){var Ft=createNS("g");lt.appendChild(Ft),this.textSpans[et].childSpan=Ft}this.textSpans[et].span=lt,this.layerElement.appendChild(lt)}lt.style.display="inherit"}if(ut.reset(),bt&&(at[et].n&&(gt=-yt,kt+=rt.yOffset,kt+=pt?1:0,pt=!1),this.applyTextPropertiesToMatrix(rt,ut,at[et].line,gt,kt),gt+=at[et].l||0,gt+=yt),ot){Bt=this.globalData.fontManager.getCharData(rt.finalText[et],nt.fStyle,this.globalData.fontManager.getFontByName(rt.f).fFamily);var Dt;if(Bt.t===1)Dt=new SVGCompElement(Bt.data,this.globalData,this);else{var zt=emptyShapeData;Bt.data&&Bt.data.shapes&&(zt=this.buildShapeData(Bt.data,rt.finalSize)),Dt=new SVGShapeElement(zt,this.globalData,this)}if(this.textSpans[et].glyph){var Ht=this.textSpans[et].glyph;this.textSpans[et].childSpan.removeChild(Ht.layerElement),Ht.destroy()}this.textSpans[et].glyph=Dt,Dt._debug=!0,Dt.prepareFrame(0),Dt.renderFrame(),this.textSpans[et].childSpan.appendChild(Dt.layerElement),Bt.t===1&&this.textSpans[et].childSpan.setAttribute("transform","scale("+rt.finalSize/100+","+rt.finalSize/100+")")}else bt&<.setAttribute("transform","translate("+ut.props[12]+","+ut.props[13]+")"),lt.textContent=at[et].val,lt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}bt&<&<.setAttribute("d",dt)}for(;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].prepareFrame(et-this.layers[tt].st);if(this.globalData._mdf)for(tt=0;tt=0;rt-=1)(this.completeLayers||this.elements[rt])&&(this.elements[rt].prepareFrame(this.renderedFrame-this.layers[rt].st),this.elements[rt]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var et,tt=this.layers.length;for(et=0;et=0;nt-=1)tt.finalTransform.multiply(tt.transforms[nt].transform.mProps.v);tt._mdf=st},processSequences:function(tt){var rt,nt=this.sequenceList.length;for(rt=0;rt=1){this.buffers=[];var tt=this.globalData.canvasContext,rt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(rt);var nt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(nt),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var tt=this.globalData;if(tt.blendMode!==this.data.bm){tt.blendMode=this.data.bm;var rt=getBlendMode(this.data.bm);tt.canvasContext.globalCompositeOperation=rt}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(tt){tt.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var tt=this.buffers[0],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var tt=this.buffers[1],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var nt=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(nt.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var it=assetLoader.getLumaCanvas(this.canvasContext.canvas),st=it.getContext("2d");st.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(it,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(tt,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(tt){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!tt)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var rt=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(rt),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(rt),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(et,tt,rt,nt){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var it=4;tt.ty==="rc"?it=5:tt.ty==="el"?it=6:tt.ty==="sr"&&(it=7),this.sh=ShapePropertyFactory.getShapeProp(et,tt,it,et);var st,at=rt.length,ot;for(st=0;st=0;st-=1){if(bt=this.searchProcessedElement(et[st]),bt?tt[st]=rt[bt-1]:et[st]._shouldRender=nt,et[st].ty==="fl"||et[st].ty==="st"||et[st].ty==="gf"||et[st].ty==="gs")bt?tt[st].style.closed=!1:tt[st]=this.createStyleElement(et[st],pt),ut.push(tt[st].style);else if(et[st].ty==="gr"){if(!bt)tt[st]=this.createGroupElement(et[st]);else for(lt=tt[st].it.length,ot=0;ot=0;it-=1)tt[it].ty==="tr"?(at=rt[it].transform,this.renderShapeTransform(et,at)):tt[it].ty==="sh"||tt[it].ty==="el"||tt[it].ty==="rc"||tt[it].ty==="sr"?this.renderPath(tt[it],rt[it]):tt[it].ty==="fl"?this.renderFill(tt[it],rt[it],at):tt[it].ty==="st"?this.renderStroke(tt[it],rt[it],at):tt[it].ty==="gf"||tt[it].ty==="gs"?this.renderGradientFill(tt[it],rt[it],at):tt[it].ty==="gr"?this.renderShape(at,tt[it].it,rt[it].it):tt[it].ty;nt&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(et,tt){if(this._isFirstFrame||tt._mdf||et.transforms._mdf){var rt=et.trNodes,nt=tt.paths,it,st,at,ot=nt._length;rt.length=0;var lt=et.transforms.finalTransform;for(at=0;at=1?dt=.99:dt<=-1&&(dt=-.99);var bt=lt*dt,gt=Math.cos(ut+tt.a.v)*bt+at[0],kt=Math.sin(ut+tt.a.v)*bt+at[1];it=st.createRadialGradient(gt,kt,0,at[0],at[1],lt)}var pt,yt=et.g.p,$t=tt.g.c,mt=1;for(pt=0;ptst&<==="xMidYMid slice"||itit&&ot==="meet"||stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))/2*this.renderConfig.dpr:ut==="xMax"&&(stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,dt==="YMid"&&(st>it&&ot==="meet"||stit&&ot==="meet"||st=0;et-=1)this.elements[et]&&this.elements[et].destroy&&this.elements[et].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(et,tt){if(!(this.renderedFrame===et&&this.renderConfig.clearCanvas===!0&&!tt||this.destroyed||et===-1)){this.renderedFrame=et,this.globalData.frameNum=et-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||tt,this.globalData.projectInterface.currentFrame=et;var rt,nt=this.layers.length;for(this.completeLayers||this.checkLayers(et),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].prepareFrame(et-this.layers[rt].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(et){var tt=this.elements;if(!(tt[et]||this.layers[et].ty===99)){var rt=this.createItem(this.layers[et],this,this.globalData);tt[et]=rt,rt.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var et=this.pendingElements.pop();et.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var et,tt=15;for(et=0;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].renderFrame()},CVCompElement.prototype.destroy=function(){var et,tt=this.layers.length;for(et=tt-1;et>=0;et-=1)this.elements[et]&&this.elements[et].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function CanvasRenderer(et,tt){this.animationItem=et,this.renderConfig={clearCanvas:tt&&tt.clearCanvas!==void 0?tt.clearCanvas:!0,context:tt&&tt.context||null,progressiveLoad:tt&&tt.progressiveLoad||!1,preserveAspectRatio:tt&&tt.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:tt&&tt.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:tt&&tt.contentVisibility||"visible",className:tt&&tt.className||"",id:tt&&tt.id||"",runExpressions:!tt||tt.runExpressions===void 0||tt.runExpressions},this.renderConfig.dpr=tt&&tt.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=tt&&tt.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var tt=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var rt=this.finalTransform.mat.toCSS();tt.transform=rt,tt.webkitTransform=rt}this.finalTransform._opMdf&&(tt.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(et,tt,rt){this.initElement(et,tt,rt)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var et;this.data.hasMask?(et=createNS("rect"),et.setAttribute("width",this.data.sw),et.setAttribute("height",this.data.sh),et.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(et=createTag("div"),et.style.width=this.data.sw+"px",et.style.height=this.data.sh+"px",et.style.backgroundColor=this.data.sc),this.layerElement.appendChild(et)};function HShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(et,tt,rt),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var et;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),et=this.svgElement;else{et=createNS("svg");var tt=this.comp.data?this.comp.data:this.globalData.compSize;et.setAttribute("width",tt.w),et.setAttribute("height",tt.h),et.appendChild(this.shapesContainer),this.layerElement.appendChild(et)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=et},HShapeElement.prototype.getTransformedPoint=function(et,tt){var rt,nt=et.length;for(rt=0;rt0&<<1&&it[gt].push(this.calculateF(lt,et,tt,rt,nt,gt))):(ut=at*at-4*ot*st,ut>=0&&(dt=(-at+bmSqrt(ut))/(2*st),dt>0&&dt<1&&it[gt].push(this.calculateF(dt,et,tt,rt,nt,gt)),bt=(-at-bmSqrt(ut))/(2*st),bt>0&&bt<1&&it[gt].push(this.calculateF(bt,et,tt,rt,nt,gt)))));this.shapeBoundingBox.left=bmMin.apply(null,it[0]),this.shapeBoundingBox.top=bmMin.apply(null,it[1]),this.shapeBoundingBox.right=bmMax.apply(null,it[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,it[1])},HShapeElement.prototype.calculateF=function(et,tt,rt,nt,it,st){return bmPow(1-et,3)*tt[st]+3*bmPow(1-et,2)*et*rt[st]+3*(1-et)*bmPow(et,2)*nt[st]+bmPow(et,3)*it[st]},HShapeElement.prototype.calculateBoundingBox=function(et,tt){var rt,nt=et.length;for(rt=0;rtrt&&(rt=it)}rt*=et.mult}else rt=et.v*et.mult;tt.x-=rt,tt.xMax+=rt,tt.y-=rt,tt.yMax+=rt},HShapeElement.prototype.currentBoxContains=function(et){return this.currentBBox.x<=et.x&&this.currentBBox.y<=et.y&&this.currentBBox.width+this.currentBBox.x>=et.x+et.width&&this.currentBBox.height+this.currentBBox.y>=et.y+et.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.tempBoundingBox,tt=999999;if(et.x=tt,et.xMax=-tt,et.y=tt,et.yMax=-tt,this.calculateBoundingBox(this.itemsData,et),et.width=et.xMax=0;tt-=1){var nt=this.hierarchy[tt].finalTransform.mProp;this.mat.translate(-nt.p.v[0],-nt.p.v[1],nt.p.v[2]),this.mat.rotateX(-nt.or.v[0]).rotateY(-nt.or.v[1]).rotateZ(nt.or.v[2]),this.mat.rotateX(-nt.rx.v).rotateY(-nt.ry.v).rotateZ(nt.rz.v),this.mat.scale(1/nt.s.v[0],1/nt.s.v[1],1/nt.s.v[2]),this.mat.translate(nt.a.v[0],nt.a.v[1],nt.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var it;this.p?it=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:it=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var st=Math.sqrt(Math.pow(it[0],2)+Math.pow(it[1],2)+Math.pow(it[2],2)),at=[it[0]/st,it[1]/st,it[2]/st],ot=Math.sqrt(at[2]*at[2]+at[0]*at[0]),lt=Math.atan2(at[1],ot),ut=Math.atan2(at[0],-at[2]);this.mat.rotateY(ut).rotateX(-lt)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var dt=!this._prevMat.equals(this.mat);if((dt||this.pe._mdf)&&this.comp.threeDElements){rt=this.comp.threeDElements.length;var bt,gt,kt;for(tt=0;tt=et)return this.threeDElements[tt].perspectiveElem;tt+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(et,tt){var rt=createTag("div"),nt,it;styleDiv(rt);var st=createTag("div");if(styleDiv(st),tt==="3d"){nt=rt.style,nt.width=this.globalData.compSize.w+"px",nt.height=this.globalData.compSize.h+"px";var at="50% 50%";nt.webkitTransformOrigin=at,nt.mozTransformOrigin=at,nt.transformOrigin=at,it=st.style;var ot="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";it.transform=ot,it.webkitTransform=ot}rt.appendChild(st);var lt={container:st,perspectiveElem:rt,startPos:et,endPos:et,type:tt};return this.threeDElements.push(lt),lt},HybridRendererBase.prototype.build3dContainers=function(){var et,tt=this.layers.length,rt,nt="";for(et=0;et=0;et-=1)this.resizerElem.appendChild(this.threeDElements[et].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(et,tt){for(var rt=0,nt=this.threeDElements.length;rtrt?(it=et/this.globalData.compSize.w,st=et/this.globalData.compSize.w,at=0,ot=(tt-this.globalData.compSize.h*(et/this.globalData.compSize.w))/2):(it=tt/this.globalData.compSize.h,st=tt/this.globalData.compSize.h,at=(et-this.globalData.compSize.w*(tt/this.globalData.compSize.h))/2,ot=0);var lt=this.resizerElem.style;lt.webkitTransform="matrix3d("+it+",0,0,0,0,"+st+",0,0,0,0,1,0,"+at+","+ot+",0,1)",lt.transform=lt.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var et=this.globalData.compSize.w,tt=this.globalData.compSize.h,rt,nt=this.threeDElements.length;for(rt=0;rt=ut;)qt/=2,Ot/=2,Mt>>>=1;return(qt+Mt)/Ot};return Wt.int32=function(){return Ht.g(4)|0},Wt.quick=function(){return Ht.g(4)/4294967296},Wt.double=Wt,$t(wt(Ht.S),et),(Bt.pass||Ft||function(lr,qt,Ot,Mt){return Mt&&(Mt.S&&pt(Mt,Ht),lr.state=function(){return pt(Ht,{})}),Ot?(tt[at]=lr,qt):lr})(Wt,zt,"global"in Bt?Bt.global:this==tt,Bt.state)}tt["seed"+at]=gt;function kt(St){var Bt,Ft=St.length,Dt=this,zt=0,Ht=Dt.i=Dt.j=0,Wt=Dt.S=[];for(Ft||(St=[Ft++]);ztrt){var nt=rt;rt=tt,tt=nt}return Math.min(Math.max(et,tt),rt)}function radiansToDegrees(et){return et/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(et){return et*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(et,tt){if(typeof et=="number"||et instanceof Number)return tt=tt||0,Math.abs(et-tt);tt||(tt=helperLengthArray);var rt,nt=Math.min(et.length,tt.length),it=0;for(rt=0;rt.5?ut/(2-it-st):ut/(it+st),it){case tt:at=(rt-nt)/ut+(rt1&&(rt-=1),rt<1/6?et+(tt-et)*6*rt:rt<1/2?tt:rt<2/3?et+(tt-et)*(2/3-rt)*6:et}function hslToRgb(et){var tt=et[0],rt=et[1],nt=et[2],it,st,at;if(rt===0)it=nt,at=nt,st=nt;else{var ot=nt<.5?nt*(1+rt):nt+rt-nt*rt,lt=2*nt-ot;it=hue2rgb(lt,ot,tt+1/3),st=hue2rgb(lt,ot,tt),at=hue2rgb(lt,ot,tt-1/3)}return[it,st,at,et[3]]}function linear(et,tt,rt,nt,it){if((nt===void 0||it===void 0)&&(nt=tt,it=rt,tt=0,rt=1),rt=rt)return it;var at=rt===tt?0:(et-tt)/(rt-tt);if(!nt.length)return nt+(it-nt)*at;var ot,lt=nt.length,ut=createTypedArray("float32",lt);for(ot=0;ot1){for(it=0;it1?tt=1:tt<0&&(tt=0);var at=et(tt);if($bm_isInstanceOfArray(it)){var ot,lt=it.length,ut=createTypedArray("float32",lt);for(ot=0;otdata.k[tt].t&&etdata.k[tt+1].t-et?(nt=tt+2,it=data.k[tt+1].t):(nt=tt+1,it=data.k[tt].t);break}nt===-1&&(nt=tt+1,it=data.k[tt].t)}var st={};return st.index=nt,st.time=it/elem.comp.globalData.frameRate,st}function key(et){var tt,rt,nt;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+et);et-=1,tt={time:data.k[et].t/elem.comp.globalData.frameRate,value:[]};var it=Object.prototype.hasOwnProperty.call(data.k[et],"s")?data.k[et].s:data.k[et-1].e;for(nt=it.length,rt=0;rt$t.length-1)&&(kt=$t.length-1),St=$t[$t.length-1-kt].t,wt=mt-St);var Bt,Ft,Dt;if(gt==="pingpong"){var zt=Math.floor((yt-St)/wt);if(zt%2!==0)return this.getValueAtTime((wt-(yt-St)%wt+St)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),lr=this.getValueAtTime(((yt-St)%wt+St)/this.comp.globalData.frameRate,0),qt=Math.floor((yt-St)/wt);if(this.pv.length){for(Dt=new Array(Ht.length),Ft=Dt.length,Bt=0;Bt=mt)return this.pv;var wt,St;pt?(kt?wt=Math.abs(this.elem.comp.globalData.frameRate*kt):wt=Math.max(0,this.elem.data.op-mt),St=mt+wt):((!kt||kt>$t.length-1)&&(kt=$t.length-1),St=$t[kt].t,wt=St-mt);var Bt,Ft,Dt;if(gt==="pingpong"){var zt=Math.floor((mt-yt)/wt);if(zt%2===0)return this.getValueAtTime(((mt-yt)%wt+mt)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),lr=this.getValueAtTime((wt-(mt-yt)%wt+mt)/this.comp.globalData.frameRate,0),qt=Math.floor((mt-yt)/wt)+1;if(this.pv.length){for(Dt=new Array(Ht.length),Ft=Dt.length,Bt=0;Bt1?($t-yt)/(kt-1):1,wt=0,St=0,Bt;this.pv.length?Bt=createTypedArray("float32",this.pv.length):Bt=0;for(var Ft;wtwt){var zt=St,Ht=yt.c&&St===Bt-1?0:St+1,Wt=(wt-Ft)/mt[St].addedLength;Dt=bez.getPointInSegment(yt.v[zt],yt.v[Ht],yt.o[zt],yt.i[Ht],Wt,mt[St]);break}else Ft+=mt[St].addedLength;St+=1}return Dt||(Dt=yt.c?[yt.v[0][0],yt.v[0][1]]:[yt.v[yt._length-1][0],yt.v[yt._length-1][1]]),Dt},vectorOnPath:function(kt,pt,yt){kt==1?kt=this.v.c:kt==0&&(kt=.999);var $t=this.pointOnPath(kt,pt),mt=this.pointOnPath(kt+.001,pt),wt=mt[0]-$t[0],St=mt[1]-$t[1],Bt=Math.sqrt(Math.pow(wt,2)+Math.pow(St,2));if(Bt===0)return[0,0];var Ft=yt==="tangent"?[wt/Bt,St/Bt]:[-St/Bt,wt/Bt];return Ft},tangentOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"tangent")},normalOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([dt],lt),extendPrototype([dt],ut),ut.prototype.getValueAtTime=ot,ut.prototype.initiateExpression=ExpressionManager.initiateExpression;var bt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(gt,kt,pt,yt,$t){var mt=bt(gt,kt,pt,yt,$t);return mt.propertyIndex=kt.ix,mt.lock=!1,pt===3?expressionHelpers.searchExpressions(gt,kt.pt,mt):pt===4&&expressionHelpers.searchExpressions(gt,kt.ks,mt),mt.k&>.addDynamicProperty(mt),mt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function et(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(tt,rt){var nt=this.calculateExpression(rt);if(tt.t!==nt){var it={};return this.copyData(it,tt),it.t=nt.toString(),it.__complete=!1,it}return tt},TextProperty.prototype.searchProperty=function(){var tt=this.searchKeyframes(),rt=this.searchExpressions();return this.kf=tt||rt,this.kf},TextProperty.prototype.searchExpressions=et}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function et(tt,rt){var nt=createNS("feMerge");nt.setAttribute("result",tt);var it,st;for(st=0;st=ut?bt=pt<0?nt:it:bt=nt+kt*Math.pow((ot-et)/pt,1/rt),dt[gt]=bt,gt+=1,st+=256/(at-1);return dt.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){var tt,rt=this.filterManager.effectElements;this.feFuncRComposed&&(et||rt[3].p._mdf||rt[4].p._mdf||rt[5].p._mdf||rt[6].p._mdf||rt[7].p._mdf)&&(tt=this.getTableValue(rt[3].p.v,rt[4].p.v,rt[5].p.v,rt[6].p.v,rt[7].p.v),this.feFuncRComposed.setAttribute("tableValues",tt),this.feFuncGComposed.setAttribute("tableValues",tt),this.feFuncBComposed.setAttribute("tableValues",tt)),this.feFuncR&&(et||rt[10].p._mdf||rt[11].p._mdf||rt[12].p._mdf||rt[13].p._mdf||rt[14].p._mdf)&&(tt=this.getTableValue(rt[10].p.v,rt[11].p.v,rt[12].p.v,rt[13].p.v,rt[14].p.v),this.feFuncR.setAttribute("tableValues",tt)),this.feFuncG&&(et||rt[17].p._mdf||rt[18].p._mdf||rt[19].p._mdf||rt[20].p._mdf||rt[21].p._mdf)&&(tt=this.getTableValue(rt[17].p.v,rt[18].p.v,rt[19].p.v,rt[20].p.v,rt[21].p.v),this.feFuncG.setAttribute("tableValues",tt)),this.feFuncB&&(et||rt[24].p._mdf||rt[25].p._mdf||rt[26].p._mdf||rt[27].p._mdf||rt[28].p._mdf)&&(tt=this.getTableValue(rt[24].p.v,rt[25].p.v,rt[26].p.v,rt[27].p.v,rt[28].p.v),this.feFuncB.setAttribute("tableValues",tt)),this.feFuncA&&(et||rt[31].p._mdf||rt[32].p._mdf||rt[33].p._mdf||rt[34].p._mdf||rt[35].p._mdf)&&(tt=this.getTableValue(rt[31].p.v,rt[32].p.v,rt[33].p.v,rt[34].p.v,rt[35].p.v),this.feFuncA.setAttribute("tableValues",tt))}};function SVGDropShadowEffect(et,tt,rt,nt,it){var st=tt.container.globalData.renderConfig.filterSize,at=tt.data.fs||st;et.setAttribute("x",at.x||st.x),et.setAttribute("y",at.y||st.y),et.setAttribute("width",at.width||st.width),et.setAttribute("height",at.height||st.height),this.filterManager=tt;var ot=createNS("feGaussianBlur");ot.setAttribute("in","SourceAlpha"),ot.setAttribute("result",nt+"_drop_shadow_1"),ot.setAttribute("stdDeviation","0"),this.feGaussianBlur=ot,et.appendChild(ot);var lt=createNS("feOffset");lt.setAttribute("dx","25"),lt.setAttribute("dy","0"),lt.setAttribute("in",nt+"_drop_shadow_1"),lt.setAttribute("result",nt+"_drop_shadow_2"),this.feOffset=lt,et.appendChild(lt);var ut=createNS("feFlood");ut.setAttribute("flood-color","#00ff00"),ut.setAttribute("flood-opacity","1"),ut.setAttribute("result",nt+"_drop_shadow_3"),this.feFlood=ut,et.appendChild(ut);var dt=createNS("feComposite");dt.setAttribute("in",nt+"_drop_shadow_3"),dt.setAttribute("in2",nt+"_drop_shadow_2"),dt.setAttribute("operator","in"),dt.setAttribute("result",nt+"_drop_shadow_4"),et.appendChild(dt);var bt=this.createMergeNode(nt,[nt+"_drop_shadow_4",it]);et.appendChild(bt)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){if((et||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),et||this.filterManager.effectElements[0].p._mdf){var tt=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(tt[0]*255),Math.round(tt[1]*255),Math.round(tt[2]*255)))}if((et||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),et||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var rt=this.filterManager.effectElements[3].p.v,nt=(this.filterManager.effectElements[2].p.v-90)*degToRads,it=rt*Math.cos(nt),st=rt*Math.sin(nt);this.feOffset.setAttribute("dx",it),this.feOffset.setAttribute("dy",st)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(et,tt,rt){this.initialized=!1,this.filterManager=tt,this.filterElem=et,this.elem=rt,rt.matteElement=createNS("g"),rt.matteElement.appendChild(rt.layerElement),rt.matteElement.appendChild(rt.transformedElement),rt.baseElement=rt.matteElement}SVGMatte3Effect.prototype.findSymbol=function(et){for(var tt=0,rt=_svgMatteSymbols.length;tt{const et=reactExports.useRef(null);return reactExports.useEffect(()=>{const tt=document.getElementById("lottie-sphere-animation");return tt&&(et.current=lottie.loadAnimation({container:tt,animationData:preloadData,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})),()=>{et.current&&et.current.destroy()}},[]),jsxRuntimeExports.jsx(Flex,{id:"lottie-sphere-animation",style:{width:"167px",height:"167px",opacity:.5}})},Splash=()=>{const[et,tt]=reactExports.useState(initialMessageData),[rt,nt]=reactExports.useState(0),{appMetaData:it,setAppMetaData:st}=useAppStore(kt=>kt),{stats:at,setStats:ot,setSeedQuestions:lt}=useDataStore(kt=>kt),{schemas:ut,setSchemas:dt}=useSchemaStore(kt=>kt),[bt,gt]=reactExports.useState(!1);return reactExports.useEffect(()=>{!it&&!at&&!bt&&(async()=>{gt(!0);try{if(!it){const pt=await getAboutData();st(pt),pt.seed_questions&<(pt.seed_questions)}if(!at){const pt=await getStats(),yt=formatStatsResponse(pt);ot(yt);const $t=formatSplashMessage(pt);tt($t)}if(!ut.length){const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}}finally{gt(!1)}})()},[it,bt,ut.length,st,dt,lt,ot,at]),reactExports.useEffect(()=>{const kt=async()=>{try{const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}catch(pt){console.error(pt)}};ut.length||kt()},[ut.length,dt]),reactExports.useEffect(()=>{let kt;return et&&it&&(nt(pt=>pt||50),kt=setInterval(()=>{nt(pt=>pt>=100?100:pt+Math.floor(Math.random()*4))},100)),()=>{kt&&clearInterval(kt)}},[et,it]),jsxRuntimeExports.jsx(SplashWrapper,{children:jsxRuntimeExports.jsxs(Wrapper,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(SphereAnimation,{}),jsxRuntimeExports.jsxs(Flex,{style:{color:colors.white},children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"title",children:it==null?void 0:it.title}),jsxRuntimeExports.jsx(Text,{className:"subtitle",children:"Second Brain"})]}),jsxRuntimeExports.jsx(LinearProgress$1,{color:"inherit",sx:{my:1.75,height:"2px"},value:rt,variant:"determinate"}),jsxRuntimeExports.jsx(AnimatedTextContent,{message:et})]})]})})},TitleWrapper=styled$3.div` + */var Matrix=function(){var et=Math.cos,tt=Math.sin,rt=Math.tan,nt=Math.round;function it(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function st(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(Pt,-It,0,0,It,Pt,0,0,0,0,1,0,0,0,0,1)}function at(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(1,0,0,0,0,Pt,-It,0,0,It,Pt,0,0,0,0,1)}function ot(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(Pt,0,It,0,0,1,0,0,-It,0,Pt,0,0,0,0,1)}function lt(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(Pt,-It,0,0,It,Pt,0,0,0,0,1,0,0,0,0,1)}function ut(At,Pt){return this._t(1,Pt,At,1,0,0)}function dt(At,Pt){return this.shear(rt(At),rt(Pt))}function bt(At,Pt){var It=et(Pt),Ct=tt(Pt);return this._t(It,Ct,0,0,-Ct,It,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,rt(At),1,0,0,0,0,1,0,0,0,0,1)._t(It,-Ct,0,0,Ct,It,0,0,0,0,1,0,0,0,0,1)}function gt(At,Pt,It){return!It&&It!==0&&(It=1),At===1&&Pt===1&&It===1?this:this._t(At,0,0,0,0,Pt,0,0,0,0,It,0,0,0,0,1)}function kt(At,Pt,It,Ct,xt,Dt,tr,pr,Kt,Qt,Zt,ur,_r,er,Jt,Ar){return this.props[0]=At,this.props[1]=Pt,this.props[2]=It,this.props[3]=Ct,this.props[4]=xt,this.props[5]=Dt,this.props[6]=tr,this.props[7]=pr,this.props[8]=Kt,this.props[9]=Qt,this.props[10]=Zt,this.props[11]=ur,this.props[12]=_r,this.props[13]=er,this.props[14]=Jt,this.props[15]=Ar,this}function pt(At,Pt,It){return It=It||0,At!==0||Pt!==0||It!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,At,Pt,It,1):this}function yt(At,Pt,It,Ct,xt,Dt,tr,pr,Kt,Qt,Zt,ur,_r,er,Jt,Ar){var Er=this.props;if(At===1&&Pt===0&&It===0&&Ct===0&&xt===0&&Dt===1&&tr===0&&pr===0&&Kt===0&&Qt===0&&Zt===1&&ur===0)return Er[12]=Er[12]*At+Er[15]*_r,Er[13]=Er[13]*Dt+Er[15]*er,Er[14]=Er[14]*Zt+Er[15]*Jt,Er[15]*=Ar,this._identityCalculated=!1,this;var Dr=Er[0],Xr=Er[1],Vr=Er[2],wr=Er[3],br=Er[4],or=Er[5],xr=Er[6],Pr=Er[7],Or=Er[8],rr=Er[9],gr=Er[10],Ir=Er[11],Yt=Er[12],Ut=Er[13],Vt=Er[14],ir=Er[15];return Er[0]=Dr*At+Xr*xt+Vr*Kt+wr*_r,Er[1]=Dr*Pt+Xr*Dt+Vr*Qt+wr*er,Er[2]=Dr*It+Xr*tr+Vr*Zt+wr*Jt,Er[3]=Dr*Ct+Xr*pr+Vr*ur+wr*Ar,Er[4]=br*At+or*xt+xr*Kt+Pr*_r,Er[5]=br*Pt+or*Dt+xr*Qt+Pr*er,Er[6]=br*It+or*tr+xr*Zt+Pr*Jt,Er[7]=br*Ct+or*pr+xr*ur+Pr*Ar,Er[8]=Or*At+rr*xt+gr*Kt+Ir*_r,Er[9]=Or*Pt+rr*Dt+gr*Qt+Ir*er,Er[10]=Or*It+rr*tr+gr*Zt+Ir*Jt,Er[11]=Or*Ct+rr*pr+gr*ur+Ir*Ar,Er[12]=Yt*At+Ut*xt+Vt*Kt+ir*_r,Er[13]=Yt*Pt+Ut*Dt+Vt*Qt+ir*er,Er[14]=Yt*It+Ut*tr+Vt*Zt+ir*Jt,Er[15]=Yt*Ct+Ut*pr+Vt*ur+ir*Ar,this._identityCalculated=!1,this}function $t(At){var Pt=At.props;return this.transform(Pt[0],Pt[1],Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],Pt[8],Pt[9],Pt[10],Pt[11],Pt[12],Pt[13],Pt[14],Pt[15])}function mt(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function wt(At){for(var Pt=0;Pt<16;){if(At.props[Pt]!==this.props[Pt])return!1;Pt+=1}return!0}function St(At){var Pt;for(Pt=0;Pt<16;Pt+=1)At.props[Pt]=this.props[Pt];return At}function Bt(At){var Pt;for(Pt=0;Pt<16;Pt+=1)this.props[Pt]=At[Pt]}function Ft(At,Pt,It){return{x:At*this.props[0]+Pt*this.props[4]+It*this.props[8]+this.props[12],y:At*this.props[1]+Pt*this.props[5]+It*this.props[9]+this.props[13],z:At*this.props[2]+Pt*this.props[6]+It*this.props[10]+this.props[14]}}function Lt(At,Pt,It){return At*this.props[0]+Pt*this.props[4]+It*this.props[8]+this.props[12]}function zt(At,Pt,It){return At*this.props[1]+Pt*this.props[5]+It*this.props[9]+this.props[13]}function Ht(At,Pt,It){return At*this.props[2]+Pt*this.props[6]+It*this.props[10]+this.props[14]}function Wt(){var At=this.props[0]*this.props[5]-this.props[1]*this.props[4],Pt=this.props[5]/At,It=-this.props[1]/At,Ct=-this.props[4]/At,xt=this.props[0]/At,Dt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/At,tr=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/At,pr=new Matrix;return pr.props[0]=Pt,pr.props[1]=It,pr.props[4]=Ct,pr.props[5]=xt,pr.props[12]=Dt,pr.props[13]=tr,pr}function lr(At){var Pt=this.getInverseMatrix();return Pt.applyToPointArray(At[0],At[1],At[2]||0)}function qt(At){var Pt,It=At.length,Ct=[];for(Pt=0;Pt0||At>-1e-6&&At<0?nt(At*Pt)/Pt:At}function Rt(){var At=this.props,Pt=Tt(At[0]),It=Tt(At[1]),Ct=Tt(At[4]),xt=Tt(At[5]),Dt=Tt(At[12]),tr=Tt(At[13]);return"matrix("+Pt+","+It+","+Ct+","+xt+","+Dt+","+tr+")"}return function(){this.reset=it,this.rotate=st,this.rotateX=at,this.rotateY=ot,this.rotateZ=lt,this.skew=dt,this.skewFromAxis=bt,this.shear=ut,this.scale=gt,this.setTransform=kt,this.translate=pt,this.transform=yt,this.multiply=$t,this.applyToPoint=Ft,this.applyToX=Lt,this.applyToY=zt,this.applyToZ=Ht,this.applyToPointArray=Mt,this.applyToTriplePoints=Ot,this.applyToPointStringified=ht,this.toCSS=Et,this.to2dCSS=Rt,this.clone=St,this.cloneFromProps=Bt,this.equals=wt,this.inversePoints=qt,this.inversePoint=lr,this.getInverseMatrix=Wt,this._t=this.transform,this.isIdentity=mt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(rt){return typeof rt}:_typeof$3=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$3(et)}var lottie={};function setLocation(et){setLocationHref(et)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(et){setSubframeEnabled(et)}function setPrefix(et){setIdPrefix(et)}function loadAnimation(et){return animationManager.loadAnimation(et)}function setQuality(et){if(typeof et=="string")switch(et){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(et)&&et>1&&setDefaultCurveSegments(et)}function inBrowser(){return typeof navigator<"u"}function installPlugin(et,tt){et==="expressions"&&setExpressionsPlugin(tt)}function getFactory(et){switch(et){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(et){for(var tt=queryString.split("&"),rt=0;rt=1?st.push({s:et-1,e:tt-1}):(st.push({s:et,e:1}),st.push({s:0,e:tt-1}));var at=[],ot,lt=st.length,ut;for(ot=0;otnt+rt)){var dt,bt;ut.s*it<=nt?dt=0:dt=(ut.s*it-nt)/rt,ut.e*it>=nt+rt?bt=1:bt=(ut.e*it-nt)/rt,at.push([dt,bt])}return at.length||at.push([0,0]),at},TrimModifier.prototype.releasePathsData=function(et){var tt,rt=et.length;for(tt=0;tt1?tt=1+nt:this.s.v<0?tt=0+nt:tt=this.s.v+nt,this.e.v>1?rt=1+nt:this.e.v<0?rt=0+nt:rt=this.e.v+nt,tt>rt){var it=tt;tt=rt,rt=it}tt=Math.round(tt*1e4)*1e-4,rt=Math.round(rt*1e4)*1e-4,this.sValue=tt,this.eValue=rt}else tt=this.sValue,rt=this.eValue;var st,at,ot=this.shapes.length,lt,ut,dt,bt,gt,kt=0;if(rt===tt)for(at=0;at=0;at-=1)if(yt=this.shapes[at],yt.shape._mdf){for($t=yt.localShapeCollection,$t.releaseShapes(),this.m===2&&ot>1?(Bt=this.calculateShapeEdges(tt,rt,yt.totalShapeLength,St,kt),St+=yt.totalShapeLength):Bt=[[mt,wt]],ut=Bt.length,lt=0;lt=1?pt.push({s:yt.totalShapeLength*(mt-1),e:yt.totalShapeLength*(wt-1)}):(pt.push({s:yt.totalShapeLength*mt,e:yt.totalShapeLength}),pt.push({s:0,e:yt.totalShapeLength*(wt-1)}));var Ft=this.addShapes(yt,pt[0]);if(pt[0].s!==pt[0].e){if(pt.length>1){var Lt=yt.shape.paths.shapes[yt.shape.paths._length-1];if(Lt.c){var zt=Ft.pop();this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1],zt)}else this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1])}this.addPaths(Ft,$t)}}yt.shape.paths=$t}}},TrimModifier.prototype.addPaths=function(et,tt){var rt,nt=et.length;for(rt=0;rttt.e){rt.c=!1;break}else tt.s<=ut&&tt.e>=ut+dt.addedLength?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[ot],it[st].v[ot],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[ot],it[st].o[ot-1],it[st].i[ot],(tt.s-ut)/dt.addedLength,(tt.e-ut)/dt.addedLength,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1),ut+=dt.addedLength,bt+=1;if(it[st].c&>.length){if(dt=gt[ot-1],ut<=tt.e){var mt=gt[ot-1].addedLength;tt.s<=ut&&tt.e>=ut+mt?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[0],it[st].v[0],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[0],it[st].o[ot-1],it[st].i[0],(tt.s-ut)/mt,(tt.e-ut)/mt,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1)}else rt.c=!1;ut+=dt.addedLength,bt+=1}if(rt._length&&(rt.setXYAt(rt.v[yt][0],rt.v[yt][1],"i",yt),rt.setXYAt(rt.v[rt._length-1][0],rt.v[rt._length-1][1],"o",rt._length-1)),ut>tt.e)break;st=this.p.keyframes[this.p.keyframes.length-1].t?(dt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ut,0),bt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ut,0)):(dt=this.p.pv,bt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ut,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){dt=[],bt=[];var gt=this.px,kt=this.py;gt._caching.lastFrame+gt.offsetTime<=gt.keyframes[0].t?(dt[0]=gt.getValueAtTime((gt.keyframes[0].t+.01)/ut,0),dt[1]=kt.getValueAtTime((kt.keyframes[0].t+.01)/ut,0),bt[0]=gt.getValueAtTime(gt.keyframes[0].t/ut,0),bt[1]=kt.getValueAtTime(kt.keyframes[0].t/ut,0)):gt._caching.lastFrame+gt.offsetTime>=gt.keyframes[gt.keyframes.length-1].t?(dt[0]=gt.getValueAtTime(gt.keyframes[gt.keyframes.length-1].t/ut,0),dt[1]=kt.getValueAtTime(kt.keyframes[kt.keyframes.length-1].t/ut,0),bt[0]=gt.getValueAtTime((gt.keyframes[gt.keyframes.length-1].t-.01)/ut,0),bt[1]=kt.getValueAtTime((kt.keyframes[kt.keyframes.length-1].t-.01)/ut,0)):(dt=[gt.pv,kt.pv],bt[0]=gt.getValueAtTime((gt._caching.lastFrame+gt.offsetTime-.01)/ut,gt.offsetTime),bt[1]=kt.getValueAtTime((kt._caching.lastFrame+kt.offsetTime-.01)/ut,kt.offsetTime))}else bt=et,dt=bt;this.v.rotate(-Math.atan2(dt[1]-bt[1],dt[0]-bt[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function nt(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function it(){}function st(lt){this._addDynamicProperty(lt),this.elem.addDynamicProperty(lt),this._isDirty=!0}function at(lt,ut,dt){if(this.elem=lt,this.frameId=-1,this.propType="transform",this.data=ut,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(dt||lt),ut.p&&ut.p.s?(this.px=PropertyFactory.getProp(lt,ut.p.x,0,0,this),this.py=PropertyFactory.getProp(lt,ut.p.y,0,0,this),ut.p.z&&(this.pz=PropertyFactory.getProp(lt,ut.p.z,0,0,this))):this.p=PropertyFactory.getProp(lt,ut.p||{k:[0,0,0]},1,0,this),ut.rx){if(this.rx=PropertyFactory.getProp(lt,ut.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(lt,ut.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(lt,ut.rz,0,degToRads,this),ut.or.k[0].ti){var bt,gt=ut.or.k.length;for(bt=0;bt0;)rt-=1,this._elements.unshift(tt[rt]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(et){var tt,rt=et.length;for(tt=0;tt0?Math.floor(gt):Math.ceil(gt),yt=this.pMatrix.props,$t=this.rMatrix.props,mt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var wt=0;if(gt>0){for(;wtpt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),wt-=1;kt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-kt,!0),wt-=kt)}nt=this.data.m===1?0:this._currentCopies-1,it=this.data.m===1?1:-1,st=this._currentCopies;for(var St,Bt;st;){if(tt=this.elemsData[nt].it,rt=tt[tt.length-1].transform.mProps.v.props,Bt=rt.length,tt[tt.length-1].transform.mProps._mdf=!0,tt[tt.length-1].transform.op._mdf=!0,tt[tt.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(nt/(this._currentCopies-1)),wt!==0){for((nt!==0&&it===1||nt!==this._currentCopies-1&&it===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform($t[0],$t[1],$t[2],$t[3],$t[4],$t[5],$t[6],$t[7],$t[8],$t[9],$t[10],$t[11],$t[12],$t[13],$t[14],$t[15]),this.matrix.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15]),this.matrix.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15]),St=0;St0&&nt<1?[tt]:[]:[tt-nt,tt+nt].filter(function(it){return it>0&&it<1})},PolynomialBezier.prototype.split=function(et){if(et<=0)return[singlePoint(this.points[0]),this];if(et>=1)return[this,singlePoint(this.points[this.points.length-1])];var tt=lerpPoint(this.points[0],this.points[1],et),rt=lerpPoint(this.points[1],this.points[2],et),nt=lerpPoint(this.points[2],this.points[3],et),it=lerpPoint(tt,rt,et),st=lerpPoint(rt,nt,et),at=lerpPoint(it,st,et);return[new PolynomialBezier(this.points[0],tt,it,at,!0),new PolynomialBezier(at,st,nt,this.points[3],!0)]};function extrema(et,tt){var rt=et.points[0][tt],nt=et.points[et.points.length-1][tt];if(rt>nt){var it=nt;nt=rt,rt=it}for(var st=quadRoots(3*et.a[tt],2*et.b[tt],et.c[tt]),at=0;at0&&st[at]<1){var ot=et.point(st[at])[tt];otnt&&(nt=ot)}return{min:rt,max:nt}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var et=this.bounds();return{left:et.x.min,right:et.x.max,top:et.y.min,bottom:et.y.max,width:et.x.max-et.x.min,height:et.y.max-et.y.min,cx:(et.x.max+et.x.min)/2,cy:(et.y.max+et.y.min)/2}};function intersectData(et,tt,rt){var nt=et.boundingBox();return{cx:nt.cx,cy:nt.cy,width:nt.width,height:nt.height,bez:et,t:(tt+rt)/2,t1:tt,t2:rt}}function splitData(et){var tt=et.bez.split(.5);return[intersectData(tt[0],et.t1,et.t),intersectData(tt[1],et.t,et.t2)]}function boxIntersect(et,tt){return Math.abs(et.cx-tt.cx)*2=st||et.width<=nt&&et.height<=nt&&tt.width<=nt&&tt.height<=nt){it.push([et.t,tt.t]);return}var at=splitData(et),ot=splitData(tt);intersectsImpl(at[0],ot[0],rt+1,nt,it,st),intersectsImpl(at[0],ot[1],rt+1,nt,it,st),intersectsImpl(at[1],ot[0],rt+1,nt,it,st),intersectsImpl(at[1],ot[1],rt+1,nt,it,st)}}PolynomialBezier.prototype.intersections=function(et,tt,rt){tt===void 0&&(tt=2),rt===void 0&&(rt=7);var nt=[];return intersectsImpl(intersectData(this,0,1),intersectData(et,0,1),0,tt,nt,rt),nt},PolynomialBezier.shapeSegment=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[tt],et.o[tt],et.i[rt],et.v[rt],!0)},PolynomialBezier.shapeSegmentInverted=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[rt],et.i[rt],et.o[tt],et.v[tt],!0)};function crossProduct(et,tt){return[et[1]*tt[2]-et[2]*tt[1],et[2]*tt[0]-et[0]*tt[2],et[0]*tt[1]-et[1]*tt[0]]}function lineIntersection(et,tt,rt,nt){var it=[et[0],et[1],1],st=[tt[0],tt[1],1],at=[rt[0],rt[1],1],ot=[nt[0],nt[1],1],lt=crossProduct(crossProduct(it,st),crossProduct(at,ot));return floatZero(lt[2])?null:[lt[0]/lt[2],lt[1]/lt[2]]}function polarOffset(et,tt,rt){return[et[0]+Math.cos(tt)*rt,et[1]-Math.sin(tt)*rt]}function pointDistance(et,tt){return Math.hypot(et[0]-tt[0],et[1]-tt[1])}function pointEqual(et,tt){return floatEqual(et[0],tt[0])&&floatEqual(et[1],tt[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(et,tt.s,0,null,this),this.frequency=PropertyFactory.getProp(et,tt.r,0,null,this),this.pointsType=PropertyFactory.getProp(et,tt.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(et,tt,rt,nt,it,st,at){var ot=rt-Math.PI/2,lt=rt+Math.PI/2,ut=tt[0]+Math.cos(rt)*nt*it,dt=tt[1]-Math.sin(rt)*nt*it;et.setTripleAt(ut,dt,ut+Math.cos(ot)*st,dt-Math.sin(ot)*st,ut+Math.cos(lt)*at,dt-Math.sin(lt)*at,et.length())}function getPerpendicularVector(et,tt){var rt=[tt[0]-et[0],tt[1]-et[1]],nt=-Math.PI*.5,it=[Math.cos(nt)*rt[0]-Math.sin(nt)*rt[1],Math.sin(nt)*rt[0]+Math.cos(nt)*rt[1]];return it}function getProjectingAngle(et,tt){var rt=tt===0?et.length()-1:tt-1,nt=(tt+1)%et.length(),it=et.v[rt],st=et.v[nt],at=getPerpendicularVector(it,st);return Math.atan2(0,1)-Math.atan2(at[1],at[0])}function zigZagCorner(et,tt,rt,nt,it,st,at){var ot=getProjectingAngle(tt,rt),lt=tt.v[rt%tt._length],ut=tt.v[rt===0?tt._length-1:rt-1],dt=tt.v[(rt+1)%tt._length],bt=st===2?Math.sqrt(Math.pow(lt[0]-ut[0],2)+Math.pow(lt[1]-ut[1],2)):0,gt=st===2?Math.sqrt(Math.pow(lt[0]-dt[0],2)+Math.pow(lt[1]-dt[1],2)):0;setPoint(et,tt.v[rt%tt._length],ot,at,nt,gt/((it+1)*2),bt/((it+1)*2))}function zigZagSegment(et,tt,rt,nt,it,st){for(var at=0;at1&&tt.length>1&&(it=getIntersection(et[0],tt[tt.length-1]),it)?[[et[0].split(it[0])[0]],[tt[tt.length-1].split(it[1])[1]]]:[rt,nt]}function pruneIntersections(et){for(var tt,rt=1;rt1&&(tt=pruneSegmentIntersection(et[et.length-1],et[0]),et[et.length-1]=tt[0],et[0]=tt[1]),et}function offsetSegmentSplit(et,tt){var rt=et.inflectionPoints(),nt,it,st,at;if(rt.length===0)return[offsetSegment(et,tt)];if(rt.length===1||floatEqual(rt[1],1))return st=et.split(rt[0]),nt=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(it,tt)];st=et.split(rt[0]),nt=st[0];var ot=(rt[1]-rt[0])/(1-rt[0]);return st=st[1].split(ot),at=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(at,tt),offsetSegment(it,tt)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(et,tt.a,0,null,this),this.miterLimit=PropertyFactory.getProp(et,tt.ml,0,null,this),this.lineJoin=tt.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(et,tt,rt,nt){var it=shapePool.newElement();it.c=et.c;var st=et.length();et.c||(st-=1);var at,ot,lt,ut=[];for(at=0;at=0;at-=1)lt=PolynomialBezier.shapeSegmentInverted(et,at),ut.push(offsetSegmentSplit(lt,tt));ut=pruneIntersections(ut);var dt=null,bt=null;for(at=0;at0&&(xt=!1),xt){var pr=createTag("style");pr.setAttribute("f-forigin",At[Pt].fOrigin),pr.setAttribute("f-origin",At[Pt].origin),pr.setAttribute("f-family",At[Pt].fFamily),pr.type="text/css",pr.innerText="@font-face {font-family: "+At[Pt].fFamily+"; font-style: normal; src: url('"+At[Pt].fPath+"');}",Rt.appendChild(pr)}}else if(At[Pt].fOrigin==="g"||At[Pt].origin===1){for(Dt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),tr=0;tr=55296&&At<=56319){var Pt=Tt.charCodeAt(1);Pt>=56320&&Pt<=57343&&(Rt=(At-55296)*1024+Pt-56320+65536)}return Rt}function Lt(Tt,Rt){var At=Tt.toString(16)+Rt.toString(16);return bt.indexOf(At)!==-1}function zt(Tt){return Tt===lt}function Ht(Tt){return Tt===ot}function Wt(Tt){var Rt=Ft(Tt);return Rt>=ut&&Rt<=dt}function lr(Tt){return Wt(Tt.substr(0,2))&&Wt(Tt.substr(2,2))}function qt(Tt){return rt.indexOf(Tt)!==-1}function Ot(Tt,Rt){var At=Ft(Tt.substr(Rt,2));if(At!==nt)return!1;var Pt=0;for(Rt+=2;Pt<5;){if(At=Ft(Tt.substr(Rt,2)),Atat)return!1;Pt+=1,Rt+=2}return Ft(Tt.substr(Rt,2))===it}function Mt(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=Lt,ht.isZeroWidthJoiner=zt,ht.isFlagEmoji=lr,ht.isRegionalCode=Wt,ht.isCombinedCharacter=qt,ht.isRegionalFlag=Ot,ht.isVariationSelector=Ht,ht.BLACK_FLAG_CODE_POINT=nt;var Et={addChars:mt,addFonts:$t,getCharData:wt,getFontByName:Bt,measureText:St,checkLoadedFonts:pt,setIsLoaded:Mt};return ht.prototype=Et,ht}();function SlotManager(et){this.animationData=et}SlotManager.prototype.getProp=function(et){return this.animationData.slots&&this.animationData.slots[et.sid]?Object.assign(et,this.animationData.slots[et.sid].p):et};function slotFactory(et){return new SlotManager(et)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)===-1&&this.renderableComponents.push(tt)},removeRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(tt),1)},prepareRenderableFrame:function(tt){this.checkLayerLimits(tt)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(tt){this.data.ip-this.data.st<=tt&&this.data.op-this.data.st>tt?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var tt,rt=this.renderableComponents.length;for(tt=0;tt.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(et){this.audio.rate(et)},AudioElement.prototype.volume=function(et){this._volumeMultiplier=et,this._previousVolume=et*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(et){var tt,rt=this.layers.length,nt;for(this.completeLayers=!0,tt=rt-1;tt>=0;tt-=1)this.elements[tt]||(nt=this.layers[tt],nt.ip-nt.st<=et-this.layers[tt].st&&nt.op-nt.st>et-this.layers[tt].st&&this.buildItem(tt)),this.completeLayers=this.elements[tt]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(et){switch(et.ty){case 2:return this.createImage(et);case 0:return this.createComp(et);case 1:return this.createSolid(et);case 3:return this.createNull(et);case 4:return this.createShape(et);case 5:return this.createText(et);case 6:return this.createAudio(et);case 13:return this.createCamera(et);case 15:return this.createFootage(et);default:return this.createNull(et)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(et){return new AudioElement(et,this.globalData,this)},BaseRenderer.prototype.createFootage=function(et){return new FootageElement(et,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var et,tt=this.layers.length;for(et=0;et0&&(this.maskElement.setAttribute("id",gt),this.element.maskedElement.setAttribute(wt,"url("+getLocationHref()+"#"+gt+")"),nt.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(et){return this.viewData[et].prop},MaskElement.prototype.renderFrame=function(et){var tt=this.element.finalTransform.mat,rt,nt=this.masksProperties.length;for(rt=0;rt1&&(nt+=" C"+tt.o[it-1][0]+","+tt.o[it-1][1]+" "+tt.i[0][0]+","+tt.i[0][1]+" "+tt.v[0][0]+","+tt.v[0][1]),rt.lastPath!==nt){var at="";rt.elem&&(tt.c&&(at=et.inv?this.solidPath+nt:nt),rt.elem.setAttribute("d",at)),rt.lastPath=nt}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var et={};et.createFilter=tt,et.createAlphaToLuminanceFilter=rt;function tt(nt,it){var st=createNS("filter");return st.setAttribute("id",nt),it!==!0&&(st.setAttribute("filterUnits","objectBoundingBox"),st.setAttribute("x","0%"),st.setAttribute("y","0%"),st.setAttribute("width","100%"),st.setAttribute("height","100%")),st}function rt(){var nt=createNS("feColorMatrix");return nt.setAttribute("type","matrix"),nt.setAttribute("color-interpolation-filters","sRGB"),nt.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),nt}return et}(),featureSupport=function(){var et={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(et.maskType=!1),/firefox/i.test(navigator.userAgent)&&(et.svgLumaHidden=!1),et}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(et){var tt,rt="SourceGraphic",nt=et.data.ef?et.data.ef.length:0,it=createElementID(),st=filtersFactory.createFilter(it,!0),at=0;this.filters=[];var ot;for(tt=0;tt=0&&(nt=this.shapeModifiers[tt].processShapes(this._isFirstFrame),!nt);tt-=1);}},searchProcessedElement:function(tt){for(var rt=this.processedElements,nt=0,it=rt.length;nt.01)return!1;rt+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var et=0,tt=this.data.k.k.length;et0;)mt=gt.transformers[Wt].mProps._mdf||mt,Ht-=1,Wt-=1;if(mt)for(Ht=Ft-gt.styles[St].lvl,Wt=gt.transformers.length-1;Ht>0;)zt.multiply(gt.transformers[Wt].mProps.v),Ht-=1,Wt-=1}else zt=et;if(Lt=gt.sh.paths,yt=Lt._length,mt){for($t="",pt=0;pt=1?Mt=.99:Mt<=-1&&(Mt=-.99);var ht=qt*Mt,Et=Math.cos(Ot+gt.a.v)*ht+$t[0],Tt=Math.sin(Ot+gt.a.v)*ht+$t[1];pt.setAttribute("fx",Et),pt.setAttribute("fy",Tt),yt&&!gt.g._collapsable&&(gt.of.setAttribute("fx",Et),gt.of.setAttribute("fy",Tt))}}}function dt(bt,gt,kt){var pt=gt.style,yt=gt.d;yt&&(yt._mdf||kt)&&yt.dashStr&&(pt.pElem.setAttribute("stroke-dasharray",yt.dashStr),pt.pElem.setAttribute("stroke-dashoffset",yt.dashoffset[0])),gt.c&&(gt.c._mdf||kt)&&pt.pElem.setAttribute("stroke","rgb("+bmFloor(gt.c.v[0])+","+bmFloor(gt.c.v[1])+","+bmFloor(gt.c.v[2])+")"),(gt.o._mdf||kt)&&pt.pElem.setAttribute("stroke-opacity",gt.o.v),(gt.w._mdf||kt)&&(pt.pElem.setAttribute("stroke-width",gt.w.v),pt.msElem&&pt.msElem.setAttribute("stroke-width",gt.w.v))}return rt}();function SVGShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(et,tt,rt),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var et,tt=this.shapes.length,rt,nt,it=this.stylesList.length,st,at=[],ot=!1;for(nt=0;nt1&&ot&&this.setShapesAsAnimated(at)}},SVGShapeElement.prototype.setShapesAsAnimated=function(et){var tt,rt=et.length;for(tt=0;tt=0;lt-=1){if($t=this.searchProcessedElement(et[lt]),$t?tt[lt]=rt[$t-1]:et[lt]._render=at,et[lt].ty==="fl"||et[lt].ty==="st"||et[lt].ty==="gf"||et[lt].ty==="gs"||et[lt].ty==="no")$t?tt[lt].style.closed=!1:tt[lt]=this.createStyleElement(et[lt],it),et[lt]._render&&tt[lt].style.pElem.parentNode!==nt&&nt.appendChild(tt[lt].style.pElem),gt.push(tt[lt].style);else if(et[lt].ty==="gr"){if(!$t)tt[lt]=this.createGroupElement(et[lt]);else for(bt=tt[lt].it.length,dt=0;dt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(et){this.effectsSequence.push(et),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(et){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!et)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var tt=this.currentData,rt=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var nt,it=this.effectsSequence.length,st=et||this.data.d.k[this.keysIndex].s;for(nt=0;nttt);)rt+=1;return this.keysIndex!==rt&&(this.keysIndex=rt),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(et){for(var tt=[],rt=0,nt=et.length,it,st,at=!1,ot=!1,lt="";rt=55296&&it<=56319?FontManager.isRegionalFlag(et,rt)?lt=et.substr(rt,14):(st=et.charCodeAt(rt+1),st>=56320&&st<=57343&&(FontManager.isModifier(it,st)?(lt=et.substr(rt,2),at=!0):FontManager.isFlagEmoji(et.substr(rt,4))?lt=et.substr(rt,4):lt=et.substr(rt,2))):it>56319?(st=et.charCodeAt(rt+1),FontManager.isVariationSelector(it)&&(at=!0)):FontManager.isZeroWidthJoiner(it)&&(at=!0,ot=!0),at?(tt[tt.length-1]+=lt,at=!1):tt.push(lt),rt+=lt.length;return tt},TextProperty.prototype.completeTextData=function(et){et.__complete=!0;var tt=this.elem.globalData.fontManager,rt=this.data,nt=[],it,st,at,ot=0,lt,ut=rt.m.g,dt=0,bt=0,gt=0,kt=[],pt=0,yt=0,$t,mt,wt=tt.getFontByName(et.f),St,Bt=0,Ft=getFontProperties(wt);et.fWeight=Ft.weight,et.fStyle=Ft.style,et.finalSize=et.s,et.finalText=this.buildFinalText(et.t),st=et.finalText.length,et.finalLineHeight=et.lh;var Lt=et.tr/1e3*et.finalSize,zt;if(et.sz)for(var Ht=!0,Wt=et.sz[0],lr=et.sz[1],qt,Ot;Ht;){Ot=this.buildFinalText(et.t),qt=0,pt=0,st=Ot.length,Lt=et.tr/1e3*et.finalSize;var Mt=-1;for(it=0;itWt&&Ot[it]!==" "?(Mt===-1?st+=1:it=Mt,qt+=et.finalLineHeight||et.finalSize*1.2,Ot.splice(it,Mt===it?1:0,"\r"),Mt=-1,pt=0):(pt+=Bt,pt+=Lt);qt+=wt.ascent*et.finalSize/100,this.canResize&&et.finalSize>this.minimumFontSize&&lryt?pt:yt,pt=-2*Lt,lt="",at=!0,gt+=1):lt=Et,tt.chars?(St=tt.getCharData(Et,wt.fStyle,tt.getFontByName(et.f).fFamily),Bt=at?0:St.w*et.finalSize/100):Bt=tt.measureText(lt,et.f,et.finalSize),Et===" "?ht+=Bt+Lt:(pt+=Bt+Lt+ht,ht=0),nt.push({l:Bt,an:Bt,add:dt,n:at,anIndexes:[],val:lt,line:gt,animatorJustifyOffset:0}),ut==2){if(dt+=Bt,lt===""||lt===" "||it===st-1){for((lt===""||lt===" ")&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;ot+=1,dt=0}}else if(ut==3){if(dt+=Bt,lt===""||it===st-1){for(lt===""&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;dt=0,ot+=1}}else nt[ot].ind=ot,nt[ot].extra=0,ot+=1;if(et.l=nt,yt=pt>yt?pt:yt,kt.push(pt),et.sz)et.boxWidth=et.sz[0],et.justifyOffset=0;else switch(et.boxWidth=yt,et.j){case 1:et.justifyOffset=-et.boxWidth;break;case 2:et.justifyOffset=-et.boxWidth/2;break;default:et.justifyOffset=0}et.lineWidths=kt;var Tt=rt.a,Rt,At;mt=Tt.length;var Pt,It,Ct=[];for($t=0;$t0?ot=this.ne.v/100:lt=-this.ne.v/100,this.xe.v>0?ut=1-this.xe.v/100:dt=1+this.xe.v/100;var bt=BezierFactory.getBezierEasing(ot,lt,ut,dt).get,gt=0,kt=this.finalS,pt=this.finalE,yt=this.data.sh;if(yt===2)pt===kt?gt=at>=pt?1:0:gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===3)pt===kt?gt=at>=pt?0:1:gt=1-et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===4)pt===kt?gt=0:(gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt<.5?gt*=2:gt=1-2*(gt-.5)),gt=bt(gt);else if(yt===5){if(pt===kt)gt=0;else{var $t=pt-kt;at=tt(et(0,at+.5-kt),pt-kt);var mt=-$t/2+at,wt=$t/2;gt=Math.sqrt(1-mt*mt/(wt*wt))}gt=bt(gt)}else yt===6?(pt===kt?gt=0:(at=tt(et(0,at+.5-kt),pt-kt),gt=(1+Math.cos(Math.PI+Math.PI*2*at/(pt-kt)))/2),gt=bt(gt)):(at>=rt(kt)&&(at-kt<0?gt=et(0,tt(tt(pt,1)-(kt-at),1)):gt=et(0,tt(pt-at,1))),gt=bt(gt));if(this.sm.v!==100){var St=this.sm.v*.01;St===0&&(St=1e-8);var Bt=.5-St*.5;gt1&&(gt=1))}return gt*this.a.v},getValue:function(at){this.iterateDynamicProperties(),this._mdf=at||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,at&&this.data.r===2&&(this.e.v=this._currentTextLength);var ot=this.data.r===2?1:100/this.data.totalChars,lt=this.o.v/ot,ut=this.s.v/ot+lt,dt=this.e.v/ot+lt;if(ut>dt){var bt=ut;ut=dt,dt=bt}this.finalS=ut,this.finalE=dt}},extendPrototype([DynamicPropertyContainer],nt);function it(st,at,ot){return new nt(st,at)}return{getTextSelectorProp:it}}();function TextAnimatorDataProperty(et,tt,rt){var nt={propType:!1},it=PropertyFactory.getProp,st=tt.a;this.a={r:st.r?it(et,st.r,0,degToRads,rt):nt,rx:st.rx?it(et,st.rx,0,degToRads,rt):nt,ry:st.ry?it(et,st.ry,0,degToRads,rt):nt,sk:st.sk?it(et,st.sk,0,degToRads,rt):nt,sa:st.sa?it(et,st.sa,0,degToRads,rt):nt,s:st.s?it(et,st.s,1,.01,rt):nt,a:st.a?it(et,st.a,1,0,rt):nt,o:st.o?it(et,st.o,0,.01,rt):nt,p:st.p?it(et,st.p,1,0,rt):nt,sw:st.sw?it(et,st.sw,0,0,rt):nt,sc:st.sc?it(et,st.sc,1,0,rt):nt,fc:st.fc?it(et,st.fc,1,0,rt):nt,fh:st.fh?it(et,st.fh,0,0,rt):nt,fs:st.fs?it(et,st.fs,0,.01,rt):nt,fb:st.fb?it(et,st.fb,0,.01,rt):nt,t:st.t?it(et,st.t,0,0,rt):nt},this.s=TextSelectorProp.getTextSelectorProp(et,tt.s,rt),this.s.t=tt.s.t}function TextAnimatorProperty(et,tt,rt){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=et,this._renderType=tt,this._elem=rt,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(rt)}TextAnimatorProperty.prototype.searchProperties=function(){var et,tt=this._textData.a.length,rt,nt=PropertyFactory.getProp;for(et=0;et=pt+Ir||!Ft?(Wt=(pt+Ir-$t)/yt.partialLength,tr=Bt.point[0]+(yt.point[0]-Bt.point[0])*Wt,pr=Bt.point[1]+(yt.point[1]-Bt.point[1])*Wt,st.translate(-rt[0]*gt[dt].an*.005,-(rt[1]*ht)*.01),mt=!1):Ft&&($t+=yt.partialLength,wt+=1,wt>=Ft.length&&(wt=0,St+=1,Lt[St]?Ft=Lt[St].points:qt.v.c?(wt=0,St=0,Ft=Lt[St].points):($t-=yt.partialLength,Ft=null)),Ft&&(Bt=yt,yt=Ft[wt],zt=yt.partialLength));Dt=gt[dt].an/2-gt[dt].add,st.translate(-Dt,0,0)}else Dt=gt[dt].an/2-gt[dt].add,st.translate(-Dt,0,0),st.translate(-rt[0]*gt[dt].an*.005,-rt[1]*ht*.01,0);for(At=0;Atet?this.textSpans[et].span:createNS(ot?"g":"text"),St<=et){if(lt.setAttribute("stroke-linecap","butt"),lt.setAttribute("stroke-linejoin","round"),lt.setAttribute("stroke-miterlimit","4"),this.textSpans[et].span=lt,ot){var Ft=createNS("g");lt.appendChild(Ft),this.textSpans[et].childSpan=Ft}this.textSpans[et].span=lt,this.layerElement.appendChild(lt)}lt.style.display="inherit"}if(ut.reset(),bt&&(at[et].n&&(gt=-yt,kt+=rt.yOffset,kt+=pt?1:0,pt=!1),this.applyTextPropertiesToMatrix(rt,ut,at[et].line,gt,kt),gt+=at[et].l||0,gt+=yt),ot){Bt=this.globalData.fontManager.getCharData(rt.finalText[et],nt.fStyle,this.globalData.fontManager.getFontByName(rt.f).fFamily);var Lt;if(Bt.t===1)Lt=new SVGCompElement(Bt.data,this.globalData,this);else{var zt=emptyShapeData;Bt.data&&Bt.data.shapes&&(zt=this.buildShapeData(Bt.data,rt.finalSize)),Lt=new SVGShapeElement(zt,this.globalData,this)}if(this.textSpans[et].glyph){var Ht=this.textSpans[et].glyph;this.textSpans[et].childSpan.removeChild(Ht.layerElement),Ht.destroy()}this.textSpans[et].glyph=Lt,Lt._debug=!0,Lt.prepareFrame(0),Lt.renderFrame(),this.textSpans[et].childSpan.appendChild(Lt.layerElement),Bt.t===1&&this.textSpans[et].childSpan.setAttribute("transform","scale("+rt.finalSize/100+","+rt.finalSize/100+")")}else bt&<.setAttribute("transform","translate("+ut.props[12]+","+ut.props[13]+")"),lt.textContent=at[et].val,lt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}bt&<&<.setAttribute("d",dt)}for(;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].prepareFrame(et-this.layers[tt].st);if(this.globalData._mdf)for(tt=0;tt=0;rt-=1)(this.completeLayers||this.elements[rt])&&(this.elements[rt].prepareFrame(this.renderedFrame-this.layers[rt].st),this.elements[rt]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var et,tt=this.layers.length;for(et=0;et=0;nt-=1)tt.finalTransform.multiply(tt.transforms[nt].transform.mProps.v);tt._mdf=st},processSequences:function(tt){var rt,nt=this.sequenceList.length;for(rt=0;rt=1){this.buffers=[];var tt=this.globalData.canvasContext,rt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(rt);var nt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(nt),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var tt=this.globalData;if(tt.blendMode!==this.data.bm){tt.blendMode=this.data.bm;var rt=getBlendMode(this.data.bm);tt.canvasContext.globalCompositeOperation=rt}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(tt){tt.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var tt=this.buffers[0],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var tt=this.buffers[1],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var nt=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(nt.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var it=assetLoader.getLumaCanvas(this.canvasContext.canvas),st=it.getContext("2d");st.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(it,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(tt,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(tt){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!tt)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var rt=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(rt),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(rt),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(et,tt,rt,nt){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var it=4;tt.ty==="rc"?it=5:tt.ty==="el"?it=6:tt.ty==="sr"&&(it=7),this.sh=ShapePropertyFactory.getShapeProp(et,tt,it,et);var st,at=rt.length,ot;for(st=0;st=0;st-=1){if(bt=this.searchProcessedElement(et[st]),bt?tt[st]=rt[bt-1]:et[st]._shouldRender=nt,et[st].ty==="fl"||et[st].ty==="st"||et[st].ty==="gf"||et[st].ty==="gs")bt?tt[st].style.closed=!1:tt[st]=this.createStyleElement(et[st],pt),ut.push(tt[st].style);else if(et[st].ty==="gr"){if(!bt)tt[st]=this.createGroupElement(et[st]);else for(lt=tt[st].it.length,ot=0;ot=0;it-=1)tt[it].ty==="tr"?(at=rt[it].transform,this.renderShapeTransform(et,at)):tt[it].ty==="sh"||tt[it].ty==="el"||tt[it].ty==="rc"||tt[it].ty==="sr"?this.renderPath(tt[it],rt[it]):tt[it].ty==="fl"?this.renderFill(tt[it],rt[it],at):tt[it].ty==="st"?this.renderStroke(tt[it],rt[it],at):tt[it].ty==="gf"||tt[it].ty==="gs"?this.renderGradientFill(tt[it],rt[it],at):tt[it].ty==="gr"?this.renderShape(at,tt[it].it,rt[it].it):tt[it].ty;nt&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(et,tt){if(this._isFirstFrame||tt._mdf||et.transforms._mdf){var rt=et.trNodes,nt=tt.paths,it,st,at,ot=nt._length;rt.length=0;var lt=et.transforms.finalTransform;for(at=0;at=1?dt=.99:dt<=-1&&(dt=-.99);var bt=lt*dt,gt=Math.cos(ut+tt.a.v)*bt+at[0],kt=Math.sin(ut+tt.a.v)*bt+at[1];it=st.createRadialGradient(gt,kt,0,at[0],at[1],lt)}var pt,yt=et.g.p,$t=tt.g.c,mt=1;for(pt=0;ptst&<==="xMidYMid slice"||itit&&ot==="meet"||stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))/2*this.renderConfig.dpr:ut==="xMax"&&(stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,dt==="YMid"&&(st>it&&ot==="meet"||stit&&ot==="meet"||st=0;et-=1)this.elements[et]&&this.elements[et].destroy&&this.elements[et].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(et,tt){if(!(this.renderedFrame===et&&this.renderConfig.clearCanvas===!0&&!tt||this.destroyed||et===-1)){this.renderedFrame=et,this.globalData.frameNum=et-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||tt,this.globalData.projectInterface.currentFrame=et;var rt,nt=this.layers.length;for(this.completeLayers||this.checkLayers(et),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].prepareFrame(et-this.layers[rt].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(et){var tt=this.elements;if(!(tt[et]||this.layers[et].ty===99)){var rt=this.createItem(this.layers[et],this,this.globalData);tt[et]=rt,rt.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var et=this.pendingElements.pop();et.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var et,tt=15;for(et=0;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].renderFrame()},CVCompElement.prototype.destroy=function(){var et,tt=this.layers.length;for(et=tt-1;et>=0;et-=1)this.elements[et]&&this.elements[et].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function CanvasRenderer(et,tt){this.animationItem=et,this.renderConfig={clearCanvas:tt&&tt.clearCanvas!==void 0?tt.clearCanvas:!0,context:tt&&tt.context||null,progressiveLoad:tt&&tt.progressiveLoad||!1,preserveAspectRatio:tt&&tt.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:tt&&tt.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:tt&&tt.contentVisibility||"visible",className:tt&&tt.className||"",id:tt&&tt.id||"",runExpressions:!tt||tt.runExpressions===void 0||tt.runExpressions},this.renderConfig.dpr=tt&&tt.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=tt&&tt.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var tt=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var rt=this.finalTransform.mat.toCSS();tt.transform=rt,tt.webkitTransform=rt}this.finalTransform._opMdf&&(tt.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(et,tt,rt){this.initElement(et,tt,rt)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var et;this.data.hasMask?(et=createNS("rect"),et.setAttribute("width",this.data.sw),et.setAttribute("height",this.data.sh),et.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(et=createTag("div"),et.style.width=this.data.sw+"px",et.style.height=this.data.sh+"px",et.style.backgroundColor=this.data.sc),this.layerElement.appendChild(et)};function HShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(et,tt,rt),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var et;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),et=this.svgElement;else{et=createNS("svg");var tt=this.comp.data?this.comp.data:this.globalData.compSize;et.setAttribute("width",tt.w),et.setAttribute("height",tt.h),et.appendChild(this.shapesContainer),this.layerElement.appendChild(et)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=et},HShapeElement.prototype.getTransformedPoint=function(et,tt){var rt,nt=et.length;for(rt=0;rt0&<<1&&it[gt].push(this.calculateF(lt,et,tt,rt,nt,gt))):(ut=at*at-4*ot*st,ut>=0&&(dt=(-at+bmSqrt(ut))/(2*st),dt>0&&dt<1&&it[gt].push(this.calculateF(dt,et,tt,rt,nt,gt)),bt=(-at-bmSqrt(ut))/(2*st),bt>0&&bt<1&&it[gt].push(this.calculateF(bt,et,tt,rt,nt,gt)))));this.shapeBoundingBox.left=bmMin.apply(null,it[0]),this.shapeBoundingBox.top=bmMin.apply(null,it[1]),this.shapeBoundingBox.right=bmMax.apply(null,it[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,it[1])},HShapeElement.prototype.calculateF=function(et,tt,rt,nt,it,st){return bmPow(1-et,3)*tt[st]+3*bmPow(1-et,2)*et*rt[st]+3*(1-et)*bmPow(et,2)*nt[st]+bmPow(et,3)*it[st]},HShapeElement.prototype.calculateBoundingBox=function(et,tt){var rt,nt=et.length;for(rt=0;rtrt&&(rt=it)}rt*=et.mult}else rt=et.v*et.mult;tt.x-=rt,tt.xMax+=rt,tt.y-=rt,tt.yMax+=rt},HShapeElement.prototype.currentBoxContains=function(et){return this.currentBBox.x<=et.x&&this.currentBBox.y<=et.y&&this.currentBBox.width+this.currentBBox.x>=et.x+et.width&&this.currentBBox.height+this.currentBBox.y>=et.y+et.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.tempBoundingBox,tt=999999;if(et.x=tt,et.xMax=-tt,et.y=tt,et.yMax=-tt,this.calculateBoundingBox(this.itemsData,et),et.width=et.xMax=0;tt-=1){var nt=this.hierarchy[tt].finalTransform.mProp;this.mat.translate(-nt.p.v[0],-nt.p.v[1],nt.p.v[2]),this.mat.rotateX(-nt.or.v[0]).rotateY(-nt.or.v[1]).rotateZ(nt.or.v[2]),this.mat.rotateX(-nt.rx.v).rotateY(-nt.ry.v).rotateZ(nt.rz.v),this.mat.scale(1/nt.s.v[0],1/nt.s.v[1],1/nt.s.v[2]),this.mat.translate(nt.a.v[0],nt.a.v[1],nt.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var it;this.p?it=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:it=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var st=Math.sqrt(Math.pow(it[0],2)+Math.pow(it[1],2)+Math.pow(it[2],2)),at=[it[0]/st,it[1]/st,it[2]/st],ot=Math.sqrt(at[2]*at[2]+at[0]*at[0]),lt=Math.atan2(at[1],ot),ut=Math.atan2(at[0],-at[2]);this.mat.rotateY(ut).rotateX(-lt)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var dt=!this._prevMat.equals(this.mat);if((dt||this.pe._mdf)&&this.comp.threeDElements){rt=this.comp.threeDElements.length;var bt,gt,kt;for(tt=0;tt=et)return this.threeDElements[tt].perspectiveElem;tt+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(et,tt){var rt=createTag("div"),nt,it;styleDiv(rt);var st=createTag("div");if(styleDiv(st),tt==="3d"){nt=rt.style,nt.width=this.globalData.compSize.w+"px",nt.height=this.globalData.compSize.h+"px";var at="50% 50%";nt.webkitTransformOrigin=at,nt.mozTransformOrigin=at,nt.transformOrigin=at,it=st.style;var ot="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";it.transform=ot,it.webkitTransform=ot}rt.appendChild(st);var lt={container:st,perspectiveElem:rt,startPos:et,endPos:et,type:tt};return this.threeDElements.push(lt),lt},HybridRendererBase.prototype.build3dContainers=function(){var et,tt=this.layers.length,rt,nt="";for(et=0;et=0;et-=1)this.resizerElem.appendChild(this.threeDElements[et].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(et,tt){for(var rt=0,nt=this.threeDElements.length;rtrt?(it=et/this.globalData.compSize.w,st=et/this.globalData.compSize.w,at=0,ot=(tt-this.globalData.compSize.h*(et/this.globalData.compSize.w))/2):(it=tt/this.globalData.compSize.h,st=tt/this.globalData.compSize.h,at=(et-this.globalData.compSize.w*(tt/this.globalData.compSize.h))/2,ot=0);var lt=this.resizerElem.style;lt.webkitTransform="matrix3d("+it+",0,0,0,0,"+st+",0,0,0,0,1,0,"+at+","+ot+",0,1)",lt.transform=lt.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var et=this.globalData.compSize.w,tt=this.globalData.compSize.h,rt,nt=this.threeDElements.length;for(rt=0;rt=ut;)qt/=2,Ot/=2,Mt>>>=1;return(qt+Mt)/Ot};return Wt.int32=function(){return Ht.g(4)|0},Wt.quick=function(){return Ht.g(4)/4294967296},Wt.double=Wt,$t(wt(Ht.S),et),(Bt.pass||Ft||function(lr,qt,Ot,Mt){return Mt&&(Mt.S&&pt(Mt,Ht),lr.state=function(){return pt(Ht,{})}),Ot?(tt[at]=lr,qt):lr})(Wt,zt,"global"in Bt?Bt.global:this==tt,Bt.state)}tt["seed"+at]=gt;function kt(St){var Bt,Ft=St.length,Lt=this,zt=0,Ht=Lt.i=Lt.j=0,Wt=Lt.S=[];for(Ft||(St=[Ft++]);ztrt){var nt=rt;rt=tt,tt=nt}return Math.min(Math.max(et,tt),rt)}function radiansToDegrees(et){return et/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(et){return et*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(et,tt){if(typeof et=="number"||et instanceof Number)return tt=tt||0,Math.abs(et-tt);tt||(tt=helperLengthArray);var rt,nt=Math.min(et.length,tt.length),it=0;for(rt=0;rt.5?ut/(2-it-st):ut/(it+st),it){case tt:at=(rt-nt)/ut+(rt1&&(rt-=1),rt<1/6?et+(tt-et)*6*rt:rt<1/2?tt:rt<2/3?et+(tt-et)*(2/3-rt)*6:et}function hslToRgb(et){var tt=et[0],rt=et[1],nt=et[2],it,st,at;if(rt===0)it=nt,at=nt,st=nt;else{var ot=nt<.5?nt*(1+rt):nt+rt-nt*rt,lt=2*nt-ot;it=hue2rgb(lt,ot,tt+1/3),st=hue2rgb(lt,ot,tt),at=hue2rgb(lt,ot,tt-1/3)}return[it,st,at,et[3]]}function linear(et,tt,rt,nt,it){if((nt===void 0||it===void 0)&&(nt=tt,it=rt,tt=0,rt=1),rt=rt)return it;var at=rt===tt?0:(et-tt)/(rt-tt);if(!nt.length)return nt+(it-nt)*at;var ot,lt=nt.length,ut=createTypedArray("float32",lt);for(ot=0;ot1){for(it=0;it1?tt=1:tt<0&&(tt=0);var at=et(tt);if($bm_isInstanceOfArray(it)){var ot,lt=it.length,ut=createTypedArray("float32",lt);for(ot=0;otdata.k[tt].t&&etdata.k[tt+1].t-et?(nt=tt+2,it=data.k[tt+1].t):(nt=tt+1,it=data.k[tt].t);break}nt===-1&&(nt=tt+1,it=data.k[tt].t)}var st={};return st.index=nt,st.time=it/elem.comp.globalData.frameRate,st}function key(et){var tt,rt,nt;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+et);et-=1,tt={time:data.k[et].t/elem.comp.globalData.frameRate,value:[]};var it=Object.prototype.hasOwnProperty.call(data.k[et],"s")?data.k[et].s:data.k[et-1].e;for(nt=it.length,rt=0;rt$t.length-1)&&(kt=$t.length-1),St=$t[$t.length-1-kt].t,wt=mt-St);var Bt,Ft,Lt;if(gt==="pingpong"){var zt=Math.floor((yt-St)/wt);if(zt%2!==0)return this.getValueAtTime((wt-(yt-St)%wt+St)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),lr=this.getValueAtTime(((yt-St)%wt+St)/this.comp.globalData.frameRate,0),qt=Math.floor((yt-St)/wt);if(this.pv.length){for(Lt=new Array(Ht.length),Ft=Lt.length,Bt=0;Bt=mt)return this.pv;var wt,St;pt?(kt?wt=Math.abs(this.elem.comp.globalData.frameRate*kt):wt=Math.max(0,this.elem.data.op-mt),St=mt+wt):((!kt||kt>$t.length-1)&&(kt=$t.length-1),St=$t[kt].t,wt=St-mt);var Bt,Ft,Lt;if(gt==="pingpong"){var zt=Math.floor((mt-yt)/wt);if(zt%2===0)return this.getValueAtTime(((mt-yt)%wt+mt)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),lr=this.getValueAtTime((wt-(mt-yt)%wt+mt)/this.comp.globalData.frameRate,0),qt=Math.floor((mt-yt)/wt)+1;if(this.pv.length){for(Lt=new Array(Ht.length),Ft=Lt.length,Bt=0;Bt1?($t-yt)/(kt-1):1,wt=0,St=0,Bt;this.pv.length?Bt=createTypedArray("float32",this.pv.length):Bt=0;for(var Ft;wtwt){var zt=St,Ht=yt.c&&St===Bt-1?0:St+1,Wt=(wt-Ft)/mt[St].addedLength;Lt=bez.getPointInSegment(yt.v[zt],yt.v[Ht],yt.o[zt],yt.i[Ht],Wt,mt[St]);break}else Ft+=mt[St].addedLength;St+=1}return Lt||(Lt=yt.c?[yt.v[0][0],yt.v[0][1]]:[yt.v[yt._length-1][0],yt.v[yt._length-1][1]]),Lt},vectorOnPath:function(kt,pt,yt){kt==1?kt=this.v.c:kt==0&&(kt=.999);var $t=this.pointOnPath(kt,pt),mt=this.pointOnPath(kt+.001,pt),wt=mt[0]-$t[0],St=mt[1]-$t[1],Bt=Math.sqrt(Math.pow(wt,2)+Math.pow(St,2));if(Bt===0)return[0,0];var Ft=yt==="tangent"?[wt/Bt,St/Bt]:[-St/Bt,wt/Bt];return Ft},tangentOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"tangent")},normalOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([dt],lt),extendPrototype([dt],ut),ut.prototype.getValueAtTime=ot,ut.prototype.initiateExpression=ExpressionManager.initiateExpression;var bt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(gt,kt,pt,yt,$t){var mt=bt(gt,kt,pt,yt,$t);return mt.propertyIndex=kt.ix,mt.lock=!1,pt===3?expressionHelpers.searchExpressions(gt,kt.pt,mt):pt===4&&expressionHelpers.searchExpressions(gt,kt.ks,mt),mt.k&>.addDynamicProperty(mt),mt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function et(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(tt,rt){var nt=this.calculateExpression(rt);if(tt.t!==nt){var it={};return this.copyData(it,tt),it.t=nt.toString(),it.__complete=!1,it}return tt},TextProperty.prototype.searchProperty=function(){var tt=this.searchKeyframes(),rt=this.searchExpressions();return this.kf=tt||rt,this.kf},TextProperty.prototype.searchExpressions=et}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function et(tt,rt){var nt=createNS("feMerge");nt.setAttribute("result",tt);var it,st;for(st=0;st=ut?bt=pt<0?nt:it:bt=nt+kt*Math.pow((ot-et)/pt,1/rt),dt[gt]=bt,gt+=1,st+=256/(at-1);return dt.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){var tt,rt=this.filterManager.effectElements;this.feFuncRComposed&&(et||rt[3].p._mdf||rt[4].p._mdf||rt[5].p._mdf||rt[6].p._mdf||rt[7].p._mdf)&&(tt=this.getTableValue(rt[3].p.v,rt[4].p.v,rt[5].p.v,rt[6].p.v,rt[7].p.v),this.feFuncRComposed.setAttribute("tableValues",tt),this.feFuncGComposed.setAttribute("tableValues",tt),this.feFuncBComposed.setAttribute("tableValues",tt)),this.feFuncR&&(et||rt[10].p._mdf||rt[11].p._mdf||rt[12].p._mdf||rt[13].p._mdf||rt[14].p._mdf)&&(tt=this.getTableValue(rt[10].p.v,rt[11].p.v,rt[12].p.v,rt[13].p.v,rt[14].p.v),this.feFuncR.setAttribute("tableValues",tt)),this.feFuncG&&(et||rt[17].p._mdf||rt[18].p._mdf||rt[19].p._mdf||rt[20].p._mdf||rt[21].p._mdf)&&(tt=this.getTableValue(rt[17].p.v,rt[18].p.v,rt[19].p.v,rt[20].p.v,rt[21].p.v),this.feFuncG.setAttribute("tableValues",tt)),this.feFuncB&&(et||rt[24].p._mdf||rt[25].p._mdf||rt[26].p._mdf||rt[27].p._mdf||rt[28].p._mdf)&&(tt=this.getTableValue(rt[24].p.v,rt[25].p.v,rt[26].p.v,rt[27].p.v,rt[28].p.v),this.feFuncB.setAttribute("tableValues",tt)),this.feFuncA&&(et||rt[31].p._mdf||rt[32].p._mdf||rt[33].p._mdf||rt[34].p._mdf||rt[35].p._mdf)&&(tt=this.getTableValue(rt[31].p.v,rt[32].p.v,rt[33].p.v,rt[34].p.v,rt[35].p.v),this.feFuncA.setAttribute("tableValues",tt))}};function SVGDropShadowEffect(et,tt,rt,nt,it){var st=tt.container.globalData.renderConfig.filterSize,at=tt.data.fs||st;et.setAttribute("x",at.x||st.x),et.setAttribute("y",at.y||st.y),et.setAttribute("width",at.width||st.width),et.setAttribute("height",at.height||st.height),this.filterManager=tt;var ot=createNS("feGaussianBlur");ot.setAttribute("in","SourceAlpha"),ot.setAttribute("result",nt+"_drop_shadow_1"),ot.setAttribute("stdDeviation","0"),this.feGaussianBlur=ot,et.appendChild(ot);var lt=createNS("feOffset");lt.setAttribute("dx","25"),lt.setAttribute("dy","0"),lt.setAttribute("in",nt+"_drop_shadow_1"),lt.setAttribute("result",nt+"_drop_shadow_2"),this.feOffset=lt,et.appendChild(lt);var ut=createNS("feFlood");ut.setAttribute("flood-color","#00ff00"),ut.setAttribute("flood-opacity","1"),ut.setAttribute("result",nt+"_drop_shadow_3"),this.feFlood=ut,et.appendChild(ut);var dt=createNS("feComposite");dt.setAttribute("in",nt+"_drop_shadow_3"),dt.setAttribute("in2",nt+"_drop_shadow_2"),dt.setAttribute("operator","in"),dt.setAttribute("result",nt+"_drop_shadow_4"),et.appendChild(dt);var bt=this.createMergeNode(nt,[nt+"_drop_shadow_4",it]);et.appendChild(bt)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){if((et||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),et||this.filterManager.effectElements[0].p._mdf){var tt=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(tt[0]*255),Math.round(tt[1]*255),Math.round(tt[2]*255)))}if((et||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),et||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var rt=this.filterManager.effectElements[3].p.v,nt=(this.filterManager.effectElements[2].p.v-90)*degToRads,it=rt*Math.cos(nt),st=rt*Math.sin(nt);this.feOffset.setAttribute("dx",it),this.feOffset.setAttribute("dy",st)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(et,tt,rt){this.initialized=!1,this.filterManager=tt,this.filterElem=et,this.elem=rt,rt.matteElement=createNS("g"),rt.matteElement.appendChild(rt.layerElement),rt.matteElement.appendChild(rt.transformedElement),rt.baseElement=rt.matteElement}SVGMatte3Effect.prototype.findSymbol=function(et){for(var tt=0,rt=_svgMatteSymbols.length;tt{const et=reactExports.useRef(null);return reactExports.useEffect(()=>{const tt=document.getElementById("lottie-sphere-animation");return tt&&(et.current=lottie.loadAnimation({container:tt,animationData:preloadData,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})),()=>{et.current&&et.current.destroy()}},[]),jsxRuntimeExports.jsx(Flex,{id:"lottie-sphere-animation",style:{width:"167px",height:"167px",opacity:.5}})},Splash=()=>{const[et,tt]=reactExports.useState(initialMessageData),[rt,nt]=reactExports.useState(0),{appMetaData:it,setAppMetaData:st}=useAppStore(kt=>kt),{stats:at,setStats:ot,setSeedQuestions:lt}=useDataStore(kt=>kt),{schemas:ut,setSchemas:dt}=useSchemaStore(kt=>kt),[bt,gt]=reactExports.useState(!1);return reactExports.useEffect(()=>{!it&&!at&&!bt&&(async()=>{gt(!0);try{if(!it){const pt=await getAboutData();st(pt),pt.seed_questions&<(pt.seed_questions)}if(!at){const pt=await getStats(),yt=formatStatsResponse(pt);ot(yt);const $t=formatSplashMessage(pt);tt($t)}if(!ut.length){const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}}finally{gt(!1)}})()},[it,bt,ut.length,st,dt,lt,ot,at]),reactExports.useEffect(()=>{const kt=async()=>{try{const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}catch(pt){console.error(pt)}};ut.length||kt()},[ut.length,dt]),reactExports.useEffect(()=>{let kt;return et&&it&&(nt(pt=>pt||50),kt=setInterval(()=>{nt(pt=>pt>=100?100:pt+Math.floor(Math.random()*4))},100)),()=>{kt&&clearInterval(kt)}},[et,it]),jsxRuntimeExports.jsx(SplashWrapper,{children:jsxRuntimeExports.jsxs(Wrapper,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(SphereAnimation,{}),jsxRuntimeExports.jsxs(Flex,{style:{color:colors.white},children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"title",children:it==null?void 0:it.title}),jsxRuntimeExports.jsx(Text,{className:"subtitle",children:"Second Brain"})]}),jsxRuntimeExports.jsx(LinearProgress$1,{color:"inherit",sx:{my:1.75,height:"2px"},value:rt,variant:"determinate"}),jsxRuntimeExports.jsx(AnimatedTextContent,{message:et})]})]})})},TitleWrapper=styled$3.div` display: flex; flex-direction: column; @@ -821,7 +821,7 @@ PROCEED WITH CAUTION! width: 442.879px; margin: 0 auto; gap: 27px; -`,AuthGuard=({children:et})=>{const[tt,rt]=reactExports.useState(!1),{setBudget:nt,setIsAdmin:it,setPubKey:st,setIsAuthenticated:at,setSwarmUiUrl:ot}=useUserStore(Dt=>Dt),{splashDataLoading:lt}=useDataStore(Dt=>Dt),[ut,dt]=reactExports.useState(!1),[bt,gt]=reactExports.useState(!1),{setTrendingTopicsFeatureFlag:kt,setQueuedSourcesFeatureFlag:pt,setCustomSchemaFeatureFlag:yt,setRealtimeGraphFeatureFlag:$t,setChatInterfaceFeatureFlag:mt,setFastFiltersFeatureFlag:wt}=useFeatureFlagStore(Dt=>Dt),St=reactExports.useCallback(async()=>{localStorage.removeItem("admin"),localStorage.removeItem("signature");let Dt;try{isE2E?Dt=await sphinxBridge.enable():Dt=await distExports$1.enable(),sessionStorage.setItem("isSphinx",Dt?"true":"false"),st(Dt==null?void 0:Dt.pubkey)}catch{st("")}(isE2E||isDevelopment)&&at(!0)},[st,at]),Bt=reactExports.useCallback(async()=>{try{const Dt=await getIsAdmin();if(Dt.data){const zt=!!Dt.data.isAdmin;localStorage.setItem("admin",JSON.stringify({isAdmin:zt})),zt&&Dt.data.swarmUiUrl&&ot(Dt.data.swarmUiUrl),it(zt),kt(Dt.data.trendingTopics),pt(Dt.data.queuedSources),yt(Dt.data.customSchema),$t(Dt.data.realtimeGraph||!1),mt(Dt.data.chatInterface||!1),wt(Dt.data.fastFilters||!1),zt&&!Dt.data.title&>(!0)}at(!0),dt(!0)}catch{rt(!0)}},[at,it,kt,pt,yt,$t,mt,wt,ot]);reactExports.useEffect(()=>{(async()=>{if(isWebView()||isE2E||isAndroid())try{isAndroid()&&await new Promise(zt=>setTimeout(zt,5e3)),await St()}catch(zt){console.error(zt)}await updateBudget(nt),await Bt()})()},[St,Bt,nt]);const Ft="This is a private Graph, Contact Admin";return tt?jsxRuntimeExports.jsx(StyledFlex,{children:jsxRuntimeExports.jsx(StyledText,{children:Ft})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[bt&&jsxRuntimeExports.jsx(OnboardingModal,{}),lt&&jsxRuntimeExports.jsx(Splash,{}),ut&&et]})},StyledText=styled$3(Text)` +`,AuthGuard=({children:et})=>{const[tt,rt]=reactExports.useState(!1),{setBudget:nt,setIsAdmin:it,setPubKey:st,setIsAuthenticated:at,setSwarmUiUrl:ot}=useUserStore(Lt=>Lt),{splashDataLoading:lt}=useDataStore(Lt=>Lt),[ut,dt]=reactExports.useState(!1),[bt,gt]=reactExports.useState(!1),{setTrendingTopicsFeatureFlag:kt,setQueuedSourcesFeatureFlag:pt,setCustomSchemaFeatureFlag:yt,setRealtimeGraphFeatureFlag:$t,setChatInterfaceFeatureFlag:mt,setFastFiltersFeatureFlag:wt}=useFeatureFlagStore(Lt=>Lt),St=reactExports.useCallback(async()=>{localStorage.removeItem("admin"),localStorage.removeItem("signature");let Lt;try{isE2E?Lt=await sphinxBridge.enable():Lt=await distExports$1.enable(),sessionStorage.setItem("isSphinx",Lt?"true":"false"),st(Lt==null?void 0:Lt.pubkey)}catch{st("")}(isE2E||isDevelopment)&&at(!0)},[st,at]),Bt=reactExports.useCallback(async()=>{try{const Lt=await getIsAdmin();if(Lt.data){const zt=!!Lt.data.isAdmin;localStorage.setItem("admin",JSON.stringify({isAdmin:zt})),zt&&Lt.data.swarmUiUrl&&ot(Lt.data.swarmUiUrl),it(zt),kt(Lt.data.trendingTopics),pt(Lt.data.queuedSources),yt(Lt.data.customSchema),$t(Lt.data.realtimeGraph||!1),mt(Lt.data.chatInterface||!1),wt(Lt.data.fastFilters||!1),zt&&!Lt.data.title&>(!0)}at(!0),dt(!0)}catch{rt(!0)}},[at,it,kt,pt,yt,$t,mt,wt,ot]);reactExports.useEffect(()=>{(async()=>{if(isWebView()||isE2E||isAndroid())try{isAndroid()&&await new Promise(zt=>setTimeout(zt,5e3)),await St()}catch(zt){console.error(zt)}await updateBudget(nt),await Bt()})()},[St,Bt,nt]);const Ft="This is a private Graph, Contact Admin";return tt?jsxRuntimeExports.jsx(StyledFlex,{children:jsxRuntimeExports.jsx(StyledText,{children:Ft})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[bt&&jsxRuntimeExports.jsx(OnboardingModal,{}),lt&&jsxRuntimeExports.jsx(Splash,{}),ut&&et]})},StyledText=styled$3(Text)` font-size: 5rem; font-weight: 600; font-family: 'Barlow'; @@ -831,4 +831,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-4313502a.js").then(et=>et.i),["assets/index-4313502a.js","assets/index-d6936fc6.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-96671d18.js"),["assets/index-96671d18.js","assets/index-cf684ffa.js","assets/index-5b1d6c13.js","assets/three.module-9c942ca6.js","assets/index-d6936fc6.js","assets/TextareaAutosize-449c264d.js","assets/index-57a408d8.js","assets/ClipLoader-83efcb6b.js","assets/index-abdeac9a.js","assets/Skeleton-a2b376e5.js","assets/Stack-a2ecd800.js","assets/isPlainObject-25422081.js","assets/Typography-fe8f2873.js","assets/createSvgIcon-968d1259.js","assets/index-21017702.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var tt;const et=((tt=window.location)==null?void 0:tt.hostname)==="graphmindset.sphinx.chat"||window.location.hostname==="localhost"&&!isE2E;return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[et&&jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"*"})]})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{capitalize as $,api$1 as A,Button$1 as B,ClearIcon as C,clsx as D,fetchNodeEdges as E,Flex as F,getNode as G,getDefaultExportFromCjs as H,InfoIcon as I,_inheritsLoose as J,_objectWithoutPropertiesLoose as K,React as L,TransitionGroupContext as M,NODE_ADD_ERROR as N,generateUtilityClass as O,generateUtilityClasses as P,Q,ReactDOM as R,styled$1 as S,Text as T,alpha as U,useThemeProps as V,We as W,clsx$2 as X,composeClasses as Y,ButtonBase$1 as Z,__vitePreload as _,colors as a,RSS as a$,useForkRef as a0,useEnhancedEffect$1 as a1,setRef as a2,reactDomExports as a3,useEventCallback as a4,useTheme as a5,$2AODx$react as a6,devtools as a7,LinearProgress$1 as a8,SocketContext as a9,_Symbol as aA,isArguments_1 as aB,isArray_1 as aC,_arrayPush as aD,_baseUnary as aE,_defineProperty as aF,eq_1 as aG,isArrayLike_1 as aH,_isIndex as aI,isObject_1 as aJ,_root as aK,_baseAssignValue as aL,keys_1 as aM,MdBolt as aN,getFullTranscript as aO,MdPlayArrow as aP,MdAccessTime as aQ,getAugmentedNamespace as aR,useHasAiChats as aS,postAboutData as aT,SuccessNotify as aU,TextInput as aV,requiredRule as aW,MdError as aX,BaseModal as aY,TWITTER_HANDLE as aZ,YOUTUBE_CHANNEL as a_,isSphinx as aa,useNodeTypes as ab,NODE_RELATIVE_HIGHLIGHT_COLORS as ac,MdViewInAr as ad,MdClose as ae,addToGlobalForE2e as af,distExports$1 as ag,executeIfProd as ah,useIsFocusVisible as ai,rootShouldForwardProp as aj,lighten as ak,darken as al,slotShouldForwardProp as am,Ce as an,useFormContext as ao,useHasAiChatsResponseLoading as ap,Ue as aq,hooks as ar,commonjsGlobal as as,commonjsRequire as at,useFilteredNodes as au,_baseGetTag as av,isObjectLike_1 as aw,isObject$8 as ax,isFunction$4 as ay,_Set as az,useUserStore as b,defaultTheme$1 as b$,GITHUB_REPOSITORY as b0,LINK as b1,TWITTER_SOURCE as b2,WEB_PAGE as b3,DOCUMENT as b4,getPriceData as b5,isE2E as b6,sphinxBridge as b7,getLSat as b8,payLsat as b9,updateEdgeType as bA,postBluePrintType as bB,deleteEdgeType as bC,cloneDeep_1 as bD,useFieldArray as bE,OptionTypes as bF,NoParent as bG,editNodeSchemaUpdate as bH,createRoot as bI,react as bJ,GRAPH_GROUND_COLOR as bK,GRAPH_LIGHT_INTENSITY as bL,GRAPH_FOG_COLOR 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,_getPrototype as bV,request as bW,buffer$2 as bX,sphinx$1 as bY,Global as bZ,useTheme$2 as b_,noSpacePattern as ba,getNodeType as bb,getNodeSchemaTypes as bc,OPTIONS as bd,initialValue as be,getNodeContent as bf,MdCheckCircle as bg,MdCancel as bh,approveRadarData as bi,deleteRadarData as bj,getRadarData as bk,BaseTextInput as bl,MdCheck as bm,putRadarData as bn,getEdgeTypes as bo,getEdges as bp,postEdgeType as bq,putNodeData as br,postMergeTopics as bs,getTopicsData as bt,deleteNode as bu,keyframes as bv,css as bw,changeNodeType as bx,resolveBreakpointValues as by,handleBreakpoints as bz,create as c,THEME_ID as c0,formatMuiErrorMessage as c1,deepmerge as c2,defaultSxConfig$1 as c3,isPlainObject$1 as c4,createStyled as c5,createTheme$1 as c6,useThemeProps$1 as c7,createUnarySpacing as c8,mergeBreakpointsInOrder as c9,getValue as ca,useTheme$3 as cb,index$1 as cc,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,isDevelopment as v,FormProvider as w,updateBudget as x,_extends as y,getSchemaAll as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-d02d35b0.js").then(et=>et.i),["assets/index-d02d35b0.js","assets/index-d39d2c64.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-5a928665.js"),["assets/index-5a928665.js","assets/index-aaff460f.js","assets/index-3ee44dc3.js","assets/three.module-df70f22b.js","assets/index-195d9df5.js","assets/index-d39d2c64.js","assets/TextareaAutosize-cee09ef8.js","assets/index-046f3837.js","assets/ClipLoader-548a512b.js","assets/index-42dc7de8.js","assets/Skeleton-8352c4ee.js","assets/Stack-0bfda087.js","assets/isPlainObject-11606a25.js","assets/Typography-4a916cc9.js","assets/createSvgIcon-72fbec8f.js","assets/index-cf1b42c2.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var tt;const et=((tt=window.location)==null?void 0:tt.hostname)==="graphmindset.sphinx.chat"||window.location.hostname==="localhost"&&!isE2E;return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[et&&jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"*"})]})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{useEnhancedEffect$1 as $,clsx as A,Button$1 as B,ClearIcon as C,fetchNodeEdges as D,getNode as E,Flex as F,_inheritsLoose as G,_objectWithoutPropertiesLoose as H,InfoIcon as I,React as J,TransitionGroupContext as K,generateUtilityClass as L,generateUtilityClasses as M,NODE_ADD_ERROR as N,styled$1 as O,alpha as P,Q,ReactDOM as R,useThemeProps as S,Text as T,clsx$2 as U,composeClasses as V,We as W,ButtonBase$1 as X,capitalize as Y,useForkRef as Z,__vitePreload as _,colors as a,RSS as a$,setRef as a0,reactDomExports as a1,useEventCallback as a2,useTheme as a3,devtools as a4,LinearProgress$1 as a5,SocketContext as a6,isSphinx as a7,$2AODx$react as a8,getDefaultExportFromCjs as a9,_Symbol as aA,isArguments_1 as aB,isArray_1 as aC,_arrayPush as aD,_baseUnary as aE,_defineProperty as aF,eq_1 as aG,isArrayLike_1 as aH,_isIndex as aI,isObject_1 as aJ,_root as aK,_baseAssignValue as aL,keys_1 as aM,MdBolt as aN,getFullTranscript as aO,MdPlayArrow as aP,MdAccessTime as aQ,getAugmentedNamespace as aR,useHasAiChats as aS,postAboutData as aT,SuccessNotify as aU,TextInput as aV,requiredRule as aW,MdError as aX,BaseModal as aY,TWITTER_HANDLE as aZ,YOUTUBE_CHANNEL as a_,useNodeTypes as aa,NODE_RELATIVE_HIGHLIGHT_COLORS as ab,MdViewInAr as ac,MdClose as ad,addToGlobalForE2e as ae,isDevelopment as af,distExports$1 as ag,executeIfProd as ah,useIsFocusVisible as ai,rootShouldForwardProp as aj,lighten as ak,darken as al,slotShouldForwardProp as am,Ce as an,useFormContext as ao,useHasAiChatsResponseLoading as ap,Ue as aq,hooks as ar,commonjsGlobal as as,commonjsRequire as at,useFilteredNodes as au,_baseGetTag as av,isObjectLike_1 as aw,isObject$8 as ax,isFunction$4 as ay,_Set as az,useUserStore as b,THEME_ID as b$,GITHUB_REPOSITORY as b0,LINK as b1,TWITTER_SOURCE as b2,WEB_PAGE as b3,DOCUMENT as b4,getPriceData as b5,isE2E as b6,sphinxBridge as b7,getLSat as b8,payLsat as b9,updateEdgeType as bA,postBluePrintType as bB,deleteEdgeType as bC,cloneDeep_1 as bD,useFieldArray as bE,OptionTypes as bF,NoParent as bG,editNodeSchemaUpdate as bH,createRoot as bI,react as bJ,GRAPH_GROUND_COLOR as bK,GRAPH_LIGHT_INTENSITY as bL,_MapCache as bM,_Uint8Array as bN,_getAllKeys as bO,_Stack as bP,_getTag as bQ,isBufferExports as bR,isTypedArray_1 as bS,isLength_1 as bT,_getPrototype as bU,request as bV,buffer$2 as bW,sphinx$1 as bX,Global as bY,useTheme$2 as bZ,defaultTheme$1 as b_,noSpacePattern as ba,getNodeType as bb,getNodeSchemaTypes as bc,OPTIONS as bd,initialValue as be,getNodeContent as bf,MdCheckCircle as bg,MdCancel as bh,approveRadarData as bi,deleteRadarData as bj,getRadarData as bk,BaseTextInput as bl,MdCheck as bm,putRadarData as bn,getEdgeTypes as bo,getEdges as bp,postEdgeType as bq,putNodeData as br,postMergeTopics as bs,getTopicsData as bt,deleteNode as bu,keyframes as bv,css as bw,changeNodeType as bx,resolveBreakpointValues as by,handleBreakpoints as bz,create 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,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,FormProvider as v,updateBudget as w,_extends as x,getSchemaAll as y,api$1 as z}; diff --git a/build/assets/index-96671d18.js b/build/assets/index-96671d18.js deleted file mode 100644 index c99fd4c9f..000000000 --- a/build/assets/index-96671d18.js +++ /dev/null @@ -1,393 +0,0 @@ -import{r as c,y as ue,c as fe,j as e,s as g,a as b,F as v,T as V,u as D,d as te,z as he,N as q,A as xe,D as me,E as re,G as ge}from"./index-f2cb870a.js";import{Universe as we}from"./index-cf684ffa.js";import{b as se,c as A,d as ye,e as be,f as je,g as Ce,h as ve,i as _e,a as Ee}from"./index-d6936fc6.js";import{S as Se,R as Te,s as J,M as Re}from"./index-abdeac9a.js";import{u as M,a as oe,m as Ie,T as ze,f as $e,H as Pe,C as ke}from"./index-5b1d6c13.js";import{W as Me,L as Q,H as Ae,D as He,F as We,V as P,S as Le}from"./three.module-9c942ca6.js";import"./TextareaAutosize-449c264d.js";import"./index-57a408d8.js";import"./ClipLoader-83efcb6b.js";import"./Skeleton-a2b376e5.js";import"./Stack-a2ecd800.js";import"./isPlainObject-25422081.js";import"./Typography-fe8f2873.js";import"./createSvgIcon-968d1259.js";import"./index-21017702.js";function Fe(t,r,s){const{gl:n,size:i,viewport:d}=M(),w=typeof t=="number"?t:i.width*d.dpr,l=typeof r=="number"?r:i.height*d.dpr,o=(typeof t=="number"?s:t)||{},{samples:a=0,depth:m,...f}=o,p=c.useMemo(()=>{let u;return u=new Me(w,l,{minFilter:Q,magFilter:Q,encoding:n.outputEncoding,type:Ae,...f}),m&&(u.depthTexture=new He(w,l,We)),u.samples=a,u},[]);return c.useLayoutEffect(()=>{p.setSize(w,l),a&&(p.samples=a)},[a,p,w,l]),c.useEffect(()=>()=>p.dispose(),[]),p}const Be=t=>typeof t=="function",De=c.forwardRef(({envMap:t,resolution:r=256,frames:s=1/0,children:n,makeDefault:i,...d},w)=>{const l=M(({set:x})=>x),o=M(({camera:x})=>x),a=M(({size:x})=>x),m=c.useRef(null),f=c.useRef(null),p=Fe(r);c.useLayoutEffect(()=>{d.manual||m.current.updateProjectionMatrix()},[a,d]),c.useLayoutEffect(()=>{m.current.updateProjectionMatrix()}),c.useLayoutEffect(()=>{if(i){const x=o;return l(()=>({camera:m.current})),()=>l(()=>({camera:x}))}},[m,i,l]);let u=0,h=null;const y=Be(n);return oe(x=>{y&&(s===1/0||u({...Ge,setSelectedEpisodeId:r=>t({selectedEpisodeId:r}),setSelectedEpisodeLink:r=>t({selectedEpisodeLink:r}),setSelectedEpisode:r=>t({selectedEpisode:r})})),Ne=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),e.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),Ze=()=>e.jsxs(Ve,{children:[e.jsx(Oe,{children:e.jsx(Ye,{children:e.jsx(Ne,{})})}),e.jsx(Ue,{children:"Graph Mindset"})]}),Ve=g(v).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` - height: 64px; - box-sizing: border-box; - padding: 20px 23px; - gap: 0px; - z-index: 50; - position: relative; -`,Oe=g(v)` - align-items: center; - justify-content: center; - cursor: pointer; -`,Ye=g.div` - display: flex; - align-items: center; - justify-content: center; - - svg { - width: 30px; - height: 27px; - color: ${b.white}; - } -`,Ue=g(V)` - width: 127px; - height: 24px; - color: ${b.white}; - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 700; - line-height: 24px; - letter-spacing: 0.22px; - margin-left: 16px; - white-space: nowrap; -`,qe=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 7 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.77978 6.00243L0.706705 1.92933C0.568239 1.79088 0.497405 1.61684 0.494205 1.40723C0.490989 1.19763 0.561822 1.02039 0.706705 0.875528C0.851572 0.730645 1.02721 0.658203 1.23361 0.658203C1.44001 0.658203 1.61564 0.730645 1.7605 0.875528L6.25473 5.36975C6.34833 5.46334 6.41436 5.56205 6.45281 5.6659C6.49127 5.76974 6.51051 5.88191 6.51051 6.00243C6.51051 6.12294 6.49127 6.23512 6.45281 6.33895C6.41436 6.4428 6.34833 6.54152 6.25473 6.6351L1.7605 11.1293C1.62205 11.2678 1.44802 11.3386 1.2384 11.3418C1.0288 11.345 0.851572 11.2742 0.706705 11.1293C0.561822 10.9845 0.48938 10.8088 0.48938 10.6024C0.48938 10.396 0.561822 10.2204 0.706705 10.0755L4.77978 6.00243Z",fill:"currentColor"})}),Je=({imageUrl:t,title:r,subtitle:s,onClick:n})=>{const i=r.length>35?`${r.substring(0,32)}...`:r,d=s.length>50?`${s.substring(0,47)}...`:s;return e.jsxs(Qe,{onClick:n,children:[e.jsx(Xe,{children:e.jsx(se,{height:140,src:t,type:"Episode",width:170})}),e.jsxs(Ke,{children:[e.jsx(et,{children:i}),e.jsx(tt,{children:d})]})]})},Qe=g(v)` - background: ${b.BG1}; - width: 170px; - height: 200px; - color: ${b.white}; - padding: 16px; - border-radius: 8px; - cursor: pointer; - display: flex; - flex-direction: column; - align-items: center; - &:hover { - background: ${b.SEEDQUESTION_HOVER}; - } - &:active { - background: ${b.SEEDQUESTION}; - } -`,Xe=g.div` - width: 100%; - height: 140px; /* Fixed height for images */ - border-radius: 6px; - overflow: hidden; - margin-bottom: 12px; - display: flex; - justify-content: center; - align-items: center; -`,Ke=g(v)` - flex-direction: column; - justify-content: flex-start; - gap: 8px; -`,et=g.p` - font-size: 16px; - font-weight: 500; - line-height: 19px; - color: ${b.white}; - margin: 0; - white-space: wrap; - overflow: hidden; - text-overflow: ellipsis; -`,tt=g.p` - font-family: Inter; - font-size: 14px; - font-weight: 400; - line-height: 17px; - color: ${b.GRAY6}; - margin: 0; - white-space: wrap; - overflow: hidden; - text-overflow: ellipsis; -`,rt=/^(https?:\/\/)/,st=/(www\.)?/,ot=/[\w-]+(\.[\w-]+)*/,nt=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/,it=/(\/[^\s?]*)?/,at=/(\?[^\s]*)?/,ct=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,lt=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,pt=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,dt=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ut=new RegExp(`${rt.source}${st.source}${ot.source}${nt.source}?${it.source}${at.source}$`,"i"),ft=t=>{try{if(!(t==null?void 0:t.match(ut)))return!1;const n=new URL(t).hostname;return n!=null&&n.startsWith("www.")?((n==null?void 0:n.match(/\./g))||[]).length>=2:((n==null?void 0:n.match(/\./g))||[]).length>=1}catch{return!1}},X=t=>ft(t)?[ct,lt,pt,dt].some(s=>s.test(t)):!1,ne=[{date_added_to_graph:1733218679827695e-6,node_type:"Episode",properties:{date:1731888e3,episode_title:"AI Agents and AI Assistants: A Contrast in Function",image_url:"https://i.ytimg.com/vi/IivxYYkJ2DI/sddefault.jpg",media_url:"https://s3.amazonaws.com/stakwork-uploads/uploads/customers/4291/media_to_local/62110bc0-6b27-4779-9d5e-320eab6fae84/IivxYYkJ2DI.mp3",source_link:"https://www.youtube.com/watch?v=IivxYYkJ2DI",status:"completed"},ref_id:"b8784fb9-efa8-4a25-8a78-e14be96a4387"},{date_added_to_graph:1733323898765796e-6,node_type:"Episode",properties:{date:1733184e3,episode_title:"Joe Rogan Experience #2237 - Mike Benz",image_url:"https://i.ytimg.com/vi_webp/rrJhQpvlkLA/sddefault.webp",media_url:"https://s3.amazonaws.com/stakwork-uploads/uploads/customers/4291/media_to_local/b4c6220e-7048-431c-80c4-90e56b71bd06/rrJhQpvlkLA.mp3",source_link:"https://www.youtube.com/watch?v=rrJhQpvlkLA",status:"completed"},ref_id:"2e51fdb8-a1f1-4e1f-b9d5-4dbdae00b1a2"},{date_added_to_graph:17326354109931817e-7,node_type:"Episode",properties:{date:1730851200,description:"Exploring the Transformative Potential of Llama, the Open-Source AI Model",episode_title:"Llama: The Open-Source AI Model that's Changing How We Think About AI",image_url:"https://i.ytimg.com/vi/8c2LnKNoSmg/sddefault.jpg",media_url:"https://s3.amazonaws.com/stakwork-uploads/uploads/customers/4291/media_to_local/a4542523-6b12-4baa-bce7-ed63f2704955/8c2LnKNoSmg.mp3",source_link:"https://www.youtube.com/watch?v=8c2LnKNoSmg",status:"completed"},ref_id:"87f5e4c5-39c2-4773-8208-8c1c4fe4019b"}];console.log(ne);const ht=async t=>{const r="add_node",s={};s.media_url=t.source,s.content_type="audio_video";const n=await xe.post(`/${r}`,JSON.stringify(s));if(n.error){const{message:i}=n.error;throw new Error(i)}return n},xt=()=>{const[t,r]=c.useState(""),[s,n]=c.useState(!1),[i,d]=c.useState(""),{setRunningProjectId:w}=D(p=>p),{setSelectedEpisodeId:l,setSelectedEpisodeLink:o}=G(p=>p),{setSchemas:a}=te(p=>p);c.useEffect(()=>{(async()=>{try{const u=await he();a(u.schemas.filter(h=>!h.is_deleted))}catch(u){console.error("Error fetching schema:",u)}})()},[a]);const m=p=>{const{value:u}=p.target;r(u),n(u!==""&&!X(u))},f=async p=>{const u=p||t;if(X(u))try{const h=await ht({source:u});h.data.project_id&&w(h.data.project_id),h.data.ref_id&&(l(h.data.ref_id),o(u))}catch(h){let y=q;if((h==null?void 0:h.status)===400){const x=await h.json();y=x.errorCode||(x==null?void 0:x.status)||q,x.data.ref_id&&(l(x.data.ref_id),o(u))}else h instanceof Error&&(y=h.message);d(String(y))}};return e.jsxs(mt,{children:[e.jsx(gt,{children:"Ideas have shapes"}),e.jsxs(yt,{children:[e.jsx(wt,{error:s,onChange:m,onKeyDown:p=>p.key==="Enter"&&f(),placeholder:"Paste podcast or video link",value:t}),e.jsx(bt,{error:s,onClick:s?void 0:()=>f(),children:e.jsx(qe,{})})]}),i&&e.jsx("div",{children:i}),e.jsx(jt,{children:ne.map(p=>{var u,h;return e.jsx(Je,{imageUrl:((u=p==null?void 0:p.properties)==null?void 0:u.image_url)||"",onClick:()=>{var y;return f((y=p==null?void 0:p.properties)==null?void 0:y.source_link)},subtitle:"",title:((h=p==null?void 0:p.properties)==null?void 0:h.episode_title)||""},p==null?void 0:p.ref_id)})})]})},mt=g(v)` - background: #16161de3; - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - color: #fff; - align-items: center; - justify-content: center; - font-size: 32px; - font-style: normal; - font-weight: 700; - line-height: 16px; - font-family: 'Barlow'; - z-index: 40; -`,gt=g(v)` - color: ${b.white}; - font-family: Barlow; - font-size: 32px; - font-weight: 700; - margin-bottom: 40px; - text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); -`,wt=g.input` - width: 100%; - max-width: 648px; - padding: 12px 28px 12px 16px; - border-radius: 100px; - border: 1px solid ${t=>t.error?"red":b.DIVIDER_4}; - background: ${b.INPUT_BG}; - color: ${b.white}; - font-family: Barlow; - font-size: 16px; - &::placeholder { - color: ${b.INPUT_PLACEHOLDER}; - } - &:focus { - outline: none; - border-color: ${t=>t.error?"red":b.primaryBlue}; - } -`,yt=g.div` - position: relative; - width: 648px; - display: flex; - align-items: center; -`,bt=g.div` - position: absolute; - right: 16px; - top: 50%; - transform: translateY(-50%); - color: ${b.white}; - font-size: 20px; - cursor: ${t=>t.error?"not-allowed":"pointer"}; - svg { - width: 8px; - height: 17px; - color: ${b.GRAY6}; - } -`,jt=g.div` - display: flex; - align-items: center; - justify-content: center; - gap: 16px; - margin-top: 20px; - max-width: 648px; - height: 237px; -`,ie=c.memo(()=>{const{isPlaying:t,playerRef:r}=A(d=>d),s=()=>{if(r){const d=r.getCurrentTime()-15;r.seekTo(d,"seconds")}},n=()=>{if(r){const d=r.getCurrentTime()+15;r.seekTo(d,"seconds")}},i=()=>{if(r){if(t){r.getInternalPlayer().pauseVideo();return}r.getInternalPlayer().playVideo()}};return e.jsxs(Ct,{children:[e.jsx(_t,{onClick:s,children:e.jsx("img",{alt:"",src:"RewindIcon.svg"})}),e.jsx(vt,{"data-testid":"play-pause-button",onClick:i,size:"small",children:t?e.jsx(ye,{"data-testid":"pause-icon"}):e.jsx(be,{"data-testid":"play-icon"})}),e.jsx(Et,{onClick:n,children:e.jsx("img",{alt:"",src:"ForwardIcon.svg"})})]})});ie.displayName="Controls";const Ct=g(v).attrs({direction:"row",align:"center",justify:"flex-start"})` - width: 142px; - height: 54px; - background: ${b.BG1}; - border-radius: 40px; - margin-right: 30px; - color: ${b.white}; - font-size: 20px; - padding: 12px; - justify-content: space-between; - box-sizing: border-box; -`,vt=g(je)` - && { - font-size: 36px; - padding: 2px; - overflow: hidden; - } -`,_t=g.div` - display: flex; - align-items: center; - justify-content: center; - margin: 1px 0 0 1px; - cursor: pointer; - img { - width: 20px; - height: auto; - } -`,Et=g.div` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - img { - width: 24px; - height: auto; - } -`,ae=c.memo(({type:t,left:r,img:s})=>{var o,a;const[n]=te(m=>[m.normalizedSchemasByType]),i=(o=n[t])==null?void 0:o.primary_color,d=(a=n[t])==null?void 0:a.icon,w=d?`svg-icons/${d}.svg`:"",l={iconStart:s||w,color:i??b.THING};return e.jsx(Tt,{style:{left:`${r}%`},children:e.jsx(ce,{...l,label:t})})});ae.displayName="Marker";const ce=c.memo(({iconStart:t,color:r,label:s})=>e.jsx(St,{color:r,children:t&&e.jsx("img",{alt:s,className:"badge__img",src:t})}));ce.displayName="Badge";const St=g(v).attrs({direction:"row"})` - cursor: pointer; - background: ${({color:t})=>t}; - border-radius: 3px; - overflow: hidden; - justify-content: center; - align-items: center; - - .badge__img { - width: 10px; - height: 10px; - object-fit: contain; - } -`,Tt=g.div` - position: absolute; - top: -6px; - width: 12px; - height: 12px; - border-radius: 4px; - background-color: ${b.white}; - transform: translateX(-50%); - transform: translateX(-50%) translateY(-50%); - top: 50%; - display: flex; - align-items: center; - justify-content: center; -`,le=c.memo(({markers:t,duration:r})=>e.jsx(e.Fragment,{children:t.map(s=>{var w;const n=((s==null?void 0:s.start)||0)/r*100,i=(s==null?void 0:s.node_type)||"",d=((w=s==null?void 0:s.properties)==null?void 0:w.image_url)||"";return e.jsx(ae,{img:d,left:n,type:i},s.ref_id)})}));le.displayName="Markers";const Rt=({duration:t,markers:r,handleProgressChange:s,playingTIme:n})=>{const i=10/t*100;return e.jsxs(It,{children:[e.jsx(zt,{max:t,onChange:s,value:n,width:i}),e.jsx(le,{duration:t,markers:r})]})},It=g(v)` - position: relative; - flex: 1 1 100%; -`,zt=g(Se)` - && { - z-index: 20; - color: ${b.white}; - height: 3px; - width: calc(100% - 12px); - box-sizing: border-box; - .MuiSlider-track { - border: none; - } - .MuiSlider-thumb { - width: ${({width:t})=>`${t}%`}; - height: 54px; - border-radius: 8px; - background-color: ${b.primaryBlue}; - opacity: 0.2; - &:before { - box-shadow: '0 4px 8px rgba(0,0,0,0.4)'; - } - &:hover, - &.Mui-focusVisible, - &.Mui-active { - box-shadow: none; - } - } - } -`,$t=({markers:t})=>{const{playingNode:r,playerRef:s}=A(o=>o),[n,i]=c.useState(0),d=r,w=c.useCallback((o,a)=>{const m=Array.isArray(a)?a[0]:a;s&&s.seekTo(m,"seconds")},[s]);c.useEffect(()=>{const o=setInterval(()=>{if(s&&i){const a=s.getCurrentTime();i(a)}},500);return()=>clearInterval(o)},[s,i]);const l=(s==null?void 0:s.getDuration())||0;return d?e.jsxs(Pt,{children:[e.jsx(ie,{}),e.jsx(Rt,{duration:l,handleProgressChange:w,markers:t,playingTIme:n})]}):null},Pt=g(v).attrs({direction:"row",align:"center",justify:"space-between"})` - padding: 20px; - background: ${b.BG2}; - height: 96px; - margin-top: 16px; - border-radius: 8px; - box-sizing: border-box; -`,kt=({sourcePosition:t,targetPosition:r,color:s="white",arrowSize:n=1,label:i="label"})=>{const{points:d,textPosition:w}=c.useMemo(()=>{const l=new P(t.x,t.y,t.z),o=new P(r.x,r.y,r.z),a=new P().subVectors(o,l).normalize(),m=new P().addVectors(l,o).multiplyScalar(.5),f=new P().copy(a).multiplyScalar(-n).applyAxisAngle(new P(0,0,1),Math.PI/6),p=new P().copy(a).multiplyScalar(-n).applyAxisAngle(new P(0,0,1),-Math.PI/6);return{points:[l,o,o.clone(),o.clone().add(f),o.clone(),o.clone().add(p)],textPosition:m}},[t,r,n]);return e.jsxs(e.Fragment,{children:[e.jsxs("line",{children:[e.jsx("bufferGeometry",{children:e.jsx("bufferAttribute",{array:new Float32Array(d.flatMap(l=>[l.x,l.y,l.z])),attach:"attributes-position",count:d.length,itemSize:3})}),e.jsx("lineBasicMaterial",{color:s})]}),i&&e.jsx(ze,{anchorX:"center",anchorY:"middle",color:s,...$e,position:w,children:i})]})},Mt=({title:t,description:r})=>e.jsx(At,{children:e.jsx(Ht,{children:e.jsxs(Wt,{children:[e.jsx(Lt,{children:t}),r&&e.jsx(Ft,{children:r})]})})}),At=g.div` - position: fixed; - width: 100%; - height: 100%; - pointer-events: none; - z-index: 1000; -`,Ht=g(v)` - width: 390px; - min-height: 100px; - background: ${b.HOVER_CARD_BG}; - border-radius: 8px; - padding: 15px; - padding-bottom: 3px !important; - position: fixed; - flex-direction: column; - gap: 4px; - top: calc(-230px); - left: 100%; - z-index: 1000; - margin-left: 450px; - pointer-events: auto; -`,Wt=g(v)` - margin-top: 0; - flex-direction: column; - gap: 4px; -`,Lt=g(V)` - font-family: Barlow; - font-size: 20px; - font-weight: 600; - line-height: 24px; - color: ${b.white}; - margin: 0; -`,Ft=g(V)` - font-family: Barlow; - font-size: 14px; - font-weight: 400; - line-height: 20px; - color: ${b.white}; - margin: 0; - opacity: 0.8; -`,Bt=(t,r,s)=>{const n=new Le;return n.moveTo(-t/2+s,-r/2),n.lineTo(t/2-s,-r/2),n.quadraticCurveTo(t/2,-r/2,t/2,-r/2+s),n.lineTo(t/2,r/2-s),n.quadraticCurveTo(t/2,r/2,t/2-s,r/2),n.lineTo(-t/2+s,r/2),n.quadraticCurveTo(-t/2,r/2,-t/2,r/2-s),n.lineTo(-t/2,-r/2+s),n.quadraticCurveTo(-t/2,-r/2,-t/2+s,-r/2),n},Dt=({width:t,height:r,radius:s,color:n})=>{const i=Bt(t,r,s);return e.jsxs("mesh",{children:[e.jsx("shapeGeometry",{args:[i]}),e.jsx("meshBasicMaterial",{color:n,opacity:.9,transparent:!0})]})},Gt=({name:t,url:r,type:s})=>e.jsxs(Nt,{children:[r&&e.jsx("img",{alt:"",className:"image",src:r}),e.jsx("div",{className:"title",children:t}),e.jsx("div",{className:"badge",children:e.jsx(Ce,{type:s})}),e.jsx("div",{className:"action-btn",children:e.jsx(ve,{})})]}),Nt=g(v)` - position: relative; - padding: 14px; - padding-right: 28px; - flex: 1; - width: 100%; - box-sizing: border-box; - - .title { - margin-top: 8px; - } - - .badge { - position: absolute; - top: 0; - left: 50%; - transform: translateX(-50%); - } - - .image { - width: 32px; - height: 32px; - border-radius: 50%; - margin-bottom: 8px; - object-fit: cover; - } - - .action-btn { - top: 14px; - right: 14px; - color: ${b.GRAY6}; - position: absolute; - } -`,Z=c.memo(({width:t,height:r,position:s,url:n,onButtonClick:i,name:d,type:w,color:l,description:o})=>{const{camera:a}=M(),[m,f]=c.useState(!1);return e.jsxs("group",{position:s,children:[e.jsx(Dt,{color:l,height:r,radius:1.5,width:t}),!1,e.jsx(Pe,{position:[-t/2,r/2,0],children:e.jsxs(v,{onClick:()=>i(),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{fontSize:"12px",color:"white",fontWeight:600,width:`${t*a.zoom}px`,height:`${r*a.zoom}px`,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"8px",pointerEvents:"auto"},children:[e.jsx(Gt,{name:`${d}`,type:w||"",url:n}),m&&e.jsx(Mt,{description:o,title:d})]})})]})});Z.displayName="Node";const K=144/10,N=84/10,Zt=()=>{const t=M(),{dataInitial:r}=D(i=>i),{viewport:s}=t,n=c.useMemo(()=>{if(!r)return{nodes:[],edges:[],relatedNodes:{}};const i=r.links.filter(o=>{var a;return(a=o==null?void 0:o.properties)==null?void 0:a.start}).map(o=>{var a;return{source:o.source,target:o.target,start:(a=o.properties)==null?void 0:a.start}}),d=r.nodes.filter(o=>r.links.some(a=>a.source===o.ref_id||a.target===o.ref_id)).map(o=>{const a=i.find(u=>o.ref_id===u.source||o.ref_id===u.target),m=((a==null?void 0:a.start)||0)*(s.width/10);return{...o,x:m,y:0,z:0,start:(a==null?void 0:a.start)||0}}).filter(o=>o.node_type!=="Clip"&&o.node_type!=="Episode"&&o.node_type!=="Show"),w=d.reduce((o,a)=>{const m=r.links.filter(h=>{var y;return!((y=h==null?void 0:h.properties)!=null&&y.start)&&[h.target,h.source].includes(a.ref_id)}),p=r.nodes.filter(h=>h.node_type!=="Episode"&&h.node_type!=="Clip"&&h.ref_id!==a.ref_id&&m.some(y=>[y.source,y.target].includes(h.ref_id))).map((h,y)=>{const{x}=a,I=(Math.floor(y/2)+1)*N*2*(y%2===0?1:-1);return{...h,x,y:I,z:0}}),u=m.map(h=>{if(h.source===a.ref_id){const x=p.find(I=>I.ref_id===h.target);return{...h,sourcePositions:{x:a.x,y:a.y,z:a.z},targetPositions:{x:x==null?void 0:x.x,y:x==null?void 0:x.y,z:x==null?void 0:x.z}}}const y=p.find(x=>x.ref_id===h.source);return{...h,sourcePositions:{x:y==null?void 0:y.x,y:y==null?void 0:y.y,z:y==null?void 0:y.z},targetPositions:{x:a.x,y:a.y,z:a.z}}});return o[a.ref_id]={nodes:p,edges:u},o},{}),l=Object.values(w).flatMap(o=>o.edges).filter(o=>{var a;return(a=o==null?void 0:o.sourcePositions)==null?void 0:a.x});return{nodes:d,edges:l,relatedNodes:Object.fromEntries(Object.entries(w).map(([o,a])=>[o,a.nodes]))}},[r,s.width]);return e.jsxs(e.Fragment,{children:[n.nodes.map(i=>{var d,w,l;return e.jsxs(c.Fragment,{children:[e.jsx(Z,{color:"#353A46",description:(d=i==null?void 0:i.properties)==null?void 0:d.description,height:N,name:((w=i==null?void 0:i.properties)==null?void 0:w.name)||"",onButtonClick:console.log,position:[i.x,i.y,i.z],type:i.node_type,url:((l=i==null?void 0:i.properties)==null?void 0:l.image_url)||"logo.png",width:K}),(n.relatedNodes[i.ref_id]||[]).map(o=>{var a,m,f;return e.jsx(Z,{color:"#353A46",description:(a=o==null?void 0:o.properties)==null?void 0:a.description,height:N,name:((m=o==null?void 0:o.properties)==null?void 0:m.name)||"",onButtonClick:console.log,position:[o.x,o.y,o.z],type:o.node_type,url:((f=o==null?void 0:o.properties)==null?void 0:f.image_url)||"logo.png",width:K},`${o.ref_id}-${i.ref_id}`)})]},i.ref_id)}),n.edges.map((i,d)=>i!=null&&i.sourcePositions&&(i!=null&&i.targetPositions)?e.jsx(kt,{label:i.edge_type||"",sourcePosition:new P(i.sourcePositions.x,i.sourcePositions.y,i.sourcePositions.z),targetPosition:new P(i.targetPositions.x,i.targetPositions.y,i.targetPositions.z)},`edge-${d}`):null)]})},Vt=()=>{const{camera:t,viewport:r}=M(),s=A(n=>n.playerRef);return oe(()=>{if(s){const n=s.getCurrentTime();t.position.x=n*r.width/10}}),null},Ot=()=>{const{camera:t,gl:r}=M();return c.useEffect(()=>{const s=t,n=d=>{d.preventDefault(),d.ctrlKey&&(s.zoom+=d.deltaY*-.1,s.zoom=Math.max(2,Math.min(s.zoom,20))),s.position.x+=d.deltaX*.1,s.updateProjectionMatrix()},i=r.domElement;return i.addEventListener("wheel",n,{passive:!1}),()=>{i.removeEventListener("wheel",n)}},[t,r]),null},pe=c.memo(()=>(console.log("rerender"),e.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:e.jsxs(ke,{orthographic:!0,children:[e.jsx(Vt,{}),e.jsx(De,{far:2e3,makeDefault:!0,near:1,position:[0,0,20],zoom:10}),e.jsx(Zt,{}),e.jsx(Ot,{})]})})));pe.displayName="Scene";const Yt=(t,r)=>{let s=0,n=t.length-1;for(;s<=n;){const i=Math.floor((s+n)/2),d=t[i],{start:w,end:l}=d.properties;if(r>=w&&r<=l)return d;r{const r=c.useRef(null),[s,n]=c.useState("ready"),[i,d]=c.useState(!1),{setActiveEdge:w}=_e(T=>T),{dataInitial:l}=D(T=>T),{isPlaying:o,playingTime:a,setIsPlaying:m,setPlayingTime:f,setDuration:p,playingNode:u,volume:h,setHasError:y,resetPlayer:x,isSeeking:I,setIsSeeking:L,setPlayerRef:_,playerRef:C}=A(T=>T);c.useEffect(()=>()=>x(),[x]),c.useEffect(()=>{u&&!i&&(f(0),p(0),d(!1))},[u,f,p,d,i]),c.useEffect(()=>{I&&C&&(C.seekTo(a,"seconds"),L(!1))},[a,I,L,C]);const j=()=>{m(!o)},S=c.useCallback(()=>{m(!0)},[m]),k=c.useCallback(()=>{m(!1)},[m]),F=()=>{y(!0),n("error")},B=c.useMemo(()=>((l==null?void 0:l.links.filter($=>{var W;return(W=$==null?void 0:$.properties)==null?void 0:W.start}))||[]).slice().sort(($,W)=>{var Y,U;return((Y=$==null?void 0:$.properties)==null?void 0:Y.start)-((U=W==null?void 0:W.properties)==null?void 0:U.start)}),[l]),R=T=>{if(!I){const O=T.playedSeconds,$=Yt(B,O);w($||null)}},z=()=>{C&&n("ready")},E=()=>{j()},H=c.useCallback(T=>{!C&&T&&_(T)},[_,C]);return t?e.jsxs(qt,{ref:r,tabIndex:0,children:[e.jsx(Jt,{isFullScreen:!1,children:e.jsx(se,{size:120,src:(u==null?void 0:u.image_url)||"",type:"clip"})}),e.jsx(Xt,{isFullScreen:!1,onClick:E,children:e.jsx(Te,{ref:H,height:"219px",onBuffer:()=>n("buffering"),onBufferEnd:()=>n("ready"),onError:F,onPause:k,onPlay:S,onProgress:R,onReady:z,playing:o,url:t||"",volume:h,width:"100%"})}),s==="error"?e.jsx(Qt,{className:"error-wrapper",children:"Error happened, please try later"}):null]}):null},qt=g(v)` - border-bottom: 1px solid rgba(0, 0, 0, 0.25); - background: rgba(0, 0, 0, 0.2); - position: relative; - overflow: hidden; - height: auto; - &:focus { - outline: none; - } -`,Jt=g(v)` - position: absolute; - top: ${t=>t.isFullScreen?"38%":"18%"}; - left: 50%; - transform: translateX(-50%); - z-index: -1; -`,Qt=g(v)` - height: 60px; - padding: 12px 16px; - color: ${b.primaryRed}; -`,Xt=g.div` - margin: ${t=>t.isFullScreen?"80px auto":"0"}; - width: 100%; - cursor: pointer; -`,Kt=c.memo(Ut),de=c.forwardRef(({active:t,start:r,text:s},n)=>e.jsxs(er,{ref:n,className:me({active:t}),children:[e.jsx(tr,{children:r}),e.jsx(rr,{children:e.jsx("span",{children:s})})]}));de.displayName="ParagraphComponent";const ee=c.memo(de,(t,r)=>t.active===r.active),er=g(v)` - flex-direction: row; - align-items: flex-start; - font-size: 14px; - padding: 8px 24px; - &.active { - background: ${b.AI_HIGHLIGHT}; - } -`,tr=g.span` - background: ${b.lightBlue100}; - color: ${b.lightBlue500}; - padding: 2px; - margin-right: 8px; - border-radius: 4px; -`,rr=g.div` - margin: 0 2px; - word-break: break-word; - - &.active { - background: ${b.AI_HIGHLIGHT}; - } -`,sr=({transcriptString:t})=>{const[r,s]=c.useState(0),[n,i]=c.useState(!1),{playerRef:d}=A(f=>f),w=t.replace(/^["']|["']$/g,""),l=JSON.parse(w),o=c.useRef(null),a=c.useRef(null),m=c.useRef(null);return c.useEffect(()=>{const f=setInterval(()=>{if(d&&s){const p=d.getCurrentTime();s(p)}},100);return()=>clearInterval(f)},[d,s]),c.useEffect(()=>{const f=()=>{i(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{i(!1)},1e3)},p=a.current;return p&&p.addEventListener("scroll",f),()=>{p&&p.removeEventListener("scroll",f)}},[]),c.useEffect(()=>{!n&&o.current&&o.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,n]),e.jsx(or,{ref:a,children:l[0].start>r?e.jsx(ee,{active:!1,start:J(l[0].start),text:l[0].text}):e.jsx(e.Fragment,{children:l.map(f=>{const p=J(f.start),u=f.start{const{selectedEpisodeId:r}=G(l=>l),{playerRef:s}=A(l=>l),[n,i]=c.useState(0),[d,w]=c.useState([]);return c.useEffect(()=>{r&&(async()=>{try{const o=await re(r,0,50,{nodeType:["Clip"],useSubGraph:!1});o!=null&&o.nodes&&w(o.nodes)}catch(o){console.error(o)}})()},[r]),c.useEffect(()=>{const l=setInterval(()=>{if(s&&i){const o=s.getCurrentTime();i(o)}},100);return()=>clearInterval(l)},[s,i]),e.jsxs(ir,{children:[e.jsx(v,{className:"heading",children:t}),d.map(l=>{var f,p,u;const o=(f=l==null?void 0:l.properties)==null?void 0:f.timestamp,[a,m]=o?o.split("-").map(Number):[0,0];return a<=n*1e3&&n*1e3{const{selectedEpisodeLink:t,selectedEpisode:r}=G(s=>s);return e.jsxs(lr,{align:"stretch",basis:"100%",grow:1,shrink:1,children:[e.jsx(pr,{children:t&&e.jsx(Kt,{mediaUrl:t})}),e.jsx(nr,{name:(r==null?void 0:r.name)||""})]})},lr=g(v)(({theme:t})=>({position:"relative",display:"flex",padding:"0 20px 20px 20px",background:"transparent",width:"100%",[t.breakpoints.up("sm")]:{width:Re,gap:"10px"}})),pr=g(v)(({theme:t})=>({width:"100%",marginBottom:"20px",[t.breakpoints.up("sm")]:{width:"390px",margin:"0 auto"}})),Tr=()=>{const{addNewNode:t,isFetching:r,runningProjectId:s}=D(_=>_),[n,i]=c.useState(null),[d,w]=c.useState(!1),{selectedEpisodeId:l,setSelectedEpisode:o}=G(_=>_),a=Ee(),m=c.useRef(null),f=c.useRef(null),p=c.useRef(null),u=c.useRef(null),h=c.useRef(null),{setPlayingNode:y}=A(_=>_),x=c.useCallback(_=>{r||(u.current||(u.current={nodes:[],edges:[]}),_.edges&&u.current.edges.push(..._.edges),_.nodes&&u.current.nodes.push(..._.nodes),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{if(u.current){const{nodes:C,edges:j}=u.current,S={nodes:C,edges:j};u.current={nodes:[],edges:[]},t(S)}},3e3))},[t,r]),I=c.useCallback(_=>{console.log(_,"uuuuuupdate")},[]);c.useEffect(()=>{l&&(async()=>{try{const C=await re(l,0,50);i(C);const[j,S]=((C==null?void 0:C.nodes)||[]).reduce(([R,z],E)=>(["Episode","Show","Host","Guest"].includes(E.node_type)?R.push(E):z.push(E),[R,z]),[[],[]]),k=new Set(j.map(R=>R.ref_id)),[F,B]=((C==null?void 0:C.edges)||[]).reduce(([R,z],E)=>(k.has(E.source)&&k.has(E.target)?R.push(E):z.push(E),[R,z]),[[],[]]);p.current={nodes:S||[],edges:B||[]},x({nodes:j,edges:F})}catch(C){console.error(C)}})()},[l,x]),c.useEffect(()=>{l&&(async()=>{try{const C=await ge(l);C&&(y(C),o(C))}catch(C){console.error(C)}})()},[l,y,o]),c.useEffect(()=>(a&&(a.connect(),a.on("connect_error",_=>{console.error("Socket connection error:",_)}),s&&(a.on("new_node_created",x),a.on("node_updated",I))),()=>{a&&a.off()}),[a,I,x,s]),c.useEffect(()=>{const _=C=>{const{playerRef:j}=A.getState();if(f.current!==null){if(C-f.current>2e3){if(p.current&&j){const{nodes:k,edges:F}=p.current,B=j==null?void 0:j.getCurrentTime(),R=F.filter(E=>{var H,T;return((H=E==null?void 0:E.properties)==null?void 0:H.start)!==void 0&&((T=E==null?void 0:E.properties)==null?void 0:T.start)R.some(H=>H.target===E.ref_id||H.source===E.ref_id));(z.length||R.length)&&t({nodes:z,edges:R})}f.current=C}}else f.current=C;m.current=requestAnimationFrame(_)};return m.current=requestAnimationFrame(_),()=>{m.current&&cancelAnimationFrame(m.current)}},[p,t]),c.useEffect(()=>{if(s)try{a==null||a.emit("update_project_id",{id:s})}catch(_){console.error(_)}},[s,a]);const L=c.useMemo(()=>{if(n){const _=n.edges.filter(j=>{var S;return(S=j==null?void 0:j.properties)==null?void 0:S.start}).map(j=>{var S;return{source:j.source,target:j.target,start:(S=j.properties)==null?void 0:S.start}});return n.nodes.filter(j=>n.edges.some(S=>S.source===j.ref_id||S.target===j.ref_id)).map(j=>{const S=_.find(k=>j.ref_id===k.source||j.ref_id===k.target);return{...j,start:(S==null?void 0:S.start)||0}}).filter(j=>j&&j.node_type!=="Clip"&&j.node_type!=="Episode"&&j.node_type!=="Show")}return[]},[n]);return e.jsx(v,{direction:"row",style:{height:"100%"},children:l?e.jsxs(e.Fragment,{children:[e.jsxs(v,{children:[e.jsx(v,{onClick:()=>w(!d),children:e.jsx(Ze,{})}),e.jsx(cr,{})]}),e.jsxs(dr,{children:[e.jsx(v,{basis:"100%",grow:1,shrink:1,children:d?e.jsx(pe,{}):e.jsx(we,{})}),e.jsx($t,{markers:L})]})]}):e.jsx(xt,{})})},dr=g(v)` - flex-basis: 100%; - flex-shrink: 1; - flex-grow: 1; - padding: 16px 16px 16px 0; -`;export{Tr as MindSet}; diff --git a/build/assets/index-a583ad56.js b/build/assets/index-a03166b8.js similarity index 85% rename from build/assets/index-a583ad56.js rename to build/assets/index-a03166b8.js index 726abca3e..88580a51a 100644 --- a/build/assets/index-a583ad56.js +++ b/build/assets/index-a03166b8.js @@ -1 +1 @@ -import{c as f,bt as m}from"./index-f2cb870a.js";import{D as y}from"./constants-fc83fb70.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; +import{c as f,bt as m}from"./index-794e801a.js";import{D as y}from"./constants-f6ae9f1c.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; diff --git a/build/assets/index-aaff460f.js b/build/assets/index-aaff460f.js new file mode 100644 index 000000000..25777b5d7 --- /dev/null +++ b/build/assets/index-aaff460f.js @@ -0,0 +1,734 @@ +import{r as y,a1 as hu,x as Ee,j as V,R as Jf,a8 as p_,J as M,a9 as m_,c as ep,s as Ke,a as Ae,F as Qn,B as tp,u as Os,b as np,k as go,n as g_,d as du,aa as sp,A as rp,ab as __,l as y_,e as $o,D as v_,ac as b_,ad as x_,i as w_,ae as k_,af as T_}from"./index-794e801a.js";import{u as We,a as Nt,m as nc,b as sc,e as fu,L as ip,c as E_,d as C_,q as S_,g as O_,h as A_,T as op,i as ap,H as _o,t as cp,P as P_,f as R_,j as D_,D as M_,U as I_,C as N_,k as $_,l as F_}from"./index-3ee44dc3.js";import{P as ke}from"./index-195d9df5.js";import{m as Mh,H as L_,E as j_,n as Jn,i as kt,o as pu,p as mu,g as Ih,b as V_,D as z_,I as U_,q as B_,r as W_,s as q_,t as H_,v as G_,w as Nh,x as Y_,y as X_,R as Z_,h as K_,z as Q_,N as J_,P as ey,O as ty}from"./index-d39d2c64.js";import{T as ny}from"./TextareaAutosize-cee09ef8.js";import{a as Fo,b as sy,V as ce,c as ry,d as iy,M as ur,e as we,f as oy,B as ay,S as lp,P as $c,g as cy,h as aa,i as Ds,T as rc,j as ml,k as ly,l as $h,m as yo,Q as uy,G as hy,C as ic,n as dy,o as up,p as fy,q as py,r as my,E as gy,s as _y,t as yy,u as oc,v as vy,w as Fc,x as Fh,y as Lh}from"./three.module-df70f22b.js";import{u as by}from"./index-046f3837.js";import{C as xy}from"./ClipLoader-548a512b.js";const wy=["top","right","bottom","left"],_s=Math.min,Lt=Math.max,pa=Math.round,Lo=Math.floor,ys=n=>({x:n,y:n}),ky={left:"right",right:"left",bottom:"top",top:"bottom"},Ty={start:"end",end:"start"};function gl(n,e,t){return Lt(n,_s(e,t))}function Wn(n,e){return typeof n=="function"?n(e):n}function qn(n){return n.split("-")[0]}function Zr(n){return n.split("-")[1]}function gu(n){return n==="x"?"y":"x"}function _u(n){return n==="y"?"height":"width"}function Kr(n){return["top","bottom"].includes(qn(n))?"y":"x"}function yu(n){return gu(Kr(n))}function Ey(n,e,t){t===void 0&&(t=!1);const s=Zr(n),r=yu(n),i=_u(r);let o=r==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=ma(o)),[o,ma(o)]}function Cy(n){const e=ma(n);return[_l(n),e,_l(e)]}function _l(n){return n.replace(/start|end/g,e=>Ty[e])}function Sy(n,e,t){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return t?e?r:s:e?s:r;case"left":case"right":return e?i:o;default:return[]}}function Oy(n,e,t,s){const r=Zr(n);let i=Sy(qn(n),t==="start",s);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(_l)))),i}function ma(n){return n.replace(/left|right|bottom|top/g,e=>ky[e])}function Ay(n){return{top:0,right:0,bottom:0,left:0,...n}}function hp(n){return typeof n!="number"?Ay(n):{top:n,right:n,bottom:n,left:n}}function ga(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function jh(n,e,t){let{reference:s,floating:r}=n;const i=Kr(e),o=yu(e),a=_u(o),c=qn(e),l=i==="y",u=s.x+s.width/2-r.width/2,h=s.y+s.height/2-r.height/2,d=s[a]/2-r[a]/2;let f;switch(c){case"top":f={x:u,y:s.y-r.height};break;case"bottom":f={x:u,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:h};break;case"left":f={x:s.x-r.width,y:h};break;default:f={x:s.x,y:s.y}}switch(Zr(e)){case"start":f[o]-=d*(t&&l?-1:1);break;case"end":f[o]+=d*(t&&l?-1:1);break}return f}const Py=async(n,e,t)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=t,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:n,floating:e,strategy:r}),{x:u,y:h}=jh(l,s,c),d=s,f={},m=0;for(let p=0;p({name:"arrow",options:n,async fn(e){const{x:t,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=Wn(n,e)||{};if(l==null)return{};const h=hp(u),d={x:t,y:s},f=yu(r),m=_u(f),p=await o.getDimensions(l),g=f==="y",_=g?"top":"left",x=g?"bottom":"right",k=g?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[f]-d[f]-i.floating[m],b=d[f]-i.reference[f],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=T?T[k]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[k]||i.floating[m]);const w=v/2-b/2,C=E/2-p[m]/2-1,S=_s(h[_],C),R=_s(h[x],C),O=S,L=E-p[m]-R,j=E/2-p[m]/2+w,W=gl(O,j,L),B=!c.arrow&&Zr(r)!=null&&j!=W&&i.reference[m]/2-(jO<=0)){var C,S;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,L=b[O];if(L)return{data:{index:O,overflows:w},reset:{placement:L}};let j=(S=w.filter(W=>W.overflows[0]<=0).sort((W,B)=>W.overflows[1]-B.overflows[1])[0])==null?void 0:S.placement;if(!j)switch(f){case"bestFit":{var R;const W=(R=w.map(B=>[B.placement,B.overflows.filter(z=>z>0).reduce((z,U)=>z+U,0)]).sort((B,z)=>B[1]-z[1])[0])==null?void 0:R[0];W&&(j=W);break}case"initialPlacement":j=a;break}if(r!==j)return{reset:{placement:j}}}return{}}}};function zh(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function Uh(n){return wy.some(e=>n[e]>=0)}const Dy=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t}=e,{strategy:s="referenceHidden",...r}=Wn(n,e);switch(s){case"referenceHidden":{const i=await Li(e,{...r,elementContext:"reference"}),o=zh(i,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Uh(o)}}}case"escaped":{const i=await Li(e,{...r,altBoundary:!0}),o=zh(i,t.floating);return{data:{escapedOffsets:o,escaped:Uh(o)}}}default:return{}}}}};async function My(n,e){const{placement:t,platform:s,elements:r}=n,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=qn(t),a=Zr(t),c=Kr(t)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,h=Wn(e,n);let{mainAxis:d,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:d*l}:{x:d*l,y:f*u}}const Iy=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,s;const{x:r,y:i,placement:o,middlewareData:a}=e,c=await My(e,n);return o===((t=a.offset)==null?void 0:t.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},Ny=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:s,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:_,y:x}=g;return{x:_,y:x}}},...c}=Wn(n,e),l={x:t,y:s},u=await Li(e,c),h=Kr(qn(r)),d=gu(h);let f=l[d],m=l[h];if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",x=f+u[g],k=f-u[_];f=gl(x,f,k)}if(o){const g=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=m+u[g],k=m-u[_];m=gl(x,m,k)}const p=a.fn({...e,[d]:f,[h]:m});return{...p,data:{x:p.x-t,y:p.y-s}}}}},$y=function(n){return n===void 0&&(n={}),{options:n,fn(e){const{x:t,y:s,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Wn(n,e),u={x:t,y:s},h=Kr(r),d=gu(h);let f=u[d],m=u[h];const p=Wn(a,e),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const k=d==="y"?"height":"width",v=i.reference[d]-i.floating[k]+g.mainAxis,b=i.reference[d]+i.reference[k]-g.mainAxis;fb&&(f=b)}if(l){var _,x;const k=d==="y"?"width":"height",v=["top","left"].includes(qn(r)),b=i.reference[h]-i.floating[k]+(v&&((_=o.offset)==null?void 0:_[h])||0)+(v?0:g.crossAxis),T=i.reference[h]+i.reference[k]+(v?0:((x=o.offset)==null?void 0:x[h])||0)-(v?g.crossAxis:0);mT&&(m=T)}return{[d]:f,[h]:m}}}},Fy=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:s,platform:r,elements:i}=e,{apply:o=()=>{},...a}=Wn(n,e),c=await Li(e,a),l=qn(t),u=Zr(t),h=Kr(t)==="y",{width:d,height:f}=s.floating;let m,p;l==="top"||l==="bottom"?(m=l,p=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,m=u==="end"?"top":"bottom");const g=f-c[m],_=d-c[p],x=!e.middlewareData.shift;let k=g,v=_;if(h){const T=d-c.left-c.right;v=u||x?_s(_,T):T}else{const T=f-c.top-c.bottom;k=u||x?_s(g,T):T}if(x&&!u){const T=Lt(c.left,0),E=Lt(c.right,0),w=Lt(c.top,0),C=Lt(c.bottom,0);h?v=d-2*(T!==0||E!==0?T+E:Lt(c.left,c.right)):k=f-2*(w!==0||C!==0?w+C:Lt(c.top,c.bottom))}await o({...e,availableWidth:v,availableHeight:k});const b=await r.getDimensions(i.floating);return d!==b.width||f!==b.height?{reset:{rects:!0}}:{}}}};function vs(n){return dp(n)?(n.nodeName||"").toLowerCase():"#document"}function zt(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function es(n){var e;return(e=(dp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function dp(n){return n instanceof Node||n instanceof zt(n).Node}function Hn(n){return n instanceof Element||n instanceof zt(n).Element}function En(n){return n instanceof HTMLElement||n instanceof zt(n).HTMLElement}function Bh(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof zt(n).ShadowRoot}function vo(n){const{overflow:e,overflowX:t,overflowY:s,display:r}=Qt(n);return/auto|scroll|overlay|hidden|clip/.test(e+s+t)&&!["inline","contents"].includes(r)}function Ly(n){return["table","td","th"].includes(vs(n))}function vu(n){const e=bu(),t=Qt(n);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function jy(n){let e=Nr(n);for(;En(e)&&!ac(e);){if(vu(e))return e;e=Nr(e)}return null}function bu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ac(n){return["html","body","#document"].includes(vs(n))}function Qt(n){return zt(n).getComputedStyle(n)}function cc(n){return Hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Nr(n){if(vs(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Bh(n)&&n.host||es(n);return Bh(e)?e.host:e}function fp(n){const e=Nr(n);return ac(e)?n.ownerDocument?n.ownerDocument.body:n.body:En(e)&&vo(e)?e:fp(e)}function ji(n,e,t){var s;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=fp(n),i=r===((s=n.ownerDocument)==null?void 0:s.body),o=zt(r);return i?e.concat(o,o.visualViewport||[],vo(r)?r:[],o.frameElement&&t?ji(o.frameElement):[]):e.concat(r,ji(r,[],t))}function pp(n){const e=Qt(n);let t=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=En(n),i=r?n.offsetWidth:t,o=r?n.offsetHeight:s,a=pa(t)!==i||pa(s)!==o;return a&&(t=i,s=o),{width:t,height:s,$:a}}function xu(n){return Hn(n)?n:n.contextElement}function Or(n){const e=xu(n);if(!En(e))return ys(1);const t=e.getBoundingClientRect(),{width:s,height:r,$:i}=pp(e);let o=(i?pa(t.width):t.width)/s,a=(i?pa(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Vy=ys(0);function mp(n){const e=zt(n);return!bu()||!e.visualViewport?Vy:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zy(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==zt(n)?!1:e}function Xs(n,e,t,s){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),i=xu(n);let o=ys(1);e&&(s?Hn(s)&&(o=Or(s)):o=Or(n));const a=zy(i,t,s)?mp(i):ys(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,h=r.height/o.y;if(i){const d=zt(i),f=s&&Hn(s)?zt(s):s;let m=d.frameElement;for(;m&&s&&f!==d;){const p=Or(m),g=m.getBoundingClientRect(),_=Qt(m),x=g.left+(m.clientLeft+parseFloat(_.paddingLeft))*p.x,k=g.top+(m.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,l*=p.y,u*=p.x,h*=p.y,c+=x,l+=k,m=zt(m).frameElement}}return ga({width:u,height:h,x:c,y:l})}function Uy(n){let{rect:e,offsetParent:t,strategy:s}=n;const r=En(t),i=es(t);if(t===i)return e;let o={scrollLeft:0,scrollTop:0},a=ys(1);const c=ys(0);if((r||!r&&s!=="fixed")&&((vs(t)!=="body"||vo(i))&&(o=cc(t)),En(t))){const l=Xs(t);a=Or(t),c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+c.x,y:e.y*a.y-o.scrollTop*a.y+c.y}}function By(n){return Array.from(n.getClientRects())}function gp(n){return Xs(es(n)).left+cc(n).scrollLeft}function Wy(n){const e=es(n),t=cc(n),s=n.ownerDocument.body,r=Lt(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),i=Lt(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let o=-t.scrollLeft+gp(n);const a=-t.scrollTop;return Qt(s).direction==="rtl"&&(o+=Lt(e.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function qy(n,e){const t=zt(n),s=es(n),r=t.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=bu();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function Hy(n,e){const t=Xs(n,!0,e==="fixed"),s=t.top+n.clientTop,r=t.left+n.clientLeft,i=En(n)?Or(n):ys(1),o=n.clientWidth*i.x,a=n.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function Wh(n,e,t){let s;if(e==="viewport")s=qy(n,t);else if(e==="document")s=Wy(es(n));else if(Hn(e))s=Hy(e,t);else{const r=mp(n);s={...e,x:e.x-r.x,y:e.y-r.y}}return ga(s)}function _p(n,e){const t=Nr(n);return t===e||!Hn(t)||ac(t)?!1:Qt(t).position==="fixed"||_p(t,e)}function Gy(n,e){const t=e.get(n);if(t)return t;let s=ji(n,[],!1).filter(a=>Hn(a)&&vs(a)!=="body"),r=null;const i=Qt(n).position==="fixed";let o=i?Nr(n):n;for(;Hn(o)&&!ac(o);){const a=Qt(o),c=vu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||vo(o)&&!c&&_p(n,o))?s=s.filter(u=>u!==o):r=a,o=Nr(o)}return e.set(n,s),s}function Yy(n){let{element:e,boundary:t,rootBoundary:s,strategy:r}=n;const o=[...t==="clippingAncestors"?Gy(e,this._c):[].concat(t),s],a=o[0],c=o.reduce((l,u)=>{const h=Wh(e,u,r);return l.top=Lt(h.top,l.top),l.right=_s(h.right,l.right),l.bottom=_s(h.bottom,l.bottom),l.left=Lt(h.left,l.left),l},Wh(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Xy(n){return pp(n)}function Zy(n,e,t){const s=En(e),r=es(e),i=t==="fixed",o=Xs(n,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=ys(0);if(s||!s&&!i)if((vs(e)!=="body"||vo(r))&&(a=cc(e)),s){const l=Xs(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else r&&(c.x=gp(r));return{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function qh(n,e){return!En(n)||Qt(n).position==="fixed"?null:e?e(n):n.offsetParent}function yp(n,e){const t=zt(n);if(!En(n))return t;let s=qh(n,e);for(;s&&Ly(s)&&Qt(s).position==="static";)s=qh(s,e);return s&&(vs(s)==="html"||vs(s)==="body"&&Qt(s).position==="static"&&!vu(s))?t:s||jy(n)||t}const Ky=async function(n){let{reference:e,floating:t,strategy:s}=n;const r=this.getOffsetParent||yp,i=this.getDimensions;return{reference:Zy(e,await r(t),s),floating:{x:0,y:0,...await i(t)}}};function Qy(n){return Qt(n).direction==="rtl"}const Jy={convertOffsetParentRelativeRectToViewportRelativeRect:Uy,getDocumentElement:es,getClippingRect:Yy,getOffsetParent:yp,getElementRects:Ky,getClientRects:By,getDimensions:Xy,getScale:Or,isElement:Hn,isRTL:Qy};function e1(n,e){let t=null,s;const r=es(n);function i(){clearTimeout(s),t&&t.disconnect(),t=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:h,height:d}=n.getBoundingClientRect();if(a||e(),!h||!d)return;const f=Lo(u),m=Lo(r.clientWidth-(l+h)),p=Lo(r.clientHeight-(u+d)),g=Lo(l),x={rootMargin:-f+"px "+-m+"px "+-p+"px "+-g+"px",threshold:Lt(0,_s(1,c))||1};let k=!0;function v(b){const T=b[0].intersectionRatio;if(T!==c){if(!k)return o();T?o(!1,T):s=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{t=new IntersectionObserver(v,{...x,root:r.ownerDocument})}catch{t=new IntersectionObserver(v,x)}t.observe(n)}return o(!0),i}function t1(n,e,t,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=xu(n),u=r||i?[...l?ji(l):[],...ji(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});const h=l&&a?e1(l,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(_=>{let[x]=_;x&&x.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(e)})),t()}),l&&!c&&f.observe(l),f.observe(e));let m,p=c?Xs(n):null;c&&g();function g(){const _=Xs(n);p&&(_.x!==p.x||_.y!==p.y||_.width!==p.width||_.height!==p.height)&&t(),p=_,m=requestAnimationFrame(g)}return t(),()=>{u.forEach(_=>{r&&_.removeEventListener("scroll",t),i&&_.removeEventListener("resize",t)}),h&&h(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const n1=(n,e,t)=>{const s=new Map,r={platform:Jy,...t},i={...r.platform,_c:s};return Py(n,e,{...r,platform:i})},s1=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:s,padding:r}=typeof n=="function"?n(t):n;return s&&e(s)?s.current!=null?Vh({element:s.current,padding:r}).fn(t):{}:s?Vh({element:s,padding:r}).fn(t):{}}}};var ca=typeof document<"u"?y.useLayoutEffect:y.useEffect;function _a(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,s,r;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(s=t;s--!==0;)if(!_a(n[s],e[s]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(s=t;s--!==0;)if(!{}.hasOwnProperty.call(e,r[s]))return!1;for(s=t;s--!==0;){const i=r[s];if(!(i==="_owner"&&n.$$typeof)&&!_a(n[i],e[i]))return!1}return!0}return n!==n&&e!==e}function vp(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Hh(n,e){const t=vp(n);return Math.round(e*t)/t}function Gh(n){const e=y.useRef(n);return ca(()=>{e.current=n}),e}function r1(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=n,[u,h]=y.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=y.useState(s);_a(d,s)||f(s);const[m,p]=y.useState(null),[g,_]=y.useState(null),x=y.useCallback(B=>{B!=T.current&&(T.current=B,p(B))},[p]),k=y.useCallback(B=>{B!==E.current&&(E.current=B,_(B))},[_]),v=i||m,b=o||g,T=y.useRef(null),E=y.useRef(null),w=y.useRef(u),C=Gh(c),S=Gh(r),R=y.useCallback(()=>{if(!T.current||!E.current)return;const B={placement:e,strategy:t,middleware:d};S.current&&(B.platform=S.current),n1(T.current,E.current,B).then(z=>{const U={...z,isPositioned:!0};O.current&&!_a(w.current,U)&&(w.current=U,hu.flushSync(()=>{h(U)}))})},[d,e,t,S]);ca(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[l]);const O=y.useRef(!1);ca(()=>(O.current=!0,()=>{O.current=!1}),[]),ca(()=>{if(v&&(T.current=v),b&&(E.current=b),v&&b){if(C.current)return C.current(v,b,R);R()}},[v,b,R,C]);const L=y.useMemo(()=>({reference:T,floating:E,setReference:x,setFloating:k}),[x,k]),j=y.useMemo(()=>({reference:v,floating:b}),[v,b]),W=y.useMemo(()=>{const B={position:t,left:0,top:0};if(!j.floating)return B;const z=Hh(j.floating,u.x),U=Hh(j.floating,u.y);return a?{...B,transform:"translate("+z+"px, "+U+"px)",...vp(j.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:z,top:U}},[t,a,j.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:R,refs:L,elements:j,floatingStyles:W}),[u,R,L,j,W])}function i1(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const o1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Yh=o1?y.useEffect:y.useLayoutEffect;function a1(n){const e=typeof n=="function"?i1(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=y.useReducer(g=>g+1,0),o=e.getState(),a=y.useRef(o),c=y.useRef(s),l=y.useRef(r),u=y.useRef(!1),h=y.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),Yh(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=y.useRef(o);Yh(()=>{const g=()=>{try{const x=e.getState(),k=c.current(x);l.current(h.current,k)||(a.current=x,h.current=k,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return y.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}let ai=0;const c1=a1(n=>(Fo.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-ai)/(s-ai)*100})},Fo.onLoad=()=>{n({active:!1})},Fo.onError=e=>n(t=>({errors:[...t.errors,e]})),Fo.onProgress=(e,t,s)=>{t===s&&(ai=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-ai)/(s-ai)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),l1=n=>`Loading ${n.toFixed(2)}%`;function u1({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:r=l1,initialState:i=o=>o}){const{active:o,progress:a}=c1(),c=y.useRef(0),l=y.useRef(0),u=y.useRef(null),[h,d]=y.useState(i(o));y.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>d(o),300)),()=>clearTimeout(m)},[h,o]);const f=y.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=r(c.current),c.current(f(),()=>cancelAnimationFrame(l.current)),[f]),h?y.createElement("div",{style:{...jo.container,opacity:o?1:0,...n}},y.createElement("div",null,y.createElement("div",{style:{...jo.inner,...e}},y.createElement("div",{style:{...jo.bar,transform:`scaleX(${a/100})`,...t}}),y.createElement("span",{ref:u,style:{...jo.data,...s}})))):null}const jo={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}},Lc=new sy,jc=new ce,hr=new ce,nn=new ce,Dn=new ce,_n=new ce,Mn=new ce,In=new ce,ci=new ce,li=new ce,ui=new ce,Vo=new ce,hi=new ce,di=new ce,fi=new ce;class h1{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new ce,this.endPoint=new ce,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Lc,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){hr.copy(e),hr.x=Math.min(e.x,t.x),hr.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),nn.setFromMatrixPosition(this.camera.matrixWorld),Dn.copy(hr),_n.set(t.x,hr.y,0),Mn.copy(t),In.set(hr.x,t.y,0),Dn.unproject(this.camera),_n.unproject(this.camera),Mn.unproject(this.camera),In.unproject(this.camera),hi.copy(Dn).sub(nn),di.copy(_n).sub(nn),fi.copy(Mn).sub(nn),hi.normalize(),di.normalize(),fi.normalize(),hi.multiplyScalar(this.deep),di.multiplyScalar(this.deep),fi.multiplyScalar(this.deep),hi.add(nn),di.add(nn),fi.add(nn);var s=Lc.planes;s[0].setFromCoplanarPoints(nn,Dn,_n),s[1].setFromCoplanarPoints(nn,_n,Mn),s[2].setFromCoplanarPoints(Mn,In,nn),s[3].setFromCoplanarPoints(In,Dn,nn),s[4].setFromCoplanarPoints(_n,Mn,In),s[5].setFromCoplanarPoints(fi,di,hi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const r=Math.min(e.x,t.x),i=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);Dn.set(r,i,-1),_n.set(o,i,-1),Mn.set(o,a,-1),In.set(r,a,-1),ci.set(r,i,1),li.set(o,i,1),ui.set(o,a,1),Vo.set(r,a,1),Dn.unproject(this.camera),_n.unproject(this.camera),Mn.unproject(this.camera),In.unproject(this.camera),ci.unproject(this.camera),li.unproject(this.camera),ui.unproject(this.camera),Vo.unproject(this.camera);var s=Lc.planes;s[0].setFromCoplanarPoints(Dn,ci,li),s[1].setFromCoplanarPoints(_n,li,ui),s[2].setFromCoplanarPoints(ui,Vo,In),s[3].setFromCoplanarPoints(Vo,ci,Dn),s[4].setFromCoplanarPoints(_n,Mn,In),s[5].setFromCoplanarPoints(ui,li,ci),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),jc.copy(t.geometry.boundingSphere.center),jc.applyMatrix4(t.matrixWorld),e.containsPoint(jc)&&this.collection.push(t)),t.children.length>0)for(let s=0;s0?X.copy(O[O.length-1]):X.identity())}function r($){const F=new Ds,A=new we,I=new we,G=new we;let N=!0,q=!1;const re=$.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let ie=0,ne=re.length;ie0&&(A.copy(G),F.currentPath.currentPoint.copy(A),N=!0);break;default:console.warn(ge)}q=!1}return F}function i($){if(!(!$.sheet||!$.sheet.cssRules||!$.sheet.cssRules.length))for(let F=0;F<$.sheet.cssRules.length;F++){const A=$.sheet.cssRules[F];if(A.type!==1)continue;const I=A.selectorText.split(/,/gm).filter(Boolean).map(G=>G.trim());for(let G=0;G1){const is=Math.sqrt(Q);F=is*F,A=is*A,ee=F*F,H=A*A}const se=ee*P+H*D,le=(ee*H-se)/se;let ye=Math.sqrt(Math.max(0,le));G===N&&(ye=-ye);const Qe=ye*F*ge/A,J=-ye*A*ne/F,fe=Math.cos(I)*Qe-Math.sin(I)*J+(q.x+oe.x)/2,Je=Math.sin(I)*Qe+Math.cos(I)*J+(q.y+oe.y)/2,it=a(1,0,(ne-Qe)/F,(ge-J)/A),$t=a((ne-Qe)/F,(ge-J)/A,(-ne-Qe)/F,(-ge-J)/A)%(Math.PI*2);$.currentPath.absellipse(fe,Je,F,A,it,it+$t,N===0,I)}function a($,F,A,I){const G=$*A+F*I,N=Math.sqrt($*$+F*F)*Math.sqrt(A*A+I*I);let q=Math.acos(Math.max(-1,Math.min(1,G/N)));return $*I-F*A<0&&(q=-q),q}function c($){const F=k($.getAttribute("x")||0),A=k($.getAttribute("y")||0),I=k($.getAttribute("rx")||$.getAttribute("ry")||0),G=k($.getAttribute("ry")||$.getAttribute("rx")||0),N=k($.getAttribute("width")),q=k($.getAttribute("height")),oe=1-.551915024494,re=new Ds;return re.moveTo(F+I,A),re.lineTo(F+N-I,A),(I!==0||G!==0)&&re.bezierCurveTo(F+N-I*oe,A,F+N,A+G*oe,F+N,A+G),re.lineTo(F+N,A+q-G),(I!==0||G!==0)&&re.bezierCurveTo(F+N,A+q-G*oe,F+N-I*oe,A+q,F+N-I,A+q),re.lineTo(F+I,A+q),(I!==0||G!==0)&&re.bezierCurveTo(F+I*oe,A+q,F,A+q-G*oe,F,A+q-G),re.lineTo(F,A+G),(I!==0||G!==0)&&re.bezierCurveTo(F,A+G*oe,F+I*oe,A,F+I,A),re}function l($){function F(N,q,oe){const re=k(q),ie=k(oe);G===0?I.moveTo(re,ie):I.lineTo(re,ie),G++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ds;let G=0;return $.getAttribute("points").replace(A,F),I.currentPath.autoClose=!0,I}function u($){function F(N,q,oe){const re=k(q),ie=k(oe);G===0?I.moveTo(re,ie):I.lineTo(re,ie),G++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ds;let G=0;return $.getAttribute("points").replace(A,F),I.currentPath.autoClose=!1,I}function h($){const F=k($.getAttribute("cx")||0),A=k($.getAttribute("cy")||0),I=k($.getAttribute("r")||0),G=new $c;G.absarc(F,A,I,0,Math.PI*2);const N=new Ds;return N.subPaths.push(G),N}function d($){const F=k($.getAttribute("cx")||0),A=k($.getAttribute("cy")||0),I=k($.getAttribute("rx")||0),G=k($.getAttribute("ry")||0),N=new $c;N.absellipse(F,A,I,G,0,Math.PI*2);const q=new Ds;return q.subPaths.push(N),q}function f($){const F=k($.getAttribute("x1")||0),A=k($.getAttribute("y1")||0),I=k($.getAttribute("x2")||0),G=k($.getAttribute("y2")||0),N=new Ds;return N.moveTo(F,A),N.lineTo(I,G),N.currentPath.autoClose=!1,N}function m($,F){F=Object.assign({},F);let A={};if($.hasAttribute("class")){const q=$.getAttribute("class").split(/\s/).filter(Boolean).map(oe=>oe.trim());for(let oe=0;oe0&&F.premultiply(O[O.length-1]),X.copy(F),O.push(F),F}function b($){const F=new ur,A=L;if($.nodeName==="use"&&($.hasAttribute("x")||$.hasAttribute("y"))){const I=k($.getAttribute("x")),G=k($.getAttribute("y"));F.translate(I,G)}if($.hasAttribute("transform")){const I=$.getAttribute("transform").split(")");for(let G=I.length-1;G>=0;G--){const N=I[G].trim();if(N==="")continue;const q=N.indexOf("("),oe=N.length;if(q>0&&q=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),A.translate(ne,ge)}break;case"rotate":if(ie.length>=1){let ne=0,ge=0,ee=0;ne=-ie[0]*Math.PI/180,ie.length>=3&&(ge=ie[1],ee=ie[2]),j.identity().translate(-ge,-ee),W.identity().rotate(ne),B.multiplyMatrices(W,j),j.identity().translate(ge,ee),A.multiplyMatrices(j,B)}break;case"scale":if(ie.length>=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),A.scale(ne,ge)}break;case"skewX":ie.length===1&&A.set(1,Math.tan(ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":ie.length===1&&A.set(1,0,0,Math.tan(ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":ie.length===6&&A.set(ie[0],ie[2],ie[4],ie[1],ie[3],ie[5],0,0,1);break}}F.premultiply(A)}}return F}function T($,F){function A(N){U.set(N.x,N.y,1).applyMatrix3(F),N.set(U.x,U.y)}const I=E(F),G=$.subPaths;for(let N=0,q=G.length;N=1||B<0||B>1)return null;if(O===0&&j===0){for(let z=0;z<2;z++)if(o(z===0?x:k,g,_),r.loc==s.ORIGIN){const U=z===0?x:k;return{x:U.x,y:U.y,t:r.t}}else if(r.loc==s.BETWEEN){const U=+(v+r.t*(b-v)).toPrecision(10),X=+(w+r.t*(C-w)).toPrecision(10);return{x:U,y:X,t:r.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?x:k,g,_),r.loc==s.ORIGIN){const K=X===0?x:k;return{x:K.x,y:K.y,t:r.t}}const z=+(v+W*(b-v)).toPrecision(10),U=+(w+W*(C-w)).toPrecision(10);return{x:z,y:U,t:W}}}function o(g,_,x){const k=x.x-_.x,v=x.y-_.y,b=g.x-_.x,T=g.y-_.y,E=k*T-b*v;if(g.x===_.x&&g.y===_.y){r.loc=s.ORIGIN,r.t=0;return}if(g.x===x.x&&g.y===x.y){r.loc=s.DESTINATION,r.t=1;return}if(E<-Number.EPSILON){r.loc=s.LEFT;return}if(E>Number.EPSILON){r.loc=s.RIGHT;return}if(k*b<0||v*T<0){r.loc=s.BEHIND;return}if(Math.sqrt(k*k+v*v)R.t<=S.t+Number.EPSILON&&R.t>=S.t-Number.EPSILON)===void 0&&(x.push(S),k.push(new we(S.x,S.y)))}}return k}function c(g,_,x){const k=new we;_.getCenter(k);const v=[];return x.forEach(b=>{b.boundingBox.containsPoint(k)&&a(g,b.points).forEach(E=>{v.push({identifier:b.identifier,isCW:b.isCW,point:E})})}),v.sort((b,T)=>b.point.x-T.point.x),v}function l(g,_,x,k,v){(v==null||v==="")&&(v="nonzero");const b=new we;g.boundingBox.getCenter(b);const T=[new we(x,b.y),new we(k,b.y)],E=c(T,g.boundingBox,_);E.sort((L,j)=>L.point.x-j.point.x);const w=[],C=[];E.forEach(L=>{L.identifier===g.identifier?w.push(L):C.push(L)});const S=w[0].point.x,R=[];let O=0;for(;O0&&R[R.length-1]===C[O].identifier?R.pop():R.push(C[O].identifier),O++;if(R.push(g.identifier),v==="evenodd"){const L=R.length%2===0,j=R[R.length-2];return{identifier:g.identifier,isHole:L,for:j}}else if(v==="nonzero"){let L=!0,j=null,W=null;for(let B=0;B{const _=g.getPoints();let x=-999999999,k=999999999,v=-999999999,b=999999999;for(let T=0;T<_.length;T++){const E=_[T];E.y>x&&(x=E.y),E.yv&&(v=E.x),E.x=b&&(h=b-1),{curves:g.curves,points:_,isCW:oy.isClockWise(_),identifier:u++,boundingBox:new ay(new we(b,k),new we(v,x))}});f=f.filter(g=>g.points.length>1);const m=f.map(g=>l(g,f,h,d,e.userData.style.fillRule)),p=[];return f.forEach(g=>{if(!m[g.identifier].isHole){const x=new lp;x.curves=g.curves,m.filter(v=>v.isHole&&v.for===g.identifier).forEach(v=>{const b=f[v.identifier],T=new $c;T.curves=b.curves,x.holes.push(T)}),p.push(x)}}),p}static getStrokeStyle(e,t,s,r,i){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",s=s!==void 0?s:"miter",r=r!==void 0?r:"butt",i=i!==void 0?i:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:s,strokeLineCap:r,strokeMiterLimit:i}}static pointsToStroke(e,t,s,r){const i=[],o=[],a=[];if(Oi.pointsToStrokeWithBuffers(e,t,s,r,i,o,a)===0)return null;const c=new cy;return c.setAttribute("position",new aa(i,3)),c.setAttribute("normal",new aa(o,3)),c.setAttribute("uv",new aa(a,2)),c}static pointsToStrokeWithBuffers(e,t,s,r,i,o,a,c){const l=new we,u=new we,h=new we,d=new we,f=new we,m=new we,p=new we,g=new we,_=new we,x=new we,k=new we,v=new we,b=new we,T=new we,E=new we,w=new we,C=new we;s=s!==void 0?s:12,r=r!==void 0?r:.001,c=c!==void 0?c:0,e=ge(e);const S=e.length;if(S<2)return 0;const R=e[0].equals(e[S-1]);let O,L=e[0],j;const W=t.strokeWidth/2,B=1/(S-1);let z=0,U,X,K,te,$=!1,F=0,A=c*3,I=c*2;G(e[0],e[1],l).multiplyScalar(W),g.copy(e[0]).sub(l),_.copy(e[0]).add(l),x.copy(g),k.copy(_);for(let ee=1;ee=r&&D.push(ee[P]);return D.push(ee[ee.length-1]),D}}}function d1(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=We(),[p,g]=y.useState(!1),[_,x]=y.useReducer((T,{object:E,shift:w})=>E===void 0?[]:Array.isArray(E)?E:w?T.includes(E)?T.filter(C=>C!==E):[E,...T]:T[0]===E?[]:[E],[]);y.useEffect(()=>void(s==null?void 0:s(_)),[_]);const k=y.useCallback(T=>{T.stopPropagation(),x({object:o([T.object])[0],shift:e&&T.shiftKey})},[]),v=y.useCallback(T=>!p&&x({}),[p]),b=y.useRef(null);return y.useEffect(()=>{if(!n||!e)return;const T=new h1(l,b.current),E=document.createElement("div");E.style.pointerEvents="none",E.style.border=r,E.style.backgroundColor=i,E.style.position="fixed";const w=new we,C=new we,S=new we,R=m().events.enabled,O=d==null?void 0:d.enabled;let L=!1;function j($,F){const{offsetX:A,offsetY:I}=$,{width:G,height:N}=f;F.set(A/G*2-1,-(I/N)*2+1)}function W($){var F;d&&(d.enabled=!1),c({enabled:!1}),L=!0,(F=h.domElement.parentElement)==null||F.appendChild(E),E.style.left=`${$.clientX}px`,E.style.top=`${$.clientY}px`,E.style.width="0px",E.style.height="0px",w.x=$.clientX,w.y=$.clientY}function B($){S.x=Math.max(w.x,$.clientX),S.y=Math.max(w.y,$.clientY),C.x=Math.min(w.x,$.clientX),C.y=Math.min(w.y,$.clientY),E.style.left=`${C.x}px`,E.style.top=`${C.y}px`,E.style.width=`${S.x-C.x}px`,E.style.height=`${S.y-C.y}px`}function z(){if(L){var $;d&&(d.enabled=O),c({enabled:R}),L=!1,($=E.parentElement)==null||$.removeChild(E)}}function U($){$.shiftKey&&(W($),j($,T.startPoint))}let X=[];function K($){if(L){B($),j($,T.endPoint);const F=T.select().sort(A=>A.uuid).filter(A=>A.isMesh);d1(F,X)||(X=F,x({object:o(F)}))}}function te($){L&&z()}return document.addEventListener("pointerdown",U,{passive:!0}),document.addEventListener("pointermove",K,{passive:!0,capture:!0}),document.addEventListener("pointerup",te,{passive:!0}),()=>{document.removeEventListener("pointerdown",U),document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",te)}},[f.width,f.height,u,l,d,h]),y.createElement("group",Ee({ref:b,onClick:k,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:v},a),y.createElement(f1.Provider,{value:_},t))}const wu=y.forwardRef(function({follow:e=!0,lockX:t=!1,lockY:s=!1,lockZ:r=!1,...i},o){const a=y.useRef();return Nt(({camera:c})=>{if(!e||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),t&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),r&&(a.current.rotation.z=l.z)}),y.createElement("group",Ee({ref:nc([a,o])},i))}),Xh=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function Us(n,e){const t=We(r=>r.gl),s=sc(rc,Xh(n)?Object.values(n):n);if(y.useLayoutEffect(()=>{e==null||e(s)},[e]),y.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),Xh(n)){const r=Object.keys(n),i={};return r.forEach(o=>Object.assign(i,{[o]:s[r.indexOf(o)]})),i}else return s}Us.preload=n=>sc.preload(rc,n);Us.clear=n=>sc.clear(rc,n);const m1=y.forwardRef(function({src:e,skipFill:t,skipStrokes:s,fillMaterial:r,strokeMaterial:i,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=sc(Oi,e.startsWith("s?[]:u.paths.map(d=>{var f;return((f=d.userData)==null?void 0:f.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(m=>Oi.pointsToStroke(m.getPoints(),d.userData.style))}),[u,s]);return y.useEffect(()=>()=>h.forEach(d=>d&&d.map(f=>f.dispose())),[h]),y.createElement("object3D",Ee({ref:l},c),y.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,f)=>{var m,p;return y.createElement(y.Fragment,{key:f},!t&&((m=d.userData)==null?void 0:m.style.fill)!==void 0&&d.userData.style.fill!=="none"&&Oi.createShapes(d).map((g,_)=>y.createElement("mesh",Ee({key:_},o),y.createElement("shapeGeometry",{args:[g]}),y.createElement("meshBasicMaterial",Ee({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ml,depthWrite:!1},r)))),!s&&((p=d.userData)==null?void 0:p.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((g,_)=>y.createElement("mesh",Ee({key:_,geometry:h[f][_]},a),y.createElement("meshBasicMaterial",Ee({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ml,depthWrite:!1},i)))))})))});/*! + * camera-controls + * https://github.com/yomotsu/camera-controls + * (c) 2017 @yomotsu + * Released under the MIT License. + */const pe={LEFT:1,RIGHT:2,MIDDLE:4},Y=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}),dr={NONE:0,IN:1,OUT:-1};function Ms(n){return n.isPerspectiveCamera}function as(n){return n.isOrthographicCamera}const fr=Math.PI*2,Zh=Math.PI/2,bp=1e-5,pi=Math.PI/180;function sn(n,e,t){return Math.max(e,Math.min(t,n))}function $e(n,e=bp){return Math.abs(n)0==f>u&&(f=u,t.value=(f-u)/i),f}function Qh(n,e,t,s,r=1/0,i,o){s=Math.max(1e-4,s);const a=2/s,c=a*i,l=1/(1+c+.48*c*c+.235*c*c*c);let u=e.x,h=e.y,d=e.z,f=n.x-u,m=n.y-h,p=n.z-d;const g=u,_=h,x=d,k=r*s,v=k*k,b=f*f+m*m+p*p;if(b>v){const W=Math.sqrt(b);f=f/W*k,m=m/W*k,p=p/W*k}u=n.x-f,h=n.y-m,d=n.z-p;const T=(t.x+a*f)*i,E=(t.y+a*m)*i,w=(t.z+a*p)*i;t.x=(t.x-a*T)*l,t.y=(t.y-a*E)*l,t.z=(t.z-a*w)*l,o.x=u+(f+T)*l,o.y=h+(m+E)*l,o.z=d+(p+w)*l;const C=g-n.x,S=_-n.y,R=x-n.z,O=o.x-g,L=o.y-_,j=o.z-x;return C*O+S*L+R*j>0&&(o.x=g,o.y=_,o.z=x,t.x=(o.x-g)/i,t.y=(o.y-_)/i,t.z=(o.z-x)/i),o}function Vc(n,e){e.set(0,0),n.forEach(t=>{e.x+=t.clientX,e.y+=t.clientY}),e.x/=n.length,e.y/=n.length}function zc(n,e){return as(n)?(console.warn(`${e} is not supported in OrthographicCamera`),!0):!1}class g1{constructor(){this._listeners={}}addEventListener(e,t){const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}hasEventListener(e,t){const s=this._listeners;return s[e]!==void 0&&s[e].indexOf(t)!==-1}removeEventListener(e,t){const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}removeAllEventListeners(e){if(!e){this._listeners={};return}Array.isArray(this._listeners[e])&&(this._listeners[e].length=0)}dispatchEvent(e){const s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.slice(0);for(let i=0,o=r.length;i{},this._enabled=!0,this._state=Y.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=dr.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new he.Vector3,this._focalOffsetVelocity=new he.Vector3,this._zoomVelocity={value:0},this._truckInternal=(v,b,T)=>{let E,w;if(Ms(this._camera)){const C=_e.copy(this._camera.position).sub(this._target),S=this._camera.getEffectiveFOV()*pi,R=C.length()*Math.tan(S*.5);E=this.truckSpeed*v*R/this._elementRect.height,w=this.truckSpeed*b*R/this._elementRect.height}else if(as(this._camera)){const C=this._camera;E=v*(C.right-C.left)/C.zoom/this._elementRect.width,w=b*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(T?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(E,0,!0),this.forward(-w,!0)):T?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y+w,this._focalOffsetEnd.z,!0):this.truck(E,w,!0)},this._rotateInternal=(v,b)=>{const T=fr*this.azimuthRotateSpeed*v/this._elementRect.height,E=fr*this.polarRotateSpeed*b/this._elementRect.height;this.rotate(T,E,!0)},this._dollyInternal=(v,b,T)=>{const E=Math.pow(.95,-v*this.dollySpeed),w=this._sphericalEnd.radius,C=this._sphericalEnd.radius*E,S=sn(C,this.minDistance,this.maxDistance),R=S-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(R,!0),this._dollyToNoClamp(S,!0)):this._dollyToNoClamp(S,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:S)-w,this._dollyControlCoord.set(b,T)),this._lastDollyDirection=Math.sign(-v)},this._zoomInternal=(v,b,T)=>{const E=Math.pow(.95,v*this.dollySpeed),w=this._zoom,C=this._zoom*E;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-w,this._dollyControlCoord.set(b,T))},typeof he>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=e,this._yAxisUpSpace=new he.Quaternion().setFromUnitVectors(this._camera.up,Bo),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=Y.NONE,this._target=new he.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new he.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new he.Spherical().setFromVector3(_e.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new he.Vector3,new he.Vector3,new he.Vector3,new he.Vector3],this._updateNearPlaneCorners(),this._boundary=new he.Box3(new he.Vector3(-1/0,-1/0,-1/0),new he.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new he.Vector2,this.mouseButtons={left:Y.ROTATE,middle:Y.DOLLY,right:Y.TRUCK,wheel:Ms(this._camera)?Y.DOLLY:as(this._camera)?Y.ZOOM:Y.NONE},this.touches={one:Y.TOUCH_ROTATE,two:Ms(this._camera)?Y.TOUCH_DOLLY_TRUCK:as(this._camera)?Y.TOUCH_ZOOM_TRUCK:Y.NONE,three:Y.TOUCH_TRUCK};const s=new he.Vector2,r=new he.Vector2,i=new he.Vector2,o=v=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),w=v.clientX/E.width,C=v.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const b=v.pointerType!=="mouse"?null:(v.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(v.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(v.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(b!==null){const E=this._findPointerByMouseButton(b);E&&this._disposePointer(E)}if((v.buttons&pe.LEFT)===pe.LEFT&&this._lockedPointer)return;const T={pointerId:v.pointerId,clientX:v.clientX,clientY:v.clientY,deltaX:0,deltaY:0,mouseButton:b};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,p(v)},a=v=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),w=v.clientX/E.width,C=v.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const b=(v.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(v.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(v.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(b!==null){const E=this._findPointerByMouseButton(b);E&&this._disposePointer(E)}const T={pointerId:1,clientX:v.clientX,clientY:v.clientY,deltaX:0,deltaY:0,mouseButton:(v.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(v.buttons&pe.MIDDLE)===pe.LEFT?pe.MIDDLE:(v.buttons&pe.RIGHT)===pe.LEFT?pe.RIGHT:null};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,p(v)},c=v=>{v.cancelable&&v.preventDefault();const b=v.pointerId,T=this._lockedPointer||this._findPointerById(b);if(T){if(T.clientX=v.clientX,T.clientY=v.clientY,T.deltaX=v.movementX,T.deltaY=v.movementY,this._state=0,v.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(v.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(v.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(v.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);g()}},l=v=>{const b=this._lockedPointer||this._findPointerById(1);b&&(b.clientX=v.clientX,b.clientY=v.clientY,b.deltaX=v.movementX,b.deltaY=v.movementY,this._state=0,(this._lockedPointer||(v.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),(v.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(v.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right),g())},u=v=>{const b=this._findPointerById(v.pointerId);if(!(b&&b===this._lockedPointer)){if(b&&this._disposePointer(b),v.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=Y.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=Y.NONE;_()}},h=()=>{const v=this._findPointerById(1);v&&v===this._lockedPointer||(v&&this._disposePointer(v),this._state=Y.NONE,_())};let d=-1;const f=v=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===Y.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),S=v.clientX/C.width,R=v.clientY/C.height;if(Sthis._interactiveArea.right||Rthis._interactiveArea.bottom)return}if(v.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===Y.ROTATE||this.mouseButtons.wheel===Y.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const b=y1?-1:-3,T=v.deltaMode===1?v.deltaY/b:v.deltaY/(b*10),E=this.dollyToCursor?(v.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,w=this.dollyToCursor?(v.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case Y.ROTATE:{this._rotateInternal(v.deltaX,v.deltaY),this._isUserControllingRotate=!0;break}case Y.TRUCK:{this._truckInternal(v.deltaX,v.deltaY,!1),this._isUserControllingTruck=!0;break}case Y.OFFSET:{this._truckInternal(v.deltaX,v.deltaY,!0),this._isUserControllingOffset=!0;break}case Y.DOLLY:{this._dollyInternal(-T,E,w),this._isUserControllingDolly=!0;break}case Y.ZOOM:{this._zoomInternal(-T,E,w),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},m=v=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===yl.ACTION.NONE){const b=v instanceof PointerEvent?v.pointerId:(v instanceof MouseEvent,0),T=this._findPointerById(b);T&&this._disposePointer(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}v.preventDefault()}},p=v=>{if(!this._enabled)return;if(Vc(this._activePointers,Et),this._getClientRect(this._elementRect),s.copy(Et),r.copy(Et),this._activePointers.length>=2){const T=Et.x-this._activePointers[1].clientX,E=Et.y-this._activePointers[1].clientY,w=Math.sqrt(T*T+E*E);i.set(0,w);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,S=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;r.set(C,S)}if(this._state=0,!v)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in v&&v.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(v.buttons&pe.LEFT)===pe.LEFT&&(this._state=this._state|this.mouseButtons.left),(v.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(v.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&Y.ROTATE)===Y.ROTATE||(this._state&Y.TOUCH_ROTATE)===Y.TOUCH_ROTATE||(this._state&Y.TOUCH_DOLLY_ROTATE)===Y.TOUCH_DOLLY_ROTATE||(this._state&Y.TOUCH_ZOOM_ROTATE)===Y.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&Y.TRUCK)===Y.TRUCK||(this._state&Y.TOUCH_TRUCK)===Y.TOUCH_TRUCK||(this._state&Y.TOUCH_DOLLY_TRUCK)===Y.TOUCH_DOLLY_TRUCK||(this._state&Y.TOUCH_ZOOM_TRUCK)===Y.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&Y.DOLLY)===Y.DOLLY||(this._state&Y.TOUCH_DOLLY)===Y.TOUCH_DOLLY||(this._state&Y.TOUCH_DOLLY_TRUCK)===Y.TOUCH_DOLLY_TRUCK||(this._state&Y.TOUCH_DOLLY_OFFSET)===Y.TOUCH_DOLLY_OFFSET||(this._state&Y.TOUCH_DOLLY_ROTATE)===Y.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&Y.ZOOM)===Y.ZOOM||(this._state&Y.TOUCH_ZOOM)===Y.TOUCH_ZOOM||(this._state&Y.TOUCH_ZOOM_TRUCK)===Y.TOUCH_ZOOM_TRUCK||(this._state&Y.TOUCH_ZOOM_OFFSET)===Y.TOUCH_ZOOM_OFFSET||(this._state&Y.TOUCH_ZOOM_ROTATE)===Y.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&Y.OFFSET)===Y.OFFSET||(this._state&Y.TOUCH_OFFSET)===Y.TOUCH_OFFSET||(this._state&Y.TOUCH_DOLLY_OFFSET)===Y.TOUCH_DOLLY_OFFSET||(this._state&Y.TOUCH_ZOOM_OFFSET)===Y.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},g=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Vc(this._activePointers,Et);const b=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,T=b?-b.deltaX:r.x-Et.x,E=b?-b.deltaY:r.y-Et.y;if(r.copy(Et),((this._state&Y.ROTATE)===Y.ROTATE||(this._state&Y.TOUCH_ROTATE)===Y.TOUCH_ROTATE||(this._state&Y.TOUCH_DOLLY_ROTATE)===Y.TOUCH_DOLLY_ROTATE||(this._state&Y.TOUCH_ZOOM_ROTATE)===Y.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(T,E),this._isUserControllingRotate=!0),(this._state&Y.DOLLY)===Y.DOLLY||(this._state&Y.ZOOM)===Y.ZOOM){const w=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,S=this.dollyDragInverted?-1:1;(this._state&Y.DOLLY)===Y.DOLLY?(this._dollyInternal(S*E*Uo,w,C),this._isUserControllingDolly=!0):(this._zoomInternal(S*E*Uo,w,C),this._isUserControllingZoom=!0)}if((this._state&Y.TOUCH_DOLLY)===Y.TOUCH_DOLLY||(this._state&Y.TOUCH_ZOOM)===Y.TOUCH_ZOOM||(this._state&Y.TOUCH_DOLLY_TRUCK)===Y.TOUCH_DOLLY_TRUCK||(this._state&Y.TOUCH_ZOOM_TRUCK)===Y.TOUCH_ZOOM_TRUCK||(this._state&Y.TOUCH_DOLLY_OFFSET)===Y.TOUCH_DOLLY_OFFSET||(this._state&Y.TOUCH_ZOOM_OFFSET)===Y.TOUCH_ZOOM_OFFSET||(this._state&Y.TOUCH_DOLLY_ROTATE)===Y.TOUCH_DOLLY_ROTATE||(this._state&Y.TOUCH_ZOOM_ROTATE)===Y.TOUCH_ZOOM_ROTATE){const w=Et.x-this._activePointers[1].clientX,C=Et.y-this._activePointers[1].clientY,S=Math.sqrt(w*w+C*C),R=i.y-S;i.set(0,S);const O=this.dollyToCursor?(r.x-this._elementRect.x)/this._elementRect.width*2-1:0,L=this.dollyToCursor?(r.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&Y.TOUCH_DOLLY)===Y.TOUCH_DOLLY||(this._state&Y.TOUCH_DOLLY_ROTATE)===Y.TOUCH_DOLLY_ROTATE||(this._state&Y.TOUCH_DOLLY_TRUCK)===Y.TOUCH_DOLLY_TRUCK||(this._state&Y.TOUCH_DOLLY_OFFSET)===Y.TOUCH_DOLLY_OFFSET?(this._dollyInternal(R*Uo,O,L),this._isUserControllingDolly=!0):(this._zoomInternal(R*Uo,O,L),this._isUserControllingZoom=!0)}((this._state&Y.TRUCK)===Y.TRUCK||(this._state&Y.TOUCH_TRUCK)===Y.TOUCH_TRUCK||(this._state&Y.TOUCH_DOLLY_TRUCK)===Y.TOUCH_DOLLY_TRUCK||(this._state&Y.TOUCH_ZOOM_TRUCK)===Y.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(T,E,!1),this._isUserControllingTruck=!0),((this._state&Y.OFFSET)===Y.OFFSET||(this._state&Y.TOUCH_OFFSET)===Y.TOUCH_OFFSET||(this._state&Y.TOUCH_DOLLY_OFFSET)===Y.TOUCH_DOLLY_OFFSET||(this._state&Y.TOUCH_ZOOM_OFFSET)===Y.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(T,E,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},_=()=>{Vc(this._activePointers,Et),r.copy(Et),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",x),this._domElement.ownerDocument.addEventListener("pointerlockerror",k),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),p())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",x),this._domElement.ownerDocument.removeEventListener("pointerlockerror",k))};const x=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},k=()=>{this.unlockPointer()};this._addAllEventListeners=v=>{this._domElement=v,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),v1&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",f,{passive:!1}),this._domElement.addEventListener("contextmenu",m)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",f,{passive:!1}),this._domElement.removeEventListener("contextmenu",m),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",x),this._domElement.ownerDocument.removeEventListener("pointerlockerror",k))},this.cancel=()=>{this._state!==Y.NONE&&(this._state=Y.NONE,this._activePointers.length=0,_())},t&&this.connect(t),this.update(0)}get camera(){return this._camera}set camera(e){this._camera=e,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._domElement&&(e?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(e){this._spherical.radius===e&&this._sphericalEnd.radius===e||(this._spherical.radius=e,this._sphericalEnd.radius=e,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(e){this._spherical.theta===e&&this._sphericalEnd.theta===e||(this._spherical.theta=e,this._sphericalEnd.theta=e,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(e){this._spherical.phi===e&&this._sphericalEnd.phi===e||(this._spherical.phi=e,this._sphericalEnd.phi=e,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(e){this._boundaryEnclosesCamera=e,this._needsUpdate=!0}set interactiveArea(e){this._interactiveArea.width=sn(e.width,0,1),this._interactiveArea.height=sn(e.height,0,1),this._interactiveArea.x=sn(e.x,0,1-this._interactiveArea.width),this._interactiveArea.y=sn(e.y,0,1-this._interactiveArea.height)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}rotate(e,t,s=!1){return this.rotateTo(this._sphericalEnd.theta+e,this._sphericalEnd.phi+t,s)}rotateAzimuthTo(e,t=!1){return this.rotateTo(e,this._sphericalEnd.phi,t)}rotatePolarTo(e,t=!1){return this.rotateTo(this._sphericalEnd.theta,e,t)}rotateTo(e,t,s=!1){this._isUserControllingRotate=!1;const r=sn(e,this.minAzimuthAngle,this.maxAzimuthAngle),i=sn(t,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||Te(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Te(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(e,t=!1){return this.dollyTo(this._sphericalEnd.radius-e,t)}dollyTo(e,t=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=dr.NONE,this._changedDolly=0,this._dollyToNoClamp(sn(e,this.minDistance,this.maxDistance),t)}_dollyToNoClamp(e,t=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=Te(o,this._spherical.radius);if(!(s>e)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(e,o)}else this._sphericalEnd.radius=e;this._needsUpdate=!0,t||(this._spherical.radius=this._sphericalEnd.radius);const i=!t||Te(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}dollyInFixed(e,t=!1){this._targetEnd.add(this._getCameraDirection(_i).multiplyScalar(e)),t||this._target.copy(this._targetEnd);const s=!t||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(e,t=!1){return this.zoomTo(this._zoomEnd+e,t)}zoomTo(e,t=!1){this._isUserControllingZoom=!1,this._zoomEnd=sn(e,this.minZoom,this.maxZoom),this._needsUpdate=!0,t||(this._zoom=this._zoomEnd);const s=!t||Te(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(e,t,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(e,t,s)}truck(e,t,s=!1){this._camera.updateMatrix(),yn.setFromMatrixColumn(this._camera.matrix,0),vn.setFromMatrixColumn(this._camera.matrix,1),yn.multiplyScalar(e),vn.multiplyScalar(-t);const r=_e.copy(yn).add(vn),i=xe.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,s)}forward(e,t=!1){_e.setFromMatrixColumn(this._camera.matrix,0),_e.crossVectors(this._camera.up,_e),_e.multiplyScalar(e);const s=xe.copy(this._targetEnd).add(_e);return this.moveTo(s.x,s.y,s.z,t)}elevate(e,t=!1){return _e.copy(this._camera.up).multiplyScalar(e),this.moveTo(this._targetEnd.x+_e.x,this._targetEnd.y+_e.y,this._targetEnd.z+_e.z,t)}moveTo(e,t,s,r=!1){this._isUserControllingTruck=!1;const i=_e.set(e,t,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(e,t,s,r=!1){const a=_e.set(e,t,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,r)}fitToBox(e,t,{cover:s=!1,paddingLeft:r=0,paddingRight:i=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=e.isBox3?mr.copy(e):mr.setFromObject(e);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=Kh(this._sphericalEnd.theta,Zh),h=Kh(this._sphericalEnd.phi,Zh);c.push(this.rotateTo(u,h,t));const d=_e.setFromSpherical(this._sphericalEnd).normalize(),f=sd.setFromUnitVectors(d,Uc),m=Te(Math.abs(d.y),1);m&&f.multiply(Wc.setFromAxisAngle(Bo,u)),f.multiply(this._yAxisUpSpaceInverse);const p=nd.makeEmpty();xe.copy(l.min).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.min).setX(l.max.x).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.min).setY(l.max.y).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).setZ(l.min.z).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.min).setZ(l.max.z).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).setY(l.min.y).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).setX(l.min.x).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).applyQuaternion(f),p.expandByPoint(xe),p.min.x-=r,p.min.y-=o,p.max.x+=i,p.max.y+=a,f.setFromUnitVectors(Uc,d),m&&f.premultiply(Wc.invert()),f.premultiply(this._yAxisUpSpace);const g=p.getSize(_e),_=p.getCenter(xe).applyQuaternion(f);if(Ms(this._camera)){const x=this.getDistanceToFitBox(g.x,g.y,g.z,s);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.dollyTo(x,t)),c.push(this.setFocalOffset(0,0,0,t))}else if(as(this._camera)){const x=this._camera,k=x.right-x.left,v=x.top-x.bottom,b=s?Math.max(k/g.x,v/g.y):Math.min(k/g.x,v/g.y);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.zoomTo(b,t)),c.push(this.setFocalOffset(0,0,0,t))}return Promise.all(c)}fitToSphere(e,t){const s=[],i=e instanceof he.Sphere?Bc.copy(e):yl.createBoundingSphere(e,Bc);if(s.push(this.moveTo(i.center.x,i.center.y,i.center.z,t)),Ms(this._camera)){const o=this.getDistanceToFitSphere(i.radius);s.push(this.dollyTo(o,t))}else if(as(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*i.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,t))}return s.push(this.setFocalOffset(0,0,0,t)),Promise.all(s)}setLookAt(e,t,s,r,i,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=dr.NONE,this._changedDolly=0;const c=xe.set(r,i,o),l=_e.set(e,t,s);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold)&&Te(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Te(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Te(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(e,t,s,r,i,o,a,c,l,u,h,d,f,m=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=dr.NONE,this._changedDolly=0;const p=_e.set(r,i,o),g=xe.set(e,t,s);qt.setFromVector3(g.sub(p).applyQuaternion(this._yAxisUpSpace));const _=pr.set(u,h,d),x=xe.set(a,c,l);yi.setFromVector3(x.sub(_).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(p.lerp(_,f));const k=yi.theta-qt.theta,v=yi.phi-qt.phi,b=yi.radius-qt.radius;this._sphericalEnd.set(qt.radius+b*f,qt.phi+v*f,qt.theta+k*f),this.normalizeRotations(),this._needsUpdate=!0,m||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const T=!m||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold)&&Te(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Te(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Te(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(T)}setPosition(e,t,s,r=!1){return this.setLookAt(e,t,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,r)}setTarget(e,t,s,r=!1){const i=this.getPosition(_e),o=this.setLookAt(i.x,i.y,i.z,e,t,s,r);return this._sphericalEnd.phi=sn(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(e,t,s,r=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(e,t,s),this._needsUpdate=!0,r||this._focalOffset.copy(this._focalOffsetEnd);const i=!r||Te(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&&Te(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&&Te(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(i)}setOrbitPoint(e,t,s){this._camera.updateMatrixWorld(),yn.setFromMatrixColumn(this._camera.matrixWorldInverse,0),vn.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Is.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const r=_e.set(e,t,s),i=r.distanceTo(this._camera.position),o=r.sub(this._camera.position);yn.multiplyScalar(o.x),vn.multiplyScalar(o.y),Is.multiplyScalar(o.z),_e.copy(yn).add(vn).add(Is),_e.z=_e.z+i,this.dollyTo(i,!1),this.setFocalOffset(-_e.x,_e.y,-_e.z,!1),this.moveTo(e,t,s,!1)}setBoundary(e){if(!e){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(e),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(e,t,s,r){if(e===null){this._viewport=null;return}this._viewport=this._viewport||new he.Vector4,typeof e=="number"?this._viewport.set(e,t,s,r):this._viewport.copy(e)}getDistanceToFitBox(e,t,s,r=!1){if(zc(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const i=e/t,o=this._camera.getEffectiveFOV()*pi,a=this._camera.aspect;return((r?i>a:it.pointerId===e)}_findPointerByMouseButton(e){return this._activePointers.find(t=>t.mouseButton===e)}_disposePointer(e){this._activePointers.splice(this._activePointers.indexOf(e),1)}_encloseToBoundary(e,t,s){const r=t.lengthSq();if(r===0)return e;const i=xe.copy(t).add(e),a=this._boundary.clampPoint(i,pr).sub(i),c=a.lengthSq();if(c===0)return e.add(t);if(c===r)return e;if(s===0)return e.add(t).add(a);{const l=1+s*c/t.dot(a);return e.add(xe.copy(t).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ms(this._camera)){const e=this._camera,t=e.near,s=e.getEffectiveFOV()*pi,r=Math.tan(s*.5)*t,i=r*e.aspect;this._nearPlaneCorners[0].set(-i,-r,0),this._nearPlaneCorners[1].set(i,-r,0),this._nearPlaneCorners[2].set(i,r,0),this._nearPlaneCorners[3].set(-i,r,0)}else if(as(this._camera)){const e=this._camera,t=1/e.zoom,s=e.left*t,r=e.right*t,i=e.top*t,o=e.bottom*t;this._nearPlaneCorners[0].set(s,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let e=1/0;if(!(this.colliderMeshes.length>=1)||zc(this._camera,"_collisionTest"))return e;const s=this._getTargetDirection(_i);qc.lookAt(Jh,s,this._camera.up);for(let r=0;r<4;r++){const i=xe.copy(this._nearPlaneCorners[r]);i.applyMatrix4(qc);const o=pr.addVectors(this._target,i);Wo.set(o,s),Wo.far=this._spherical.radius+1;const a=Wo.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),t()};this.addEventListener("rest",s)}))}_addAllEventListeners(e){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(e){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(e){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(e,t=new he.Sphere){const s=t,r=s.center;mr.makeEmpty(),e.traverseVisible(o=>{o.isMesh&&mr.expandByObject(o)}),mr.getCenter(r);let i=0;return e.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{y.useMemo(()=>{Hc.install({THREE:ly}),fu({CameraControlsImpl:Hc})},[]);const{camera:t,domElement:s,makeDefault:r,onStart:i,onEnd:o,onChange:a,regress:c,...l}=n,u=We(b=>b.camera),h=We(b=>b.gl),d=We(b=>b.invalidate),f=We(b=>b.events),m=We(b=>b.setEvents),p=We(b=>b.set),g=We(b=>b.get),_=We(b=>b.performance),x=t||u,k=s||f.connected||h.domElement,v=y.useMemo(()=>new Hc(x),[x]);return Nt((b,T)=>{v.enabled&&v.update(T)},-1),y.useEffect(()=>(v.connect(k),()=>void v.disconnect()),[k,v]),y.useEffect(()=>{const b=w=>{d(),c&&_.regress(),a&&a(w)},T=w=>{i&&i(w)},E=w=>{o&&o(w)};return v.addEventListener("update",b),v.addEventListener("controlstart",T),v.addEventListener("controlend",E),()=>{v.removeEventListener("update",b),v.removeEventListener("controlstart",T),v.removeEventListener("controlend",E)}},[v,i,o,d,m,c,a]),y.useEffect(()=>{if(r){const b=g().controls;return p({controls:v}),()=>p({controls:b})}},[r,v]),y.createElement("primitive",Ee({ref:e,object:v},l))});ke.func.isRequired,ke.arrayOf(ke.oneOfType([ke.element,ke.func])).isRequired;const rd=new yo,id=new yo,qo=[],vi=new up;class x1 extends hy{constructor(){super(),this.color=new ic("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var e;return(e=this.instance.current)==null?void 0:e.geometry}raycast(e,t){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;vi.geometry=s.geometry;const r=s.matrixWorld,i=s.userData.instances.indexOf(this.instanceKey);if(!(i===-1||i>s.count)){s.getMatrixAt(i,rd),id.multiplyMatrices(r,rd),vi.matrixWorld=id,s.material instanceof dy?vi.material.side=s.material.side:vi.material.side=s.material[0].side,vi.raycast(e,qo);for(let o=0,a=qo.length;o{y.useMemo(()=>fu({PositionMesh:x1}),[]);const r=y.useRef(),{subscribe:i,getParent:o}=y.useContext(n||wp);return y.useLayoutEffect(()=>i(r),[]),y.createElement("positionMesh",Ee({instance:o(),instanceKey:r,ref:nc([s,r])},t),e)}),k1=y.forwardRef(({children:n,range:e,limit:t=1e3,frames:s=1/0,...r},i)=>{const[{context:o,instance:a}]=y.useState(()=>{const g=y.createContext(null);return{context:g,instance:y.forwardRef((_,x)=>y.createElement(kp,Ee({context:g},_,{ref:x})))}}),c=y.useRef(null),[l,u]=y.useState([]),[[h,d]]=y.useState(()=>{const g=new Float32Array(t*16);for(let _=0;_1))]});y.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let f=0,m=0;Nt(()=>{if(s===1/0||f({getParent:()=>c,subscribe:g=>(u(_=>[..._,g]),()=>u(_=>_.filter(x=>x.current!==g.current)))}),[]);return y.createElement("instancedMesh",Ee({userData:{instances:l},matrixAutoUpdate:!1,ref:nc([i,c]),args:[null,null,0],raycast:()=>null},r),y.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:$h}),y.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:$h}),typeof n=="function"?y.createElement(o.Provider,{value:p},n(a)):y.createElement(wp.Provider,{value:p},n))}),Tp=y.createContext(null),T1=y.forwardRef((n,e)=>{y.useMemo(()=>fu({SegmentObject:E1}),[]);const{limit:t=1e3,lineWidth:s=1,children:r,...i}=n,[o,a]=y.useState([]),[c]=y.useState(()=>new ip),[l]=y.useState(()=>new E_),[u]=y.useState(()=>new C_),[h]=y.useState(()=>new we(512,512)),[d]=y.useState(()=>Array(t*6).fill(0)),[f]=y.useState(()=>Array(t*6).fill(0)),m=y.useMemo(()=>({subscribe:p=>(a(g=>[...g,p]),()=>a(g=>g.filter(_=>_.current!==p.current)))}),[]);return Nt(()=>{for(let g=0;gn instanceof ce?n:new ce(...typeof n=="number"?[n,n,n]:n),C1=y.forwardRef(({color:n,start:e,end:t},s)=>{const r=y.useContext(Tp);if(!r)throw"Segment must used inside Segments component.";const i=y.useRef(null);return y.useLayoutEffect(()=>r.subscribe(i),[]),y.createElement("segmentObject",{ref:nc([i,s]),color:n,start:hd(e),end:hd(t)})});function S1({all:n,scene:e,camera:t}){const s=We(({gl:o})=>o),r=We(({camera:o})=>o),i=We(({scene:o})=>o);return y.useLayoutEffect(()=>{const o=[];n&&(e||i).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(e||i,t||r);const a=new fy(128);new py(.01,1e5,a).update(s,e||i),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function O1({pixelated:n}){const e=We(o=>o.gl),t=We(o=>o.internal.active),s=We(o=>o.performance.current),r=We(o=>o.viewport.initialDpr),i=We(o=>o.setDpr);return y.useEffect(()=>{const o=e.domElement;return()=>{t&&i(r),n&&o&&(o.style.imageRendering="auto")}},[]),y.useEffect(()=>{i(s*r),n&&e.domElement&&(e.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function A1(){const n=We(s=>s.get),e=We(s=>s.setEvents),t=We(s=>s.performance.current);return y.useEffect(()=>{const s=n().events.enabled;return()=>e({enabled:s})},[]),y.useEffect(()=>e({enabled:t===1}),[t]),null}const P1=y.createContext(null);function R1({children:n,enabled:e=!0}){const[t,s]=y.useState([]),r=y.useMemo(()=>({selected:t,select:s,enabled:e}),[t,s,e]);return V.jsx(P1.Provider,{value:r,children:n})}function D1(n,e){typeof n=="function"?n(e):n!=null&&(n.current=e)}function Ep(...n){return e=>n.forEach(t=>D1(t,e))}function Qr(...n){return y.useCallback(Ep(...n),n)}const Cp=y.forwardRef((n,e)=>{const{children:t,...s}=n,r=y.Children.toArray(t),i=r.find(M1);if(i){const o=i.props.children,a=r.map(c=>c===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:c);return y.createElement(vl,Ee({},s,{ref:e}),y.isValidElement(o)?y.cloneElement(o,void 0,a):null)}return y.createElement(vl,Ee({},s,{ref:e}),t)});Cp.displayName="Slot";const vl=y.forwardRef((n,e)=>{const{children:t,...s}=n;return y.isValidElement(t)?y.cloneElement(t,{...I1(s,t.props),ref:e?Ep(e,t.ref):t.ref}):y.Children.count(t)>1?y.Children.only(null):null});vl.displayName="SlotClone";const Sp=({children:n})=>y.createElement(y.Fragment,null,n);function M1(n){return y.isValidElement(n)&&n.type===Sp}function I1(n,e){const t={...e};for(const s in e){const r=n[s],i=e[s];/^on[A-Z]/.test(s)?r&&i?t[s]=(...a)=>{i(...a),r(...a)}:r&&(t[s]=r):s==="style"?t[s]={...r,...i}:s==="className"&&(t[s]=[r,i].filter(Boolean).join(" "))}return{...n,...t}}const N1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rr=N1.reduce((n,e)=>{const t=y.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?Cp:e;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(a,Ee({},o,{ref:r}))});return t.displayName=`Primitive.${e}`,{...n,[e]:t}},{});function $1(n,e){n&&hu.flushSync(()=>n.dispatchEvent(e))}const F1=y.forwardRef((n,e)=>{var t;const{container:s=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=n;return s?Jf.createPortal(y.createElement(rr.div,Ee({},r,{ref:e})),s):null}),L1=F1;var dd=Object.prototype.hasOwnProperty;function Vi(n,e){var t,s;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((s=n.length)===e.length)for(;s--&&Vi(n[s],e[s]););return s===-1}if(!t||typeof n=="object"){s=0;for(t in n)if(dd.call(n,t)&&++s&&!dd.call(e,t)||!(t in e)||!Vi(n[t],e[t]))return!1;return Object.keys(e).length===s}}return n!==n&&e!==e}function bo(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s0;)o[a]=arguments[a+4];n.call(this,o),n.captureStackTrace&&n.captureStackTrace(this,e),this.rule=t,this.value=s,this.cause=r,this.target=i}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e}(Error),Cn=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=[]),this.chain=e,this.nextRuleModifiers=t};Cn.prototype._applyRule=function(e,t){var s=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return s.chain.push(new lc(t,e.apply(s,r),r,s.nextRuleModifiers)),s.nextRuleModifiers=[],s}};Cn.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new j1(t,e.simple,e.async)),this};Cn.prototype._clone=function(){return new Cn(this.chain.slice(),this.nextRuleModifiers.slice())};Cn.prototype.test=function(e){return this.chain.every(function(t){return t._test(e)})};Cn.prototype.testAll=function(e){var t=[];return this.chain.forEach(function(s){try{s._check(e)}catch(r){t.push(new ku(s,e,r))}}),t};Cn.prototype.check=function(e){this.chain.forEach(function(t){try{t._check(e)}catch(s){throw new ku(t,e,s)}})};Cn.prototype.testAsync=function(e){var t=this;return new Promise(function(s,r){Pp(e,t.chain.slice(),s,r)})};function Pp(n,e,t,s){if(e.length){var r=e.shift();r._testAsync(n).then(function(){Pp(n,e,t,s)},function(i){s(new ku(r,n,i))})}else t(n)}var fd=function(n,e){return e&&typeof n=="string"&&n.trim().length===0?!0:n==null};function V1(n,e){return e===void 0&&(e=!1),{simple:function(t){return fd(t,e)||n.check(t)===void 0},async:function(t){return fd(t,e)||n.testAsync(t)}}}function St(){return typeof Proxy<"u"?Rp(new Cn):bl(new Cn)}var zi={};St.extend=function(n){Object.assign(zi,n)};St.clearCustomRules=function(){zi={}};function Rp(n){return new Proxy(n,{get:function(t,s){if(s in t)return t[s];var r=Rp(n._clone());if(s in ya)return r._applyModifier(ya[s],s);if(s in zi)return r._applyRule(zi[s],s);if(s in xl)return r._applyRule(xl[s],s)}})}function bl(n){var e=function(r,i){return Object.keys(r).forEach(function(o){i[o]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=bl(i._clone()),u=l._applyRule(r[o],o).apply(void 0,a);return u}}),i},t=e(xl,n),s=e(zi,t);return Object.keys(ya).forEach(function(r){Object.defineProperty(s,r,{get:function(){var i=bl(s._clone());return i._applyModifier(ya[r],r)}})}),s}var ya={not:{simple:function(n){return function(e){return!n(e)}},async:function(n){return function(e){return Promise.resolve(n(e)).then(function(t){return!t}).catch(function(){return!0})}}},some:{simple:function(n){return function(e){return Ho(e).some(function(t){try{return n(t)}catch{return!1}})}},async:function(n){return function(e){return Promise.all(Ho(e).map(function(t){try{return n(t).catch(function(){return!1})}catch{return!1}})).then(function(t){return t.some(Boolean)})}}},every:{simple:function(n){return function(e){return e!==!1&&Ho(e).every(n)}},async:function(n){return function(e){return Promise.all(Ho(e).map(n)).then(function(t){return t.every(Boolean)})}}},strict:{simple:function(n,e){return function(t){return pd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&n(t):n(t)}},async:function(n,e){return function(t){return Promise.resolve(n(t)).then(function(s){return pd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&s:s}).catch(function(){return!1})}}}};function pd(n){return n&&n.name==="schema"&&n.args.length>0&&typeof n.args[0]=="object"}function Ho(n){return typeof n=="string"?n.split(""):n}var xl={equal:function(n){return function(e){return e==n}},exact:function(n){return function(e){return e===n}},number:function(n){return n===void 0&&(n=!0),function(e){return typeof e=="number"&&(n||isFinite(e))}},integer:function(){return function(n){var e=Number.isInteger||z1;return e(n)}},numeric:function(){return function(n){return!isNaN(parseFloat(n))&&isFinite(n)}},string:function(){return gr("string")},boolean:function(){return gr("boolean")},undefined:function(){return gr("undefined")},null:function(){return gr("null")},array:function(){return gr("array")},object:function(){return gr("object")},instanceOf:function(n){return function(e){return e instanceof n}},pattern:function(n){return function(e){return n.test(e)}},lowercase:function(){return function(n){return typeof n=="boolean"||n===n.toLowerCase()&&n.trim()!==""}},uppercase:function(){return function(n){return n===n.toUpperCase()&&n.trim()!==""}},vowel:function(){return function(n){return/^[aeiou]+$/i.test(n)}},consonant:function(){return function(n){return/^(?=[^aeiou])([a-z]+)$/i.test(n)}},first:function(n){return function(e){return e[0]==n}},last:function(n){return function(e){return e[e.length-1]==n}},empty:function(){return function(n){return n.length===0}},length:function(n,e){return function(t){return t.length>=n&&t.length<=(e||n)}},minLength:function(n){return function(e){return e.length>=n}},maxLength:function(n){return function(e){return e.length<=n}},negative:function(){return function(n){return n<0}},positive:function(){return function(n){return n>=0}},between:function(n,e){return function(t){return t>=n&&t<=e}},range:function(n,e){return function(t){return t>=n&&t<=e}},lessThan:function(n){return function(e){return en}},greaterThanOrEqual:function(n){return function(e){return e>=n}},even:function(){return function(n){return n%2===0}},odd:function(){return function(n){return n%2!==0}},includes:function(n){return function(e){return~e.indexOf(n)}},schema:function(n){return U1(n)},passesAnyOf:function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return function(t){return n.some(function(s){return s.test(t)})}},optional:V1};function gr(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function z1(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function U1(n){return{simple:function(e){var t=[];if(Object.keys(n).forEach(function(s){var r=n[s];try{r.check((e||{})[s])}catch(i){i.target=s,t.push(i)}}),t.length>0)throw t;return!0},async:function(e){var t=[],s=Object.keys(n).map(function(r){var i=n[r];return i.testAsync((e||{})[r]).catch(function(o){o.target=r,t.push(o)})});return Promise.all(s).then(function(){if(t.length>0)throw t;return!0})}}}function jn(n,e,{checkForDefaultPrevented:t=!0}={}){return function(r){if(n==null||n(r),t===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Dp(n,e=[]){let t=[];function s(i,o){const a=y.createContext(o),c=t.length;t=[...t,o];function l(h){const{scope:d,children:f,...m}=h,p=(d==null?void 0:d[n][c])||a,g=y.useMemo(()=>m,Object.values(m));return y.createElement(p.Provider,{value:g},f)}function u(h,d){const f=(d==null?void 0:d[n][c])||a,m=y.useContext(f);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const r=()=>{const i=t.map(o=>y.createContext(o));return function(a){const c=(a==null?void 0:a[n])||i;return y.useMemo(()=>({[`__scope${n}`]:{...a,[n]:c}}),[a,c])}};return r.scopeName=n,[s,B1(r,...e)]}function B1(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const s=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const h=c(i)[`__scope${l}`];return{...a,...h}},{});return y.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function Jr(n){const e=y.useRef(n);return y.useEffect(()=>{e.current=n}),y.useMemo(()=>(...t)=>{var s;return(s=e.current)===null||s===void 0?void 0:s.call(e,...t)},[])}function W1(n,e=globalThis==null?void 0:globalThis.document){const t=Jr(n);y.useEffect(()=>{const s=r=>{r.key==="Escape"&&t(r)};return e.addEventListener("keydown",s),()=>e.removeEventListener("keydown",s)},[t,e])}const wl="dismissableLayer.update",q1="dismissableLayer.pointerDownOutside",H1="dismissableLayer.focusOutside";let md;const G1=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Y1=y.forwardRef((n,e)=>{var t;const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:c,...l}=n,u=y.useContext(G1),[h,d]=y.useState(null),f=(t=h==null?void 0:h.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,m]=y.useState({}),p=Qr(e,w=>d(w)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(_),k=h?g.indexOf(h):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,b=k>=x,T=X1(w=>{const C=w.target,S=[...u.branches].some(R=>R.contains(C));!b||S||(i==null||i(w),a==null||a(w),w.defaultPrevented||c==null||c())},f),E=Z1(w=>{const C=w.target;[...u.branches].some(R=>R.contains(C))||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},f);return W1(w=>{k===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},f),y.useEffect(()=>{if(h)return s&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(md=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),gd(),()=>{s&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=md)}},[h,f,s,u]),y.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),gd())},[h,u]),y.useEffect(()=>{const w=()=>m({});return document.addEventListener(wl,w),()=>document.removeEventListener(wl,w)},[]),y.createElement(rr.div,Ee({},l,{ref:p,style:{pointerEvents:v?b?"auto":"none":void 0,...n.style},onFocusCapture:jn(n.onFocusCapture,E.onFocusCapture),onBlurCapture:jn(n.onBlurCapture,E.onBlurCapture),onPointerDownCapture:jn(n.onPointerDownCapture,T.onPointerDownCapture)}))});function X1(n,e=globalThis==null?void 0:globalThis.document){const t=Jr(n),s=y.useRef(!1),r=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){Mp(q1,t,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=l,e.addEventListener("click",r.current,{once:!0})):l()}else e.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,t]),{onPointerDownCapture:()=>s.current=!0}}function Z1(n,e=globalThis==null?void 0:globalThis.document){const t=Jr(n),s=y.useRef(!1);return y.useEffect(()=>{const r=i=>{i.target&&!s.current&&Mp(H1,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,t]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function gd(){const n=new CustomEvent(wl);document.dispatchEvent(n)}function Mp(n,e,t,{discrete:s}){const r=t.originalEvent.target,i=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&r.addEventListener(n,e,{once:!0}),s?$1(r,i):r.dispatchEvent(i)}const $r=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},K1=p_["useId".toString()]||(()=>{});let Q1=0;function J1(n){const[e,t]=y.useState(K1());return $r(()=>{n||t(s=>s??String(Q1++))},[n]),n||(e?`radix-${e}`:"")}const ev=y.forwardRef((n,e)=>{const{children:t,width:s=10,height:r=5,...i}=n;return y.createElement(rr.svg,Ee({},i,{ref:e,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:y.createElement("polygon",{points:"0,0 30,0 15,10"}))}),tv=ev;function nv(n){const[e,t]=y.useState(void 0);return $r(()=>{if(n){t({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=n.offsetWidth,a=n.offsetHeight;t({width:o,height:a})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else t(void 0)},[n]),e}const Ip="Popper",[Np,$p]=Dp(Ip),[sv,Fp]=Np(Ip),rv=n=>{const{__scopePopper:e,children:t}=n,[s,r]=y.useState(null);return y.createElement(sv,{scope:e,anchor:s,onAnchorChange:r},t)},iv="PopperAnchor",ov=y.forwardRef((n,e)=>{const{__scopePopper:t,virtualRef:s,...r}=n,i=Fp(iv,t),o=y.useRef(null),a=Qr(e,o);return y.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:y.createElement(rr.div,Ee({},r,{ref:a}))}),Lp="PopperContent",[av,cv]=Np(Lp),lv=y.forwardRef((n,e)=>{var t,s,r,i,o,a,c,l;const{__scopePopper:u,side:h="bottom",sideOffset:d=0,align:f="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:_=[],collisionPadding:x=0,sticky:k="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:T,...E}=n,w=Fp(Lp,u),[C,S]=y.useState(null),R=Qr(e,H=>S(H)),[O,L]=y.useState(null),j=nv(O),W=(t=j==null?void 0:j.width)!==null&&t!==void 0?t:0,B=(s=j==null?void 0:j.height)!==null&&s!==void 0?s:0,z=h+(f!=="center"?"-"+f:""),U=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},X=Array.isArray(_)?_:[_],K=X.length>0,te={padding:U,boundary:X.filter(fv),altBoundary:K},{refs:$,floatingStyles:F,placement:A,isPositioned:I,middlewareData:G}=r1({strategy:"fixed",placement:z,whileElementsMounted:(...H)=>t1(...H,{animationFrame:b==="always"}),elements:{reference:w.anchor},middleware:[Iy({mainAxis:d+B,alignmentAxis:m}),g&&Ny({mainAxis:!0,crossAxis:!1,limiter:k==="partial"?$y():void 0,...te}),g&&Ry({...te}),Fy({...te,apply:({elements:H,rects:D,availableWidth:P,availableHeight:Q})=>{const{width:se,height:le}=D.reference,ye=H.floating.style;ye.setProperty("--radix-popper-available-width",`${P}px`),ye.setProperty("--radix-popper-available-height",`${Q}px`),ye.setProperty("--radix-popper-anchor-width",`${se}px`),ye.setProperty("--radix-popper-anchor-height",`${le}px`)}}),O&&s1({element:O,padding:p}),pv({arrowWidth:W,arrowHeight:B}),v&&Dy({strategy:"referenceHidden",...te})]}),[N,q]=jp(A),oe=Jr(T);$r(()=>{I&&(oe==null||oe())},[I,oe]);const re=(r=G.arrow)===null||r===void 0?void 0:r.x,ie=(i=G.arrow)===null||i===void 0?void 0:i.y,ne=((o=G.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[ge,ee]=y.useState();return $r(()=>{C&&ee(window.getComputedStyle(C).zIndex)},[C]),y.createElement("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:I?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(a=G.transformOrigin)===null||a===void 0?void 0:a.x,(c=G.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:n.dir},y.createElement(av,{scope:u,placedSide:N,onArrowChange:L,arrowX:re,arrowY:ie,shouldHideArrow:ne},y.createElement(rr.div,Ee({"data-side":N,"data-align":q},E,{ref:R,style:{...E.style,animation:I?void 0:"none",opacity:(l=G.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),uv="PopperArrow",hv={top:"bottom",right:"left",bottom:"top",left:"right"},dv=y.forwardRef(function(e,t){const{__scopePopper:s,...r}=e,i=cv(uv,s),o=hv[i.placedSide];return y.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},y.createElement(tv,Ee({},r,{ref:t,style:{...r.style,display:"block"}})))});function fv(n){return n!==null}const pv=n=>({name:"transformOrigin",options:n,fn(e){var t,s,r,i,o;const{placement:a,rects:c,middlewareData:l}=e,h=((t=l.arrow)===null||t===void 0?void 0:t.centerOffset)!==0,d=h?0:n.arrowWidth,f=h?0:n.arrowHeight,[m,p]=jp(a),g={start:"0%",center:"50%",end:"100%"}[p],_=((s=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&s!==void 0?s:0)+d/2,x=((i=(o=l.arrow)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0)+f/2;let k="",v="";return m==="bottom"?(k=h?g:`${_}px`,v=`${-f}px`):m==="top"?(k=h?g:`${_}px`,v=`${c.floating.height+f}px`):m==="right"?(k=`${-f}px`,v=h?g:`${x}px`):m==="left"&&(k=`${c.floating.width+f}px`,v=h?g:`${x}px`),{data:{x:k,y:v}}}});function jp(n){const[e,t="center"]=n.split("-");return[e,t]}const mv=rv,gv=ov,_v=lv,yv=dv;function vv(n,e){return y.useReducer((t,s)=>{const r=e[t][s];return r??t},n)}const Vp=n=>{const{present:e,children:t}=n,s=bv(e),r=typeof t=="function"?t({present:s.isPresent}):y.Children.only(t),i=Qr(s.ref,r.ref);return typeof t=="function"||s.isPresent?y.cloneElement(r,{ref:i}):null};Vp.displayName="Presence";function bv(n){const[e,t]=y.useState(),s=y.useRef({}),r=y.useRef(n),i=y.useRef("none"),o=n?"mounted":"unmounted",[a,c]=vv(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=Go(s.current);i.current=a==="mounted"?l:"none"},[a]),$r(()=>{const l=s.current,u=r.current;if(u!==n){const d=i.current,f=Go(l);n?c("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=n}},[n,c]),$r(()=>{if(e){const l=h=>{const f=Go(s.current).includes(h.animationName);h.target===e&&f&&hu.flushSync(()=>c("ANIMATION_END"))},u=h=>{h.target===e&&(i.current=Go(s.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(l=>{l&&(s.current=getComputedStyle(l)),t(l)},[])}}function Go(n){return(n==null?void 0:n.animationName)||"none"}function xv({prop:n,defaultProp:e,onChange:t=()=>{}}){const[s,r]=wv({defaultProp:e,onChange:t}),i=n!==void 0,o=i?n:s,a=Jr(t),c=y.useCallback(l=>{if(i){const h=typeof l=="function"?l(n):l;h!==n&&a(h)}else r(l)},[i,n,r,a]);return[o,c]}function wv({defaultProp:n,onChange:e}){const t=y.useState(n),[s]=t,r=y.useRef(s),i=Jr(e);return y.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),t}const kv=y.forwardRef((n,e)=>y.createElement(rr.span,Ee({},n,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...n.style}}))),Tv=kv,[uc,ZD]=Dp("Tooltip",[$p]),hc=$p(),Ev="TooltipProvider",kl="tooltip.open",[KD,Tu]=uc(Ev),Eu="Tooltip",[Cv,dc]=uc(Eu),Sv=n=>{const{__scopeTooltip:e,children:t,open:s,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=n,c=Tu(Eu,n.__scopeTooltip),l=hc(e),[u,h]=y.useState(null),d=J1(),f=y.useRef(0),m=o??c.disableHoverableContent,p=a??c.delayDuration,g=y.useRef(!1),[_=!1,x]=xv({prop:s,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(kl))):c.onClose(),i==null||i(E)}}),k=y.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),v=y.useCallback(()=>{window.clearTimeout(f.current),g.current=!1,x(!0)},[x]),b=y.useCallback(()=>{window.clearTimeout(f.current),x(!1)},[x]),T=y.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,x(!0)},p)},[p,x]);return y.useEffect(()=>()=>window.clearTimeout(f.current),[]),y.createElement(mv,l,y.createElement(Cv,{scope:e,contentId:d,open:_,stateAttribute:k,trigger:u,onTriggerChange:h,onTriggerEnter:y.useCallback(()=>{c.isOpenDelayed?T():v()},[c.isOpenDelayed,T,v]),onTriggerLeave:y.useCallback(()=>{m?b():window.clearTimeout(f.current)},[b,m]),onOpen:v,onClose:b,disableHoverableContent:m},t))},_d="TooltipTrigger",Ov=y.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=dc(_d,t),i=Tu(_d,t),o=hc(t),a=y.useRef(null),c=Qr(e,a,r.onTriggerChange),l=y.useRef(!1),u=y.useRef(!1),h=y.useCallback(()=>l.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),y.createElement(gv,Ee({asChild:!0},o),y.createElement(rr.button,Ee({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},s,{ref:c,onPointerMove:jn(n.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:jn(n.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:jn(n.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:jn(n.onFocus,()=>{l.current||r.onOpen()}),onBlur:jn(n.onBlur,r.onClose),onClick:jn(n.onClick,r.onClose)})))}),Av="TooltipPortal",[QD,Pv]=uc(Av,{forceMount:void 0}),Ui="TooltipContent",Rv=y.forwardRef((n,e)=>{const t=Pv(Ui,n.__scopeTooltip),{forceMount:s=t.forceMount,side:r="top",...i}=n,o=dc(Ui,n.__scopeTooltip);return y.createElement(Vp,{present:s||o.open},o.disableHoverableContent?y.createElement(zp,Ee({side:r},i,{ref:e})):y.createElement(Dv,Ee({side:r},i,{ref:e})))}),Dv=y.forwardRef((n,e)=>{const t=dc(Ui,n.__scopeTooltip),s=Tu(Ui,n.__scopeTooltip),r=y.useRef(null),i=Qr(e,r),[o,a]=y.useState(null),{trigger:c,onClose:l}=t,u=r.current,{onPointerInTransitChange:h}=s,d=y.useCallback(()=>{a(null),h(!1)},[h]),f=y.useCallback((m,p)=>{const g=m.currentTarget,_={x:m.clientX,y:m.clientY},x=Fv(_,g.getBoundingClientRect()),k=Lv(_,x),v=jv(p.getBoundingClientRect()),b=zv([...k,...v]);a(b),h(!0)},[h]);return y.useEffect(()=>()=>d(),[d]),y.useEffect(()=>{if(c&&u){const m=g=>f(g,u),p=g=>f(g,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",p)}}},[c,u,f,d]),y.useEffect(()=>{if(o){const m=p=>{const g=p.target,_={x:p.clientX,y:p.clientY},x=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),k=!Vv(_,o);x?d():k&&(d(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,o,l,d]),y.createElement(zp,Ee({},n,{ref:i}))}),[Mv,Iv]=uc(Eu,{isInside:!1}),zp=y.forwardRef((n,e)=>{const{__scopeTooltip:t,children:s,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=n,c=dc(Ui,t),l=hc(t),{onClose:u}=c;return y.useEffect(()=>(document.addEventListener(kl,u),()=>document.removeEventListener(kl,u)),[u]),y.useEffect(()=>{if(c.trigger){const h=d=>{const f=d.target;f!=null&&f.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),y.createElement(Y1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u},y.createElement(_v,Ee({"data-state":c.stateAttribute},l,a,{ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),y.createElement(Sp,null,s),y.createElement(Mv,{scope:t,isInside:!0},y.createElement(Tv,{id:c.contentId,role:"tooltip"},r||s))))}),Nv="TooltipArrow",$v=y.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=hc(t);return Iv(Nv,t).isInside?null:y.createElement(yv,Ee({},r,s,{ref:e}))});function Fv(n,e){const t=Math.abs(e.top-n.y),s=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),i=Math.abs(e.left-n.x);switch(Math.min(t,s,r,i)){case i:return"left";case r:return"right";case t:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Lv(n,e,t=5){const s=[];switch(e){case"top":s.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":s.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":s.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":s.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return s}function jv(n){const{top:e,right:t,bottom:s,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:s},{x:r,y:s}]}function Vv(n,e){const{x:t,y:s}=n;let r=!1;for(let i=0,o=e.length-1;is!=u>s&&t<(l-a)*(s-c)/(u-c)+a&&(r=!r)}return r}function zv(n){const e=n.slice();return e.sort((t,s)=>t.xs.x?1:t.ys.y?1:0),Uv(e)}function Uv(n){if(n.length<=1)return n.slice();const e=[];for(let s=0;s=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let s=n.length-1;s>=0;s--){const r=n[s];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}const Bv=Sv,Wv=Ov,qv=Rv,Hv=$v;function Gv(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}function Pe(n,e){if(n==null)return{};var t=Gv(n,e),s,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}let Be;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(Be||(Be={}));const Yv={[Be.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[Be.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Be.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[Be.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[Be.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[Be.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[Be.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[Be.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[Be.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[Be.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[Be.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Up(n,e,...t){const[s,...r]=Yv[e](...t);console[n]("LEVA: "+s,...r)}const zn=Up.bind(null,"warn"),Xv=Up.bind(null,"log"),Zv=["value"],Kv=["schema"],Qv=["value"],Bp=[],Zs={};function yd(n){let{value:e}=n,t=Pe(n,Zv);for(let s of Bp){const r=s(e,t);if(r)return r}}function ts(n,e){let{schema:t}=e,s=Pe(e,Kv);if(n in Zs){zn(Be.ALREADY_REGISTERED_TYPE,n);return}Bp.push((r,i)=>t(r,i)&&n),Zs[n]=s}function Gc(n,e,t,s){const{normalize:r}=Zs[n];if(r)return r(e,t,s);if(typeof e!="object"||!("value"in e))return{value:e};const{value:i}=e,o=Pe(e,Qv);return{value:i,settings:o}}function Jv(n,e,t,s,r,i){const{sanitize:o}=Zs[n];return o?o(e,t,s,r,i):e}function vd(n,e,t){const{format:s}=Zs[n];return s?s(e,t):e}function eb(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function bd(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,s)}return t}function de(n){for(var e=1;en>t?t:n{if(n===""||typeof n=="number")return n;try{const e=cs(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},nb=Math.log(10);function xd(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10===0;)e/=10;const t=Math.floor(Math.log(e)/nb)+1,s=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,s-t);return Math.max(r,.001)}const va=(n,e,t)=>t===e?0:(bs(n,e,t)-e)/(t-e),ba=(n,e,t)=>n*(t-e)+e,sb=()=>"_"+Math.random().toString(36).substr(2,9),wd=/\(([0-9+\-*/^ .]+)\)/,kd=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Td=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Ed=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Cd=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Sd=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function cs(n){if(isNaN(Number(n)))if(wd.test(n)){const e=n.replace(wd,(t,s)=>String(cs(s)));return cs(e)}else if(kd.test(n)){const e=n.replace(kd,(t,s,r)=>String(Math.pow(Number(s),Number(r))));return cs(e)}else if(Td.test(n)){const e=n.replace(Td,(t,s,r)=>String(Number(s)*Number(r)));return cs(e)}else if(Ed.test(n)){const e=n.replace(Ed,(t,s,r)=>{if(r!=0)return String(Number(s)/Number(r));throw new Error("Division by zero")});return cs(e)}else if(Cd.test(n)){const e=n.replace(Cd,(t,s,r)=>String(Number(s)+Number(r)));return cs(e)}else if(Sd.test(n)){const e=n.replace(Sd,(t,s,r)=>String(Number(s)-Number(r)));return cs(e)}else return Number(n);return Number(n)}function rb(n,e){return e.reduce((t,s)=>(n&&n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}function ib(n,e){const t=de({},n);return e.forEach(s=>s in n&&delete t[s]),t}function ob(n,e){return n.reduce((t,s,r)=>Object.assign(t,{[e[r]]:s}),{})}function Wp(n){return Object.prototype.toString.call(n)==="[object Object]"}const ab=n=>Wp(n)&&Object.keys(n).length===0;let cn;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(cn||(cn={}));let un;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(un||(un={}));const cb=["type","__customInput"],lb=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ub=["type"];function qp(n,e,t={},s){var r,i;if(typeof n!="object"||Array.isArray(n))return{type:s,input:n,options:de({key:e,label:e,optional:!1,disabled:!1,order:0},t)};if("__customInput"in n){const{type:b,__customInput:T}=n,E=Pe(n,cb);return qp(T,e,E,b)}const{render:o,label:a,optional:c,order:l=0,disabled:u,hint:h,onChange:d,onEditStart:f,onEditEnd:m,transient:p}=n,g=Pe(n,lb),_=de({render:o,key:e,label:a??e,hint:h,transient:p??!!d,onEditStart:f,onEditEnd:m,disabled:u,optional:c,order:l},t);let{type:x}=g,k=Pe(g,ub);if(x=s??x,x in cn)return{type:x,input:k,options:_};let v;return s&&Wp(k)&&"value"in k?v=k.value:v=ab(k)?void 0:k,{type:x,input:v,options:de(de({},_),{},{onChange:d,optional:(r=_.optional)!==null&&r!==void 0?r:!1,disabled:(i=_.disabled)!==null&&i!==void 0?i:!1})}}function hb(n,e,t,s){const r=qp(n,e),{type:i,input:o,options:a}=r;if(i)return i in cn?r:{type:i,input:Gc(i,o,t,s),options:a};let c=yd(o);return c?{type:c,input:Gc(c,o,t,s),options:a}:(c=yd({value:o}),c?{type:c,input:Gc(c,{value:o},t,s),options:a}:!1)}function Od(n,e,t,s,r){const{value:i,type:o,settings:a}=n;n.value=Hp({type:o,value:i,settings:a},e,t,s),n.fromPanel=r}const db=function(e,t,s){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=s};function Hp({type:n,value:e,settings:t},s,r,i){const o=n!=="SELECT"&&typeof s=="function"?s(e):s;let a;try{a=Jv(n,o,t,e,r,i)}catch(c){throw new db(`The value \`${s}\` did not result in a correct value.`,e,c)}return Vi(a,e)?e:a}const Gp=(n,e,t=!1)=>{let s=0;return function(){const r=arguments,i=t&&!s,o=()=>n.apply(this,r);window.clearTimeout(s),s=window.setTimeout(o,e),i&&o()}},Yp=n=>n.shiftKey?5:n.altKey?1/5:1;function fb(n,e){const t=console.error;console.error=()=>{},Jf.render(n,e),console.error=t}const pb=["value"],mb=["min","max"],gb=n=>{if(typeof n=="number")return!0;if(typeof n=="string"){const e=parseFloat(n);return isNaN(e)?!1:n.substring((""+e).length).trim().length<4}return!1},Xp=(n,{min:e=-1/0,max:t=1/0,suffix:s})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const i=bs(r,e,t);return s?i+s:i},_b=(n,{pad:e=0,suffix:t})=>{const s=parseFloat(n).toFixed(e);return t?s+t:s},Zp=n=>{let{value:e}=n,t=Pe(n,pb);const{min:s=-1/0,max:r=1/0}=t,i=Pe(t,mb);let o=parseFloat(e);const a=typeof e=="string"?e.substring((""+o).length):void 0;o=bs(o,s,r);let c=t.step;c||(Number.isFinite(s)?Number.isFinite(r)?c=+(Math.abs(r-s)/100).toPrecision(1):c=+(Math.abs(o-s)/100).toPrecision(1):Number.isFinite(r)&&(c=+(Math.abs(r-o)/100).toPrecision(1)));const l=c?xd(c)*10:xd(o);c=c||l/10;const u=Math.round(bs(Math.log10(1/l),0,2));return{value:a?o+a:o,settings:de({initialValue:o,step:c,pad:u,min:s,max:r,suffix:a},i)}},Kp=(n,{step:e,initialValue:t})=>{const s=Math.round((n-t)/e);return t+s*e};var Qp=Object.freeze({__proto__:null,schema:gb,sanitize:Xp,format:_b,normalize:Zp,sanitizeStep:Kp});function Ze(){return Ze=Object.assign?Object.assign.bind():function(n){for(var e=1;e({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Yo(n,e){const[t,s]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),s&&(r.backgroundColor=s),r}const bi={$inputStyle:()=>n=>Yo(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>Yo(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>Yo(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>Yo(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ae,css:JD,createTheme:vb,globalCss:bb,keyframes:eM}=S_({prefix:"leva",theme:n0(),utils:de(de({},bi),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:n=>({"&:focus":bi.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":bi.$focusStyle()(n)}),$hover:n=>({"&:hover":bi.$hoverStyle()(n)}),$active:n=>({"&:active":bi.$activeStyle()(n)})})}),xb=bb({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function wb(n){const e=n0();if(!n)return{theme:e,className:""};Object.keys(n).forEach(s=>{Object.assign(e[s],n[s])});const t=vb(e);return{theme:e,className:t.className}}function Un(n,e){const{theme:t}=y.useContext(Cu);if(!(n in t)||!(e in t[n]))return zn(Be.THEME_ERROR,n,e),"";let s=e;for(;;){let r=t[n][s];if(typeof r=="string"&&r.charAt(0)==="$")s=r.substr(1);else return r}}const s0=ae("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),r0=ae("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${s0}`]:{paddingLeft:0}}),kb=ae(r0,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Tb=ae("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),Eb=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],Cb=["onUpdate"];function Su(n){let{innerLabel:e,value:t,onUpdate:s,onChange:r,onKeyDown:i,type:o,id:a,inputType:c="text",rows:l=0}=n,u=Pe(n,Eb);const{id:h,emitOnEditStart:d,emitOnEditEnd:f,disabled:m}=gt(),p=a||h,g=y.useRef(null),_=l>0,x=_?"textarea":"input",k=y.useCallback(T=>E=>{const w=E.currentTarget.value;T(w)},[]);M.useEffect(()=>{const T=g.current,E=k(w=>{s(w),f()});return T==null||T.addEventListener("blur",E),()=>T==null?void 0:T.removeEventListener("blur",E)},[k,s,f]);const v=y.useCallback(T=>{T.key==="Enter"&&k(s)(T)},[k,s]),b=Object.assign({as:x},_?{rows:l}:{},u);return M.createElement(Tb,{textArea:_},e&&typeof e=="string"?M.createElement(r0,null,e):e,M.createElement(s0,Ze({levaType:o,ref:g,id:p,type:c,autoComplete:"off",spellCheck:"false",value:t,onChange:k(r),onFocus:()=>d(),onKeyPress:v,onKeyDown:i,disabled:m},b)))}function Sb(n){let{onUpdate:e}=n,t=Pe(n,Cb);const s=y.useCallback(i=>e(tb(i)),[e]),r=y.useCallback(i=>{const o=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(o){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;e(c=>parseFloat(c)+o*a)}},[e]);return M.createElement(Su,Ze({},t,{onUpdate:s,onKeyDown:r,type:"number"}))}const xa=ae("div",{}),Tl=ae("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),Ob=ae("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Tl}::after`]:{opacity:.6},[`${xa}:hover > & + ${Tl}::after`]:{opacity:.6},[`${xa}:hover > & > svg`]:{opacity:1}}),i0=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${xa}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),o0=ae("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${i0} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),a0=ae(o0,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),Ab=ae("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),Pb=ae("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),El=ae("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Rb=ae("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${El}`]:{pointerEvents:"auto"}}}}}),c0=ae("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Db=ae("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Mb=ae(Hv,{fill:"$toolTipBackground"});function Ou({children:n}){const{className:e}=y.useContext(Cu);return M.createElement(L1,{className:e},n)}const Ib=["align"];function Nb(){const{id:n,disable:e,disabled:t}=gt();return M.createElement(M.Fragment,null,M.createElement(Pb,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),M.createElement("label",{htmlFor:n+"__disable"}))}function $b(n){const{id:e,optional:t,hint:s}=gt(),r=n.htmlFor||(e?{htmlFor:e}:null),i=!s&&typeof n.children=="string"?{title:n.children}:null;return M.createElement(M.Fragment,null,t&&M.createElement(Nb,null),s!==void 0?M.createElement(Bv,null,M.createElement(Wv,{asChild:!0},M.createElement(El,Ze({},r,n))),M.createElement(qv,{side:"top",sideOffset:2},M.createElement(Db,null,s,M.createElement(Mb,null)))):M.createElement(El,Ze({},r,i,n)))}function fn(n){let{align:e}=n,t=Pe(n,Ib);const{value:s,label:r,key:i,disabled:o}=gt(),{hideCopyButton:a}=yb(),c=!a&&i!==void 0,[l,u]=y.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:s??""})),u(!0)}catch{zn(Be.CLIPBOARD_ERROR,{[i]:s})}};return M.createElement(Ab,{align:e,onPointerLeave:()=>u(!1)},M.createElement($b,t),c&&!o&&M.createElement("div",{title:`Click to copy ${typeof r=="string"?r:i} value`},l?M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),M.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):M.createElement("svg",{onClick:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),M.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const Fb=["toggled"],Lb=ae("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Au(n){let{toggled:e}=n,t=Pe(n,Fb);return M.createElement(Lb,Ze({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),M.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const jb=["input"];function tn(n){let{input:e}=n,t=Pe(n,jb);return e?M.createElement(a0,t):M.createElement(o0,t)}function l0({value:n,type:e,settings:t,setValue:s}){const[r,i]=y.useState(vd(e,n,t)),o=y.useRef(n),a=y.useRef(t);a.current=t;const c=y.useCallback(u=>i(vd(e,u,a.current)),[e]),l=y.useCallback(u=>{try{s(u)}catch(h){const{type:d,previousValue:f}=h;if(d!=="LEVA_ERROR")throw h;c(f)}},[c,s]);return y.useEffect(()=>{Vi(n,o.current)||c(n),o.current=n},[n,c]),{displayValue:r,onChange:i,onUpdate:l}}function wo(n,e){const{emitOnEditStart:t,emitOnEditEnd:s}=gt();return O_(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),t==null||t());const i=n(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),s==null||s()),i},e)}function Vb(n){const e=y.useRef(null),t=y.useRef(null),s=y.useRef(!1);return y.useEffect(()=>{const r=Gp(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),s.current||(r(),s.current=!0),()=>window.removeEventListener("resize",r)},[n]),y.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function u0(){const n=y.useRef(null),e=y.useRef({x:0,y:0}),t=y.useCallback(s=>{Object.assign(e.current,s),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const zb=["__refCount"],Yc=(n,e)=>{if(!n[e])return null;const t=n[e];return Pe(t,zb)};function Ub(n){const e=xo(),[t,s]=y.useState(Yc(e.getData(),n)),r=y.useCallback(l=>e.setValueAtPath(n,l,!0),[n,e]),i=y.useCallback(l=>e.setSettingsAtPath(n,l),[n,e]),o=y.useCallback(l=>e.disableInputAtPath(n,l),[n,e]),a=y.useCallback(()=>e.emitOnEditStart(n),[n,e]),c=y.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return y.useEffect(()=>{s(Yc(e.getData(),n));const l=e.useStore.subscribe(u=>Yc(u.data,n),s,{equalityFn:bo});return()=>l()},[e,n]),[t,{set:r,setSettings:i,disable:o,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Bb=ae("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),h0=ae("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Cl=ae("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),d0=ae("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),f0=ae("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Wb({value:n,min:e,max:t,onDrag:s,step:r,initialValue:i}){const o=y.useRef(null),a=y.useRef(null),c=y.useRef(0),l=Un("sizes","scrubberWidth"),u=wo(({event:d,first:f,xy:[m],movement:[p],memo:g})=>{if(f){const{width:x,left:k}=o.current.getBoundingClientRect();c.current=x-parseFloat(l),g=(d==null?void 0:d.target)===a.current?n:ba((m-k)/x,e,t)}const _=g+ba(p/c.current,0,t-e);return s(Kp(_,{step:r,initialValue:i})),g}),h=va(n,e,t);return M.createElement(d0,Ze({ref:o},u()),M.createElement(h0,null,M.createElement(f0,{style:{left:0,right:`${(1-h)*100}%`}})),M.createElement(Cl,{ref:a,style:{left:`calc(${h} * (100% - ${l}))`}}))}const qb=M.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:s})=>{const[r,i]=y.useState(!1),o=wo(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(e(h=>parseFloat(h)+Math.floor(u)*t*Yp(l)),u=0),u));return M.createElement(kb,Ze({dragging:r,title:n.length>1?n:""},o()),n.slice(0,s))});function p0({label:n,id:e,displayValue:t,onUpdate:s,onChange:r,settings:i,innerLabelTrim:o=1}){const a=o>0&&M.createElement(qb,{label:n,step:i.step,onUpdate:s,innerLabelTrim:o});return M.createElement(Sb,{id:e,value:String(t),onUpdate:s,onChange:r,innerLabel:a})}function Hb(){const n=gt(),{label:e,value:t,onUpdate:s,settings:r,id:i}=n,{min:o,max:a}=r,c=a!==1/0&&o!==-1/0;return M.createElement(tn,{input:!0},M.createElement(fn,null,e),M.createElement(Bb,{hasRange:c},c&&M.createElement(Wb,Ze({value:parseFloat(t),onDrag:s},r)),M.createElement(p0,Ze({},n,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Gb}=Qp,Yb=Pe(Qp,["sanitizeStep"]);var Xb=de({component:Hb},Yb);const Zb=(n,e)=>St().schema({options:St().passesAnyOf(St().object(),St().array())}).test(e),Kb=(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},Qb=(n,{values:e})=>e.indexOf(n),Jb=n=>{let{value:e,options:t}=n,s,r;return Array.isArray(t)?(r=t,s=t.map(i=>String(i))):(r=Object.values(t),s=Object.keys(t)),"value"in n?r.includes(e)||(s.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:s,values:r}}};var ex=Object.freeze({__proto__:null,schema:Zb,sanitize:Kb,format:Qb,normalize:Jb});const tx=ae("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Sl=ae("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),nx=ae("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Sl}:focus + &`]:{$focusStyle:""},[`${Sl}:hover + &`]:{$hoverStyle:""}});function sx({displayValue:n,value:e,onUpdate:t,id:s,settings:r,disabled:i}){const{keys:o,values:a}=r,c=y.useRef();return e===a[n]&&(c.current=o[n]),M.createElement(tx,null,M.createElement(Sl,{id:s,value:n,onChange:l=>t(a[Number(l.currentTarget.value)]),disabled:i},o.map((l,u)=>M.createElement("option",{key:l,value:u},l))),M.createElement(nx,null,c.current),M.createElement(Au,{toggled:!0}))}function rx(){const{label:n,value:e,displayValue:t,onUpdate:s,id:r,disabled:i,settings:o}=gt();return M.createElement(tn,{input:!0},M.createElement(fn,null,n),M.createElement(sx,{id:r,value:e,displayValue:t,onUpdate:s,settings:o,disabled:i}))}var ix=de({component:rx},ex);const ox=n=>St().string().test(n),ax=n=>{if(typeof n!="string")throw Error("Invalid string");return n},cx=({value:n,editable:e=!0,rows:t=!1})=>({value:n,settings:{editable:e,rows:typeof t=="number"?t:t?5:0}});var lx=Object.freeze({__proto__:null,schema:ox,sanitize:ax,normalize:cx});const ux=["displayValue","onUpdate","onChange","editable"],hx=ae("div",{whiteSpace:"pre-wrap"});function dx(n){let{displayValue:e,onUpdate:t,onChange:s,editable:r=!0}=n,i=Pe(n,ux);return r?M.createElement(Su,Ze({value:e,onUpdate:t,onChange:s},i)):M.createElement(hx,null,e)}function fx(){const{label:n,settings:e,displayValue:t,onUpdate:s,onChange:r}=gt();return M.createElement(tn,{input:!0},M.createElement(fn,null,n),M.createElement(dx,Ze({displayValue:t,onUpdate:s,onChange:r},e)))}var px=de({component:fx},lx);const mx=n=>St().boolean().test(n),gx=n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n};var _x=Object.freeze({__proto__:null,schema:mx,sanitize:gx});const yx=ae("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function vx({value:n,onUpdate:e,id:t,disabled:s}){return M.createElement(yx,null,M.createElement("input",{id:t,type:"checkbox",checked:n,onChange:r=>e(r.currentTarget.checked),disabled:s}),M.createElement("label",{htmlFor:t},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function bx(){const{label:n,value:e,onUpdate:t,disabled:s,id:r}=gt();return M.createElement(tn,{input:!0},M.createElement(fn,null,n),M.createElement(vx,{value:e,onUpdate:t,id:r,disabled:s}))}var xx=de({component:bx},_x);const wx=["locked"];function kx({value:n,id:e,valueKey:t,settings:s,onUpdate:r,innerLabelTrim:i}){const o=y.useRef(n[t]);o.current=n[t];const a=y.useCallback(l=>r({[t]:Hp({type:"NUMBER",value:o.current,settings:s},l)}),[r,s,t]),c=l0({type:"NUMBER",value:n[t],settings:s,setValue:a});return M.createElement(p0,{id:e,label:t,value:n[t],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:s,innerLabelTrim:i})}const Tx=ae("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function Ex(n){let{locked:e}=n,t=Pe(n,wx);return M.createElement("svg",Ze({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e?M.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):M.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Pu({value:n,onUpdate:e,settings:t,innerLabelTrim:s}){const{id:r,setSettings:i}=gt(),{lock:o,locked:a}=t;return M.createElement(Tx,{withLock:o},o&&M.createElement(Ex,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(n).map((c,l)=>M.createElement(kx,{id:l===0?r:`${r}.${c}`,key:c,valueKey:c,value:n,settings:t[c],onUpdate:e,innerLabelTrim:s})))}const m0=(n,e)=>{const t={};let s=0,r=1/0;Object.entries(n).forEach(([i,o])=>{t[i]=Zp(de({value:o},e[i])).settings,s=Math.max(s,t[i].step),r=Math.min(r,t[i].pad)});for(let i in t){const{step:o,min:a,max:c}=e[i]||{};!isFinite(o)&&(!isFinite(a)||!isFinite(c))&&(t[i].step=s,t[i].pad=r)}return t},Cx=["lock"],Sx=["value"];function Ox(n){const e=St().array().length(n).every.number(),t=s=>{if(!s||typeof s!="object")return!1;const r=Object.values(s);return r.length===n&&r.every(i=>isFinite(i))};return s=>e.test(s)||t(s)}function Ax(n){return Array.isArray(n)?"array":"object"}function Ai(n,e,t){return Ax(n)===e?n:e==="array"?Object.values(n):ob(n,t)}const Px=(n,e,t)=>{const s=Ai(n,"object",e.keys);for(let o in s)s[o]=Xp(s[o],e[o]);const r=Object.keys(s);let i={};if(r.length===e.keys.length)i=s;else{const o=Ai(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],c=s[a],l=o[a],u=l!==0?c/l:1;for(let h in o)h===a?i[a]=c:i[h]=o[h]*u}else i=de(de({},o),s)}return Ai(i,e.format,e.keys)},Rx=(n,e)=>Ai(n,"object",e.keys),Dx=n=>!!n&&("step"in n||"min"in n||"max"in n);function Mx(n,e,t=[]){const{lock:s=!1}=e,r=Pe(e,Cx),i=Array.isArray(n)?"array":"object",o=i==="object"?Object.keys(n):t,a=Ai(n,"object",o),c=Dx(r)?o.reduce((u,h)=>Object.assign(u,{[h]:r}),{}):r,l=m0(a,c);return{value:i==="array"?n:a,settings:de(de({},l),{},{format:i,keys:o,lock:s,locked:!1})}}function g0(n){return{schema:Ox(n.length),normalize:e=>{let{value:t}=e,s=Pe(e,Sx);return Mx(t,s,n)},format:(e,t)=>Rx(e,t),sanitize:(e,t,s)=>Px(e,t,s)}}var Ix={grad:.9,turn:360,rad:360/(2*Math.PI)},Nn=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},at=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},Yt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},_0=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},Ad=function(n){return{r:Yt(n.r,0,255),g:Yt(n.g,0,255),b:Yt(n.b,0,255),a:Yt(n.a)}},Xc=function(n){return{r:at(n.r),g:at(n.g),b:at(n.b),a:at(n.a,3)}},Nx=/^#([0-9a-f]{3,8})$/i,Xo=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},y0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:60*(a<0?a+6:a),s:i?o/i*100:0,v:i/255*100,a:r}},v0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:r}},Pd=function(n){return{h:_0(n.h),s:Yt(n.s,0,100),l:Yt(n.l,0,100),a:Yt(n.a)}},Rd=function(n){return{h:at(n.h),s:at(n.s),l:at(n.l),a:at(n.a,3)}},Dd=function(n){return v0((t=(e=n).s,{h:e.h,s:(t*=((s=e.l)<50?s:100-s)/100)>0?2*t/(s+t)*100:0,v:s+t,a:e.a}));var e,t,s},Pi=function(n){return{h:(e=y0(n)).h,s:(r=(200-(t=e.s))*(s=e.v)/100)>0&&r<200?t*s/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,s,r},$x=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Lx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ol={string:[[function(n){var e=Nx.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?at(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?at(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=Lx.exec(n)||jx.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ad({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(n){var e=$x.exec(n)||Fx.exec(n);if(!e)return null;var t,s,r=Pd({h:(t=e[1],s=e[2],s===void 0&&(s="deg"),Number(t)*(Ix[s]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Dd(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=r===void 0?1:r;return Nn(e)&&Nn(t)&&Nn(s)?Ad({r:Number(e),g:Number(t),b:Number(s),a:Number(i)}):null},"rgb"],[function(n){var e=n.h,t=n.s,s=n.l,r=n.a,i=r===void 0?1:r;if(!Nn(e)||!Nn(t)||!Nn(s))return null;var o=Pd({h:Number(e),s:Number(t),l:Number(s),a:Number(i)});return Dd(o)},"hsl"],[function(n){var e=n.h,t=n.s,s=n.v,r=n.a,i=r===void 0?1:r;if(!Nn(e)||!Nn(t)||!Nn(s))return null;var o=function(a){return{h:_0(a.h),s:Yt(a.s,0,100),v:Yt(a.v,0,100),a:Yt(a.a)}}({h:Number(e),s:Number(t),v:Number(s),a:Number(i)});return v0(o)},"hsv"]]},Md=function(n,e){for(var t=0;t=.5},n.prototype.toHex=function(){return e=Xc(this.rgba),t=e.r,s=e.g,r=e.b,o=(i=e.a)<1?Xo(at(255*i)):"","#"+Xo(t)+Xo(s)+Xo(r)+o;var e,t,s,r,i,o},n.prototype.toRgb=function(){return Xc(this.rgba)},n.prototype.toRgbString=function(){return e=Xc(this.rgba),t=e.r,s=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+s+", "+r+", "+i+")":"rgb("+t+", "+s+", "+r+")";var e,t,s,r,i},n.prototype.toHsl=function(){return Rd(Pi(this.rgba))},n.prototype.toHslString=function(){return e=Rd(Pi(this.rgba)),t=e.h,s=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+s+"%, "+r+"%, "+i+")":"hsl("+t+", "+s+"%, "+r+"%)";var e,t,s,r,i},n.prototype.toHsv=function(){return e=y0(this.rgba),{h:at(e.h),s:at(e.s),v:at(e.v),a:at(e.a,3)};var e},n.prototype.invert=function(){return yt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),yt(Zc(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),yt(Zc(this.rgba,-e))},n.prototype.grayscale=function(){return yt(Zc(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),yt(Id(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),yt(Id(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?yt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):at(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=Pi(this.rgba);return typeof e=="number"?yt({h:e,s:t.s,l:t.l,a:t.a}):at(t.h)},n.prototype.isEqual=function(e){return this.toHex()===yt(e).toHex()},n}(),yt=function(n){return n instanceof Al?n:new Al(n)},Nd=[],zx=function(n){n.forEach(function(e){Nd.indexOf(e)<0&&(e(Al,Ol),Nd.push(e))})};function Ux(n,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},s={};for(var r in t)s[t[r]]=r;var i={};n.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=s[this.toHex()];if(l)return l;if(o!=null&&o.closest){var u=this.toRgb(),h=1/0,d="black";if(!i.length)for(var f in t)i[f]=new n(t[f]).toRgb();for(var m in t){var p=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));p=0||(r[t]=n[t]);return r}function Pl(n){var e=y.useRef(n),t=y.useRef(function(s){e.current&&e.current(s)});return e.current=n,t.current}var Fr=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n0:g.buttons>0)&&r.current?i($d(r.current,g,a.current)):p(!1)},m=function(){return p(!1)};function p(g){var _=c.current,x=Rl(r.current),k=g?x.addEventListener:x.removeEventListener;k(_?"touchmove":"mousemove",f),k(_?"touchend":"mouseup",m)}return[function(g){var _=g.nativeEvent,x=r.current;if(x&&(Fd(_),!function(v,b){return b&&!Ri(v)}(_,c.current)&&x)){if(Ri(_)){c.current=!0;var k=_.changedTouches||[];k.length&&(a.current=k[0].identifier)}x.focus(),i($d(x,_,a.current)),p(!0)}},function(g){var _=g.which||g.keyCode;_<37||_>40||(g.preventDefault(),o({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},p]},[o,i]),u=l[0],h=l[1],d=l[2];return y.useEffect(function(){return d},[d]),M.createElement("div",ei({},s,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))}),ko=function(n){return n.filter(Boolean).join(" ")},Mu=function(n){var e=n.color,t=n.left,s=n.top,r=s===void 0?.5:s,i=ko(["react-colorful__pointer",n.className]);return M.createElement("div",{className:i,style:{top:100*r+"%",left:100*t+"%"}},M.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},xt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},x0=function(n){var e=n.s,t=n.v,s=n.a,r=(200-e)*t/100;return{h:xt(n.h),s:xt(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:xt(r/2),a:xt(s,2)}},Dl=function(n){var e=x0(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Qc=function(n){var e=x0(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},w0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:xt(255*[s,a,o,o,c,s][l]),g:xt(255*[c,s,s,a,o,o][l]),b:xt(255*[o,o,c,s,s,a][l]),a:xt(r,2)}},k0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:xt(60*(a<0?a+6:a)),s:xt(i?o/i*100:0),v:xt(i/255*100),a:r}},T0=M.memo(function(n){var e=n.hue,t=n.onChange,s=ko(["react-colorful__hue",n.className]);return M.createElement("div",{className:s},M.createElement(Du,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:Fr(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":xt(e),"aria-valuemax":"360","aria-valuemin":"0"},M.createElement(Mu,{className:"react-colorful__hue-pointer",left:e/360,color:Dl({h:e,s:100,v:100,a:1})})))}),E0=M.memo(function(n){var e=n.hsva,t=n.onChange,s={backgroundColor:Dl({h:e.h,s:100,v:100,a:1})};return M.createElement("div",{className:"react-colorful__saturation",style:s},M.createElement(Du,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:Fr(e.s+100*r.left,0,100),v:Fr(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+xt(e.s)+"%, Brightness "+xt(e.v)+"%"},M.createElement(Mu,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Dl(e)})))}),Iu=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function C0(n,e,t){var s=Pl(t),r=y.useState(function(){return n.toHsva(e)}),i=r[0],o=r[1],a=y.useRef({color:e,hsva:i});y.useEffect(function(){if(!n.equal(e,a.current.color)){var l=n.toHsva(e);a.current={hsva:l,color:e},o(l)}},[e,n]),y.useEffect(function(){var l;Iu(i,a.current.hsva)||n.equal(l=n.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},s(l))},[i,n,s]);var c=y.useCallback(function(l){o(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Bx=typeof window<"u"?y.useLayoutEffect:y.useEffect,Wx=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Ld=new Map,S0=function(n){Bx(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!Ld.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Ld.set(e,t);var s=Wx();s&&t.setAttribute("nonce",s),e.head.appendChild(t)}},[])},qx=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Ru(n,["className","colorModel","color","onChange"]),a=y.useRef(null);S0(a);var c=C0(t,r,i),l=c[0],u=c[1],h=ko(["react-colorful",e]);return M.createElement("div",ei({},o,{ref:a,className:h}),M.createElement(E0,{hsva:l,onChange:u}),M.createElement(T0,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Hx=function(n){var e=n.className,t=n.hsva,s=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+Qc(Object.assign({},t,{a:0}))+", "+Qc(Object.assign({},t,{a:1}))+")"},i=ko(["react-colorful__alpha",e]),o=xt(100*t.a);return M.createElement("div",{className:i},M.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),M.createElement(Du,{onMove:function(a){s({a:a.left})},onKey:function(a){s({a:Fr(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},M.createElement(Mu,{className:"react-colorful__alpha-pointer",left:t.a,color:Qc(t)})))},Gx=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Ru(n,["className","colorModel","color","onChange"]),a=y.useRef(null);S0(a);var c=C0(t,r,i),l=c[0],u=c[1],h=ko(["react-colorful",e]);return M.createElement("div",ei({},o,{ref:a,className:h}),M.createElement(E0,{hsva:l,onChange:u}),M.createElement(T0,{hue:l.h,onChange:u}),M.createElement(Hx,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},Yx={defaultColor:{r:0,g:0,b:0,a:1},toHsva:k0,fromHsva:w0,equal:Iu},Xx=function(n){return M.createElement(Gx,ei({},n,{colorModel:Yx}))},Zx={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return k0({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=w0(n)).r,g:e.g,b:e.b};var e},equal:Iu},Kx=function(n){return M.createElement(qx,ei({},n,{colorModel:Zx}))};function pn(n,e,t,s){var r=arguments.length,i=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,s);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(i=(r<3?o(i):r>3?o(e,t,i):o(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function Ie(n,e,t,s){function r(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((s=s.apply(n,e||[])).next())})}function ti(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,r,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return c([l,u])}}function c(l){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(s=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(r=s.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(o)throw o.error}}return i}function Jx(){for(var n=[],e=0;e0?s:n.name,writable:!1,configurable:!1,enumerable:!0})}return t}function tw(n){var e=n.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!n.type){var s=e.split(".").pop().toLowerCase(),r=ew.get(s);r&&Object.defineProperty(n,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return n}var nw=[".DS_Store","Thumbs.db"];function sw(n){return Ie(this,void 0,void 0,function(){return ti(this,function(e){return wa(n)&&rw(n)?[2,cw(n.dataTransfer,n.type)]:iw(n)?[2,ow(n)]:Array.isArray(n)&&n.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,aw(n)]:[2,[]]})})}function rw(n){return wa(n.dataTransfer)}function iw(n){return wa(n)&&wa(n.target)}function wa(n){return typeof n=="object"&&n!==null}function ow(n){return Ml(n.target.files).map(function(e){return To(e)})}function aw(n){return Ie(this,void 0,void 0,function(){var e;return ti(this,function(t){switch(t.label){case 0:return[4,Promise.all(n.map(function(s){return s.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(s){return To(s)})]}})})}function cw(n,e){return Ie(this,void 0,void 0,function(){var t,s;return ti(this,function(r){switch(r.label){case 0:return n===null?[2,[]]:n.items?(t=Ml(n.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(lw))]):[3,2];case 1:return s=r.sent(),[2,jd(O0(s))];case 2:return[2,jd(Ml(n.files).map(function(i){return To(i)}))]}})})}function jd(n){return n.filter(function(e){return nw.indexOf(e.name)===-1})}function Ml(n){if(n===null)return[];for(var e=[],t=0;tn.length)&&(e=n.length);for(var t=0,s=new Array(e);tt)return[!1,qd(t)];if(n.sizet)return[!1,qd(t)]}return[!0,null]}function xi(n){return n!=null}function kw(n){var e=n.files,t=n.accept,s=n.minSize,r=n.maxSize,i=n.multiple,o=n.maxFiles;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(a){var c=R0(a,t),l=Bd(c,1),u=l[0],h=D0(a,s,r),d=Bd(h,1),f=d[0];return u&&f})}function ka(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function Zo(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!n.target&&!!n.target.files}function Gd(n){n.preventDefault()}function Tw(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function Ew(n){return n.indexOf("Edge/")!==-1}function Cw(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Tw(n)||Ew(n)}function bn(){for(var n=arguments.length,e=new Array(n),t=0;t1?r-1:0),o=1;on.length)&&(e=n.length);for(var t=0,s=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}function Uw(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}var Nu=y.forwardRef(function(n,e){var t=n.children,s=Ta(n,Rw),r=N0(s),i=r.open,o=Ta(r,Dw);return y.useImperativeHandle(e,function(){return{open:i}},[i]),M.createElement(y.Fragment,null,t(Ue(Ue({},o),{},{open:i})))});Nu.displayName="Dropzone";var I0={disabled:!1,getFilesFromEvent:sw,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Nu.defaultProps=I0;Nu.propTypes={children:ke.func,accept:ke.oneOfType([ke.string,ke.arrayOf(ke.string)]),multiple:ke.bool,preventDropOnDocument:ke.bool,noClick:ke.bool,noKeyboard:ke.bool,noDrag:ke.bool,noDragEventsBubbling:ke.bool,minSize:ke.number,maxSize:ke.number,maxFiles:ke.number,disabled:ke.bool,getFilesFromEvent:ke.func,onFileDialogCancel:ke.func,onFileDialogOpen:ke.func,useFsAccessApi:ke.bool,onDragEnter:ke.func,onDragLeave:ke.func,onDragOver:ke.func,onDrop:ke.func,onDropAccepted:ke.func,onDropRejected:ke.func,validator:ke.func};var $l={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function N0(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Ue(Ue({},I0),n),t=e.accept,s=e.disabled,r=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,a=e.multiple,c=e.maxFiles,l=e.onDragEnter,u=e.onDragLeave,h=e.onDragOver,d=e.onDrop,f=e.onDropAccepted,m=e.onDropRejected,p=e.onFileDialogCancel,g=e.onFileDialogOpen,_=e.useFsAccessApi,x=e.preventDropOnDocument,k=e.noClick,v=e.noKeyboard,b=e.noDrag,T=e.noDragEventsBubbling,E=e.validator,w=y.useMemo(function(){return typeof g=="function"?g:Xd},[g]),C=y.useMemo(function(){return typeof p=="function"?p:Xd},[p]),S=y.useRef(null),R=y.useRef(null),O=y.useReducer(Bw,$l),L=Jc(O,2),j=L[0],W=L[1],B=j.isFocused,z=j.isFileDialogActive,U=j.draggedFiles,X=y.useRef(typeof window<"u"&&window.isSecureContext&&_&&Sw()),K=function(){!X.current&&z&&setTimeout(function(){if(R.current){var fe=R.current.files;fe.length||(W({type:"closeDialog"}),C())}},300)};y.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[R,z,C,X]);var te=y.useRef([]),$=function(fe){S.current&&S.current.contains(fe.target)||(fe.preventDefault(),te.current=[])};y.useEffect(function(){return x&&(document.addEventListener("dragover",Gd,!1),document.addEventListener("drop",$,!1)),function(){x&&(document.removeEventListener("dragover",Gd),document.removeEventListener("drop",$))}},[S,x]);var F=y.useCallback(function(J){J.preventDefault(),J.persist(),D(J),te.current=[].concat(Nw(te.current),[J.target]),Zo(J)&&Promise.resolve(r(J)).then(function(fe){ka(J)&&!T||(W({draggedFiles:fe,isDragActive:!0,type:"setDraggedFiles"}),l&&l(J))})},[r,l,T]),A=y.useCallback(function(J){J.preventDefault(),J.persist(),D(J);var fe=Zo(J);if(fe&&J.dataTransfer)try{J.dataTransfer.dropEffect="copy"}catch{}return fe&&h&&h(J),!1},[h,T]),I=y.useCallback(function(J){J.preventDefault(),J.persist(),D(J);var fe=te.current.filter(function(it){return S.current&&S.current.contains(it)}),Je=fe.indexOf(J.target);Je!==-1&&fe.splice(Je,1),te.current=fe,!(fe.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Zo(J)&&u&&u(J))},[S,u,T]),G=y.useCallback(function(J,fe){var Je=[],it=[];J.forEach(function($t){var is=R0($t,t),lr=Jc(is,2),Ac=lr[0],Pc=lr[1],Rc=D0($t,o,i),No=Jc(Rc,2),Dc=No[0],Mc=No[1],Ic=E?E($t):null;if(Ac&&Dc&&!Ic)Je.push($t);else{var Nc=[Pc,Mc];Ic&&(Nc=Nc.concat(Ic)),it.push({file:$t,errors:Nc.filter(function(f_){return f_})})}}),(!a&&Je.length>1||a&&c>=1&&Je.length>c)&&(Je.forEach(function($t){it.push({file:$t,errors:[ww]})}),Je.splice(0)),W({acceptedFiles:Je,fileRejections:it,type:"setFiles"}),d&&d(Je,it,fe),it.length>0&&m&&m(it,fe),Je.length>0&&f&&f(Je,fe)},[W,a,t,o,i,c,d,f,m,E]),N=y.useCallback(function(J){J.preventDefault(),J.persist(),D(J),te.current=[],Zo(J)&&Promise.resolve(r(J)).then(function(fe){ka(J)&&!T||G(fe,J)}),W({type:"reset"})},[r,G,T]),q=y.useCallback(function(){if(X.current){W({type:"openDialog"}),w();var J={multiple:a,types:Ow(t)};window.showOpenFilePicker(J).then(function(fe){return r(fe)}).then(function(fe){G(fe,null),W({type:"closeDialog"})}).catch(function(fe){Aw(fe)?(C(fe),W({type:"closeDialog"})):Pw(fe)&&(X.current=!1,R.current&&(R.current.value=null,R.current.click()))});return}R.current&&(W({type:"openDialog"}),w(),R.current.value=null,R.current.click())},[W,w,C,_,G,t,a]),oe=y.useCallback(function(J){!S.current||!S.current.isEqualNode(J.target)||(J.key===" "||J.key==="Enter"||J.keyCode===32||J.keyCode===13)&&(J.preventDefault(),q())},[S,q]),re=y.useCallback(function(){W({type:"focus"})},[]),ie=y.useCallback(function(){W({type:"blur"})},[]),ne=y.useCallback(function(){k||(Cw()?setTimeout(q,0):q())},[k,q]),ge=function(fe){return s?null:fe},ee=function(fe){return v?null:ge(fe)},H=function(fe){return b?null:ge(fe)},D=function(fe){T&&fe.stopPropagation()},P=y.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=J.refKey,Je=fe===void 0?"ref":fe,it=J.role,$t=J.onKeyDown,is=J.onFocus,lr=J.onBlur,Ac=J.onClick,Pc=J.onDragEnter,Rc=J.onDragOver,No=J.onDragLeave,Dc=J.onDrop,Mc=Ta(J,Mw);return Ue(Ue(Nl({onKeyDown:ee(bn($t,oe)),onFocus:ee(bn(is,re)),onBlur:ee(bn(lr,ie)),onClick:ge(bn(Ac,ne)),onDragEnter:H(bn(Pc,F)),onDragOver:H(bn(Rc,A)),onDragLeave:H(bn(No,I)),onDrop:H(bn(Dc,N)),role:typeof it=="string"&&it!==""?it:"button"},Je,S),!s&&!v?{tabIndex:0}:{}),Mc)}},[S,oe,re,ie,ne,F,A,I,N,v,b,s]),Q=y.useCallback(function(J){J.stopPropagation()},[]),se=y.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=J.refKey,Je=fe===void 0?"ref":fe,it=J.onChange,$t=J.onClick,is=Ta(J,Iw),lr=Nl({accept:t,multiple:a,type:"file",style:{display:"none"},onChange:ge(bn(it,N)),onClick:ge(bn($t,Q)),tabIndex:-1},Je,R);return Ue(Ue({},lr),is)}},[R,t,a,N,s]),le=U.length,ye=le>0&&kw({files:U,accept:t,minSize:o,maxSize:i,multiple:a,maxFiles:c}),Qe=le>0&&!ye;return Ue(Ue({},j),{},{isDragAccept:ye,isDragReject:Qe,isFocused:B&&!s,getRootProps:P,getInputProps:se,rootRef:S,inputRef:R,open:ge(q)})}function Bw(n,e){switch(e.type){case"focus":return Ue(Ue({},n),{},{isFocused:!0});case"blur":return Ue(Ue({},n),{},{isFocused:!1});case"openDialog":return Ue(Ue({},$l),{},{isFileDialogActive:!0});case"closeDialog":return Ue(Ue({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=e.isDragActive,s=e.draggedFiles;return Ue(Ue({},n),{},{draggedFiles:s,isDragActive:t});case"setFiles":return Ue(Ue({},n),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return Ue({},$l);default:return n}}function Xd(){}function Ww(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const qw=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Zd=qw?y.useEffect:y.useLayoutEffect;function Hw(n){const e=typeof n=="function"?Ww(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=y.useReducer(g=>g+1,0),o=e.getState(),a=y.useRef(o),c=y.useRef(s),l=y.useRef(r),u=y.useRef(!1),h=y.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),Zd(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=y.useRef(o);Zd(()=>{const g=()=>{try{const x=e.getState(),k=c.current(x);l.current(h.current,k)||(a.current=x,h.current=k,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return y.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}const Gw=n=>(e,t,s)=>{const r=s.subscribe;return s.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=o(s.getState());l=d=>{const f=o(d);if(!u(h,f)){const m=h;a(h=f,m)}},c!=null&&c.fireImmediately&&a(h,h)}return r(l)},n(e,t,s)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Yw=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Xw=Yw;function Kd(n){return Xw(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}var $0=function(e){var t,s;return!(Kd(e)===!1||(t=e.constructor,typeof t!="function")||(s=t.prototype,Kd(s)===!1)||s.hasOwnProperty("isPrototypeOf")===!1)};/*! + * is-extendable + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var Zw=$0,$u=function(e){return Zw(e)||typeof e=="function"||Array.isArray(e)};/*! + * for-in + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Kw=function(e,t,s){for(var r in e)if(t.call(s,e[r],r,e)===!1)break},Qw=$u,Jw=Kw;function F0(n,e){for(var t=arguments.length,s=0;++s + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */var sk=function(n,e,t,s,r){if(!rk(n)||!e)return n;if(e=Ko(e),t&&(e+="."+Ko(t)),s&&(e+="."+Ko(s)),r&&(e+="."+Ko(r)),e in n)return n[e];for(var i=e.split("."),o=i.length,a=-1;n&&++a + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var ik=function(n,e){if(n===null||typeof n>"u")throw new TypeError("expected first argument to be an object.");if(typeof e>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return n;for(var t=Object.prototype.propertyIsEnumerable,s=Object(n),r=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Qd(n)||(n={});for(var e=1;e + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var fk=ck,pk=function(n,e,t){if(typeof n!="string")throw new TypeError("expected a string");typeof e=="function"&&(t=e,e=null),typeof e=="string"&&(e={sep:e});var s=fk({sep:"."},e),r=s.quotes||['"',"'","`"],i;s.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:s.brackets&&(i=s.brackets);var o=[],a=[],c=[""],l=s.sep,u=n.length,h=-1,d;function f(){if(i&&a.length)return i[a[a.length-1]]}for(;++h + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var _k=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")},Jd=_k,yk=function(e){Jd(e)||(e={});for(var t=arguments.length,s=1;s + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var xk=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")};/*! + * set-value + * + * Copyright (c) 2014-2015, 2017, Jon Schlinkert. + * Released under the MIT License. + */var wk=pk,kk=yk,ef=$0,tf=xk,Tk=function(n,e,t){if(!tf(n)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return n;for(var s=wk(e,{sep:".",brackets:!0}).filter(Ek),r=s.length,i=-1,o=n;++in.filter(Boolean).join(".");function Ak(n){const e=n.split(".");return[e.pop(),e.join(".")||void 0]}function Pk(n,e){return Object.entries(rb(n,e)).reduce((t,[,{value:s,disabled:r,key:i}])=>(t[i]=r?void 0:s,t),{})}function Rk(n,e){const t=y.useRef();return(e?Vi:bo)(n,t.current)||(t.current=n),t.current}function L0(n,e){return y.useMemo(n,Rk(e,!0))}function Dk(n){const e=y.useRef(null),t=y.useRef(null),s=y.useRef(!0);return y.useLayoutEffect(()=>{n||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),y.useEffect(()=>{if(s.current){s.current=!1;return}let r;const i=e.current,o=()=>{n&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),t.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",o,{once:!0});const{height:a}=t.current.getBoundingClientRect();return i.style.height=a+"px",n||(i.style.overflow="hidden",r=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",o),clearTimeout(r)}},[n]),{wrapperRef:e,contentRef:t}}const Mk=n=>{const[e,t]=y.useState(n.getVisiblePaths());return y.useEffect(()=>{t(n.getVisiblePaths());const s=n.useStore.subscribe(n.getVisiblePaths,t,{equalityFn:bo});return()=>s()},[n]),e};function Ik(n,e,t){return n.useStore(r=>{const i=de(de({},t),r.data);return Pk(i,e)},bo)}function j0(n=3){const e=y.useRef(null),t=y.useRef(null),[s,r]=y.useState(!1),i=y.useCallback(()=>r(!0),[]),o=y.useCallback(()=>r(!1),[]);return y.useLayoutEffect(()=>{if(s){const{bottom:a,top:c,left:l}=e.current.getBoundingClientRect(),{height:u}=t.current.getBoundingClientRect(),h=a+u>window.innerHeight-40?"up":"down";t.current.style.position="fixed",t.current.style.zIndex="10000",t.current.style.left=l+"px",h==="down"?t.current.style.top=a+n+"px":t.current.style.bottom=window.innerHeight-c+n+"px"}},[n,s]),{popinRef:e,wrapperRef:t,shown:s,show:i,hide:o}}zx([Ux]);const Nk={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};St.extend({color:()=>n=>yt(n).isValid()});const $k=n=>St().color().test(n);function V0(n,{format:e,hasAlpha:t,isString:s}){const r=Nk[e]+(s&&e!=="hex"?"String":""),i=n[r]();return typeof i=="object"&&!t?ib(i,["a"]):i}const z0=(n,e)=>{const t=yt(n);if(!t.isValid())throw Error("Invalid color");return V0(t,e)},Fk=(n,e)=>V0(yt(n),de(de({},e),{},{isString:!0,format:"hex"})),Lk=({value:n})=>{const e=Vx(n),t=e==="name"?"hex":e,s=typeof n=="object"?"a"in n:e==="hex"&&n.length===8||/^(rgba)|(hsla)|(hsva)/.test(n),r={format:t,hasAlpha:s,isString:typeof n=="string"};return{value:z0(n,r),settings:r}};var jk=Object.freeze({__proto__:null,schema:$k,sanitize:z0,format:Fk,normalize:Lk});const Vk=ae("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),zk=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Uk=ae("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function rf(n,e){return e!=="rgb"?yt(n).toRgb():n}function Bk({value:n,displayValue:e,settings:t,onUpdate:s}){const{emitOnEditStart:r,emitOnEditEnd:i}=gt(),{format:o,hasAlpha:a}=t,{popinRef:c,wrapperRef:l,shown:u,show:h,hide:d}=j0(),f=y.useRef(0),[m,p]=y.useState(()=>rf(n,o)),g=a?Xx:Kx,_=()=>{p(rf(n,o)),h(),r()},x=()=>{d(),i(),window.clearTimeout(f.current)},k=()=>{f.current=window.setTimeout(x,500)};return y.useEffect(()=>()=>window.clearTimeout(f.current),[]),M.createElement(M.Fragment,null,M.createElement(Vk,{ref:c,active:u,onClick:()=>_(),style:{color:e}}),u&&M.createElement(Ou,null,M.createElement(c0,{onPointerUp:x}),M.createElement(Uk,{ref:l,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:v=>v.buttons===0&&k()},M.createElement(g,{color:m,onChange:s}))))}function Wk(){const{value:n,displayValue:e,label:t,onChange:s,onUpdate:r,settings:i}=gt();return M.createElement(tn,{input:!0},M.createElement(fn,null,t),M.createElement(zk,null,M.createElement(Bk,{value:n,displayValue:e,onChange:s,onUpdate:r,settings:i}),M.createElement(Su,{value:e,onChange:s,onUpdate:r})))}var qk=de({component:Wk},jk);function Hk(){const{label:n,displayValue:e,onUpdate:t,settings:s}=gt();return M.createElement(tn,{input:!0},M.createElement(fn,null,n),M.createElement(Pu,{value:e,settings:s,onUpdate:t}))}var Gk=de({component:Hk},g0(["x","y","z"]));const Yk=ae("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Xk=ae("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Zk({value:n,settings:e,onUpdate:t}){const s=y.useRef(),r=y.useRef(0),i=y.useRef(0),o=y.useRef(1),[a,c]=y.useState(!1),[l,u]=y.useState(!1),[h,d]=u0(),f=y.useRef(null),m=y.useRef(null);y.useLayoutEffect(()=>{if(a){const{top:O,left:L,width:j,height:W}=f.current.getBoundingClientRect();m.current.style.left=L+j/2+"px",m.current.style.top=O+W/2+"px"}},[a]);const{keys:[p,g],joystick:_}=e,x=_==="invertY"?1:-1,{[p]:{step:k},[g]:{step:v}}=e,b=Un("sizes","joystickWidth"),T=Un("sizes","joystickHeight"),E=parseFloat(b)*.8/2,w=parseFloat(T)*.8/2,C=y.useCallback(()=>{s.current||(u(!0),r.current&&d({x:r.current*E}),i.current&&d({y:i.current*-w}),s.current=window.setInterval(()=>{t(O=>{const L=k*r.current*o.current,j=x*v*i.current*o.current;return Array.isArray(O)?{[p]:O[0]+L,[g]:O[1]+j}:{[p]:O[p]+L,[g]:O[g]+j}})},16))},[E,w,t,d,k,v,p,g,x]),S=y.useCallback(()=>{window.clearTimeout(s.current),s.current=void 0,u(!1)},[]);y.useEffect(()=>{function O(L){o.current=Yp(L)}return window.addEventListener("keydown",O),window.addEventListener("keyup",O),()=>{window.clearTimeout(s.current),window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}},[]);const R=wo(({first:O,active:L,delta:[j,W],movement:[B,z]})=>{O&&c(!0);const U=bs(B,-E,E),X=bs(z,-w,w);r.current=Math.abs(B)>Math.abs(U)?Math.sign(B-U):0,i.current=Math.abs(z)>Math.abs(X)?Math.sign(X-z):0;let K=n[p],te=n[g];L?(r.current||(K+=j*k*o.current,d({x:U})),i.current||(te-=x*W*v*o.current,d({y:X})),r.current||i.current?C():S(),t({[p]:K,[g]:te})):(c(!1),r.current=0,i.current=0,d({x:0,y:0}),S())});return M.createElement(Yk,Ze({ref:f},R()),a&&M.createElement(Ou,null,M.createElement(Xk,{ref:m,isOutOfBounds:l},M.createElement("div",null),M.createElement("span",{ref:h}))))}const Kk=ae("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function Qk(){const{label:n,displayValue:e,onUpdate:t,settings:s}=gt();return M.createElement(tn,{input:!0},M.createElement(fn,null,n),M.createElement(Kk,{withJoystick:!!s.joystick},s.joystick&&M.createElement(Zk,{value:e,settings:s,onUpdate:t}),M.createElement(Pu,{value:e,settings:s,onUpdate:t})))}const Jk=["joystick"],U0=g0(["x","y"]),eT=n=>{let{joystick:e=!0}=n,t=Pe(n,Jk);const{value:s,settings:r}=U0.normalize(t);return{value:s,settings:de(de({},r),{},{joystick:e})}};var tT=de(de({component:Qk},U0),{},{normalize:eT});const nT=n=>{if(n!==void 0){if(n instanceof File)try{return URL.createObjectURL(n)}catch{return}if(typeof n=="string"&&n.indexOf("blob:")===0)return n;throw Error("Invalid image format [undefined | blob | File].")}},sT=(n,e)=>typeof e=="object"&&"image"in e,rT=({image:n})=>({value:n});var iT=Object.freeze({__proto__:null,sanitize:nT,schema:sT,normalize:rT});const oT=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),aT=ae("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),cT=ae("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),lT=ae("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),uT=ae("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),hT=ae("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function dT(){const{label:n,value:e,onUpdate:t,disabled:s}=gt(),{popinRef:r,wrapperRef:i,shown:o,show:a,hide:c}=j0(),l=y.useCallback(m=>{m.length&&t(m[0])},[t]),u=y.useCallback(m=>{m.stopPropagation(),t(void 0)},[t]),{getRootProps:h,getInputProps:d,isDragAccept:f}=N0({maxFiles:1,accept:"image/*",onDrop:l,disabled:s});return M.createElement(tn,{input:!0},M.createElement(fn,null,n),M.createElement(oT,null,M.createElement(cT,{ref:r,hasImage:!!e,onPointerDown:()=>!!e&&a(),onPointerUp:c,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&M.createElement(Ou,null,M.createElement(c0,{onPointerUp:c,style:{cursor:"pointer"}}),M.createElement(lT,{ref:i,style:{backgroundImage:`url(${e})`}})),M.createElement(aT,h({isDragAccept:f}),M.createElement("input",d()),M.createElement(uT,null,f?"drop image":"click or drop")),M.createElement(hT,{onClick:u,disabled:!e})))}var fT=de({component:dT},iT);const of=St().number(),pT=(n,e)=>St().array().length(2).every.number().test(n)&&St().schema({min:of,max:of}).test(e),Ea=n=>({min:n[0],max:n[1]}),B0=(n,{bounds:[e,t]},s)=>{const r=Array.isArray(n)?Ea(n):n,i={min:s[0],max:s[1]},{min:o,max:a}=de(de({},i),r);return[bs(Number(o),e,Math.max(e,a)),bs(Number(a),Math.min(t,o),t)]},mT=({value:n,min:e,max:t})=>{const s={min:e,max:t},r=m0(Ea(n),{min:s,max:s}),i=[e,t],o=de(de({},r),{},{bounds:i});return{value:B0(Ea(n),o,n),settings:o}};var gT=Object.freeze({__proto__:null,schema:pT,format:Ea,sanitize:B0,normalize:mT});const _T=["value","bounds","onDrag"],yT=["bounds"],vT=ae("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function bT(n){let{value:e,bounds:[t,s],onDrag:r}=n,i=Pe(n,_T);const o=y.useRef(null),a=y.useRef(null),c=y.useRef(null),l=y.useRef(0),u=Un("sizes","scrubberWidth"),h=wo(({event:m,first:p,xy:[g],movement:[_],memo:x={}})=>{if(p){const{width:v,left:b}=o.current.getBoundingClientRect();l.current=v-parseFloat(u);const T=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;x.pos=ba((g-b)/v,t,s);const E=Math.abs(x.pos-e.min)-Math.abs(x.pos-e.max);x.key=E<0||E===0&&x.pos<=e.min?"min":"max",T&&(x.pos=e[x.key])}const k=x.pos+ba(_/l.current,0,s-t);return r({[x.key]:Gb(k,i[x.key])}),x}),d=`calc(${va(e.min,t,s)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-va(e.max,t,s)} * (100% - ${u} - 8px) + 4px)`;return M.createElement(d0,Ze({ref:o},h()),M.createElement(h0,null,M.createElement(f0,{style:{left:d,right:f}})),M.createElement(Cl,{position:"left",ref:a,style:{left:d}}),M.createElement(Cl,{position:"right",ref:c,style:{right:f}}))}function xT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=gt(),r=Pe(s,yT);return M.createElement(M.Fragment,null,M.createElement(tn,{input:!0},M.createElement(fn,null,n),M.createElement(vT,null,M.createElement(bT,Ze({value:e},s,{onDrag:t})),M.createElement(Pu,{value:e,settings:r,onUpdate:t,innerLabelTrim:0}))))}var wT=de({component:xT},gT);const kT=()=>{const n=new Map;return{on:(e,t)=>{let s=n.get(e);s===void 0&&(s=new Set,n.set(e,s)),s.add(t)},off:(e,t)=>{const s=n.get(e);s!==void 0&&(s.delete(t),s.size===0&&n.delete(e))},emit:(e,...t)=>{const s=n.get(e);if(s!==void 0)for(const r of s)r(...t)}}},TT=["type","value"],ET=["onChange","transient","onEditStart","onEditEnd"],CT=function(){const e=Hw(Gw(()=>({data:{}}))),t=kT();this.storeId=sb(),this.useStore=e;const s={},r=new Set;this.getVisiblePaths=()=>{const o=this.getData(),a=Object.keys(o),c=[];Object.entries(s).forEach(([u,h])=>{h.render&&a.some(d=>d.indexOf(u)===0)&&!h.render(this.get)&&c.push(u+".")});const l=[];return r.forEach(u=>{u in o&&o[u].__refCount>0&&c.every(h=>u.indexOf(h)===-1)&&(!o[u].render||o[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=o=>{o.forEach(a=>r.add(a))},this.orderPaths=o=>(this.setOrderedPaths(o),o),this.disposePaths=o=>{e.setState(a=>{const c=a.data;return o.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in cn&&delete c[l]}}),{data:c}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=o=>s[o]||{},this.getData=()=>e.getState().data,this.addData=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{let d=l[u];if(d){const{type:f,value:m}=h,p=Pe(h,TT);f!==d.type?zn(Be.INPUT_TYPE_OVERRIDE,f):((d.__refCount===0||a)&&Object.assign(d,p),d.__refCount++)}else l[u]=de(de({},h),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(o,a,c)=>{e.setState(l=>{const u=l.data;return Od(u[o],a,o,this,c),{data:u}})},this.setSettingsAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].settings=de(de({},l[o].settings),a),{data:l}})},this.disableInputAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].disabled=a,{data:l}})},this.set=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{try{Od(l[u],h,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=o=>{try{return this.getData()[o]}catch{zn(Be.PATH_DOESNT_EXIST,o)}},this.get=o=>{var a;return(a=this.getInput(o))===null||a===void 0?void 0:a.value},this.emitOnEditStart=o=>{t.emit(`onEditStart:${o}`,this.get(o),o,de(de({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{t.emit(`onEditEnd:${o}`,this.get(o),o,de(de({},this.getInput(o)),{},{get:this.get}))},this.subscribeToEditStart=(o,a)=>{const c=`onEditStart:${o}`;return t.on(c,a),()=>t.off(c,a)},this.subscribeToEditEnd=(o,a)=>{const c=`onEditEnd:${o}`;return t.on(c,a),()=>t.off(c,a)};const i=(o,a,c)=>{const l={};return Object.entries(o).forEach(([u,h])=>{if(u==="")return zn(Be.EMPTY_KEY);let d=Fu(a,u);if(h.type===cn.FOLDER){const f=i(h.schema,d,c);Object.assign(l,f),d in s||(s[d]=h.settings)}else if(u in c)zn(Be.DUPLICATE_KEYS,u,d,c[u].path);else{const f=hb(h,u,d,l);if(f){const{type:m,options:p,input:g}=f,{onChange:_,transient:x,onEditStart:k,onEditEnd:v}=p,b=Pe(p,ET);l[d]=de(de(de({type:m},b),g),{},{fromPanel:!0}),c[u]={path:d,onChange:_,transient:x,onEditStart:k,onEditEnd:v}}else zn(Be.UNKNOWN_INPUT,d,h)}}),l};this.getDataFromSchema=o=>{const a={};return[i(o,"",a),a]}},W0=new CT,ST={collapsed:!1};function OT(n,e){return{type:cn.FOLDER,schema:n,settings:de(de({},ST),e)}}const af=n=>"__levaInput"in n,AT=(n,e)=>{const t={},s=e?e.toLowerCase():null;return n.forEach(r=>{const[i,o]=Ak(r);(!s||i.toLowerCase().indexOf(s)>-1)&&Ok(t,o,{[i]:{__levaInput:!0,path:r}})}),t},PT=["type","label","path","valueKey","value","settings","setValue","disabled"];function RT(n){let{type:e,label:t,path:s,valueKey:r,value:i,settings:o,setValue:a,disabled:c}=n,l=Pe(n,PT);const{displayValue:u,onChange:h,onUpdate:d}=l0({type:e,value:i,settings:o,setValue:a}),f=Zs[e].component;return f?M.createElement(Jp.Provider,{value:de({key:r,path:s,id:""+s,label:t,displayValue:u,value:i,onChange:h,onUpdate:d,settings:o,setValue:a,disabled:c},l)},M.createElement(Rb,{disabled:c},M.createElement(f,null))):(zn(Be.NO_COMPONENT_FOR_TYPE,e,s),null)}const DT=ae("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function MT({onClick:n,settings:e,label:t}){const s=xo();return M.createElement(tn,null,M.createElement(DT,{disabled:e.disabled,onClick:()=>n(s.get)},t))}const IT=ae("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),NT=ae("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),$T=({label:n,opts:e})=>{let t=typeof n=="string"&&n.trim()===""?null:n,s=e;return typeof e.opts=="object"&&(s.label!==void 0&&(t=e.label),s=e.opts),{label:t,opts:s}};function FT(n){const{label:e,opts:t}=$T(n),s=xo();return M.createElement(tn,{input:!!e},e&&M.createElement(fn,null,e),M.createElement(IT,null,Object.entries(t).map(([r,i])=>M.createElement(NT,{key:r,onClick:()=>i(s.get)},r))))}const LT=ae("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),q0=100;function jT(n,e){n.push(e),n.length>q0&&n.shift()}const VT=y.forwardRef(function({initialValue:n},e){const t=Un("colors","highlight3"),s=Un("colors","elevation2"),r=Un("colors","highlight1"),[i,o]=y.useMemo(()=>[yt(r).alpha(.4).toRgbString(),yt(r).alpha(.1).toRgbString()],[r]),a=y.useRef([n]),c=y.useRef(n),l=y.useRef(n),u=y.useRef(),h=y.useCallback((m,p)=>{if(!m)return;const{width:g,height:_}=m,x=new Path2D,k=g/q0,v=_*.05;for(let E=0;E({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),jT(a.current,m),u.current=requestAnimationFrame(()=>h(d.current,f.current))}}),[d,f,h]),y.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),M.createElement(LT,{ref:d})}),cf=n=>Number.isFinite(n)?n.toPrecision(2):n.toString(),zT=y.forwardRef(function({initialValue:n},e){const[t,s]=y.useState(cf(n));return y.useImperativeHandle(e,()=>({frame:r=>s(cf(r))}),[]),M.createElement("div",null,t)});function lf(n){return typeof n=="function"?n():n.current}function UT({label:n,objectOrFn:e,settings:t}){const s=y.useRef(),r=y.useRef(lf(e));return y.useEffect(()=>{const i=window.setInterval(()=>{var o;document.hidden||(o=s.current)===null||o===void 0||o.frame(lf(e))},t.interval);return()=>window.clearInterval(i)},[e,t.interval]),M.createElement(tn,{input:!0},M.createElement(fn,{align:"top"},n),t.graph?M.createElement(VT,{ref:s,initialValue:r.current}):M.createElement(zT,{ref:s,initialValue:r.current}))}const BT=["type","label","key"],WT={[cn.BUTTON]:MT,[cn.BUTTON_GROUP]:FT,[cn.MONITOR]:UT},qT=M.memo(({path:n})=>{const[e,{set:t,setSettings:s,disable:r,storeId:i,emitOnEditStart:o,emitOnEditEnd:a}]=Ub(n);if(!e)return null;const{type:c,label:l,key:u}=e,h=Pe(e,BT);if(c in cn){const d=WT[c];return M.createElement(d,Ze({label:l,path:n},h))}return c in Zs?M.createElement(RT,Ze({key:i+n,type:c,label:l,storeId:i,path:n,valueKey:u,setValue:t,setSettings:s,disable:r,emitOnEditStart:o,emitOnEditEnd:a},h)):(Xv(Be.UNSUPPORTED_INPUT,c,n),null)});function HT({toggle:n,toggled:e,name:t}){return M.createElement(Ob,{onClick:()=>n()},M.createElement(Au,{toggled:e}),M.createElement("div",null,t))}const GT=({name:n,path:e,tree:t})=>{const s=xo(),r=Fu(e,n),{collapsed:i,color:o}=s.getFolderSettings(r),[a,c]=y.useState(!i),l=y.useRef(null),u=Un("colors","folderWidgetColor"),h=Un("colors","folderTextColor");return y.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",o||u),l.current.style.setProperty("--leva-colors-folderTextColor",o||h)},[o,u,h]),M.createElement(xa,{ref:l},M.createElement(HT,{name:n,toggled:a,toggle:()=>c(d=>!d)}),M.createElement(H0,{parent:r,tree:t,toggled:a}))},H0=M.memo(({isRoot:n=!1,fill:e=!1,flat:t=!1,parent:s,tree:r,toggled:i})=>{const{wrapperRef:o,contentRef:a}=Dk(i),c=xo(),l=([h,d])=>{var f;return(af(d)?(f=c.getInput(d.path))===null||f===void 0?void 0:f.order:c.getFolderSettings(Fu(s,h)).order)||0},u=Object.entries(r).sort((h,d)=>l(h)-l(d));return M.createElement(Tl,{ref:o,isRoot:n,fill:e,flat:t},M.createElement(i0,{ref:a,isRoot:n,toggled:i},u.map(([h,d])=>af(d)?M.createElement(qT,{key:d.path,valueKey:d.valueKey,path:d.path}):M.createElement(GT,{key:h,name:h,path:s,tree:d}))))}),YT=ae("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${a0}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),G0=40,Ca=ae("i",{$flexCenter:"",width:G0,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),XT=ae("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),ZT=ae("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Ca}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),KT=ae("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),QT=ae("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:G0}}}}),JT=M.forwardRef(({setFilter:n,toggle:e},t)=>{const[s,r]=y.useState(""),i=y.useMemo(()=>Gp(n,250),[n]),o=()=>{n(""),r("")},a=c=>{const l=c.currentTarget.value;e(!0),r(l)};return y.useEffect(()=>{i(s)},[s,i]),M.createElement(M.Fragment,null,M.createElement(KT,{ref:t,value:s,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),M.createElement(Ca,{onClick:()=>o(),style:{visibility:s?"visible":"hidden"}},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function eE({setFilter:n,onDrag:e,onDragStart:t,onDragEnd:s,toggle:r,toggled:i,title:o,drag:a,filterEnabled:c,from:l}){const[u,h]=y.useState(!1),d=y.useRef(null);y.useEffect(()=>{var m,p;u?(m=d.current)===null||m===void 0||m.focus():(p=d.current)===null||p===void 0||p.blur()},[u]);const f=wo(({offset:[m,p],first:g,last:_})=>{e({x:m,y:p}),g&&t({x:m,y:p}),_&&s({x:m,y:p})},{filterTaps:!0,from:({offset:[m,p]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||p]});return y.useEffect(()=>{const m=p=>{p.key==="L"&&p.shiftKey&&p.metaKey&&h(g=>!g)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),M.createElement(M.Fragment,null,M.createElement(XT,{mode:a?"drag":void 0},M.createElement(Ca,{active:!i,onClick:()=>r()},M.createElement(Au,{toggled:i,width:12,height:8})),M.createElement(QT,Ze({},a?f():{},{drag:a,filterEnabled:c}),o===void 0&&a?M.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},M.createElement("circle",{cx:"2",cy:"2",r:"2"}),M.createElement("circle",{cx:"14",cy:"2",r:"2"}),M.createElement("circle",{cx:"26",cy:"2",r:"2"}),M.createElement("circle",{cx:"2",cy:"12",r:"2"}),M.createElement("circle",{cx:"14",cy:"12",r:"2"}),M.createElement("circle",{cx:"26",cy:"12",r:"2"})):o),c&&M.createElement(Ca,{active:u,onClick:()=>h(m=>!m)},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},M.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),M.createElement(ZT,{toggled:u},M.createElement(JT,{ref:d,setFilter:n,toggle:r})))}const tE=["store","hidden","theme","collapsed"];function nE(n){let{store:e,hidden:t=!1,theme:s,collapsed:r=!1}=n,i=Pe(n,tE);const o=L0(()=>wb(s),[s]),[a,c]=y.useState(!r),l=typeof r=="object"?!r.collapsed:a,u=y.useMemo(()=>typeof r=="object"?h=>{typeof h=="function"?r.onChange(!h(!r.collapsed)):r.onChange(!h)}:c,[r]);return!e||t?null:M.createElement(Cu.Provider,{value:o},M.createElement(sE,Ze({store:e},i,{toggled:l,setToggle:u,rootClass:o.className})))}const sE=M.memo(({store:n,rootClass:e,fill:t=!1,flat:s=!1,neverHide:r=!1,oneLineLabels:i=!1,titleBar:o={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,h;const d=Mk(n),[f,m]=y.useState(""),p=y.useMemo(()=>AT(d,f),[d,f]),[g,_]=u0(),x=r||d.length>0,k=typeof o=="object"&&o.title||void 0,v=typeof o=="object"&&(u=o.drag)!==null&&u!==void 0?u:!0,b=typeof o=="object"&&(h=o.filter)!==null&&h!==void 0?h:!0,T=typeof o=="object"&&o.position||void 0,E=typeof o=="object"&&o.onDrag||void 0,w=typeof o=="object"&&o.onDragStart||void 0,C=typeof o=="object"&&o.onDragEnd||void 0;return M.useEffect(()=>{_({x:T==null?void 0:T.x,y:T==null?void 0:T.y})},[T,_]),xb(),M.createElement(t0.Provider,{value:{hideCopyButton:a}},M.createElement(YT,{ref:g,className:e,fill:t,flat:s,oneLineLabels:i,hideTitleBar:!o,style:{display:x?"block":"none"}},o&&M.createElement(eE,{onDrag:S=>{_(S),E==null||E(S)},onDragStart:S=>w==null?void 0:w(S),onDragEnd:S=>C==null?void 0:C(S),setFilter:m,toggle:S=>l(R=>S??!R),toggled:c,title:k,drag:v,filterEnabled:b,from:T}),x&&M.createElement(e0.Provider,{value:n},M.createElement(H0,{isRoot:!0,fill:t,flat:s,tree:p,toggled:c}))))}),rE=["isRoot"];let Sa=!1,js=null;function Y0(n){let{isRoot:e=!1}=n,t=Pe(n,rE);return y.useEffect(()=>(Sa=!0,!e&&js&&(js.remove(),js=null),()=>{e||(Sa=!1)}),[e]),M.createElement(nE,Ze({store:W0},t))}function iE(n){y.useEffect(()=>{n&&!Sa&&(js||(js=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(js),fb(M.createElement(Y0,{isRoot:!0}),js))),Sa=!0)},[n])}function oE(n,e,t,s,r){let i,o,a,c,l;return typeof n=="string"?(o=n,i=e,Array.isArray(t)?l=t:t&&("store"in t?(c=t,l=s):(a=t,Array.isArray(s)?l=s:(c=s,l=r)))):(i=n,Array.isArray(e)?l=e:(c=e,l=t)),{schema:i,folderName:o,folderSettings:a,hookSettings:c,deps:l||[]}}function aE(n,e,t,s,r){const{folderName:i,schema:o,folderSettings:a,hookSettings:c,deps:l}=oE(n,e,t,s,r),u=typeof o=="function",h=y.useRef(!1),d=y.useRef(!0),f=L0(()=>{h.current=!0;const R=typeof o=="function"?o():o;return i?{[i]:OT(R,a)}:R},l),m=!(c!=null&&c.store);iE(m);const[p]=y.useState(()=>(c==null?void 0:c.store)||W0),[g,_]=y.useMemo(()=>p.getDataFromSchema(f),[p,f]),[x,k,v,b,T]=y.useMemo(()=>{const R=[],O=[],L={},j={},W={};return Object.values(_).forEach(({path:B,onChange:z,onEditStart:U,onEditEnd:X,transient:K})=>{R.push(B),z?(L[B]=z,K||O.push(B)):O.push(B),U&&(j[B]=U),X&&(W[B]=X)}),[R,O,L,j,W]},[_]),E=y.useMemo(()=>p.orderPaths(x),[x,p]),w=Ik(p,k,g),C=y.useCallback(R=>{const O=Object.entries(R).reduce((L,[j,W])=>Object.assign(L,{[_[j].path]:W}),{});p.set(O,!1)},[p,_]),S=y.useCallback(R=>p.get(_[R].path),[p,_]);return y.useEffect(()=>{const R=!d.current&&h.current;return p.addData(g,R),d.current=!1,h.current=!1,()=>p.disposePaths(E)},[p,E,g]),y.useEffect(()=>{const R=[];return Object.entries(v).forEach(([O,L])=>{L(p.get(O),O,de({initial:!0,get:p.get},p.getInput(O)));const j=p.useStore.subscribe(W=>{const B=W.data[O];return[B.disabled?void 0:B.value,B]},([W,B])=>L(W,O,de({initial:!1,get:p.get},B)),{equalityFn:bo});R.push(j)}),()=>R.forEach(O=>O())},[p,v]),y.useEffect(()=>{const R=[];return Object.entries(b).forEach(([O,L])=>R.push(p.subscribeToEditStart(O,L))),Object.entries(T).forEach(([O,L])=>R.push(p.subscribeToEditEnd(O,L))),()=>R.forEach(O=>O())},[b,T,p]),u?[w,C,S]:w}ts(un.SELECT,ix);ts(un.IMAGE,fT);ts(un.NUMBER,Xb);ts(un.COLOR,qk);ts(un.STRING,px);ts(un.BOOLEAN,xx);ts(un.INTERVAL,wT);ts(un.VECTOR3D,Gk);ts(un.VECTOR2D,tT);const cE={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},fs=ep(n=>({...cE,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),lE=()=>{const[n,e]=y.useState(""),t=y.useRef(null),{fetchData:s,setAbortRequests:r,seedQuestions:i}=Os(v=>v),[o]=np(v=>[v.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=go(v=>({setUniverseQuestionIsOpen:v.setUniverseQuestionIsOpen,setSidebarOpen:v.setSidebarOpen,setShowCollapseButton:v.setShowCollapseButton})),u=g_(v=>v.resetAiSummaryAnswer),[h,d]=y.useState([]);y.useEffect(()=>{i&&d(x(i).slice(0,4))},[i]),y.useEffect(()=>{t.current&&t.current.focus()},[]);const f=async v=>{v&&(u(),a(),c(!0),l(!0)),await s(o,r,v)},m=!!n.trim().length,p=async v=>{v.keyCode===13&&v.shiftKey===!1&&m&&(v.preventDefault(),f(n))},g=async v=>{e(v),await f(v)},_=()=>{a(),c(!0),l(!0)},x=v=>{const b=[...v];let T=b.length-1;for(;T>0;){const E=Math.floor(Math.random()*(T+1));[b[T],b[E]]=[b[E],b[T]],T-=1}return b},k=!!n&&n.trim().length>0;return V.jsxs(dE,{children:["Ideas have shapes",V.jsxs(hE,{onKeyDown:p,py:12,tabIndex:-1,children:[V.jsx(uE,{ref:t,onChange:v=>e(v.target.value),placeholder:"What do you want to know?",value:n}),V.jsx(fE,{color:"secondary",disabled:!k,onClick:()=>f(n),variant:"contained",children:k?V.jsxs(V.Fragment,{children:["Search ",V.jsx(Mh,{})]}):V.jsx(Mh,{})})]}),h.length>0&&V.jsx(mE,{children:h.map(v=>V.jsxs(gE,{onClick:()=>g(v),children:[V.jsx(L_,{}),v]},v))}),V.jsx(pE,{"data-testid":"explore-graph-btn",onClick:_,startIcon:V.jsx(j_,{}),children:"Explore Graph"})]})},uE=Ke(ny).attrs({maxRows:3})` + background: ${Ae.BG1}; + max-width: 700px; + width: 700px; + color: ${Ae.white}; + padding: 0 16px 0 16px; + overflow-y: auto !important; + border: none; + resize: none; + outline: none; + border-radius: 12px; + font-family: 'Barlow'; + display: flex; + align-items: center; + text-align: justify; + font-size: 16px; + font-weight: 400; + + &:-moz-placeholder, /* Firefox 18- */ + &::-moz-placeholder, /* Firefox 19+ */ + &:-ms-input-placeholder, /* IE 10+ */ + &::-webkit-input-placeholder, /* Webkit based */ + &::placeholder { + color: #0bf; + } + + &::-webkit-scrollbar { + width: 3px; + } + + &::-webkit-scrollbar-track { + border-radius: 12px; + margin: 13px; + overflow-y: hidden; + } +`,hE=Ke(Qn)` + position: relative; + margin-top: 30px; + background: ${Ae.BG1}; + max-width: 702px; + width: 702px; + color: ${Ae.white}; + min-height: 150px; + border: 1px solid ${Ae.modalShield}; + resize: none; + outline: none; + border-radius: 12px; + box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); +`,dE=Ke(Qn)` + background: #16161de3; + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + color: #fff; + align-items: center; + justify-content: center; + font-size: 32px; + font-style: normal; + font-weight: 700; + line-height: 16px; + font-family: 'Barlow'; +`,fE=Ke(tp)` + && { + position: absolute; + bottom: 16px; + right: 16px; + height: 32px; + border-radius: 16px; + min-width: 32px; + } + + &&.MuiButton-root { + padding: 0 10px 0 12px; + } + + svg { + margin-top: 1px; + width: 11px; + height: 11px; + } +`,pE=Ke(tp)` + && { + position: absolute; + bottom: 20px; + right: 20px; + border-radius: 16px; + } +`,mE=Ke.div` + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 10px; + margin-top: 20px; + max-width: 702px; + width: 100%; +`,gE=Ke.div` + background: ${Ae.BG1}; + color: ${Ae.white}; + padding: 15px 12px; + border-radius: 8px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: flex-start; + text-align: left; + font-family: Barlow; + font-size: 14px; + font-weight: 400; + gap: 10px; + &:hover { + background: ${Ae.SEEDQUESTION_HOVER}; + } + + &:active { + background: ${Ae.SEEDQUESTION}; + } + svg { + width: 20px; + height: 20px; + } + + path { + fill: ${Ae.modalWhiteOverlayBg}; + } +`,_E=new ce(0,0,0),uf=1,yE=16777215,vE=50,bE=(n,e)=>{var i,o;if(!(n!=null&&n.ref_id)||!(e!=null&&e.ref_id))return!1;let t=!1;const s=n.guests,r=e.guests;return((i=n.children)!=null&&i.includes(e.ref_id)||(o=e.children)!=null&&o.includes(n.ref_id))&&(t=!0),(s!=null&&s.find(a=>a.ref_id===e.ref_id)||r!=null&&r.find(a=>a.ref_id===n.ref_id))&&(t=!0),t},Di=new ce(0,0,0),hf=100,xE=600,wE=2e3,tl={x:172.7392402058252,y:-239.04675366094037,z:-2e3},X0="14.8.49",df=(n,e,t)=>({endTime:e,insertTime:t,type:"exponentialRampToValue",value:n}),ff=(n,e,t)=>({endTime:e,insertTime:t,type:"linearRampToValue",value:n}),jl=(n,e)=>({startTime:e,type:"setValue",value:n}),Z0=(n,e,t)=>({duration:t,startTime:e,type:"setValueCurve",values:n}),K0=(n,e,{startTime:t,target:s,timeConstant:r})=>s+(e-s)*Math.exp((t-n)/r),kr=n=>n.type==="exponentialRampToValue",Oa=n=>n.type==="linearRampToValue",ls=n=>kr(n)||Oa(n),Lu=n=>n.type==="setValue",Fn=n=>n.type==="setValueCurve",Aa=(n,e,t,s)=>{const r=n[e];return r===void 0?s:ls(r)||Lu(r)?r.value:Fn(r)?r.values[r.values.length-1]:K0(t,Aa(n,e-1,r.startTime,s),r)},pf=(n,e,t,s,r)=>t===void 0?[s.insertTime,r]:ls(t)?[t.endTime,t.value]:Lu(t)?[t.startTime,t.value]:Fn(t)?[t.startTime+t.duration,t.values[t.values.length-1]]:[t.startTime,Aa(n,e-1,t.startTime,r)],Vl=n=>n.type==="cancelAndHold",zl=n=>n.type==="cancelScheduledValues",os=n=>Vl(n)||zl(n)?n.cancelTime:kr(n)||Oa(n)?n.endTime:n.startTime,mf=(n,e,t,{endTime:s,value:r})=>t===r?r:0t+(n-e)/(s-e)*(r-t),kE=(n,e)=>{const t=Math.floor(e),s=Math.ceil(e);return t===s?n[t]:(1-(e-t))*n[t]+(1-(s-e))*n[s]},TE=(n,{duration:e,startTime:t,values:s})=>{const r=(n-t)/e*(s.length-1);return kE(s,r)},Qo=n=>n.type==="setTarget";class EE{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const t=os(e);if(Vl(e)||zl(e)){const s=this._automationEvents.findIndex(i=>zl(e)&&Fn(i)?i.startTime+i.duration>=t:os(i)>=t),r=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),Vl(e)){const i=this._automationEvents[this._automationEvents.length-1];if(r!==void 0&&ls(r)){if(i!==void 0&&Qo(i))throw new Error("The internal list is malformed.");const o=i===void 0?r.insertTime:Fn(i)?i.startTime+i.duration:os(i),a=i===void 0?this._defaultValue:Fn(i)?i.values[i.values.length-1]:i.value,c=kr(r)?mf(t,o,a,r):gf(t,o,a,r),l=kr(r)?df(c,t,this._currenTime):ff(c,t,this._currenTime);this._automationEvents.push(l)}if(i!==void 0&&Qo(i)&&this._automationEvents.push(jl(this.getValue(t),t)),i!==void 0&&Fn(i)&&i.startTime+i.duration>t){const o=t-i.startTime,a=(i.values.length-1)/i.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=i.values.slice(0,c);if(l<1)for(let h=1;hos(o)>t),r=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(r!==void 0&&Fn(r)&&os(r)+r.duration>t)return!1;const i=kr(e)?df(e.value,e.endTime,this._currenTime):Oa(e)?ff(e.value,t,this._currenTime):e;if(s===-1)this._automationEvents.push(i);else{if(Fn(e)&&t+e.duration>os(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,i)}}return!0}flush(e){const t=this._automationEvents.findIndex(s=>os(s)>e);if(t>1){const s=this._automationEvents.slice(t-1),r=s[0];Qo(r)&&s.unshift(jl(Aa(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=s}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const t=this._automationEvents.findIndex(o=>os(o)>e),s=this._automationEvents[t],r=(t===-1?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(i!==void 0&&Qo(i)&&(s===void 0||!ls(s)||s.insertTime>e))return K0(e,Aa(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(i!==void 0&&Lu(i)&&(s===void 0||!ls(s)))return i.value;if(i!==void 0&&Fn(i)&&(s===void 0||!ls(s)||i.startTime+i.duration>e))return e({cancelTime:n,type:"cancelAndHold"}),SE=n=>({cancelTime:n,type:"cancelScheduledValues"}),OE=(n,e)=>({endTime:e,type:"exponentialRampToValue",value:n}),AE=(n,e)=>({endTime:e,type:"linearRampToValue",value:n}),PE=(n,e,t)=>({startTime:e,target:n,timeConstant:t,type:"setTarget"}),RE=()=>new DOMException("","AbortError"),DE=n=>(e,t,[s,r,i],o)=>{n(e[r],[t,s,i],a=>a[0]===t&&a[1]===s,o)},ME=n=>(e,t,s)=>{const r=[];for(let i=0;i(e,t)=>{n.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:t})},Lr=new WeakSet,Q0=new WeakMap,ju=new WeakMap,J0=new WeakMap,Vu=new WeakMap,fc=new WeakMap,em=new WeakMap,Ul=new WeakMap,Bl=new WeakMap,Wl=new WeakMap,tm={construct(){return tm}},NE=n=>{try{const e=new Proxy(n,tm);new e}catch{return!1}return!0},_f=/^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]*);?/,yf=(n,e)=>{const t=[];let s=n.replace(/^[\s]+/,""),r=s.match(_f);for(;r!==null;){const i=r[1].slice(1,-1),o=r[0].replace(/([\s]+)?;?$/,"").replace(i,new URL(i,e).toString());t.push(o),s=s.slice(r[0].length).replace(/^[\s]+/,""),r=s.match(_f)}return[t.join(";"),s]},vf=n=>{if(n!==void 0&&!Array.isArray(n))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},bf=n=>{if(!NE(n))throw new TypeError("The given value for processorCtor should be a constructor.");if(n.prototype===null||typeof n.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},$E=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{let f=0;return(m,p,g={credentials:"omit"})=>{const _=u.get(m);if(_!==void 0&&_.has(p))return Promise.resolve();const x=l.get(m);if(x!==void 0){const b=x.get(p);if(b!==void 0)return b}const k=i(m),v=k.audioWorklet===void 0?r(p).then(([b,T])=>{const[E,w]=yf(b,T),C=`${E};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${w} +})})(window,'_AWGS')`;return t(C)}).then(()=>{const b=d._AWGS.pop();if(b===void 0)throw new SyntaxError;s(k.currentTime,k.sampleRate,()=>b(class{},void 0,(T,E)=>{if(T.trim()==="")throw e();const w=Bl.get(k);if(w!==void 0){if(w.has(T))throw e();bf(E),vf(E.parameterDescriptors),w.set(T,E)}else bf(E),vf(E.parameterDescriptors),Bl.set(k,new Map([[T,E]]))},k.sampleRate,void 0,void 0))}):Promise.all([r(p),Promise.resolve(n(h,h))]).then(([[b,T],E])=>{const w=f+1;f=w;const[C,S]=yf(b,T),j=`${C};((AudioWorkletProcessor,registerProcessor)=>{${S} +})(${E?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${E?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${E?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${w}',class extends AudioWorkletProcessor{process(){return !1}})`,W=new Blob([j],{type:"application/javascript; charset=utf-8"}),B=URL.createObjectURL(W);return k.audioWorklet.addModule(B,g).then(()=>{if(a(k))return k;const z=o(k);return z.audioWorklet.addModule(B,g).then(()=>z)}).then(z=>{if(c===null)throw new SyntaxError;try{new c(z,`__sac${w}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(B))});return x===void 0?l.set(m,new Map([[p,v]])):x.set(p,v),v.then(()=>{const b=u.get(m);b===void 0?u.set(m,new Set([p])):b.add(p)}).finally(()=>{const b=l.get(m);b!==void 0&&b.delete(p)}),v}},hn=(n,e)=>{const t=n.get(e);if(t===void 0)throw new Error("A value with the given key could not be found.");return t},pc=(n,e)=>{const t=Array.from(n).filter(e);if(t.length>1)throw Error("More than one element was found.");if(t.length===0)throw Error("No element was found.");const[s]=t;return n.delete(s),s},nm=(n,e,t,s)=>{const r=hn(n,e),i=pc(r,o=>o[0]===t&&o[1]===s);return r.size===0&&n.delete(e),i},Eo=n=>hn(em,n),jr=n=>{if(Lr.has(n))throw new Error("The AudioNode is already stored.");Lr.add(n),Eo(n).forEach(e=>e(!0))},sm=n=>"port"in n,Co=n=>{if(!Lr.has(n))throw new Error("The AudioNode is not stored.");Lr.delete(n),Eo(n).forEach(e=>e(!1))},ql=(n,e)=>{!sm(n)&&e.every(t=>t.size===0)&&Co(n)},FE=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{const f=new WeakMap;return(m,p,g,_,x)=>{const{activeInputs:k,passiveInputs:v}=i(p),{outputs:b}=i(m),T=a(m),E=w=>{const C=c(p),S=c(m);if(w){const R=nm(v,m,g,_);n(k,m,R,!1),!x&&!h(m)&&t(S,C,g,_),d(p)&&jr(p)}else{const R=s(k,m,g,_);e(v,_,R,!1),!x&&!h(m)&&r(S,C,g,_);const O=o(p);if(O===0)u(p)&&ql(p,k);else{const L=f.get(p);L!==void 0&&clearTimeout(L),f.set(p,setTimeout(()=>{u(p)&&ql(p,k)},O*1e3))}}};return l(b,[p,g,_],w=>w[0]===p&&w[1]===g&&w[2]===_,!0)?(T.add(E),u(m)?n(k,m,[g,_,E],!0):e(v,_,[m,g,E],!0),!0):!1}},LE=n=>(e,t,[s,r,i],o)=>{const a=e.get(s);a===void 0?e.set(s,new Set([[r,t,i]])):n(a,[r,t,i],c=>c[0]===r&&c[1]===t,o)},jE=n=>(e,t)=>{const s=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});t.connect(s).connect(e.destination);const r=()=>{t.removeEventListener("ended",r),t.disconnect(s),s.disconnect()};t.addEventListener("ended",r)},VE=n=>(e,t)=>{n(e).add(t)},zE={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},UE=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...zE,...c},h=s(l,u),d=i(l)?e():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,t()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,t()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},_t=(n,e)=>n.context===e,BE=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!_t(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},Pa=n=>{try{n.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},An=()=>new DOMException("","IndexSizeError"),zu=n=>{n.getChannelData=(e=>t=>{try{return e.call(n,t)}catch(s){throw s.code===12?An():s}})(n.getChannelData)},WE={numberOfChannels:1},qE=(n,e,t,s,r,i,o,a)=>{let c=null;return class rm{constructor(u){if(r===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:f}={...WE,...u};c===null&&(c=new r(1,1,44100));const m=s!==null&&e(i,i)?new s({length:h,numberOfChannels:d,sampleRate:f}):c.createBuffer(d,h,f);if(m.numberOfChannels===0)throw t();return typeof m.copyFromChannel!="function"?(o(m),zu(m)):e(Pa,()=>Pa(m))||a(m),n.add(m),m}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===rm.prototype||n.has(u)}}},Ct=-34028234663852886e22,vt=-Ct,Bn=n=>Lr.has(n),HE={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},GE=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...HE,...u},f=r(h,d),m=o(h),p=m?e():null;super(l,!1,f,p),this._audioBufferSourceNodeRenderer=p,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=t(this,m,f.playbackRate,vt,Ct)}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"){jr(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),Bn(this)&&Co(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},YE=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=_t(h,u);if(!d){const f={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=e(u,f),o!==null&&h.start(...o),a!==null&&h.stop(a)}return i.set(u,h),d?await n(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},XE=n=>"playbackRate"in n,ZE=n=>"frequency"in n&&"gain"in n,KE=n=>"offset"in n,QE=n=>!("frequency"in n)&&"gain"in n,JE=n=>"detune"in n&&"frequency"in n,eC=n=>"pan"in n,wt=n=>hn(Q0,n),So=n=>hn(J0,n),Hl=(n,e)=>{const{activeInputs:t}=wt(n);t.forEach(r=>r.forEach(([i])=>{e.includes(n)||Hl(i,[...e,n])}));const s=XE(n)?[n.playbackRate]:sm(n)?Array.from(n.parameters.values()):ZE(n)?[n.Q,n.detune,n.frequency,n.gain]:KE(n)?[n.offset]:QE(n)?[n.gain]:JE(n)?[n.detune,n.frequency]:eC(n)?[n.pan]:[];for(const r of s){const i=So(r);i!==void 0&&i.activeInputs.forEach(([o])=>Hl(o,e))}Bn(n)&&Co(n)},im=n=>{Hl(n.destination,[])},tC=n=>n===void 0||typeof n=="number"||typeof n=="string"&&(n==="balanced"||n==="interactive"||n==="playback"),nC=(n,e,t,s,r,i,o,a,c)=>class extends n{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(m){throw m.code===12&&m.message==="sampleRate is not in range"?t():m}if(h===null)throw s();if(!tC(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw t();super(h,2);const{latencyHint:d}=u,{sampleRate:f}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/f:d==="interactive"||d===void 0?256/f:d==="playback"?1024/f:Math.max(2,Math.min(128,Math.round(d*f/128)))*128/f,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const m=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",m)};h.addEventListener("statechange",m)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),im(this)}))}createMediaElementSource(u){return new r(this,{mediaElement:u})}createMediaStreamDestination(){return new i(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?e():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?e():u})}},sC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d=o(h),f=r(h,u,d),m=d?e(a):null;super(l,!1,f,m),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=f}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw t();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},rC=n=>{const e=new WeakMap,t=async(s,r)=>{const i=r.destination;return e.set(r,i),await n(s,r,i),i};return{render(s,r){const i=e.get(r);return i!==void 0?Promise.resolve(i):t(s,r)}}},iC=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const b=new Float32Array(1),T=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),E=o(l);let w=!1,C=[0,0,-1,0,1,0],S=[0,0,0];const R=()=>{if(w)return;w=!0;const W=s(l,256,9,0);W.onaudioprocess=({inputBuffer:B})=>{const z=[i(B,b,0),i(B,b,1),i(B,b,2),i(B,b,3),i(B,b,4),i(B,b,5)];z.some((X,K)=>X!==C[K])&&(u.setOrientation(...z),C=z);const U=[i(B,b,6),i(B,b,7),i(B,b,8)];U.some((X,K)=>X!==S[K])&&(u.setPosition(...U),S=U)},T.connect(W)},O=W=>B=>{B!==C[W]&&(C[W]=B,u.setOrientation(...C))},L=W=>B=>{B!==S[W]&&(S[W]=B,u.setPosition(...S))},j=(W,B,z)=>{const U=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:B});U.connect(T,0,W),U.start(),Object.defineProperty(U.offset,"defaultValue",{get(){return B}});const X=n({context:c},E,U.offset,vt,Ct);return a(X,"value",K=>()=>K.call(X),K=>te=>{try{K.call(X,te)}catch($){if($.code!==9)throw $}R(),E&&z(te)}),X.cancelAndHoldAtTime=(K=>E?()=>{throw r()}:(...te)=>{const $=K.apply(X,te);return R(),$})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(K=>E?()=>{throw r()}:(...te)=>{const $=K.apply(X,te);return R(),$})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(K=>E?()=>{throw r()}:(...te)=>{const $=K.apply(X,te);return R(),$})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(K=>E?()=>{throw r()}:(...te)=>{const $=K.apply(X,te);return R(),$})(X.linearRampToValueAtTime),X.setTargetAtTime=(K=>E?()=>{throw r()}:(...te)=>{const $=K.apply(X,te);return R(),$})(X.setTargetAtTime),X.setValueAtTime=(K=>E?()=>{throw r()}:(...te)=>{const $=K.apply(X,te);return R(),$})(X.setValueAtTime),X.setValueCurveAtTime=(K=>E?()=>{throw r()}:(...te)=>{const $=K.apply(X,te);return R(),$})(X.setValueCurveAtTime),X};return{forwardX:j(0,0,O(0)),forwardY:j(1,0,O(1)),forwardZ:j(2,-1,O(2)),positionX:j(6,0,L(0)),positionY:j(7,0,L(1)),positionZ:j(8,0,L(2)),upX:j(3,0,O(3)),upY:j(4,1,O(4)),upZ:j(5,0,O(5))}},{forwardX:d,forwardY:f,forwardZ:m,positionX:p,positionY:g,positionZ:_,upX:x,upY:k,upZ:v}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return f},get forwardZ(){return m},get positionX(){return p},get positionY(){return g},get positionZ(){return _},get upX(){return x},get upY(){return k},get upZ(){return v}}},Ra=n=>"context"in n,Oo=n=>Ra(n[0]),ir=(n,e,t,s)=>{for(const r of n)if(t(r)){if(s)return!1;throw Error("The set contains at least one similar element.")}return n.add(e),!0},xf=(n,e,[t,s],r)=>{ir(n,[e,t,s],i=>i[0]===e&&i[1]===t,r)},wf=(n,[e,t,s],r)=>{const i=n.get(e);i===void 0?n.set(e,new Set([[t,s]])):ir(i,[t,s],o=>o[0]===t,r)},ni=n=>"inputs"in n,Da=(n,e,t,s)=>{if(ni(e)){const r=e.inputs[s];return n.connect(r,t,0),[r,t,0]}return n.connect(e,t,s),[e,t,s]},om=(n,e,t)=>{for(const s of n)if(s[0]===e&&s[1]===t)return n.delete(s),s;return null},oC=(n,e,t)=>pc(n,s=>s[0]===e&&s[1]===t),am=(n,e)=>{if(!Eo(n).delete(e))throw new Error("Missing the expected event listener.")},cm=(n,e,t)=>{const s=hn(n,e),r=pc(s,i=>i[0]===t);return s.size===0&&n.delete(e),r},Ma=(n,e,t,s)=>{ni(e)?n.disconnect(e.inputs[s],t,0):n.disconnect(e,t,s)},Ve=n=>hn(ju,n),Bi=n=>hn(Vu,n),Ks=n=>Ul.has(n),la=n=>!Lr.has(n),kf=(n,e)=>new Promise(t=>{if(e!==null)t(!0);else{const s=n.createScriptProcessor(256,1,1),r=n.createGain(),i=n.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const a=n.createBufferSource();a.buffer=i,a.loop=!0,a.connect(s).connect(n.destination),a.connect(r),a.disconnect(r),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?t(!0):t(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(n.destination)},a.start()}}),nl=(n,e)=>{const t=new Map;for(const s of n)for(const r of s){const i=t.get(r);t.set(r,i===void 0?1:i+1)}t.forEach((s,r)=>e(r,s))},Ia=n=>"context"in n,aC=n=>{const e=new Map;n.connect=(t=>(s,r=0,i=0)=>{const o=Ia(s)?t(s,r,i):t(s,r),a=e.get(s);return a===void 0?e.set(s,[{input:i,output:r}]):a.every(c=>c.input!==i||c.output!==r)&&a.push({input:i,output:r}),o})(n.connect.bind(n)),n.disconnect=(t=>(s,r,i)=>{if(t.apply(n),s===void 0)e.clear();else if(typeof s=="number")for(const[o,a]of e){const c=a.filter(l=>l.output!==s);c.length===0?e.delete(o):e.set(o,c)}else if(e.has(s))if(r===void 0)e.delete(s);else{const o=e.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==r&&(c.input!==i||i===void 0));a.length===0?e.delete(s):e.set(s,a)}}for(const[o,a]of e)a.forEach(c=>{Ia(o)?n.connect(o,c.output,c.input):n.connect(o,c.output)})})(n.disconnect)},cC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=So(e),{outputs:o}=wt(n),a=Eo(n),c=l=>{const u=Ve(n),h=Bi(e);if(l){const d=cm(i,n,t);xf(r,n,d,!1),!s&&!Ks(n)&&u.connect(h,t)}else{const d=oC(r,n,t);wf(i,d,!1),!s&&!Ks(n)&&u.disconnect(h,t)}};return ir(o,[e,t],l=>l[0]===e&&l[1]===t,!0)?(a.add(c),Bn(n)?xf(r,n,[t,c],!0):wf(i,[n,t,c],!0),!0):!1},lC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=wt(e),o=om(r[s],n,t);return o===null?[nm(i,n,t,s)[2],!1]:[o[2],!0]},uC=(n,e,t)=>{const{activeInputs:s,passiveInputs:r}=So(e),i=om(s,n,t);return i===null?[cm(r,n,t)[1],!1]:[i[2],!0]},Uu=(n,e,t,s,r)=>{const[i,o]=lC(n,t,s,r);if(i!==null&&(am(n,i),o&&!e&&!Ks(n)&&Ma(Ve(n),Ve(t),s,r)),Bn(t)){const{activeInputs:a}=wt(t);ql(t,a)}},Bu=(n,e,t,s)=>{const[r,i]=uC(n,t,s);r!==null&&(am(n,r),i&&!e&&!Ks(n)&&Ve(n).disconnect(Bi(t),s))},hC=(n,e)=>{const t=wt(n),s=[];for(const r of t.outputs)Oo(r)?Uu(n,e,...r):Bu(n,e,...r),s.push(r[0]);return t.outputs.clear(),s},dC=(n,e,t)=>{const s=wt(n),r=[];for(const i of s.outputs)i[1]===t&&(Oo(i)?Uu(n,e,...i):Bu(n,e,...i),r.push(i[0]),s.outputs.delete(i));return r},fC=(n,e,t,s,r)=>{const i=wt(n);return Array.from(i.outputs).filter(o=>o[0]===t&&(s===void 0||o[1]===s)&&(r===void 0||o[2]===r)).map(o=>(Oo(o)?Uu(n,e,...o):Bu(n,e,...o),i.outputs.delete(o),o[0]))},pC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f,m,p)=>class extends l{constructor(_,x,k,v){super(k),this._context=_,this._nativeAudioNode=k;const b=u(_);h(b)&&t(kf,()=>kf(b,p))!==!0&&aC(k),ju.set(this,k),em.set(this,new Set),_.state!=="closed"&&x&&jr(this),n(this,v,k)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(_){this._nativeAudioNode.channelCount=_}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(_){this._nativeAudioNode.channelCountMode=_}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(_){this._nativeAudioNode.channelInterpretation=_}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(_,x=0,k=0){if(x<0||x>=this._nativeAudioNode.numberOfOutputs)throw r();const v=u(this._context),b=m(v);if(d(_)||f(_))throw i();if(Ra(_)){const w=Ve(_);try{const S=Da(this._nativeAudioNode,w,x,k),R=la(this);(b||R)&&this._nativeAudioNode.disconnect(...S),this.context.state!=="closed"&&!R&&la(_)&&jr(_)}catch(S){throw S.code===12?i():S}if(e(this,_,x,k,b)){const S=c([this],_);nl(S,s(b))}return _}const T=Bi(_);if(T.name==="playbackRate"&&T.maxValue===1024)throw o();try{this._nativeAudioNode.connect(T,x),(b||la(this))&&this._nativeAudioNode.disconnect(T,x)}catch(w){throw w.code===12?i():w}if(cC(this,_,x,b)){const w=c([this],_);nl(w,s(b))}}disconnect(_,x,k){let v;const b=u(this._context),T=m(b);if(_===void 0)v=hC(this,T);else if(typeof _=="number"){if(_<0||_>=this.numberOfOutputs)throw r();v=dC(this,T,_)}else{if(x!==void 0&&(x<0||x>=this.numberOfOutputs)||Ra(_)&&k!==void 0&&(k<0||k>=_.numberOfInputs))throw r();if(v=fC(this,T,_,x,k),v.length===0)throw i()}for(const E of v){const w=c([this],E);nl(w,a)}}},mC=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,m,p,g=null,_=null)=>{const x=p.value,k=new EE(x),v=m?s(k):null,b={get defaultValue(){return x},get maxValue(){return g===null?p.maxValue:g},get minValue(){return _===null?p.minValue:_},get value(){return p.value},set value(T){p.value=T,b.setValueAtTime(T,f.context.currentTime)},cancelAndHoldAtTime(T){if(typeof p.cancelAndHoldAtTime=="function")v===null&&k.flush(f.context.currentTime),k.add(r(T)),p.cancelAndHoldAtTime(T);else{const E=Array.from(k).pop();v===null&&k.flush(f.context.currentTime),k.add(r(T));const w=Array.from(k).pop();p.cancelScheduledValues(T),E!==w&&w!==void 0&&(w.type==="exponentialRampToValue"?p.exponentialRampToValueAtTime(w.value,w.endTime):w.type==="linearRampToValue"?p.linearRampToValueAtTime(w.value,w.endTime):w.type==="setValue"?p.setValueAtTime(w.value,w.startTime):w.type==="setValueCurve"&&p.setValueCurveAtTime(w.values,w.startTime,w.duration))}return b},cancelScheduledValues(T){return v===null&&k.flush(f.context.currentTime),k.add(i(T)),p.cancelScheduledValues(T),b},exponentialRampToValueAtTime(T,E){if(T===0)throw new RangeError;if(!Number.isFinite(E)||E<0)throw new RangeError;const w=f.context.currentTime;return v===null&&k.flush(w),Array.from(k).length===0&&(k.add(l(x,w)),p.setValueAtTime(x,w)),k.add(o(T,E)),p.exponentialRampToValueAtTime(T,E),b},linearRampToValueAtTime(T,E){const w=f.context.currentTime;return v===null&&k.flush(w),Array.from(k).length===0&&(k.add(l(x,w)),p.setValueAtTime(x,w)),k.add(a(T,E)),p.linearRampToValueAtTime(T,E),b},setTargetAtTime(T,E,w){return v===null&&k.flush(f.context.currentTime),k.add(c(T,E,w)),p.setTargetAtTime(T,E,w),b},setValueAtTime(T,E){return v===null&&k.flush(f.context.currentTime),k.add(l(T,E)),p.setValueAtTime(T,E),b},setValueCurveAtTime(T,E,w){const C=T instanceof Float32Array?T:new Float32Array(T);if(h!==null&&h.name==="webkitAudioContext"){const S=E+w,R=f.context.sampleRate,O=Math.ceil(E*R),L=Math.floor(S*R),j=L-O,W=new Float32Array(j);for(let z=0;z({replay(e){for(const t of n)if(t.type==="exponentialRampToValue"){const{endTime:s,value:r}=t;e.exponentialRampToValueAtTime(r,s)}else if(t.type==="linearRampToValue"){const{endTime:s,value:r}=t;e.linearRampToValueAtTime(r,s)}else if(t.type==="setTarget"){const{startTime:s,target:r,timeConstant:i}=t;e.setTargetAtTime(r,s,i)}else if(t.type==="setValue"){const{startTime:s,value:r}=t;e.setValueAtTime(r,s)}else if(t.type==="setValueCurve"){const{duration:s,startTime:r,values:i}=t;e.setValueCurveAtTime(i,r,s)}else throw new Error("Can't apply an unknown automation.")}});class lm{constructor(e){this._map=new Map(e)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(e,t=null){return this._map.forEach((s,r)=>e.call(t,s,r,this))}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){return this._map.keys()}values(){return this._map.values()}}const _C={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},yC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f)=>class extends e{constructor(p,g,_){var x;const k=a(p),v=c(k),b=u({..._C,..._});d(b);const T=Bl.get(k),E=T==null?void 0:T.get(g),w=v||k.state!=="closed"?k:(x=o(k))!==null&&x!==void 0?x:k,C=r(w,v?null:p.baseLatency,l,g,E,b),S=v?s(g,b,E):null;super(p,!0,C,S);const R=[];C.parameters.forEach((L,j)=>{const W=t(this,v,L);R.push([j,W])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new lm(R),v&&n(k,this);const{activeInputs:O}=i(this);h(C,O)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(p){const g=typeof p=="function"?f(this,p):null;this._nativeAudioWorkletNode.onprocessorerror=g;const _=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=_!==null&&_===g?p:_}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Na(n,e,t,s,r){if(typeof n.copyFromChannel=="function")e[t].byteLength===0&&(e[t]=new Float32Array(128)),n.copyFromChannel(e[t],s,r);else{const i=n.getChannelData(s);if(e[t].byteLength===0)e[t]=i.slice(r,r+128);else{const o=new Float32Array(i.buffer,r*Float32Array.BYTES_PER_ELEMENT,128);e[t].set(o)}}}const um=(n,e,t,s,r)=>{typeof n.copyToChannel=="function"?e[t].byteLength!==0&&n.copyToChannel(e[t],s,r):e[t].byteLength!==0&&n.getChannelData(s).set(e[t],r)},$a=(n,e)=>{const t=[];for(let s=0;s{const t=hn(Wl,n),s=Ve(e);return hn(t,s)},bC=async(n,e,t,s,r,i,o)=>{const a=e===null?Math.ceil(n.context.length/128)*128:e.length,c=s.channelCount*s.numberOfInputs,l=r.reduce((g,_)=>g+_,0),u=l===0?null:t.createBuffer(l,a,t.sampleRate);if(i===void 0)throw new Error("Missing the processor constructor.");const h=wt(n),d=await vC(t,n),f=$a(s.numberOfInputs,s.channelCount),m=$a(s.numberOfOutputs,r),p=Array.from(n.parameters.keys()).reduce((g,_)=>({...g,[_]:new Float32Array(128)}),{});for(let g=0;g0&&e!==null)for(let _=0;_{Na(e,p,_,c+x,g)});for(let _=0;_h.activeInputs[v].size===0?[]:k),x=o(g/t.sampleRate,t.sampleRate,()=>d.process(_,m,p));if(u!==null)for(let k=0,v=0;k(g,_,x)=>{const k=new WeakMap;let v=null;const b=async(T,E)=>{let w=u(T),C=null;const S=_t(w,E),R=Array.isArray(_.outputChannelCount)?_.outputChannelCount:Array.from(_.outputChannelCount);if(h===null){const O=R.reduce((B,z)=>B+z,0),L=r(E,{channelCount:Math.max(1,O),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,O)}),j=[];for(let B=0;B{const te=new d(X,Math.ceil(T.context.length/128)*128,E.sampleRate),$=[],F=[];for(let G=0;G<_.numberOfInputs;G+=1)$.push(o(te,{channelCount:_.channelCount,channelCountMode:_.channelCountMode,channelInterpretation:_.channelInterpretation,gain:1})),F.push(r(te,{channelCount:_.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:_.channelCount}));const A=await Promise.all(Array.from(T.parameters.values()).map(async G=>{const N=i(te,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G.value});return await f(te,G,N.offset),N})),I=s(te,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,z+U)});for(let G=0;G<_.numberOfInputs;G+=1){$[G].connect(F[G]);for(let N=0;N<_.channelCount;N+=1)F[G].connect(I,N,G*_.channelCount+N)}for(const[G,N]of A.entries())N.connect(I,0,z+G),N.start(0);return I.connect(te.destination),await Promise.all($.map(G=>m(T,te,G))),p(te)})(),E,_,R,x,l)}const O=await v,L=t(E,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[j,W,B]=C;O!==null&&(L.buffer=O,L.start(0)),L.connect(j);for(let z=0,U=0;zclass extends m{constructor(b,T){super(b,T),this._nativeContext=b,this._audioWorklet=n===void 0?void 0:{addModule:(E,w)=>n(this,E,w)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new r(this)}createBuffer(b,T,E){return new t({length:T,numberOfChannels:b,sampleRate:E})}createBufferSource(){return new s(this)}createChannelMerger(b=6){return new i(this,{numberOfInputs:b})}createChannelSplitter(b=6){return new o(this,{numberOfOutputs:b})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(b=1){return new u(this,{maxDelayTime:b})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(b,T){return new f(this,{feedback:T,feedforward:b})}createOscillator(){return new p(this)}createPanner(){return new g(this)}createPeriodicWave(b,T,E={disableNormalization:!1}){return new _(this,{...E,imag:T,real:b})}createStereoPanner(){return new x(this)}createWaveShaper(){return new k(this)}decodeAudioData(b,T,E){return l(this._nativeContext,b).then(w=>(typeof T=="function"&&T(w),w),w=>{throw typeof E=="function"&&E(w),w})}},kC={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},TC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...kC,...u},f=r(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._Q=e(this,m,f.Q,vt,Ct),this._detune=e(this,m,f.detune,1200*Math.log2(vt),-1200*Math.log2(vt)),this._frequency=e(this,m,f.frequency,l.sampleRate/2,0),this._gain=e(this,m,f.gain,40*Math.log10(vt),Ct),this._nativeBiquadFilterNode=f,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},EC=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=_t(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(c,h)}return i.set(c,l),u?(await n(c,a.Q,l.Q),await n(c,a.detune,l.detune),await n(c,a.frequency,l.frequency),await n(c,a.gain,l.gain)):(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},CC=(n,e)=>(t,s)=>{const r=e.get(t);if(r!==void 0)return r;const i=n.get(t);if(i!==void 0)return i;try{const o=s();return o instanceof Promise?(n.set(t,o),o.catch(()=>!1).then(a=>(n.delete(t),e.set(t,a),a))):(e.set(t,o),o)}catch{return e.set(t,!1),!1}},SC={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},OC=(n,e,t,s,r)=>class extends n{constructor(o,a){const c=s(o),l={...SC,...a},u=t(c,l),h=r(c)?e():null;super(o,!1,u,h)}},AC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!_t(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},PC={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},RC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=i({...PC,...c}),h=t(l,u),d=r(l)?e():null;super(a,!1,h,d)}},DC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!_t(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},MC=n=>(e,t,s)=>n(t,e,s),IC=n=>(e,t,s=0,r=0)=>{const i=e[s];if(i===void 0)throw n();return Ia(t)?i.connect(t,0,r):i.connect(t,0)},NC=n=>(e,t)=>{const s=n(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),r=e.createBuffer(1,2,44100);return s.buffer=r,s.loop=!0,s.connect(t),s.start(),()=>{s.stop(),s.disconnect(t)}},$C={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},FC=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...$C,...l},d=s(u,h),f=i(u),m=f?t():null;super(c,!1,d,m),this._constantSourceNodeRenderer=m,this._nativeConstantSourceNode=d,this._offset=e(this,f,d.offset,vt,Ct),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){jr(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),Bn(this)&&Co(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},LC=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=_t(h,u);if(!d){const f={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=e(u,f),o!==null&&h.start(o),a!==null&&h.stop(a)}return i.set(u,h),d?await n(u,l.offset,h.offset):await s(u,l.offset,h.offset),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},jC=n=>e=>(n[0]=e,n[0]),VC={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},zC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u={...VC,...c},h=t(l,u),f=r(l)?e():null;super(a,!1,h,f),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&i(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,i(this,0)}else this._isBufferNullified=!1,i(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},UC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!_t(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=n(o,l)}return s.set(o,a),ni(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},BC=(n,e)=>(t,s,r)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(t,s,r)}catch(i){throw i.name==="SyntaxError"?n():i}},WC=()=>new DOMException("","DataCloneError"),Tf=n=>{const{port1:e,port2:t}=new MessageChannel;return new Promise(s=>{const r=()=>{t.onmessage=null,e.close(),t.close(),s()};t.onmessage=()=>r();try{e.postMessage(n,[n])}catch{}finally{r()}})},qC=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=o(h)?h:i(h);if(r.has(d)){const m=t();return Promise.reject(m)}try{r.add(d)}catch{}return e(c,()=>c(f))?f.decodeAudioData(d).then(m=>(Tf(d).catch(()=>{}),e(a,()=>a(m))||u(m),n.add(m),m)):new Promise((m,p)=>{const g=async()=>{try{await Tf(d)}catch{}},_=x=>{p(x),g()};try{f.decodeAudioData(d,x=>{typeof x.copyFromChannel!="function"&&(l(x),zu(x)),n.add(x),g().then(()=>m(x))},x=>{_(x===null?s():x)})}catch(x){_(x)}})},HC=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=e.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=i(c.context),d=a(h);if(u===l){if(e.delete(c),!d&&o(c)){const f=s(c),{outputs:m}=t(c);for(const p of m)if(Oo(p)){const g=s(p[0]);n(f,g,p[1],p[2])}else{const g=r(p[0]);f.connect(g,p[1])}}}else e.set(c,u-l)},GC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},YC=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...GC,...l},d=s(u,h),f=i(u),m=f?t(h.maxDelayTime):null;super(c,!1,d,m),this._delayTime=e(this,f,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},XC=(n,e,t,s,r)=>i=>{const o=new WeakMap,a=async(c,l)=>{let u=t(c);const h=_t(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:i};u=e(l,d)}return o.set(l,u),h?await n(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await r(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},ZC=n=>(e,t,s,r)=>n(e[r],i=>i[0]===t&&i[1]===s),KC=n=>(e,t)=>{n(e).delete(t)},QC=n=>"delayTime"in n,JC=(n,e,t)=>function s(r,i){const o=Ra(i)?i:t(n,i);if(QC(o))return[];if(r[0]===o)return[r];if(r.includes(o))return[];const{outputs:a}=e(o);return Array.from(a).map(c=>s([...r,o],c[0])).reduce((c,l)=>c.concat(l),[])},Jo=(n,e,t)=>{const s=e[t];if(s===void 0)throw n();return s},eS=n=>(e,t=void 0,s=void 0,r=0)=>t===void 0?e.forEach(i=>i.disconnect()):typeof t=="number"?Jo(n,e,t).disconnect():Ia(t)?s===void 0?e.forEach(i=>i.disconnect(t)):r===void 0?Jo(n,e,s).disconnect(t,0):Jo(n,e,s).disconnect(t,0,r):s===void 0?e.forEach(i=>i.disconnect(t)):Jo(n,e,s).disconnect(t,0),tS={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},nS=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...tS,...u},f=s(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._attack=e(this,m,f.attack),this._knee=e(this,m,f.knee),this._nativeDynamicsCompressorNode=f,this._ratio=e(this,m,f.ratio),this._release=e(this,m,f.release),this._threshold=e(this,m,f.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,r()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,r()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},sS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=_t(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(c,h)}return i.set(c,l),u?(await n(c,a.attack,l.attack),await n(c,a.knee,l.knee),await n(c,a.ratio,l.ratio),await n(c,a.release,l.release),await n(c,a.threshold,l.threshold)):(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},rS=()=>new DOMException("","EncodingError"),iS=n=>e=>new Promise((t,s)=>{if(n===null){s(new SyntaxError);return}const r=n.document.head;if(r===null)s(new SyntaxError);else{const i=n.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=n.onerror,l=()=>{n.onerror=c,URL.revokeObjectURL(a)};n.onerror=(u,h,d,f,m)=>{if(h===a||h===n.location.href&&d===1&&f===1)return l(),s(m),!1;if(c!==null)return c(u,h,d,f,m)},i.onerror=()=>{l(),s(new SyntaxError)},i.onload=()=>{l(),t()},i.src=a,i.type="module",r.appendChild(i)}}),oS=n=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(t,s,r){if(s!==null){let i=this._listeners.get(s);i===void 0&&(i=n(this,s),typeof s=="function"&&this._listeners.set(s,i)),this._nativeEventTarget.addEventListener(t,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,s,r){const i=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(t,i===void 0?null:i,r)}},aS=n=>(e,t,s)=>{Object.defineProperties(n,{currentFrame:{configurable:!0,get(){return Math.round(e*t)}},currentTime:{configurable:!0,get(){return e}}});try{return s()}finally{n!==null&&(delete n.currentFrame,delete n.currentTime)}},cS=n=>async e=>{try{const t=await fetch(e);if(t.ok)return[await t.text(),t.url]}catch{}throw n()},lS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},uS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...lS,...c},h=s(l,u),d=i(l),f=d?t():null;super(a,!1,h,f),this._gain=e(this,d,h.gain,vt,Ct)}get gain(){return this._gain}},hS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=_t(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(c,h)}return i.set(c,l),u?await n(c,a.gain,l.gain):await s(c,a.gain,l.gain),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},dS=(n,e)=>t=>e(n,t),fS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return t.renderer},pS=n=>e=>{var t;return(t=n.get(e))!==null&&t!==void 0?t:0},mS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return t.renderer},gS=n=>e=>n.get(e),lt=()=>new DOMException("","InvalidStateError"),_S=n=>e=>{const t=n.get(e);if(t===void 0)throw lt();return t},yS=(n,e)=>t=>{let s=n.get(t);if(s!==void 0)return s;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new e(1,1,44100),n.set(t,s),s},vS=n=>e=>{const t=n.get(e);if(t===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return t},mc=()=>new DOMException("","InvalidAccessError"),bS=n=>{n.getFrequencyResponse=(e=>(t,s,r)=>{if(t.length!==s.length||s.length!==r.length)throw mc();return e.call(n,t,s,r)})(n.getFrequencyResponse)},xS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},wS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=r(l),h={...xS,...c},d=e(l,u?null:a.baseLatency,h),f=u?t(h.feedback,h.feedforward):null;super(a,!1,d,f),bS(d),this._nativeIIRFilterNode=d,i(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},hm=(n,e,t,s,r,i,o,a,c,l,u)=>{const h=l.length;let d=a;for(let f=0;f{const r=t instanceof Float64Array?t:new Float64Array(t),i=s instanceof Float64Array?s:new Float64Array(s),o=r.length,a=i.length,c=Math.min(o,a);if(r[0]!==1){for(let m=0;m(i,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,f=e(u);const m=_t(f,h);if(h.createIIRFilter===void 0?d=n(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):m||(f=h.createIIRFilter(o,i)),a.set(h,d===null?f:d),d!==null){if(c===null){if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");const g=new t(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,g,g.destination);const _=await r(g);return kS(_,h,i,o)})()}const p=await c;return d.buffer=p,d.start(0),d}return await s(u,h,f),f};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},ES=(n,e,t,s,r,i)=>o=>(a,c)=>{const l=n.get(a);if(l===void 0){if(!o&&i(a)){const u=s(a),{outputs:h}=t(a);for(const d of h)if(Oo(d)){const f=s(d[0]);e(u,f,d[1],d[2])}else{const f=r(d[0]);u.disconnect(f,d[1])}}n.set(a,c)}else n.set(a,l+c)},CS=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},SS=(n,e)=>t=>n.has(t)||e(t),OS=(n,e)=>t=>n.has(t)||e(t),AS=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},PS=n=>e=>n!==null&&e instanceof n,RS=n=>e=>n!==null&&typeof n.AudioNode=="function"&&e instanceof n.AudioNode,DS=n=>e=>n!==null&&typeof n.AudioParam=="function"&&e instanceof n.AudioParam,MS=(n,e)=>t=>n(t)||e(t),IS=n=>e=>n!==null&&e instanceof n,NS=n=>n!==null&&n.isSecureContext,$S=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw TypeError();super(i,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},FS={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},LS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i);if(s(a))throw new TypeError;const c={...FS,...o},l=e(a,c);super(i,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},jS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw new TypeError;super(i,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},VS=(n,e,t)=>class extends n{constructor(r,i){const o=t(r),a=e(o,i);super(r,!0,a,null)}},zS=(n,e,t,s,r,i)=>class extends t{constructor(a,c){super(a),this._nativeContext=a,fc.set(this,a),s(a)&&r.set(a,new Set),this._destination=new n(this,c),this._listener=e(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?i(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Wi=n=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const t=n.decodeAudioData(e.buffer,()=>{});return t===void 0?!1:(t.catch(()=>{}),!0)}catch{}return!1},US=(n,e)=>(t,s,r)=>{const i=new Set;return t.connect=(o=>(a,c=0,l=0)=>{const u=i.size===0;if(e(a))return o.call(t,a,c,l),n(i,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(t,a,c),n(i,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(t.connect),t.disconnect=(o=>(a,c,l)=>{const u=i.size>0;if(a===void 0)o.apply(t),i.clear();else if(typeof a=="number"){o.call(t,a);for(const d of i)d[1]===a&&i.delete(d)}else{e(a)?o.call(t,a,c,l):o.call(t,a,c);for(const d of i)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&i.delete(d)}const h=i.size===0;u&&h&&r()})(t.disconnect),t},ze=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t]&&(n[t]=s)},ot=(n,e)=>{ze(n,e,"channelCount"),ze(n,e,"channelCountMode"),ze(n,e,"channelInterpretation")},Ef=n=>typeof n.getFloatTimeDomainData=="function",BS=n=>{n.getFloatTimeDomainData=e=>{const t=new Uint8Array(e.length);n.getByteTimeDomainData(t);const s=Math.max(t.length,n.fftSize);for(let r=0;r(t,s)=>{const r=t.createAnalyser();if(ot(r,s),!(s.maxDecibels>s.minDecibels))throw e();return ze(r,s,"fftSize"),ze(r,s,"maxDecibels"),ze(r,s,"minDecibels"),ze(r,s,"smoothingTimeConstant"),n(Ef,()=>Ef(r))||BS(r),r},qS=n=>n===null?null:n.hasOwnProperty("AudioBuffer")?n.AudioBuffer:null,Ge=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t].value&&(n[t].value=s)},HS=n=>{n.start=(e=>{let t=!1;return(s=0,r=0,i)=>{if(t)throw lt();e.call(n,s,r,i),t=!0}})(n.start)},Wu=n=>{n.start=(e=>(t=0,s=0,r)=>{if(typeof r=="number"&&r<0||s<0||t<0)throw new RangeError("The parameters can't be negative.");e.call(n,t,s,r)})(n.start)},qu=n=>{n.stop=(e=>(t=0)=>{if(t<0)throw new RangeError("The parameter can't be negative.");e.call(n,t)})(n.stop)},GS=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=h.createBufferSource();return ot(f,d),Ge(f,d,"playbackRate"),ze(f,d,"buffer"),ze(f,d,"loop"),ze(f,d,"loopEnd"),ze(f,d,"loopStart"),e(t,()=>t(h))||HS(f),e(s,()=>s(h))||c(f),e(r,()=>r(h))||l(f,h),e(i,()=>i(h))||Wu(f),e(o,()=>o(h))||u(f,h),e(a,()=>a(h))||qu(f),n(h,f),f},YS=n=>n===null?null:n.hasOwnProperty("AudioContext")?n.AudioContext:n.hasOwnProperty("webkitAudioContext")?n.webkitAudioContext:null,XS=(n,e)=>(t,s,r)=>{const i=t.destination;if(i.channelCount!==s)try{i.channelCount=s}catch{}r&&i.channelCountMode!=="explicit"&&(i.channelCountMode="explicit"),i.maxChannelCount===0&&Object.defineProperty(i,"maxChannelCount",{value:s});const o=n(t,{channelCount:s,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{i.channelCount=c}catch(l){if(c>i.maxChannelCount)throw l}}),e(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelCountMode=c}),e(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>i.maxChannelCount}),o.connect(i),o},ZS=n=>n===null?null:n.hasOwnProperty("AudioWorkletNode")?n.AudioWorkletNode:null,KS=n=>{const{port1:e}=new MessageChannel;try{e.postMessage(n)}finally{e.close()}},QS=(n,e,t,s,r)=>(i,o,a,c,l,u)=>{if(a!==null)try{const h=new a(i,c,u),d=new Map;let f=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw n()}},channelCountMode:{get:()=>"explicit",set:()=>{throw n()}},onprocessorerror:{get:()=>f,set:m=>{typeof f=="function"&&h.removeEventListener("processorerror",f),f=typeof m=="function"?m:null,typeof f=="function"&&h.addEventListener("processorerror",f)}}}),h.addEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=typeof p[1]=="function"?p[1]:typeof p[1]=="object"&&p[1]!==null&&typeof p[1].handleEvent=="function"?p[1].handleEvent:null;if(g!==null){const _=d.get(p[1]);_!==void 0?p[1]=_:(p[1]=x=>{x.type==="error"?(Object.defineProperties(x,{type:{value:"processorerror"}}),g(x)):g(new ErrorEvent(p[0],{...x}))},d.set(g,p[1]))}}return m.call(h,"error",p[1],p[2]),m.call(h,...p)})(h.addEventListener),h.removeEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=d.get(p[1]);g!==void 0&&(d.delete(p[1]),p[1]=g)}return m.call(h,"error",p[1],p[2]),m.call(h,p[0],p[1],p[2])})(h.removeEventListener),u.numberOfOutputs!==0){const m=t(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(m).connect(i.destination),r(h,()=>m.disconnect(),()=>m.connect(i.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return KS(u),e(i,o,l,u)},dm=(n,e)=>n===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(n*e))))),JS=n=>new Promise((e,t)=>{const{port1:s,port2:r}=new MessageChannel;s.onmessage=({data:i})=>{s.close(),r.close(),e(i)},s.onmessageerror=({data:i})=>{s.close(),r.close(),t(i)},r.postMessage(n)}),eO=async(n,e)=>{const t=await JS(e);return new n(t)},tO=(n,e,t,s)=>{let r=Wl.get(n);r===void 0&&(r=new WeakMap,Wl.set(n,r));const i=eO(t,s);return r.set(e,i),i},nO=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,m,p,g)=>{if(g.numberOfInputs===0&&g.numberOfOutputs===0)throw c();const _=Array.isArray(g.outputChannelCount)?g.outputChannelCount:Array.from(g.outputChannelCount);if(_.some(H=>H<1))throw c();if(_.length!==g.numberOfOutputs)throw e();if(g.channelCountMode!=="explicit")throw c();const x=g.channelCount*g.numberOfInputs,k=_.reduce((H,D)=>H+D,0),v=p.parameterDescriptors===void 0?0:p.parameterDescriptors.length;if(x+v>6||k>6)throw c();const b=new MessageChannel,T=[],E=[];for(let H=0;HH===void 0?0:H},maxValue:{get:()=>D===void 0?vt:D},minValue:{get:()=>P===void 0?Ct:P}}),w.push(se)}const C=s(f,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,x+v)}),S=dm(m,f.sampleRate),R=a(f,S,x+v,Math.max(1,k)),O=r(f,{channelCount:Math.max(1,k),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,k)}),L=[];for(let H=0;H{const P=w[D];return P.connect(C,0,x+D),P.start(0),[H,P.offset]}));C.connect(R);let W=g.channelInterpretation,B=null;const z=g.numberOfOutputs===0?[R]:L,U={get bufferSize(){return S},get channelCount(){return g.channelCount},set channelCount(H){throw t()},get channelCountMode(){return g.channelCountMode},set channelCountMode(H){throw t()},get channelInterpretation(){return W},set channelInterpretation(H){for(const D of T)D.channelInterpretation=H;W=H},get context(){return R.context},get inputs(){return T},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get onprocessorerror(){return B},set onprocessorerror(H){typeof B=="function"&&U.removeEventListener("processorerror",B),B=typeof H=="function"?H:null,typeof B=="function"&&U.addEventListener("processorerror",B)},get parameters(){return j},get port(){return b.port2},addEventListener(...H){return R.addEventListener(H[0],H[1],H[2])},connect:n.bind(null,z),disconnect:l.bind(null,z),dispatchEvent(...H){return R.dispatchEvent(H[0])},removeEventListener(...H){return R.removeEventListener(H[0],H[1],H[2])}},X=new Map;b.port1.addEventListener=(H=>(...D)=>{if(D[0]==="message"){const P=typeof D[1]=="function"?D[1]:typeof D[1]=="object"&&D[1]!==null&&typeof D[1].handleEvent=="function"?D[1].handleEvent:null;if(P!==null){const Q=X.get(D[1]);Q!==void 0?D[1]=Q:(D[1]=se=>{u(f.currentTime,f.sampleRate,()=>P(se))},X.set(P,D[1]))}}return H.call(b.port1,D[0],D[1],D[2])})(b.port1.addEventListener),b.port1.removeEventListener=(H=>(...D)=>{if(D[0]==="message"){const P=X.get(D[1]);P!==void 0&&(X.delete(D[1]),D[1]=P)}return H.call(b.port1,D[0],D[1],D[2])})(b.port1.removeEventListener);let K=null;Object.defineProperty(b.port1,"onmessage",{get:()=>K,set:H=>{typeof K=="function"&&b.port1.removeEventListener("message",K),K=typeof H=="function"?H:null,typeof K=="function"&&(b.port1.addEventListener("message",K),b.port1.start())}}),p.prototype.port=b.port1;let te=null;tO(f,U,p,g).then(H=>te=H);const F=$a(g.numberOfInputs,g.channelCount),A=$a(g.numberOfOutputs,_),I=p.parameterDescriptors===void 0?[]:p.parameterDescriptors.reduce((H,{name:D})=>({...H,[D]:new Float32Array(128)}),{});let G=!0;const N=()=>{g.numberOfOutputs>0&&R.disconnect(O);for(let H=0,D=0;H{if(te!==null){const P=h(U);for(let Q=0;Q{Na(H,I,se,x+le,Q)});for(let se=0;se{if(P[Qe].size>0)return q.set(Qe,S/128),ye;const fe=q.get(Qe);return fe===void 0?[]:(ye.every(Je=>Je.every(it=>it===0))&&(fe===1?q.delete(Qe):q.set(Qe,fe-1)),ye)});G=u(f.currentTime+Q/f.sampleRate,f.sampleRate,()=>te.process(se,A,I));for(let ye=0,Qe=0;yeR.connect(re).connect(f.destination),ne=()=>{R.disconnect(re),re.disconnect()},ge=()=>{if(G){ne(),g.numberOfOutputs>0&&R.connect(O);for(let H=0,D=0;H{G&&(ie(),N()),oe=!1};return ie(),d(U,ge,ee)},fm=(n,e)=>{const t=n.createBiquadFilter();return ot(t,e),Ge(t,e,"Q"),Ge(t,e,"detune"),Ge(t,e,"frequency"),Ge(t,e,"gain"),ze(t,e,"type"),t},sO=(n,e)=>(t,s)=>{const r=t.createChannelMerger(s.numberOfInputs);return n!==null&&n.name==="webkitAudioContext"&&e(t,r),ot(r,s),r},rO=n=>{const e=n.numberOfOutputs;Object.defineProperty(n,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw lt()}}),Object.defineProperty(n,"channelCountMode",{get:()=>"explicit",set:t=>{if(t!=="explicit")throw lt()}}),Object.defineProperty(n,"channelInterpretation",{get:()=>"discrete",set:t=>{if(t!=="discrete")throw lt()}})},Ao=(n,e)=>{const t=n.createChannelSplitter(e.numberOfOutputs);return ot(t,e),rO(t),t},iO=(n,e,t,s,r)=>(i,o)=>{if(i.createConstantSource===void 0)return t(i,o);const a=i.createConstantSource();return ot(a,o),Ge(a,o,"offset"),e(s,()=>s(i))||Wu(a),e(r,()=>r(i))||qu(a),n(i,a),a},si=(n,e)=>(n.connect=e.connect.bind(e),n.disconnect=e.disconnect.bind(e),n),oO=(n,e,t,s)=>(r,{offset:i,...o})=>{const a=r.createBuffer(1,2,44100),c=e(r,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=t(r,{...o,gain:i}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(m){l.channelCount=m},get channelCountMode(){return l.channelCountMode},set channelCountMode(m){l.channelCountMode=m},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(m){l.channelInterpretation=m},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(m){c.onended=m},addEventListener(...m){return c.addEventListener(m[0],m[1],m[2])},dispatchEvent(...m){return c.dispatchEvent(m[0])},removeEventListener(...m){return c.removeEventListener(m[0],m[1],m[2])},start(m=0){c.start.call(c,m)},stop(m=0){c.stop.call(c,m)}},d=()=>c.connect(l),f=()=>c.disconnect(l);return n(r,c),s(si(h,l),d,f)},aO=(n,e)=>(t,s)=>{const r=t.createConvolver();if(ot(r,s),s.disableNormalization===r.normalize&&(r.normalize=!s.disableNormalization),ze(r,s,"buffer"),s.channelCount>2||(e(r,"channelCount",i=>()=>i.call(r),i=>o=>{if(o>2)throw n();return i.call(r,o)}),s.channelCountMode==="max"))throw n();return e(r,"channelCountMode",i=>()=>i.call(r),i=>o=>{if(o==="max")throw n();return i.call(r,o)}),r},pm=(n,e)=>{const t=n.createDelay(e.maxDelayTime);return ot(t,e),Ge(t,e,"delayTime"),t},cO=n=>(e,t)=>{const s=e.createDynamicsCompressor();if(ot(s,t),t.channelCount>2||t.channelCountMode==="max")throw n();return Ge(s,t,"attack"),Ge(s,t,"knee"),Ge(s,t,"ratio"),Ge(s,t,"release"),Ge(s,t,"threshold"),s},Mt=(n,e)=>{const t=n.createGain();return ot(t,e),Ge(t,e,"gain"),t},lO=n=>(e,t,s)=>{if(e.createIIRFilter===void 0)return n(e,t,s);const r=e.createIIRFilter(s.feedforward,s.feedback);return ot(r,s),r};function uO(n,e){const t=e[0]*e[0]+e[1]*e[1];return[(n[0]*e[0]+n[1]*e[1])/t,(n[1]*e[0]-n[0]*e[1])/t]}function hO(n,e){return[n[0]*e[0]-n[1]*e[1],n[0]*e[1]+n[1]*e[0]]}function Cf(n,e){let t=[0,0];for(let s=n.length-1;s>=0;s-=1)t=hO(t,e),t[0]+=n[s];return t}const dO=(n,e,t,s)=>(r,i,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=dm(i,r.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),f=u instanceof Float64Array?u:new Float64Array(u),m=d.length,p=f.length,g=Math.min(m,p);if(m===0||m>20)throw s();if(d[0]===0)throw e();if(p===0||p>20)throw s();if(f[0]===0)throw e();if(d[0]!==1){for(let w=0;w{const C=w.inputBuffer,S=w.outputBuffer,R=C.numberOfChannels;for(let O=0;On.createMediaElementSource(e.mediaElement),pO=(n,e)=>{const t=n.createMediaStreamDestination();return ot(t,e),t.numberOfOutputs===1&&Object.defineProperty(t,"numberOfOutputs",{get:()=>0}),t},mO=(n,{mediaStream:e})=>{const t=e.getAudioTracks();t.sort((i,o)=>i.ido.id?1:0);const s=t.slice(0,1),r=n.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(r,"mediaStream",{value:e}),r},gO=(n,e)=>(t,{mediaStreamTrack:s})=>{if(typeof t.createMediaStreamTrackSource=="function")return t.createMediaStreamTrackSource(s);const r=new MediaStream([s]),i=t.createMediaStreamSource(r);if(s.kind!=="audio")throw n();if(e(t))throw new TypeError;return i},_O=n=>n===null?null:n.hasOwnProperty("OfflineAudioContext")?n.OfflineAudioContext:n.hasOwnProperty("webkitOfflineAudioContext")?n.webkitOfflineAudioContext:null,yO=(n,e,t,s,r,i)=>(o,a)=>{const c=o.createOscillator();return ot(c,a),Ge(c,a,"detune"),Ge(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):ze(c,a,"type"),e(t,()=>t(o))||Wu(c),e(s,()=>s(o))||i(c,o),e(r,()=>r(o))||qu(c),n(o,c),c},vO=n=>(e,t)=>{const s=e.createPanner();return s.orientationX===void 0?n(e,t):(ot(s,t),Ge(s,t,"orientationX"),Ge(s,t,"orientationY"),Ge(s,t,"orientationZ"),Ge(s,t,"positionX"),Ge(s,t,"positionY"),Ge(s,t,"positionZ"),ze(s,t,"coneInnerAngle"),ze(s,t,"coneOuterAngle"),ze(s,t,"coneOuterGain"),ze(s,t,"distanceModel"),ze(s,t,"maxDistance"),ze(s,t,"panningModel"),ze(s,t,"refDistance"),ze(s,t,"rolloffFactor"),s)},bO=(n,e,t,s,r,i,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:f,distanceModel:m,maxDistance:p,orientationX:g,orientationY:_,orientationZ:x,panningModel:k,positionX:v,positionY:b,positionZ:T,refDistance:E,rolloffFactor:w,...C})=>{const S=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();ot(S,C);const R={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},O=t(u,{...R,channelInterpretation:"speakers",numberOfInputs:6}),L=s(u,{...C,gain:1}),j=s(u,{...R,gain:1}),W=s(u,{...R,gain:0}),B=s(u,{...R,gain:0}),z=s(u,{...R,gain:0}),U=s(u,{...R,gain:0}),X=s(u,{...R,gain:0}),K=r(u,256,6,1),te=i(u,{...R,curve:new Float32Array([1,1]),oversample:"none"});let $=[g,_,x],F=[v,b,T];const A=new Float32Array(1);K.onaudioprocess=({inputBuffer:q})=>{const oe=[c(q,A,0),c(q,A,1),c(q,A,2)];oe.some((ie,ne)=>ie!==$[ne])&&(S.setOrientation(...oe),$=oe);const re=[c(q,A,3),c(q,A,4),c(q,A,5)];re.some((ie,ne)=>ie!==F[ne])&&(S.setPosition(...re),F=re)},Object.defineProperty(W.gain,"defaultValue",{get:()=>0}),Object.defineProperty(B.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(U.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const I={get bufferSize(){},get channelCount(){return S.channelCount},set channelCount(q){if(q>2)throw o();L.channelCount=q,S.channelCount=q},get channelCountMode(){return S.channelCountMode},set channelCountMode(q){if(q==="max")throw o();L.channelCountMode=q,S.channelCountMode=q},get channelInterpretation(){return S.channelInterpretation},set channelInterpretation(q){L.channelInterpretation=q,S.channelInterpretation=q},get coneInnerAngle(){return S.coneInnerAngle},set coneInnerAngle(q){S.coneInnerAngle=q},get coneOuterAngle(){return S.coneOuterAngle},set coneOuterAngle(q){S.coneOuterAngle=q},get coneOuterGain(){return S.coneOuterGain},set coneOuterGain(q){if(q<0||q>1)throw e();S.coneOuterGain=q},get context(){return S.context},get distanceModel(){return S.distanceModel},set distanceModel(q){S.distanceModel=q},get inputs(){return[L]},get maxDistance(){return S.maxDistance},set maxDistance(q){if(q<0)throw new RangeError;S.maxDistance=q},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get orientationX(){return j.gain},get orientationY(){return W.gain},get orientationZ(){return B.gain},get panningModel(){return S.panningModel},set panningModel(q){S.panningModel=q},get positionX(){return z.gain},get positionY(){return U.gain},get positionZ(){return X.gain},get refDistance(){return S.refDistance},set refDistance(q){if(q<0)throw new RangeError;S.refDistance=q},get rolloffFactor(){return S.rolloffFactor},set rolloffFactor(q){if(q<0)throw new RangeError;S.rolloffFactor=q},addEventListener(...q){return L.addEventListener(q[0],q[1],q[2])},dispatchEvent(...q){return L.dispatchEvent(q[0])},removeEventListener(...q){return L.removeEventListener(q[0],q[1],q[2])}};h!==I.coneInnerAngle&&(I.coneInnerAngle=h),d!==I.coneOuterAngle&&(I.coneOuterAngle=d),f!==I.coneOuterGain&&(I.coneOuterGain=f),m!==I.distanceModel&&(I.distanceModel=m),p!==I.maxDistance&&(I.maxDistance=p),g!==I.orientationX.value&&(I.orientationX.value=g),_!==I.orientationY.value&&(I.orientationY.value=_),x!==I.orientationZ.value&&(I.orientationZ.value=x),k!==I.panningModel&&(I.panningModel=k),v!==I.positionX.value&&(I.positionX.value=v),b!==I.positionY.value&&(I.positionY.value=b),T!==I.positionZ.value&&(I.positionZ.value=T),E!==I.refDistance&&(I.refDistance=E),w!==I.rolloffFactor&&(I.rolloffFactor=w),($[0]!==1||$[1]!==0||$[2]!==0)&&S.setOrientation(...$),(F[0]!==0||F[1]!==0||F[2]!==0)&&S.setPosition(...F);const G=()=>{L.connect(S),n(L,te,0,0),te.connect(j).connect(O,0,0),te.connect(W).connect(O,0,1),te.connect(B).connect(O,0,2),te.connect(z).connect(O,0,3),te.connect(U).connect(O,0,4),te.connect(X).connect(O,0,5),O.connect(K).connect(u.destination)},N=()=>{L.disconnect(S),a(L,te,0,0),te.disconnect(j),j.disconnect(O),te.disconnect(W),W.disconnect(O),te.disconnect(B),B.disconnect(O),te.disconnect(z),z.disconnect(O),te.disconnect(U),U.disconnect(O),te.disconnect(X),X.disconnect(O),O.disconnect(K),K.disconnect(u.destination)};return l(si(I,S),G,N)},xO=n=>(e,{disableNormalization:t,imag:s,real:r})=>{const i=s instanceof Float32Array?s:new Float32Array(s),o=r instanceof Float32Array?r:new Float32Array(r),a=e.createPeriodicWave(o,i,{disableNormalization:t});if(Array.from(s).length<2)throw n();return a},Po=(n,e,t,s)=>n.createScriptProcessor(e,t,s),wO=(n,e)=>(t,s)=>{const r=s.channelCountMode;if(r==="clamped-max")throw e();if(t.createStereoPanner===void 0)return n(t,s);const i=t.createStereoPanner();return ot(i,s),Ge(i,s,"pan"),Object.defineProperty(i,"channelCountMode",{get:()=>r,set:o=>{if(o!==r)throw e()}}),i},kO=(n,e,t,s,r,i)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(m,p,g,_)=>{const x=new Float32Array(16385),k=new Float32Array(16385);for(let C=0;C<16385;C+=1){const S=C/16384*c;x[C]=Math.cos(S),k[C]=Math.sin(S)}const v=t(m,{...l,gain:0}),b=s(m,{...u,curve:x}),T=s(m,{...u,curve:a}),E=t(m,{...l,gain:0}),w=s(m,{...u,curve:k});return{connectGraph(){p.connect(v),p.connect(T.inputs===void 0?T:T.inputs[0]),p.connect(E),T.connect(g),g.connect(b.inputs===void 0?b:b.inputs[0]),g.connect(w.inputs===void 0?w:w.inputs[0]),b.connect(v.gain),w.connect(E.gain),v.connect(_,0,0),E.connect(_,0,1)},disconnectGraph(){p.disconnect(v),p.disconnect(T.inputs===void 0?T:T.inputs[0]),p.disconnect(E),T.disconnect(g),g.disconnect(b.inputs===void 0?b:b.inputs[0]),g.disconnect(w.inputs===void 0?w:w.inputs[0]),b.disconnect(v.gain),w.disconnect(E.gain),v.disconnect(_,0,0),E.disconnect(_,0,1)}}},d=(m,p,g,_)=>{const x=new Float32Array(16385),k=new Float32Array(16385),v=new Float32Array(16385),b=new Float32Array(16385),T=Math.floor(16385/2);for(let z=0;z<16385;z+=1)if(z>T){const U=(z-T)/(16384-T)*c;x[z]=Math.cos(U),k[z]=Math.sin(U),v[z]=0,b[z]=1}else{const U=z/(16384-T)*c;x[z]=1,k[z]=0,v[z]=Math.cos(U),b[z]=Math.sin(U)}const E=e(m,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),w=t(m,{...l,gain:0}),C=s(m,{...u,curve:x}),S=t(m,{...l,gain:0}),R=s(m,{...u,curve:k}),O=s(m,{...u,curve:a}),L=t(m,{...l,gain:0}),j=s(m,{...u,curve:v}),W=t(m,{...l,gain:0}),B=s(m,{...u,curve:b});return{connectGraph(){p.connect(E),p.connect(O.inputs===void 0?O:O.inputs[0]),E.connect(w,0),E.connect(S,0),E.connect(L,1),E.connect(W,1),O.connect(g),g.connect(C.inputs===void 0?C:C.inputs[0]),g.connect(R.inputs===void 0?R:R.inputs[0]),g.connect(j.inputs===void 0?j:j.inputs[0]),g.connect(B.inputs===void 0?B:B.inputs[0]),C.connect(w.gain),R.connect(S.gain),j.connect(L.gain),B.connect(W.gain),w.connect(_,0,0),L.connect(_,0,0),S.connect(_,0,1),W.connect(_,0,1)},disconnectGraph(){p.disconnect(E),p.disconnect(O.inputs===void 0?O:O.inputs[0]),E.disconnect(w,0),E.disconnect(S,0),E.disconnect(L,1),E.disconnect(W,1),O.disconnect(g),g.disconnect(C.inputs===void 0?C:C.inputs[0]),g.disconnect(R.inputs===void 0?R:R.inputs[0]),g.disconnect(j.inputs===void 0?j:j.inputs[0]),g.disconnect(B.inputs===void 0?B:B.inputs[0]),C.disconnect(w.gain),R.disconnect(S.gain),j.disconnect(L.gain),B.disconnect(W.gain),w.disconnect(_,0,0),L.disconnect(_,0,0),S.disconnect(_,0,1),W.disconnect(_,0,1)}}},f=(m,p,g,_,x)=>{if(p===1)return h(m,g,_,x);if(p===2)return d(m,g,_,x);throw r()};return(m,{channelCount:p,channelCountMode:g,pan:_,...x})=>{if(g==="max")throw r();const k=n(m,{...x,channelCount:1,channelCountMode:g,numberOfInputs:2}),v=t(m,{...x,channelCount:p,channelCountMode:g,gain:1}),b=t(m,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:_});let{connectGraph:T,disconnectGraph:E}=f(m,p,v,b,k);Object.defineProperty(b.gain,"defaultValue",{get:()=>0}),Object.defineProperty(b.gain,"maxValue",{get:()=>1}),Object.defineProperty(b.gain,"minValue",{get:()=>-1});const w={get bufferSize(){},get channelCount(){return v.channelCount},set channelCount(O){v.channelCount!==O&&(C&&E(),{connectGraph:T,disconnectGraph:E}=f(m,O,v,b,k),C&&T()),v.channelCount=O},get channelCountMode(){return v.channelCountMode},set channelCountMode(O){if(O==="clamped-max"||O==="max")throw r();v.channelCountMode=O},get channelInterpretation(){return v.channelInterpretation},set channelInterpretation(O){v.channelInterpretation=O},get context(){return v.context},get inputs(){return[v]},get numberOfInputs(){return v.numberOfInputs},get numberOfOutputs(){return v.numberOfOutputs},get pan(){return b.gain},addEventListener(...O){return v.addEventListener(O[0],O[1],O[2])},dispatchEvent(...O){return v.dispatchEvent(O[0])},removeEventListener(...O){return v.removeEventListener(O[0],O[1],O[2])}};let C=!1;const S=()=>{T(),C=!0},R=()=>{E(),C=!1};return i(si(w,k),S,R)}},TO=(n,e,t,s,r,i,o)=>(a,c)=>{const l=a.createWaveShaper();if(i!==null&&i.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return t(a,c);ot(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw e();ze(l,{curve:u},"curve"),ze(l,c,"oversample");let h=null,d=!1;return o(l,"curve",p=>()=>p.call(l),p=>g=>(p.call(l,g),d&&(s(g)&&h===null?h=n(a,l):!s(g)&&h!==null&&(h(),h=null)),g)),r(l,()=>{d=!0,s(l.curve)&&(h=n(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},EO=(n,e,t,s,r)=>(i,{curve:o,oversample:a,...c})=>{const l=i.createWaveShaper(),u=i.createWaveShaper();ot(l,c),ot(u,c);const h=t(i,{...c,gain:1}),d=t(i,{...c,gain:-1}),f=t(i,{...c,gain:1}),m=t(i,{...c,gain:-1});let p=null,g=!1,_=null;const x={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(b){h.channelCount=b,d.channelCount=b,l.channelCount=b,f.channelCount=b,u.channelCount=b,m.channelCount=b},get channelCountMode(){return l.channelCountMode},set channelCountMode(b){h.channelCountMode=b,d.channelCountMode=b,l.channelCountMode=b,f.channelCountMode=b,u.channelCountMode=b,m.channelCountMode=b},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(b){h.channelInterpretation=b,d.channelInterpretation=b,l.channelInterpretation=b,f.channelInterpretation=b,u.channelInterpretation=b,m.channelInterpretation=b},get context(){return l.context},get curve(){return _},set curve(b){if(b!==null&&b.length<2)throw e();if(b===null)l.curve=b,u.curve=b;else{const T=b.length,E=new Float32Array(T+2-T%2),w=new Float32Array(T+2-T%2);E[0]=b[0],w[0]=-b[T-1];const C=Math.ceil((T+1)/2),S=(T+1)/2-1;for(let R=1;R{h.connect(l).connect(f),h.connect(d).connect(u).connect(m).connect(f),g=!0,s(_)&&(p=n(i,h))},v=()=>{h.disconnect(l),l.disconnect(f),h.disconnect(d),d.disconnect(u),u.disconnect(m),m.disconnect(f),g=!1,p!==null&&(p(),p=null)};return r(si(x,f),k,v)},Tt=()=>new DOMException("","NotSupportedError"),CO={numberOfChannels:1},SO=(n,e,t,s,r)=>class extends n{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...CO,...l},f=s(h,u,d);e(Wi,()=>Wi(f))||f.addEventListener("statechange",(()=>{let m=0;const p=g=>{this._state==="running"&&(m>0?(f.removeEventListener("statechange",p),g.stopImmediatePropagation(),this._waitForThePromiseToSettle(g)):m+=1)};return p})()),super(f,h),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(t()):(this._state="running",r(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,im(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},OO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},AO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...OO,...l},d=t(u,h),f=i(u),m=f?s():null,p=c.sampleRate/2;super(c,!1,d,m),this._detune=e(this,f,d.detune,153600,-153600),this._frequency=e(this,f,d.frequency,p,-p),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=m,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){jr(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),Bn(this)&&Co(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},PO=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=t(u);const f=_t(d,h);if(!f){const m={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=e(h,m),a!==null&&d.start(a),c!==null&&d.stop(c)}return i.set(h,d),f?(await n(h,u.detune,d.detune),await n(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await r(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=i.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},RO={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},DO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...RO,...l},d=t(u,h),f=i(u),m=f?s():null;super(c,!1,d,m),this._nativePannerNode=d,this._orientationX=e(this,f,d.orientationX,vt,Ct),this._orientationY=e(this,f,d.orientationY,vt,Ct),this._orientationZ=e(this,f,d.orientationZ,vt,Ct),this._positionX=e(this,f,d.positionX,vt,Ct),this._positionY=e(this,f,d.positionY,vt,Ct),this._positionZ=e(this,f,d.positionZ,vt,Ct),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},MO=(n,e,t,s,r,i,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(f,m)=>{let p=null,g=i(f);const _={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation},x={..._,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},k=_t(g,m);if("bufferSize"in g)p=s(m,{..._,gain:1});else if(!k){const v={...x,orientationX:g.orientationX.value,orientationY:g.orientationY.value,orientationZ:g.orientationZ.value,positionX:g.positionX.value,positionY:g.positionY.value,positionZ:g.positionZ.value};g=r(m,v)}if(u.set(m,p===null?g:p),p!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const R=new o(6,f.context.length,m.sampleRate),O=e(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});O.connect(R.destination),h=(async()=>{const L=await Promise.all([f.orientationX,f.orientationY,f.orientationZ,f.positionX,f.positionY,f.positionZ].map(async(j,W)=>{const B=t(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:W===0?1:0});return await a(R,j,B.offset),B}));for(let j=0;j<6;j+=1)L[j].connect(O,0,j),L[j].start(0);return l(R)})()}const v=await h,b=s(m,{..._,gain:1});await c(f,m,b);const T=[];for(let R=0;Rj!==E[W])||L.some((j,W)=>j!==w[W])){E=O,w=L;const j=R/m.sampleRate;C.gain.setValueAtTime(0,j),C=s(m,{..._,gain:0}),S=r(m,{...x,orientationX:E[0],orientationY:E[1],orientationZ:E[2],positionX:w[0],positionY:w[1],positionZ:w[2]}),C.gain.setValueAtTime(1,j),b.connect(C).connect(S.inputs[0]),S.connect(p)}}return p}return k?(await n(m,f.orientationX,g.orientationX),await n(m,f.orientationY,g.orientationY),await n(m,f.orientationZ,g.orientationZ),await n(m,f.positionX,g.positionX),await n(m,f.positionY,g.positionY),await n(m,f.positionZ,g.positionZ)):(await a(m,f.orientationX,g.orientationX),await a(m,f.orientationY,g.orientationY),await a(m,f.orientationZ,g.orientationZ),await a(m,f.positionX,g.positionX),await a(m,f.positionY,g.positionY),await a(m,f.positionZ,g.positionZ)),ni(g)?await c(f,m,g.inputs[0]):await c(f,m,g),g};return{render(f,m){const p=u.get(m);return p!==void 0?Promise.resolve(p):d(f,m)}}},IO={disableNormalization:!1},NO=(n,e,t,s)=>class mm{constructor(i,o){const a=e(i),c=s({...IO,...o}),l=n(a,c);return t.add(l),l}static[Symbol.hasInstance](i){return i!==null&&typeof i=="object"&&Object.getPrototypeOf(i)===mm.prototype||t.has(i)}},$O=(n,e)=>(t,s,r)=>(n(s).replay(r),e(s,t,r)),FO=(n,e,t)=>async(s,r,i)=>{const o=n(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await e(l).render(l,r),f=s.context.destination;!t(l)&&(s!==f||!t(s))&&d.connect(i,u,c)})).reduce((a,c)=>[...a,...c],[]))},LO=(n,e,t)=>async(s,r,i)=>{const o=e(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await n(a).render(a,r);t(a)||u.connect(i,c)}))},jO=(n,e,t,s)=>r=>n(Wi,()=>Wi(r))?Promise.resolve(n(s,s)).then(i=>{if(!i){const o=t(r,512,0,1);r.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>r.currentTime,o.connect(r.destination)}return r.startRendering()}):new Promise(i=>{const o=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});r.oncomplete=a=>{o.disconnect(),i(a.renderedBuffer)},o.connect(r.destination),r.startRendering()}),VO=n=>(e,t)=>{n.set(e,t)},zO=n=>(e,t)=>n.set(e,t),UO=(n,e,t,s,r,i,o,a)=>(c,l)=>t(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>t(u).render(u,l)))).then(()=>r(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),zu(u)):e(i,()=>i(u))||a(u),n.add(u),u)),BO={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},WO=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...BO,...c},h=t(l,u),d=i(l),f=d?s():null;super(a,!1,h,f),this._pan=e(this,d,h.pan)}get pan(){return this._pan}},qO=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=_t(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=e(c,h)}return i.set(c,l),u?await n(c,a.pan,l.pan):await s(c,a.pan,l.pan),ni(l)?await r(a,c,l.inputs[0]):await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},HO=n=>()=>{if(n===null)return!1;try{new n({length:1,sampleRate:44100})}catch{return!1}return!0},GO=(n,e)=>async()=>{if(n===null)return!0;if(e===null)return!1;const t=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),s=new e(1,128,44100),r=URL.createObjectURL(t);let i=!1,o=!1;try{await s.audioWorklet.addModule(r);const a=new n(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>i=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(r)}return i&&!o},YO=(n,e)=>()=>{if(e===null)return Promise.resolve(!1);const t=new e(1,1,44100),s=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(r=>{t.oncomplete=()=>{s.disconnect(),r(t.currentTime!==0)},t.startRendering()})},XO=()=>new DOMException("","UnknownError"),ZO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},KO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...ZO,...l},d=t(u,h),m=i(u)?s():null;super(c,!0,d,m),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},QO=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!_t(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=n(o,l)}return s.set(o,a),ni(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},JO=()=>typeof window>"u"?null:window,e2=(n,e)=>t=>{t.copyFromChannel=(s,r,i=0)=>{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+oe=>{e.copyFromChannel=(t=>(s,r,i=0)=>{const o=n(i),a=n(r);if(o(s,r,i=0)=>{const o=n(i),a=n(r);if(o(e,t)=>{const s=t.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=s),n(e,"buffer",r=>()=>{const i=r.call(e);return i===s?null:i},r=>i=>r.call(e,i===null?s:i))},s2=(n,e)=>(t,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw n()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw n()}});const r=t.createBufferSource();e(s,()=>{const a=s.numberOfInputs;for(let c=0;cr.disconnect(s))},gm=(n,e,t)=>n.copyFromChannel===void 0?n.getChannelData(t)[0]:(n.copyFromChannel(e,t),e[0]),_m=n=>{if(n===null)return!1;const e=n.length;return e%2!==0?n[Math.floor(e/2)]!==0:n[e/2-1]+n[e/2]!==0},Ro=(n,e,t,s)=>{let r=n;for(;!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,{get:t(i),set:s(o)})},r2=n=>({...n,outputChannelCount:n.outputChannelCount!==void 0?n.outputChannelCount:n.numberOfInputs===1&&n.numberOfOutputs===1?[n.channelCount]:Array.from({length:n.numberOfOutputs},()=>1)}),i2=n=>({...n,channelCount:n.numberOfOutputs}),o2=n=>{const{imag:e,real:t}=n;return e===void 0?t===void 0?{...n,imag:[0,0],real:[0,0]}:{...n,imag:Array.from(t,()=>0),real:t}:t===void 0?{...n,imag:e,real:Array.from(e,()=>0)}:{...n,imag:e,real:t}},ym=(n,e,t)=>{try{n.setValueAtTime(e,t)}catch(s){if(s.code!==9)throw s;ym(n,e,t+1e-7)}},a2=n=>{const e=n.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},c2=n=>{const e=n.createBufferSource(),t=n.createBuffer(1,1,44100);e.buffer=t;try{e.start(0,1)}catch{return!1}return!0},l2=n=>{const e=n.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},Hu=n=>{const e=n.createOscillator();try{e.start(-1)}catch(t){return t instanceof RangeError}return!1},vm=n=>{const e=n.createBuffer(1,1,44100),t=n.createBufferSource();t.buffer=e,t.start(),t.stop();try{return t.stop(),!0}catch{return!1}},Gu=n=>{const e=n.createOscillator();try{e.stop(-1)}catch(t){return t instanceof RangeError}return!1},u2=n=>{const{port1:e,port2:t}=new MessageChannel;try{e.postMessage(n)}finally{e.close(),t.close()}},h2=n=>{n.start=(e=>(t=0,s=0,r)=>{const i=n.buffer,o=i===null?s:Math.min(i.duration,s);i!==null&&o>i.duration-.5/n.context.sampleRate?e.call(n,t,0,0):e.call(n,t,o,r)})(n.start)},bm=(n,e)=>{const t=e.createGain();n.connect(t);const s=(r=>()=>{r.call(n,t),n.removeEventListener("ended",s)})(n.disconnect);n.addEventListener("ended",s),si(n,t),n.stop=(r=>{let i=!1;return(o=0)=>{if(i)try{r.call(n,o)}catch{t.gain.setValueAtTime(0,o)}else r.call(n,o),i=!0}})(n.stop)},ri=(n,e)=>t=>{const s={value:n};return Object.defineProperties(t,{currentTarget:s,target:s}),typeof e=="function"?e.call(n,t):e.handleEvent.call(n,t)},d2=DE(ir),f2=LE(ir),p2=ZC(pc),xm=new WeakMap,m2=pS(xm),mn=CC(new Map,new WeakMap),Sn=JO(),wm=WS(mn,An),Yu=fS(wt),ht=FO(wt,Yu,Ks),g2=BE(wm,Ve,ht),Le=_S(fc),ns=_O(Sn),Re=IS(ns),km=new WeakMap,Tm=oS(ri),Do=YS(Sn),Xu=PS(Do),Zu=RS(Sn),Em=DS(Sn),qi=ZS(Sn),st=pC(ME(Q0),FE(d2,f2,Da,p2,Ma,wt,m2,Eo,Ve,ir,Bn,Ks,la),mn,ES(Ul,Ma,wt,Ve,Bi,Bn),An,mc,Tt,HC(Da,Ul,wt,Ve,Bi,Le,Bn,Re),JC(km,wt,hn),Tm,Le,Xu,Zu,Em,Re,qi),_2=UE(st,g2,An,wm,Le,Re),Ku=new WeakSet,Sf=qS(Sn),Cm=jC(new Uint32Array(1)),Qu=e2(Cm,An),Ju=t2(Cm),Sm=qE(Ku,mn,Tt,Sf,ns,HO(Sf),Qu,Ju),gc=jE(Mt),Om=LO(Yu,So,Ks),Pn=MC(Om),ii=GS(gc,mn,a2,c2,l2,Hu,vm,Gu,h2,n2(Ro),bm),Rn=$O(mS(So),Om),y2=YE(Pn,ii,Ve,Rn,ht),gn=mC(IE(J0),km,Vu,gC,CE,SE,OE,AE,PE,jl,Z0,Do,ym),v2=GE(st,y2,gn,lt,ii,Le,Re,ri),b2=sC(st,rC,An,lt,XS(Mt,Ro),Le,Re,ht),x2=EC(Pn,fm,Ve,Rn,ht),or=zO(xm),w2=TC(st,gn,x2,mc,fm,Le,Re,or),As=US(ir,Zu),k2=s2(lt,As),Ps=sO(Do,k2),T2=AC(Ps,Ve,ht),E2=OC(st,T2,Ps,Le,Re),C2=DC(Ao,Ve,ht),S2=RC(st,C2,Ao,Le,Re,i2),O2=oO(gc,ii,Mt,As),oi=iO(gc,mn,O2,Hu,Gu),A2=LC(Pn,oi,Ve,Rn,ht),P2=FC(st,gn,A2,oi,Le,Re,ri),Am=aO(Tt,Ro),R2=UC(Am,Ve,ht),D2=zC(st,R2,Am,Le,Re,or),M2=XC(Pn,pm,Ve,Rn,ht),I2=YC(st,gn,M2,pm,Le,Re,or),Pm=cO(Tt),N2=sS(Pn,Pm,Ve,Rn,ht),$2=nS(st,gn,N2,Pm,Tt,Le,Re,or),F2=hS(Pn,Mt,Ve,Rn,ht),L2=uS(st,gn,F2,Mt,Le,Re),j2=dO(mc,lt,Po,Tt),_c=jO(mn,Mt,Po,YO(Mt,ns)),V2=TS(ii,Ve,ns,ht,_c),z2=lO(j2),U2=wS(st,z2,V2,Le,Re,or),B2=iC(gn,Ps,oi,Po,Tt,gm,Re,Ro),Rm=new WeakMap,W2=zS(b2,B2,Tm,Re,Rm,ri),Dm=yO(gc,mn,Hu,vm,Gu,bm),q2=PO(Pn,Dm,Ve,Rn,ht),H2=AO(st,gn,Dm,q2,Le,Re,ri),Mm=NC(ii),G2=EO(Mm,lt,Mt,_m,As),yc=TO(Mm,lt,G2,_m,As,Do,Ro),Y2=bO(Da,lt,Ps,Mt,Po,yc,Tt,Ma,gm,As),Im=vO(Y2),X2=MO(Pn,Ps,oi,Mt,Im,Ve,ns,Rn,ht,_c),Z2=DO(st,gn,Im,X2,Le,Re,or),K2=xO(An),Q2=NO(K2,Le,new WeakSet,o2),J2=kO(Ps,Ao,Mt,yc,Tt,As),Nm=wO(J2,Tt),eA=qO(Pn,Nm,Ve,Rn,ht),tA=WO(st,gn,Nm,eA,Le,Re),nA=QO(yc,Ve,ht),sA=KO(st,lt,yc,nA,Le,Re,or),$m=NS(Sn),eh=aS(Sn),Fm=new WeakMap,rA=yS(Fm,ns),iA=$m?$E(mn,Tt,iS(Sn),eh,cS(RE),Le,rA,Re,qi,new WeakMap,new WeakMap,GO(qi,ns),Sn):void 0,oA=MS(Xu,Re),aA=qC(Ku,mn,WC,rS,new WeakSet,Le,oA,Pa,Wi,Qu,Ju),Lm=wC(iA,_2,Sm,v2,w2,E2,S2,P2,D2,aA,I2,$2,L2,U2,W2,H2,Z2,Q2,tA,sA),cA=$S(st,fO,Le,Re),lA=LS(st,pO,Le,Re),uA=jS(st,mO,Le,Re),hA=gO(lt,Re),dA=VS(st,hA,Le),fA=nC(Lm,lt,Tt,XO,cA,lA,uA,dA,Do),th=vS(Rm),pA=VE(th),jm=IC(An),mA=KC(th),Vm=eS(An),zm=new WeakMap,gA=dS(zm,hn),_A=nO(jm,An,lt,Ps,Ao,oi,Mt,Po,Tt,Vm,eh,gA,As),yA=QS(lt,_A,Mt,Tt,As),vA=xC(Pn,jm,ii,Ps,Ao,oi,Mt,mA,Vm,eh,Ve,qi,ns,Rn,ht,_c),bA=gS(Fm),xA=VO(zm),Of=$m?yC(pA,st,gn,vA,yA,wt,bA,Le,Re,qi,r2,xA,u2,ri):void 0,wA=BC(Tt,ns),kA=UO(Ku,mn,Yu,th,_c,Pa,Qu,Ju),TA=SO(Lm,mn,lt,wA,kA),EA=CS(fc,Xu),CA=SS(ju,Zu),SA=OS(Vu,Em),OA=AS(fc,Re);function Ut(n){return typeof n>"u"}function ve(n){return!Ut(n)}function AA(n){return typeof n=="function"}function xs(n){return typeof n=="number"}function Bs(n){return Object.prototype.toString.call(n)==="[object Object]"&&n.constructor===Object}function PA(n){return typeof n=="boolean"}function ln(n){return Array.isArray(n)}function Gn(n){return typeof n=="string"}function ea(n){return Gn(n)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(n)}function me(n,e){if(!n)throw new Error(e)}function dn(n,e,t=1/0){if(!(e<=n&&n<=t))throw new RangeError(`Value must be within [${e}, ${t}], got: ${n}`)}function Um(n){!n.isOffline&&n.state!=="running"&&nh('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let Bm=!1,Af=!1;function Pf(n){Bm=n}function RA(n){Ut(n)&&Bm&&!Af&&(Af=!0,nh("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let Wm=console;function DA(...n){Wm.log(...n)}function nh(...n){Wm.warn(...n)}function MA(n){return new fA(n)}function IA(n,e,t){return new TA(n,e,t)}const Ws=typeof self=="object"?self:null,NA=Ws&&(Ws.hasOwnProperty("AudioContext")||Ws.hasOwnProperty("webkitAudioContext"));function $A(n,e,t){return me(ve(Of),"This node only works in a secure context (https or localhost)"),new Of(n,e,t)}class FA{constructor(e,t,s,r){this._callback=e,this._type=t,this._minimumUpdateInterval=Math.max(128/(r||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const e=new Blob([` + // the initial timeout time + let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; + // onmessage callback + self.onmessage = function(msg){ + timeoutTime = parseInt(msg.data); + }; + // the tick function which posts a message + // and schedules a new tick + function tick(){ + setTimeout(tick, timeoutTime); + self.postMessage('tick'); + } + // call tick initially + tick(); + `],{type:"text/javascript"}),t=URL.createObjectURL(e),s=new Worker(t);s.onmessage=this._callback.bind(this),this._worker=s}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(e){var t;this._updateInterval=Math.max(e,this._minimumUpdateInterval),this._type==="worker"&&((t=this._worker)===null||t===void 0||t.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(e){this._disposeClock(),this._type=e,this._createClock()}dispose(){this._disposeClock()}}function Qs(n){return SA(n)}function ps(n){return CA(n)}function ua(n){return OA(n)}function wr(n){return EA(n)}function LA(n){return n instanceof Sm}function jA(n,e){return n==="value"||Qs(e)||ps(e)||LA(e)}function Pr(n,...e){if(!e.length)return n;const t=e.shift();if(Bs(n)&&Bs(t))for(const s in t)jA(s,t[s])?n[s]=t[s]:Bs(t[s])?(n[s]||Object.assign(n,{[s]:{}}),Pr(n[s],t[s])):Object.assign(n,{[s]:t[s]});return Pr(n,...e)}function VA(n,e){return n.length===e.length&&n.every((t,s)=>e[s]===t)}function Z(n,e,t=[],s){const r={},i=Array.from(e);if(Bs(i[0])&&s&&!Reflect.has(i[0],s)&&(Object.keys(i[0]).some(a=>Reflect.has(n,a))||(Pr(r,{[s]:i[0]}),t.splice(t.indexOf(s),1),i.shift())),i.length===1&&Bs(i[0]))Pr(r,i[0]);else for(let o=0;o{Reflect.has(n,t)&&delete n[t]}),n}/** + * Tone.js + * @author Yotam Mann + * @license http://opensource.org/licenses/MIT MIT License + * @copyright 2014-2019 Yotam Mann + */class ss{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||Ws&&this.toString()===Ws.TONE_DEBUG_CLASS)&&DA(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}ss.version=X0;const sh=1e-6;function Vr(n,e){return n>e+sh}function Gl(n,e){return Vr(n,e)||rn(n,e)}function Fa(n,e){return n+shthis.memory){const t=this.length-this.memory;this._timeline.splice(0,t)}return this}remove(e){const t=this._timeline.indexOf(e);return t!==-1&&this._timeline.splice(t,1),this}get(e,t="time"){const s=this._search(e,t);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,t="time"){const s=this._search(e,t);return s+10&&this._timeline[t-1].time=0?this._timeline[s-1]:null}cancel(e){if(this._timeline.length>1){let t=this._search(e);if(t>=0)if(rn(this._timeline[t].time,e)){for(let s=t;s>=0&&rn(this._timeline[s].time,e);s--)t=s;this._timeline=this._timeline.slice(0,t)}else this._timeline=this._timeline.slice(0,t+1);else this._timeline=[]}else this._timeline.length===1&&Gl(this._timeline[0].time,e)&&(this._timeline=[]);return this}cancelBefore(e){const t=this._search(e);return t>=0&&(this._timeline=this._timeline.slice(t+1)),this}previousEvent(e){const t=this._timeline.indexOf(e);return t>0?this._timeline[t-1]:null}_search(e,t="time"){if(this._timeline.length===0)return-1;let s=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][t]<=e)return r-1;for(;s=0&&this._timeline[s].time>=e;)s--;return this._iterate(t,s+1),this}forEachAtTime(e,t){const s=this._search(e);if(s!==-1&&rn(this._timeline[s].time,e)){let r=s;for(let i=s;i>=0&&rn(this._timeline[i].time,e);i--)r=i;this._iterate(i=>{t(i)},r,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const Hm=[];function vc(n){Hm.push(n)}function BA(n){Hm.forEach(e=>e(n))}const Gm=[];function bc(n){Gm.push(n)}function WA(n){Gm.forEach(e=>e(n))}class Mo extends ss{constructor(){super(...arguments),this.name="Emitter"}on(e,t){return e.split(/\W+/).forEach(r=>{Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r)||(this._events[r]=[]),this._events[r].push(t)}),this}once(e,t){const s=(...r)=>{t(...r),this.off(e,s)};return this.on(e,s),this}off(e,t){return e.split(/\W+/).forEach(r=>{if(Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r))if(Ut(t))this._events[r]=[];else{const i=this._events[r];for(let o=i.length-1;o>=0;o--)i[o]===t&&i.splice(o,1)}}),this}emit(e,...t){if(this._events&&this._events.hasOwnProperty(e)){const s=this._events[e].slice(0);for(let r=0,i=s.length;r{const s=Object.getOwnPropertyDescriptor(Mo.prototype,t);Object.defineProperty(e.prototype,t,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class Ym extends Mo{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let rh=class Xm extends Ym{constructor(){var e,t;super(),this.name="Context",this._constants=new Map,this._timeouts=new kn,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=Z(Xm.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((e=arguments[0])===null||e===void 0?void 0:e.latencyHint)||""):(this._context=MA({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new FA(this.emit.bind(this,"tick"),s.clockSource,s.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((t=arguments[0])===null||t===void 0)&&t.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(BA(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(e,t,s){return this._context.createBuffer(e,t,s)}createChannelMerger(e){return this._context.createChannelMerger(e)}createChannelSplitter(e){return this._context.createChannelSplitter(e)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(e){return this._context.createDelay(e)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(e,t){return this._context.createIIRFilter(e,t)}createPanner(){return this._context.createPanner()}createPeriodicWave(e,t,s){return this._context.createPeriodicWave(e,t,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return me(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return me(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return me(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(e){return this._context.decodeAudioData(e)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(e){me(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){me(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){me(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){me(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,t){return $A(this.rawContext,e,t)}addAudioWorkletModule(e){return Ie(this,void 0,void 0,function*(){me(ve(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(e)),yield this._workletPromise})}workletsAreReady(){return Ie(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(e){this._ticker.updateInterval=e}get clockSource(){return this._ticker.type}set clockSource(e){this._ticker.type=e}get lookAhead(){return this._lookAhead}set lookAhead(e){this._lookAhead=e,this.updateInterval=e?e/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return wr(this._context)?this._context.resume():Promise.resolve()}close(){return Ie(this,void 0,void 0,function*(){wr(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&WA(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const t=this._context.createBuffer(1,128,this._context.sampleRate),s=t.getChannelData(0);for(let i=0;ithis._constants[e].disconnect()),this.close(),this}_timeoutLoop(){const e=this.now();let t=this._timeouts.peek();for(;this._timeouts.length&&t&&t.time<=e;)t.callback(),this._timeouts.shift(),t=this._timeouts.peek()}setTimeout(e,t){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:s+t}),this._timeoutIds}clearTimeout(e){return this._timeouts.forEach(t=>{t.id===e&&this._timeouts.remove(t)}),this}clearInterval(e){return this.clearTimeout(e)}setInterval(e,t){const s=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{e(),r()},id:s,time:i+t})};return r(),s}};class qA extends Ym{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,t,s){return{}}createChannelMerger(e){return{}}createChannelSplitter(e){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(e){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(e,t){return{}}createPanner(){return{}}createPeriodicWave(e,t,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(e){return{}}createMediaElementSource(e){return{}}createMediaStreamDestination(){return{}}decodeAudioData(e){return Promise.resolve({})}createAudioWorkletNode(e,t){return{}}get rawContext(){return{}}addAudioWorkletModule(e){return Ie(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(e,t){return 0}clearTimeout(e){return this}setInterval(e,t){return 0}clearInterval(e){return this}getConstant(e){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(e){}get destination(){return{}}set destination(e){}now(){return 0}immediate(){return 0}}function je(n,e){ln(e)?e.forEach(t=>je(n,t)):Object.defineProperty(n,e,{enumerable:!0,writable:!1})}function ih(n,e){ln(e)?e.forEach(t=>ih(n,t)):Object.defineProperty(n,e,{writable:!0})}const Ce=()=>{};class Se extends ss{constructor(){super(),this.name="ToneAudioBuffer",this.onload=Ce;const e=Z(Se.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,Gn(e.url)?this.load(e.url).catch(e.onerror):e.url&&this.set(e.url)}static getDefaults(){return{onerror:Ce,onload:Ce,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:on().sampleRate}set(e){return e instanceof Se?e.loaded?this._buffer=e.get():e.onload=()=>{this.set(e),this.onload(this)}:this._buffer=e,this._reversed&&this._reverse(),this}get(){return this._buffer}load(e){return Ie(this,void 0,void 0,function*(){const t=Se.load(e).then(s=>{this.set(s),this.onload(this)});Se.downloads.push(t);try{yield t}finally{const s=Se.downloads.indexOf(t);Se.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const t=ln(e)&&e[0].length>0,s=t?e.length:1,r=t?e[0].length:e.length,i=on(),o=i.createBuffer(s,r,i.sampleRate),a=!t&&s===1?[e]:e;for(let c=0;cr/s),this.fromArray(t)}return this}toArray(e){if(xs(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const t=[];for(let s=0;s0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(e){this._reversed!==e&&(this._reversed=e,this._reverse())}static fromArray(e){return new Se().fromArray(e)}static fromUrl(e){return Ie(this,void 0,void 0,function*(){return yield new Se().load(e)})}static load(e){return Ie(this,void 0,void 0,function*(){const t=e.match(/\[([^\]\[]+\|.+)\]$/);if(t){const c=t[1].split("|");let l=c[0];for(const u of c)if(Se.supportsType(u)){l=u;break}e=e.replace(t[0],l)}const s=Se.baseUrl===""||Se.baseUrl.endsWith("/")?Se.baseUrl:Se.baseUrl+"/",r=document.createElement("a");r.href=s+e,r.pathname=(r.pathname+r.hash).split("/").map(encodeURIComponent).join("/");const i=yield fetch(r.href);if(!i.ok)throw new Error(`could not load url: ${e}`);const o=yield i.arrayBuffer();return yield on().decodeAudioData(o)})}static supportsType(e){const t=e.split("."),s=t[t.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return Ie(this,void 0,void 0,function*(){for(yield Promise.resolve();Se.downloads.length;)yield Se.downloads[0]})}}Se.baseUrl="";Se.downloads=[];class xc extends rh{constructor(){super({clockSource:"offline",context:ua(arguments[0])?arguments[0]:IA(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:ua(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=ua(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(e){return Ie(this,void 0,void 0,function*(){let t=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,t++;const s=Math.floor(this.sampleRate/128);e&&t%s===0&&(yield new Promise(r=>setTimeout(r,1)))}})}render(e=!0){return Ie(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(e);const t=yield this._context.startRendering();return new Se(t)})}close(){return Promise.resolve()}}const Zm=new qA;let Vs=Zm;function on(){return Vs===Zm&&NA&&HA(new rh),Vs}function HA(n,e=!1){e&&Vs.dispose(),wr(n)?Vs=new rh(n):ua(n)?Vs=new xc(n):Vs=n}function GA(){return Vs.resume()}if(Ws&&!Ws.TONE_SILENCE_LOGGING){const e=` * Tone.js v${X0} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function YA(n){return Math.pow(10,n/20)}function XA(n){return 20*(Math.log(n)/Math.LN10)}function Km(n){return Math.pow(2,n/12)}let wc=440;function ZA(){return wc}function KA(n){wc=n}function Yl(n){return Math.round(Qm(n))}function Qm(n){return 69+12*Math.log2(n/wc)}function QA(n){return wc*Math.pow(2,(n-69)/12)}class oh extends ss{constructor(e,t,s){super(),this.defaultUnits="s",this._val=t,this._units=s,this.context=e,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:e=>this._frequencyToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:e=>this._ticksToUnits(parseInt(e,10)),regexp:/^(\d+)i$/i},m:{method:e=>this._beatsToUnits(parseInt(e,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(e,t)=>{const s=parseInt(e,10),r=t==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/s)*r},regexp:/^(\d+)n(\.?)$/i},number:{method:e=>this._expressions[this.defaultUnits].method.call(this,e),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:e=>this._secondsToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:e=>parseInt(e,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:e=>{const t=parseInt(e,10);return this._beatsToUnits(8/(Math.floor(t)*3))},regexp:/^(\d+)t$/i},tr:{method:(e,t,s)=>{let r=0;return e&&e!=="0"&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r+=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r+=this._beatsToUnits(parseFloat(s)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof oh&&this.fromType(this._val),Ut(this._val))return this._noArg();if(Gn(this._val)&&Ut(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(Bs(this._val)){let e=0;for(const t in this._val)if(ve(this._val[t])){const s=this._val[t],r=new this.constructor(this.context,t).valueOf()*s;e+=r}return e}if(ve(this._units)){const e=this._expressions[this._units],t=this._val.toString().trim().match(e.regexp);return t?e.method.apply(this,t.slice(1)):e.method.call(this,this._val)}else return Gn(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(e){return 1/e}_beatsToUnits(e){return 60/this._getBpm()*e}_secondsToUnits(e){return e}_ticksToUnits(e){return e*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(e){switch(this._units=void 0,this.defaultUnits){case"s":this._val=e.toSeconds();break;case"i":this._val=e.toTicks();break;case"hz":this._val=e.toFrequency();break;case"midi":this._val=e.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class an extends oh{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:e=>this._now()+new this.constructor(this.context,e).valueOf(),regexp:/^\+(.+)/},quantize:{method:e=>{const t=new an(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(t))},regexp:/^@(.+)/}})}quantize(e,t=1){const s=new this.constructor(this.context,e).valueOf(),r=this.valueOf(),a=Math.round(r/s)*s-r;return r+a*t}toNotation(){const e=this.toSeconds(),t=["1m"];for(let i=1;i<9;i++){const o=Math.pow(2,i);t.push(o+"n."),t.push(o+"n"),t.push(o+"t")}t.push("0");let s=t[0],r=new an(this.context,t[0]).toSeconds();return t.forEach(i=>{const o=new an(this.context,i).toSeconds();Math.abs(o-e)3&&(r=parseFloat(parseFloat(i).toFixed(3))),[s,t,r].join(":")}toTicks(){const e=this._beatsToUnits(1);return this.valueOf()/e*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return Yl(this.toFrequency())}_now(){return this.context.now()}}class Xt extends an{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return ZA()}static set A4(e){KA(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Xt.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(e,t){const r=JA[e.toLowerCase()]+(parseInt(t,10)+1)*12;return this.defaultUnits==="midi"?r:Xt.mtof(r)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,t,s){let r=1;return e&&e!=="0"&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r*=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r*=this._beatsToUnits(parseFloat(s)/4)),r}}})}transpose(e){return new Xt(this.context,this.valueOf()*Km(e))}harmonize(e){return e.map(t=>this.transpose(t))}toMidi(){return Yl(this.valueOf())}toNote(){const e=this.toFrequency(),t=Math.log2(e/Xt.A4);let s=Math.round(12*t)+57;const r=Math.floor(s/12);return r<0&&(s+=-12*r),eP[s%12]+r.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const e=this._beatsToUnits(1),t=this.valueOf()/e;return Math.floor(t*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(e){return e}_ticksToUnits(e){return 1/(e*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(e){return 1/super._beatsToUnits(e)}_secondsToUnits(e){return 1/e}static mtof(e){return QA(e)}static ftom(e){return Yl(e)}}const JA={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},eP=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Mi extends an{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class Ot extends ss{constructor(){super();const e=Z(Ot.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:on()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(e){return RA(e),new an(this.context,e).toSeconds()}toFrequency(e){return new Xt(this.context,e).toFrequency()}toTicks(e){return new Mi(this.context,e).toTicks()}_getPartialProperties(e){const t=this.get();return Object.keys(t).forEach(s=>{Ut(e[s])&&delete t[s]}),t}get(){const e=zA(this);return Object.keys(e).forEach(t=>{if(Reflect.has(this,t)){const s=this[t];ve(s)&&ve(s.value)&&ve(s.setValueAtTime)?e[t]=s.value:s instanceof Ot?e[t]=s._getPartialProperties(e[t]):ln(s)||xs(s)||Gn(s)||PA(s)?e[t]=s:delete e[t]}}),e}set(e){return Object.keys(e).forEach(t=>{Reflect.has(this,t)&&ve(this[t])&&(this[t]&&ve(this[t].value)&&ve(this[t].setValueAtTime)?this[t].value!==e[t]&&(this[t].value=e[t]):this[t]instanceof Ot?this[t].set(e[t]):this[t]=e[t])}),this}}class ah extends kn{constructor(e="stopped"){super(),this.name="StateTimeline",this._initial=e,this.setStateAtTime(this._initial,0)}getValueAtTime(e){const t=this.get(e);return t!==null?t.state:this._initial}setStateAtTime(e,t,s){return dn(t,0),this.add(Object.assign({},s,{state:e,time:t})),this}getLastState(e,t){const s=this._search(t);for(let r=s;r>=0;r--){const i=this._timeline[r];if(i.state===e)return i}}getNextState(e,t){const s=this._search(t);if(s!==-1)for(let r=s;r0,"timeConstant must be a number greater than 0");const i=this.toSeconds(t);return this._assertRange(r),me(isFinite(r)&&isFinite(i),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(t)}`),this._events.add({constant:s,time:i,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",e,i,s),this._param.setTargetAtTime(r,i,s),this}setValueCurveAtTime(e,t,s,r=1){s=this.toSeconds(s),t=this.toSeconds(t);const i=this._fromType(e[0])*r;this.setValueAtTime(this._toType(i),t);const o=s/(e.length-1);for(let a=1;a{r.type==="cancelScheduledValues"?e.cancelScheduledValues(r.time):r.type==="setTargetAtTime"?e.setTargetAtTime(r.value,r.time,r.constant):e[r.type](r.value,r.time)}),this}setParam(e){me(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const t=this.input;return t.disconnect(this._param),this.apply(e),this._param=e,t.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(e,t,s,r,i){return s+(t-s)*Math.exp(-(i-e)/r)}_linearInterpolate(e,t,s,r,i){return t+(r-t)*((i-e)/(s-e))}_exponentialInterpolate(e,t,s,r,i){return t*Math.pow(r/t,(i-e)/(s-e))}}class ue extends Ot{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return ve(this.input)?Qs(this.input)||this.input instanceof Oe?1:this.input.numberOfInputs:0}get numberOfOutputs(){return ve(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return ve(e)&&(e instanceof ue||ps(e))}_getInternalNodes(){const e=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&e.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&e.push(this.output),e}_setChannelProperties(e){this._getInternalNodes().forEach(s=>{s.channelCount=e.channelCount,s.channelCountMode=e.channelCountMode,s.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();me(e.length>0,"ToneAudioNode does not have any internal nodes");const t=e[0];return{channelCount:t.channelCount,channelCountMode:t.channelCountMode,channelInterpretation:t.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCount:e}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCountMode:e}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelInterpretation:e}))}connect(e,t=0,s=0){return ws(this,e,t,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return nh("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,t=0,s=0){return tP(this,e,t,s),this}chain(...e){return Hi(this,...e),this}fan(...e){return e.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),ve(this.input)&&(this.input instanceof ue?this.input.dispose():ps(this.input)&&this.input.disconnect()),ve(this.output)&&(this.output instanceof ue?this.output.dispose():ps(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Hi(...n){const e=n.shift();n.reduce((t,s)=>(t instanceof ue?t.connect(s):ps(t)&&ws(t,s),s),e)}function ws(n,e,t=0,s=0){for(me(ve(n),"Cannot connect from undefined node"),me(ve(e),"Cannot connect to undefined node"),(e instanceof ue||ps(e))&&me(e.numberOfInputs>0,"Cannot connect to node with no inputs"),me(n.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof ue||e instanceof Oe;)ve(e.input)&&(e=e.input);for(;n instanceof ue;)ve(n.output)&&(n=n.output);Qs(e)?n.connect(e,t):n.connect(e,t,s)}function tP(n,e,t=0,s=0){if(ve(e))for(;e instanceof ue;)e=e.input;for(;!ps(n);)ve(n.output)&&(n=n.output);Qs(e)?n.disconnect(e,t):ps(e)?n.disconnect(e,t,s):n.disconnect()}class Ne extends ue{constructor(){super(Z(Ne.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Z(Ne.getDefaults(),arguments,["gain","units"]);this.gain=new Oe({context:this.context,convert:e.convert,param:this._gainNode.gain,units:e.units,value:e.gain,minValue:e.minValue,maxValue:e.maxValue}),je(this,"gain")}static getDefaults(){return Object.assign(ue.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zr extends ue{constructor(e){super(e),this.onended=Ce,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new Ne({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const s=this.toSeconds(t);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut,this._curve=e.curve,this.onended=e.onended}static getDefaults(){return Object.assign(ue.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:Ce})}_startGain(e,t=1){me(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=e+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(t,e+s):this._gainNode.gain.exponentialApproachValueAtTime(t,e,s)):this._gainNode.gain.setValueAtTime(t,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){me(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const t=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(e)+t,this._stopTime=Math.max(this._stopTime,this.now()),t>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,t,e):this._gainNode.gain.targetRampTo(0,t,e):(this._gainNode.gain.cancelAndHoldAtTime(e),this._gainNode.gain.setValueAtTime(0,e)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?t*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==Ce&&(this.onended(this),this.onended=Ce,!this.context.isOffline)){const e=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(e):setTimeout(e,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),me(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=Ce,this}}class La extends zr{constructor(){super(Z(La.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Z(La.getDefaults(),arguments,["offset"]);ws(this._source,this._gainNode),this.offset=new Oe({context:this.context,convert:e.convert,param:this._source.offset,units:e.units,value:e.offset,minValue:e.minValue,maxValue:e.maxValue})}static getDefaults(){return Object.assign(zr.getDefaults(),{convert:!0,offset:1,units:"number"})}start(e){const t=this.toSeconds(e);return this.log("start",t),this._startGain(t),this._source.start(t),this}_stopSource(e){this._source.stop(e)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Fe extends ue{constructor(){super(Z(Fe.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Z(Fe.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new La({context:this.context,convert:e.convert,offset:e.value,units:e.units,minValue:e.minValue,maxValue:e.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(ue.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,t=0,s=0){return ch(this,e,t,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(e,t){return this._param.setValueAtTime(e,t),this}getValueAtTime(e){return this._param.getValueAtTime(e)}setRampPoint(e){return this._param.setRampPoint(e),this}linearRampToValueAtTime(e,t){return this._param.linearRampToValueAtTime(e,t),this}exponentialRampToValueAtTime(e,t){return this._param.exponentialRampToValueAtTime(e,t),this}exponentialRampTo(e,t,s){return this._param.exponentialRampTo(e,t,s),this}linearRampTo(e,t,s){return this._param.linearRampTo(e,t,s),this}targetRampTo(e,t,s){return this._param.targetRampTo(e,t,s),this}exponentialApproachValueAtTime(e,t,s){return this._param.exponentialApproachValueAtTime(e,t,s),this}setTargetAtTime(e,t,s){return this._param.setTargetAtTime(e,t,s),this}setValueCurveAtTime(e,t,s,r){return this._param.setValueCurveAtTime(e,t,s,r),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,t,s){return this._param.rampTo(e,t,s),this}get value(){return this._param.value}set value(e){this._param.value=e}get convert(){return this._param.convert}set convert(e){this._param.convert=e}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(e){this._param.overridden=e}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(e){return this._param.apply(e),this}}function ch(n,e,t,s){(e instanceof Oe||Qs(e)||e instanceof Fe&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof Fe&&(e.overridden=!0)),ws(n,e,t,s)}class ja extends Oe{constructor(){super(Z(ja.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new kn(1/0),this._multiplier=1;const e=Z(ja.getDefaults(),arguments,["value"]);this._multiplier=e.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(e.value)}),this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Oe.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,t,s){t=this.toSeconds(t),this.setRampPoint(t);const r=this._fromType(e),i=this._events.get(t),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+t,l=this._exponentialApproach(i.time,i.value,r,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(e,t){const s=this.toSeconds(t);super.setValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(e,t){const s=this.toSeconds(t);super.linearRampToValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(e,t){t=this.toSeconds(t);const s=this._fromType(e),r=this._events.get(t),i=Math.round(Math.max((t-r.time)*10,1)),o=(t-r.time)/i;for(let a=0;a<=i;a++){const c=o*a+r.time,l=this._exponentialInterpolate(r.time,r.value,t,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(e,t){if(e===null)e={ticks:0,time:0,type:"setValueAtTime",value:0};else if(Ut(e.ticks)){const o=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(o,e.time)}const s=this._fromType(this.getValueAtTime(e.time));let r=this._fromType(this.getValueAtTime(t));const i=this._events.get(t);return i&&i.time===t&&i.type==="setValueAtTime"&&(r=this._fromType(this.getValueAtTime(t-this.sampleTime))),.5*(t-e.time)*(s+r)+e.ticks}getTicksAtTime(e){const t=this.toSeconds(e),s=this._events.get(t);return Math.max(this._getTicksUntilEvent(s,t),0)}getDurationOfTicks(e,t){const s=this.toSeconds(t),r=this.getTicksAtTime(t);return this.getTimeOfTick(r+e)-s}getTimeOfTick(e){const t=this._events.get(e,"ticks"),s=this._events.getAfter(e,"ticks");if(t&&t.ticks===e)return t.time;if(t&&s&&s.type==="linearRampToValueAtTime"&&t.value!==s.value){const r=this._fromType(this.getValueAtTime(t.time)),o=(this._fromType(this.getValueAtTime(s.time))-r)/(s.time-t.time),a=Math.sqrt(Math.pow(r,2)-2*o*(t.ticks-e)),c=(-r+a)/o,l=(-r-a)/o;return(c>0?c:l)+t.time}else return t?t.value===0?1/0:t.time+(e-t.ticks)/t.value:e/this._initialValue}ticksToTime(e,t){return this.getDurationOfTicks(e,t)}timeToTicks(e,t){const s=this.toSeconds(t),r=this.toSeconds(e),i=this.getTicksAtTime(s);return this.getTicksAtTime(s+r)-i}_fromType(e){return this.units==="bpm"&&this.multiplier?1/(60/e/this.multiplier):super._fromType(e)}_toType(e){return this.units==="bpm"&&this.multiplier?e/this.multiplier*60:super._toType(e)}get multiplier(){return this._multiplier}set multiplier(e){const t=this.value;this._multiplier=e,this.cancelScheduledValues(0),this.setValueAtTime(t,0)}}class Va extends Fe{constructor(){super(Z(Va.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Z(Va.getDefaults(),arguments,["value"]);this.input=this._param=new ja({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(Fe.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(e,t){return this._param.ticksToTime(e,t)}timeToTicks(e,t){return this._param.timeToTicks(e,t)}getTimeOfTick(e){return this._param.getTimeOfTick(e)}getDurationOfTicks(e,t){return this._param.getDurationOfTicks(e,t)}getTicksAtTime(e){return this._param.getTicksAtTime(e)}get multiplier(){return this._param.multiplier}set multiplier(e){this._param.multiplier=e}dispose(){return super.dispose(),this._param.dispose(),this}}class za extends Ot{constructor(){super(Z(za.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new ah,this._tickOffset=new kn,this._ticksAtTime=new kn,this._secondsAtTime=new kn;const e=Z(za.getDefaults(),arguments,["frequency"]);this.frequency=new Va({context:this.context,units:e.units,value:e.frequency}),je(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},Ot.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,t){const s=this.toSeconds(e);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),ve(t)&&this.setTicksAtTime(t,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(e){const t=this.toSeconds(e);if(this._state.getValueAtTime(t)==="stopped"){const s=this._state.get(t);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(t),this._state.setStateAtTime("stopped",t),this.setTicksAtTime(0,t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}pause(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)==="started"&&(this._state.setStateAtTime("paused",t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t)),this}cancel(e){return e=this.toSeconds(e),this._state.cancel(e),this._tickOffset.cancel(e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getTicksAtTime(e){const t=this.toSeconds(e),s=this._state.getLastState("stopped",t),r=this._ticksAtTime.get(t),i={state:"paused",time:t};this._state.add(i);let o=r||s,a=r?r.ticks:0,c=null;return this._state.forEachBetween(o.time,t+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=i.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(i),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(e){this.setTicksAtTime(e,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(e){const t=this.now(),s=this.frequency.timeToTicks(e,t);this.setTicksAtTime(s,t)}getSecondsAtTime(e){e=this.toSeconds(e);const t=this._state.getLastState("stopped",e),s={state:"paused",time:e};this._state.add(s);const r=this._secondsAtTime.get(e);let i=r||t,o=r?r.seconds:0,a=null;return this._state.forEachBetween(i.time,e+this.sampleTime,c=>{let l=i.time;const u=this._tickOffset.get(c.time);u&&u.time>=i.time&&(o=u.seconds,l=u.time),i.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),i=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(e,t){return t=this.toSeconds(t),this._tickOffset.cancel(t),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(e,t),ticks:e,time:t}),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getStateAtTime(e){return e=this.toSeconds(e),this._state.getValueAtTime(e)}getTimeOfTick(e,t=this.now()){const s=this._tickOffset.get(t),r=this._state.get(t),i=Math.max(s.time,r.time),o=this.frequency.getTicksAtTime(i)+e-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(e,t,s){let r=this._state.get(e);this._state.forEachBetween(e,t,o=>{r&&r.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(r.time,e),o.time-this.sampleTime,s),r=o});let i=null;if(r&&r.state==="started"){const o=Math.max(r.time,e),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(r.time),l=a-c;let u=Math.ceil(l)-l;u=rn(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const r=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,r);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(e,t,(s,r)=>{this.callback(s,r)}))}getStateAtTime(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}Mo.mixin(Gi);class lh extends ss{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Z(lh.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(t=>{this._loadingCount++;const s=e.urls[t];this.add(t,s,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:Ce,onload:Ce,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return me(this.has(e),`ToneAudioBuffers has no buffer named: ${e}`),this._buffers.get(e.toString())}_bufferLoaded(e){this._loadingCount--,this._loadingCount===0&&e&&e()}get loaded(){return Array.from(this._buffers).every(([e,t])=>t.loaded)}add(e,t,s=Ce,r=Ce){return Gn(t)?(this.baseUrl&&t.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(e.toString(),new Se(this.baseUrl+t,s,r))):this._buffers.set(e.toString(),new Se(t,s,r)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class Er extends Mi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(e){return this._getPPQ()*e}_secondsToUnits(e){return Math.floor(e/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(e){return e}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class nP extends Ot{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new kn,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(e,t){return this._events.add({callback:e,time:this.toSeconds(t)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(e){return this._events.cancel(this.toSeconds(e)),this}_drawLoop(){const e=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=e;){const t=this._events.shift();t&&e-t.time<=this.expiration&&t.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}vc(n=>{n.draw=new nP({context:n})});bc(n=>{n.draw.dispose()});class sP extends ss{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){me(ve(e.time),"Events must have a time property"),me(ve(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let t=new rP(e.time,e.time+e.duration,e);for(this._root===null?this._root=t:this._root.insert(t),this._length++;t!==null;)t.updateHeight(),t.updateMax(),this._rebalance(t),t=t.parent;return this}remove(e){if(this._root!==null){const t=[];this._root.search(e.time,t);for(const s of t)if(s.event===e){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(e){return this.forEachFrom(e,t=>this.remove(t)),this}_setRoot(e){this._root=e,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(e,t){e.parent!==null?(e.isLeftChild()?e.parent.left=t:e.parent.right=t,this._rebalance(e.parent)):this._setRoot(t)}_removeNode(e){if(e.left===null&&e.right===null)this._replaceNodeInParent(e,null);else if(e.right===null)this._replaceNodeInParent(e,e.left);else if(e.left===null)this._replaceNodeInParent(e,e.right);else{const t=e.getBalance();let s,r=null;if(t>0)if(e.left.right===null)s=e.left,s.right=e.right,r=s;else{for(s=e.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,r=s.parent,s.left=e.left,s.right=e.right)}else if(e.right.left===null)s=e.right,s.left=e.left,r=s;else{for(s=e.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,r=s.parent,s.left=e.left,s.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=s:e.parent.right=s:this._setRoot(s),r&&this._rebalance(r)}e.dispose()}_rotateLeft(e){const t=e.parent,s=e.isLeftChild(),r=e.right;r&&(e.right=r.left,r.left=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rotateRight(e){const t=e.parent,s=e.isLeftChild(),r=e.left;r&&(e.left=r.right,r.right=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rebalance(e){const t=e.getBalance();t>1&&e.left?e.left.getBalance()<0?this._rotateLeft(e.left):this._rotateRight(e):t<-1&&e.right&&(e.right.getBalance()>0?this._rotateRight(e.right):this._rotateLeft(e))}get(e){if(this._root!==null){const t=[];if(this._root.search(e,t),t.length>0){let s=t[0];for(let r=1;rs.low&&(s=t[r]);return s.event}}return null}forEach(e){if(this._root!==null){const t=[];this._root.traverse(s=>t.push(s)),t.forEach(s=>{s.event&&e(s.event)})}return this}forEachAtTime(e,t){if(this._root!==null){const s=[];this._root.search(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}forEachFrom(e,t){if(this._root!==null){const s=[];this._root.searchAfter(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(e=>e.dispose()),this._root=null,this}}class rP{constructor(e,t,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=e,this.high=t,this.max=this.high}insert(e){e.low<=this.low?this.left===null?this.left=e:this.left.insert(e):this.right===null?this.right=e:this.right.insert(e)}search(e,t){e>this.max||(this.left!==null&&this.left.search(e,t),this.low<=e&&this.high>e&&t.push(this),!(this.low>e)&&this.right!==null&&this.right.search(e,t))}searchAfter(e,t){this.low>=e&&(t.push(this),this.left!==null&&this.left.searchAfter(e,t)),this.right!==null&&this.right.searchAfter(e,t)}traverse(e){e(this),this.left!==null&&this.left.traverse(e),this.right!==null&&this.right.traverse(e)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let e=0;return this.left!==null&&this.right!==null?e=this.left.height-this.right.height:this.left!==null?e=this.left.height+1:this.right!==null&&(e=-(this.right.height+1)),e}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(e){this._left=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(e){this._right=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class ks extends ue{constructor(){super(Z(ks.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Z(ks.getDefaults(),arguments,["volume"]);this.input=this.output=new Ne({context:this.context,gain:e.volume,units:"decibels"}),this.volume=this.output.gain,je(this,"volume"),this._unmutedVolume=e.volume,this.mute=e.mute}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(e){!this.mute&&e?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!e&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let iP=class Xl extends ue{constructor(){super(Z(Xl.getDefaults(),arguments)),this.name="Destination",this.input=new ks({context:this.context}),this.output=new Ne({context:this.context}),this.volume=this.input.volume;const e=Z(Xl.getDefaults(),arguments);Hi(this.input,this.output,this.context.rawContext.destination),this.mute=e.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(e){this.input.mute=e}chain(...e){return this.input.disconnect(),e.unshift(this.input),e.push(this.output),Hi(...e),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};vc(n=>{n.destination=new iP({context:n})});bc(n=>{n.destination.dispose()});class oP extends ss{constructor(e){super(),this.name="TimelineValue",this._timeline=new kn({memory:10}),this._initialValue=e}set(e,t){return this._timeline.add({value:e,time:t}),this}get(e){const t=this._timeline.get(e);return t?t.value:this._initialValue}}class Yn extends ue{constructor(){super(Object.assign(Z(Yn.getDefaults(),arguments,["context"])))}connect(e,t=0,s=0){return ch(this,e,t,s),this}}class Js extends Yn{constructor(){super(Object.assign(Z(Js.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Z(Js.getDefaults(),arguments,["mapping","length"]);ln(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):AA(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(Fe.getDefaults(),{length:1024})}setMap(e,t=1024){const s=new Float32Array(t);for(let r=0,i=t;rs.includes(e));me(t,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Yi extends Yn{constructor(){super(Object.assign(Z(Yi.getDefaults(),arguments,["value"]))),this.name="Pow";const e=Z(Yi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new Js({context:this.context,mapping:this._expFunc(e.value),length:8192}),this._exponent=e.value}static getDefaults(){return Object.assign(Yn.getDefaults(),{value:1})}_expFunc(e){return t=>Math.pow(Math.abs(t),e)}get value(){return this._exponent}set value(e){this._exponent=e,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Ts{constructor(e,t){this.id=Ts._eventId++,this._remainderTime=0;const s=Object.assign(Ts.getDefaults(),t);this.transport=e,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:Ce,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(e){if(this.callback){const t=this.transport.bpm.getDurationOfTicks(1,e);this.callback(e+this._remainderTime*t),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Ts._eventId=0;class uh extends Ts{constructor(e,t){super(e,t),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(uh.getDefaults(),t);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Ts.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(e){this._createEvents(e),super.invoke(e)}_createEvent(){return Fa(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Er(this.context,this._nextTick).toSeconds()):-1}_createEvents(e){Fa(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new Er(this.context,this._nextTick).toSeconds()))}_restart(e){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const t=this.transport.getTicksAtTime(e);Vr(t,this.time)&&(this._nextTick=this.floatTime+Math.ceil((t-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Xi extends Ot{constructor(){super(Z(Xi.getDefaults(),arguments)),this.name="Transport",this._loop=new oP(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new kn,this._repeatedEvents=new sP,this._syncedSignals=[],this._swingAmount=0;const e=Z(Xi.getDefaults(),arguments);this._ppq=e.ppq,this._clock=new Gi({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=e.ppq,this.bpm.setValueAtTime(e.bpm,0),je(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(Ot.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(e,t){if(this._loop.get(e)&&t>=this._loopEnd&&(this.emit("loopEnd",e),this._clock.setTicksAtTime(this._loopStart,e),t=this._loopStart,this.emit("loopStart",e,this._clock.getSecondsAtTime(e)),this.emit("loop",e)),this._swingAmount>0&&t%this._ppq!==0&&t%(this._swingTicks*2)!==0){const s=t%(this._swingTicks*2)/(this._swingTicks*2),r=Math.sin(s*Math.PI)*this._swingAmount;e+=new Er(this.context,this._swingTicks*2/3).toSeconds()*r}Pf(!0),this._timeline.forEachAtTime(t,s=>s.invoke(e)),Pf(!1)}schedule(e,t){const s=new Ts(this,{callback:e,time:new Mi(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(e,t,s,r=1/0){const i=new uh(this,{callback:e,duration:new an(this.context,r).toTicks(),interval:new an(this.context,t).toTicks(),time:new Mi(this.context,s).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(e,t){const s=new Ts(this,{callback:e,once:!0,time:new Mi(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}clear(e){if(this._scheduledEvents.hasOwnProperty(e)){const t=this._scheduledEvents[e.toString()];t.timeline.remove(t.event),t.event.dispose(),delete this._scheduledEvents[e.toString()]}return this}_addEvent(e,t){return this._scheduledEvents[e.id.toString()]={event:e,timeline:t},t.add(e),e.id}cancel(e=0){const t=this.toTicks(e);return this._timeline.forEachFrom(t,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(t,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(e,t)=>{t=new Er(this.context,t).toSeconds(),this.emit("start",e,t)}),this._clock.on("stop",e=>{this.emit("stop",e)}),this._clock.on("pause",e=>{this.emit("pause",e)})}get state(){return this._clock.getStateAtTime(this.now())}start(e,t){this.context.resume();let s;return ve(t)&&(s=this.toTicks(t)),this._clock.start(e,s),this}stop(e){return this._clock.stop(e),this}pause(e){return this._clock.pause(e),this}toggle(e){return e=this.toSeconds(e),this._clock.getStateAtTime(e)!=="started"?this.start(e):this.stop(e),this}get timeSignature(){return this._timeSignature}set timeSignature(e){ln(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new an(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new an(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(e){this._loopEnd=this.toTicks(e)}get loop(){return this._loop.get(this.now())}set loop(e){this._loop.set(e,this.now())}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get swing(){return this._swingAmount}set swing(e){this._swingAmount=e}get swingSubdivision(){return new Er(this.context,this._swingTicks).toNotation()}set swingSubdivision(e){this._swingTicks=this.toTicks(e)}get position(){const e=this.now(),t=this._clock.getTicksAtTime(e);return new Er(this.context,t).toBarsBeatsSixteenths()}set position(e){const t=this.toTicks(e);this.ticks=t}get seconds(){return this._clock.seconds}set seconds(e){const t=this.now(),s=this._clock.frequency.timeToTicks(e,t);this.ticks=s}get progress(){if(this.loop){const e=this.now();return(this._clock.getTicksAtTime(e)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(e){if(this._clock.ticks!==e){const t=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(t),r=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,t),i=t+r;this.emit("stop",i),this._clock.setTicksAtTime(e,i),this.emit("start",i,this._clock.getSecondsAtTime(i))}else this.emit("ticks",t),this._clock.setTicksAtTime(e,t)}}getTicksAtTime(e){return this._clock.getTicksAtTime(e)}getSecondsAtTime(e){return this._clock.getSecondsAtTime(e)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(e){this._clock.frequency.multiplier=e}nextSubdivision(e){if(e=this.toTicks(e),this.state!=="started")return 0;{const t=this.now(),s=this.getTicksAtTime(t),r=e-s%e;return this._clock.nextTickTime(r,t)}}syncSignal(e,t){const s=this.now();let r=this.bpm,i=1/(60/r.getValueAtTime(s)/this.PPQ),o=[];if(e.units==="time"){const c=.015625/i,l=new Ne(c),u=new Yi(-1),h=new Ne(c);r.chain(l,u,h),r=h,i=1/i,o=[l,u,h]}t||(e.getValueAtTime(s)!==0?t=e.getValueAtTime(s)/i:t=0);const a=new Ne(t);return r.connect(a),a.connect(e._param),o.push(a),this._syncedSignals.push({initial:e.value,nodes:o,signal:e}),e.value=0,this}unsyncSignal(e){for(let t=this._syncedSignals.length-1;t>=0;t--){const s=this._syncedSignals[t];s.signal===e&&(s.nodes.forEach(r=>r.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(t,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),ih(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Mo.mixin(Xi);vc(n=>{n.transport=new Xi({context:n})});bc(n=>{n.transport.dispose()});class mt extends ue{constructor(e){super(e),this.input=void 0,this._state=new ah("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=Ce,this._syncedStop=Ce,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new ks({context:this.context,mute:e.mute,volume:e.volume}),this.volume=this._volume.volume,je(this,"volume"),this.onstop=e.onstop}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,onstop:Ce,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}_clampToCurrentTime(e){return this._synced?e:Math.max(e,this.context.currentTime)}start(e,t,s){let r=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(r=this._clampToCurrentTime(r),!this._synced&&this._state.getValueAtTime(r)==="started")me(Vr(r,this._state.get(r).time),"Start time must be strictly greater than previous start time"),this._state.cancel(r),this._state.setStateAtTime("started",r),this.log("restart",r),this.restart(r,t,s);else if(this.log("start",r),this._state.setStateAtTime("started",r),this._synced){const i=this._state.get(r);i&&(i.offset=this.toSeconds(Rr(t,0)),i.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,t,s)},r);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>r&&this._syncedStart(this.now(),this.context.transport.seconds)}else Um(this.context),this._start(r,t,s);return this}stop(e){let t=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(t=this._clampToCurrentTime(t),this._state.getValueAtTime(t)==="started"||ve(this._state.getNextState("started",t))){if(this.log("stop",t),!this._synced)this._stop(t);else{const s=this.context.transport.schedule(this._stop.bind(this),t);this._scheduled.push(s)}this._state.cancel(t),this._state.setStateAtTime("stopped",t)}return this}restart(e,t,s){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,t,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,t)=>{if(Vr(t,0)){const s=this._state.get(t);if(s&&s.state==="started"&&s.time!==t){const r=t-this.toSeconds(s.time);let i;s.duration&&(i=this.toSeconds(s.duration)-r),this._start(e,this.toSeconds(s.offset)+r,i)}}},this._syncedStop=e=>{const t=this.context.transport.getSecondsAtTime(Math.max(e-this.sampleTime,0));this._state.getValueAtTime(t)==="started"&&this._stop(e)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(e=>this.context.transport.clear(e)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=Ce,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Ur extends zr{constructor(){super(Z(Ur.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const e=Z(Ur.getDefaults(),arguments,["url","onload"]);ws(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Oe({context:this.context,param:this._source.playbackRate,units:"positive",value:e.playbackRate}),this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this._buffer=new Se(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(zr.getDefaults(),{url:new Se,loop:!1,loopEnd:0,loopStart:0,onload:Ce,onerror:Ce,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e}get curve(){return this._curve}set curve(e){this._curve=e}start(e,t,s,r=1){me(this.buffer.loaded,"buffer is either not set or not loaded");const i=this.toSeconds(e);this._startGain(i,r),this.loop?t=Rr(t,this.loopStart):t=Rr(t,0);let o=Math.max(this.toSeconds(t),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;Gl(o,a)&&(o=(o-c)%l+c),rn(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Fa(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(i,o)),ve(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(i+a)}return this}_stopSource(e){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(e)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(e){this._source.loopStart=this.toSeconds(e)}get loopEnd(){return this._source.loopEnd}set loopEnd(e){this._source.loopEnd=this.toSeconds(e)}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._source.loop}set loop(e){this._source.loop=e,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Zi extends mt{constructor(){super(Z(Zi.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const e=Z(Zi.getDefaults(),arguments,["type"]);this._playbackRate=e.playbackRate,this.type=e.type,this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut}static getDefaults(){return Object.assign(mt.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(e){if(me(e in Rf,"Noise: invalid type: "+e),this._type!==e&&(this._type=e,this.state==="started")){const t=this.now();this._stop(t),this._start(t)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this._source&&(this._source.playbackRate.value=e)}_start(e){const t=Rf[this._type];this._source=new Ur({url:t,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(e),Math.random()*(t.duration-.001))}_stop(e){this._source&&(this._source.stop(this.toSeconds(e)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(e){this._stop(e),this._start(e)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const _r=44100*5,sl=2,$n={brown:null,pink:null,white:null},Rf={get brown(){if(!$n.brown){const n=[];for(let e=0;ethis.onstop(this)});this._oscillator=s,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(t)}_stop(e){const t=this.toSeconds(e);this._oscillator&&this._oscillator.stop(t)}_restart(e){const t=this.toSeconds(e);return this.log("restart",t),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(t),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return nt._periodicWaveCache.find(t=>t.phase===this._phase&&VA(t.partials,this._partials));{const e=nt._periodicWaveCache.find(t=>t.type===this._type&&t.phase===this._phase);return this._partialCount=e?e.partialCount:this._partialCount,e}}get type(){return this._type}set type(e){this._type=e;const t=["sine","square","sawtooth","triangle"].indexOf(e)!==-1;if(this._phase===0&&t)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=e);else{const s=this._getCachedPeriodicWave();if(ve(s)){const{partials:r,wave:i}=s;this._wave=i,this._partials=r,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[r,i]=this._getRealImaginary(e,this._phase),o=this.context.createPeriodicWave(r,i);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),nt._periodicWaveCache.push({imag:i,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:r,type:this._type,wave:this._wave}),nt._periodicWaveCache.length>100&&nt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(e){this.partialCount&&this._type!=="custom"&&e!=="custom"?this.type=e+this.partialCount:this.type=e}get partialCount(){return this._partialCount}set partialCount(e){dn(e,0);let t=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(t=s[1]),this._type!=="custom")e===0?this.type=t:this.type=t+e.toString();else{const r=new Float32Array(e);this._partials.forEach((i,o)=>r[o]=i),this._partials=Array.from(r),this.type=this._type}}_getRealImaginary(e,t){let r=2048;const i=new Float32Array(r),o=new Float32Array(r);let a=1;if(e==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,r=a,this._partials.length===0)return[i,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(e);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),e=c[1],a=Math.max(a,2),r=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+e)}u!==0?(i[c]=-u*Math.sin(t*c),o[c]=u*Math.cos(t*c)):(i[c]=0,o[c]=0)}return[i,o]}_inverseFFT(e,t,s){let r=0;const i=e.length;for(let o=0;o(e+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Es extends Fe{constructor(){super(Object.assign(Z(Es.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Z(Es.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new Ne({context:this.context,minValue:e.minValue,maxValue:e.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Fe.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ki extends mt{constructor(){super(Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new aP({context:this.context}),this._modulationNode=new Ne({context:this.context});const e=Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new nt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new nt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Es({context:this.context,units:"positive",value:e.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),je(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(nt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){this._modulator.restart(e),this._carrier.restart(e)}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return ar(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Qi extends mt{constructor(){super(Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new Ne({context:this.context,gain:0});const e=Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new nt({context:this.context,detune:e.detune,frequency:0,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.detune=this._carrier.detune,this.frequency=new Fe({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new nt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Es({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Es({context:this.context,units:"positive",value:e.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),je(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(nt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){return this._modulator.restart(e),this._carrier.restart(e),this}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return ar(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Br extends mt{constructor(){super(Z(Br.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new Ne({context:this.context,gain:0}),this._thresh=new Js({context:this.context,mapping:t=>t<=0?-1:1});const e=Z(Br.getDefaults(),arguments,["frequency","width"]);this.width=new Fe({context:this.context,units:"audioRange",value:e.width}),this._triangle=new nt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),je(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(mt.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(e){e=this.toSeconds(e),this._triangle.start(e),this._widthGate.gain.setValueAtTime(1,e)}_stop(e){e=this.toSeconds(e),this._triangle.stop(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(0,e)}_restart(e){this._triangle.restart(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(1,e)}get phase(){return this._triangle.phase}set phase(e){this._triangle.phase=e}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(e){this._triangle.type=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return ar(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Ji extends mt{constructor(){super(Z(Ji.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const e=Z(Ji.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Fe({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Fe({context:this.context,units:"cents",value:e.detune}),this._spread=e.spread,this._type=e.type,this._phase=e.phase,this._partials=e.partials,this._partialCount=e.partialCount,this.count=e.count,je(this,["frequency","detune"])}static getDefaults(){return Object.assign(nt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(e){e=this.toSeconds(e),this._forEach(t=>t.start(e))}_stop(e){e=this.toSeconds(e),this._forEach(t=>t.stop(e))}_restart(e){this._forEach(t=>t.restart(e))}_forEach(e){for(let t=0;tt.type=e)}get spread(){return this._spread}set spread(e){if(this._spread=e,this._oscillators.length>1){const t=-e/2,s=e/(this._oscillators.length-1);this._forEach((r,i)=>r.detune.value=t+s*i)}}get count(){return this._oscillators.length}set count(e){if(dn(e,1),this._oscillators.length!==e){this._forEach(t=>t.dispose()),this._oscillators=[];for(let t=0;tthis.onstop(this):Ce});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[t]=s}this.spread=this._spread,this.state==="started"&&this._forEach(t=>t.start())}}get phase(){return this._phase}set phase(e){this._phase=e,this._forEach((t,s)=>t.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(e){this._forEach(t=>t.baseType=e),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this._type="custom",this._forEach(t=>t.partials=e))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(e){this._partialCount=e,this._forEach(t=>t.partialCount=e),this._type=this._oscillators[0].type}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return ar(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class eo extends mt{constructor(){super(Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Es({context:this.context,value:2});const e=Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Br({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new nt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),je(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(mt.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(e){e=this.toSeconds(e),this._modulator.start(e),this._pulse.start(e)}_stop(e){e=this.toSeconds(e),this._modulator.stop(e),this._pulse.stop(e)}_restart(e){this._modulator.restart(e),this._pulse.restart(e)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(e){this._modulator.phase=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return ar(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Df={am:Ki,fat:Ji,fm:Qi,oscillator:nt,pulse:Br,pwm:eo};class er extends mt{constructor(){super(Z(er.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Z(er.getDefaults(),arguments,["frequency","type"]);this.frequency=new Fe({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Fe({context:this.context,units:"cents",value:e.detune}),je(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(nt.getDefaults(),Qi.getDefaults(),Ki.getDefaults(),Ji.getDefaults(),Br.getDefaults(),eo.getDefaults())}_start(e){this._oscillator.start(e)}_stop(e){this._oscillator.stop(e)}_restart(e){return this._oscillator.restart(e),this}get type(){let e="";return["am","fm","fat"].some(t=>this._sourceType===t)&&(e=this._sourceType),e+this._oscillator.type}set type(e){e.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(3)):e==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):e==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=e)}get partials(){return this._oscillator.partials}set partials(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=e)}get partialCount(){return this._oscillator.partialCount}set partialCount(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=e)}set(e){return Reflect.has(e,"type")&&e.type&&(this.type=e.type),super.set(e),this}_createNewOscillator(e){if(e!==this._sourceType){this._sourceType=e;const t=Df[e],s=this.now();if(this._oscillator){const r=this._oscillator;r.stop(s),this.context.setTimeout(()=>r.dispose(),this.blockTime)}this._oscillator=new t({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(s)}}get phase(){return this._oscillator.phase}set phase(e){this._oscillator.phase=e}get sourceType(){return this._sourceType}set sourceType(e){let t="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(t=this._oscillator.type),e==="fm"?this.type="fm"+t:e==="am"?this.type="am"+t:e==="fat"?this.type="fat"+t:e==="oscillator"?this.type=t:e==="pulse"?this.type="pulse":e==="pwm"&&(this.type="pwm")}_getOscType(e,t){return e instanceof Df[t]}get baseType(){return this._oscillator.baseType}set baseType(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&e!=="pulse"&&e!=="pwm"&&(this._oscillator.baseType=e)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(e){this._getOscType(this._oscillator,"fat")&&xs(e)&&(this._oscillator.count=e)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(e){this._getOscType(this._oscillator,"fat")&&xs(e)&&(this._oscillator.spread=e)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(e){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&Gn(e)&&(this._oscillator.modulationType=e)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return ar(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class hh extends Fe{constructor(){super(Object.assign(Z(hh.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new Ne({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Hi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Fe.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Ba extends Yn{constructor(){super(Object.assign(Z(Ba.getDefaults(),arguments,["min","max"]))),this.name="Scale";const e=Z(Ba.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Es({context:this.context,value:e.max-e.min}),this._add=this.output=new hh({context:this.context,value:e.min}),this._min=e.min,this._max=e.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(Yn.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(e){this._min=e,this._setRange()}get max(){return this._max}set max(e){this._max=e,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function Jm(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){dn(i,n,e),t.set(this,i)}})}}function rs(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){dn(this.toSeconds(i),n,e),t.set(this,i)}})}}class to extends mt{constructor(){super(Z(to.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const e=Z(to.getDefaults(),arguments,["url","onload"]);this._buffer=new Se({onload:this._onload.bind(this,e.onload),onerror:e.onerror,reverse:e.reverse,url:e.url}),this.autostart=e.autostart,this._loop=e.loop,this._loopStart=e.loopStart,this._loopEnd=e.loopEnd,this._playbackRate=e.playbackRate,this.fadeIn=e.fadeIn,this.fadeOut=e.fadeOut}static getDefaults(){return Object.assign(mt.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:Ce,onerror:Ce,playbackRate:1,reverse:!1})}load(e){return Ie(this,void 0,void 0,function*(){return yield this._buffer.load(e),this._onload(),this})}_onload(e=Ce){e(),this.autostart&&this.start()}_onSourceEnd(e){this.onstop(this),this._activeSources.delete(e),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(e,t,s){return super.start(e,t,s),this}_start(e,t,s){this._loop?t=Rr(t,this._loopStart):t=Rr(t,0);const r=this.toSeconds(t),i=s;s=Rr(s,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(s);o=o/this._playbackRate,e=this.toSeconds(e);const a=new Ur({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(e+o),this._state.setStateAtTime("stopped",e+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&Ut(i)?a.start(e,r):a.start(e,r,o-this.toSeconds(this.fadeOut))}_stop(e){const t=this.toSeconds(e);this._activeSources.forEach(s=>s.stop(t))}restart(e,t,s){return super.restart(e,t,s),this}_restart(e,t,s){var r;(r=[...this._activeSources].pop())===null||r===void 0||r.stop(e),this._start(e,t,s)}seek(e,t){const s=this.toSeconds(t);if(this._state.getValueAtTime(s)==="started"){const r=this.toSeconds(e);this._stop(s),this._start(s,r)}return this}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get loopStart(){return this._loopStart}set loopStart(e){this._loopStart=e,this.buffer.loaded&&dn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopStart=e})}get loopEnd(){return this._loopEnd}set loopEnd(e){this._loopEnd=e,this.buffer.loaded&&dn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopEnd=e})}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._loop}set loop(e){if(this._loop!==e&&(this._loop=e,this._activeSources.forEach(t=>{t.loop=e}),e)){const t=this._state.getNextState("stopped",this.now());t&&this._state.cancel(t.time)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e;const t=this.now(),s=this._state.getNextState("stopped",t);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(r=>r.cancelStop())),this._activeSources.forEach(r=>{r.playbackRate.setValueAtTime(e,t)})}get reverse(){return this._buffer.reverse}set reverse(e){this._buffer.reverse=e}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(e=>e.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}pn([rs(0)],to.prototype,"fadeIn",void 0);pn([rs(0)],to.prototype,"fadeOut",void 0);class cP extends Yn{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new Js({context:this.context,mapping:e=>Math.abs(e)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Jt extends ue{constructor(){super(Z(Jt.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Fe({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Z(Jt.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=e.attack,this.decay=e.decay,this.sustain=e.sustain,this.release=e.release,this.attackCurve=e.attackCurve,this.releaseCurve=e.releaseCurve,this.decayCurve=e.decayCurve}static getDefaults(){return Object.assign(ue.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(e,t){if(Gn(e))return e;{let s;for(s in ta)if(ta[s][t]===e)return s;return e}}_setCurve(e,t,s){if(Gn(s)&&Reflect.has(ta,s)){const r=ta[s];Bs(r)?e!=="_decayCurve"&&(this[e]=r[t]):this[e]=r}else if(ln(s)&&e!=="_decayCurve")this[e]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(e){this._setCurve("_attackCurve","In",e)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(e){this._setCurve("_releaseCurve","Out",e)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(e){this._setCurve("_decayCurve","Out",e)}triggerAttack(e,t=1){this.log("triggerAttack",e,t),e=this.toSeconds(e);let r=this.toSeconds(this.attack);const i=this.toSeconds(this.decay),o=this.getValueAtTime(e);if(o>0){const a=1/r;r=(1-o)/a}if(r0){const s=this.toSeconds(this.release);s{let e,t;const s=[];for(e=0;e<128;e++)s[e]=Math.sin(e/(128-1)*(Math.PI/2));const r=[],i=6.4;for(e=0;e<128-1;e++){t=e/(128-1);const d=Math.sin(t*(Math.PI*2)*i-Math.PI/2)+1;r[e]=d/10+t*.83}r[128-1]=1;const o=[],a=5;for(e=0;e<128;e++)o[e]=Math.ceil(e/(128-1)*a)/a;const c=[];for(e=0;e<128;e++)t=e/(128-1),c[e]=.5*(1-Math.cos(Math.PI*t));const l=[];for(e=0;e<128;e++){t=e/(128-1);const d=Math.pow(t,3)*4+.2,f=Math.cos(d*Math.PI*2*t);l[e]=Math.abs(f*(1-t))}function u(d){const f=new Array(d.length);for(let m=0;mthis._original_triggerRelease(t);const e=Z(tr.getDefaults(),arguments);this._volume=this.output=new ks({context:this.context,volume:e.volume}),this.volume=this._volume.volume,je(this,"volume")}static getDefaults(){return Object.assign(ue.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let e=!1;return this._synced||(this._synced=!0,e=!0),e}_syncMethod(e,t){const s=this["_original_"+e]=this[e];this[e]=(...r)=>{const i=r[t],o=this.context.transport.schedule(a=>{r[t]=a,s.apply(this,r)},i);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(e=>this.context.transport.clear(e)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(e,t,s,r){const i=this.toSeconds(s),o=this.toSeconds(t);return this.triggerAttack(e,i,r),this.triggerRelease(i+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class Xn extends tr{constructor(){super(Z(Xn.getDefaults(),arguments));const e=Z(Xn.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(tr.getDefaults(),{detune:0,onsilence:Ce,portamento:0})}triggerAttack(e,t,s=1){this.log("triggerAttack",e,t,s);const r=this.toSeconds(t);return this._triggerEnvelopeAttack(r,s),this.setNote(e,r),this}triggerRelease(e){this.log("triggerRelease",e);const t=this.toSeconds(e);return this._triggerEnvelopeRelease(t),this}setNote(e,t){const s=this.toSeconds(t),r=e instanceof Xt?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const i=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,i,s)}else this.frequency.setValueAtTime(r,s);return this}}pn([rs(0)],Xn.prototype,"portamento",void 0);class kc extends Jt{constructor(){super(Z(kc.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new Ne({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class no extends Xn{constructor(){super(Z(no.getDefaults(),arguments)),this.name="Synth";const e=Z(no.getDefaults(),arguments);this.oscillator=new er(Object.assign({context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)},e.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new kc(Object.assign({context:this.context},e.envelope)),this.oscillator.chain(this.envelope,this.output),je(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(Xn.getDefaults(),{envelope:Object.assign(Tr(Jt.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(Tr(er.getDefaults(),[...Object.keys(mt.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,t){if(this.envelope.triggerAttack(e,t),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class so extends ue{constructor(){super(Z(so.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const e=Z(so.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new Oe({context:this.context,units:"number",value:e.Q,param:this._filter.Q}),this.frequency=new Oe({context:this.context,units:"frequency",value:e.frequency,param:this._filter.frequency}),this.detune=new Oe({context:this.context,units:"cents",value:e.detune,param:this._filter.detune}),this.gain=new Oe({context:this.context,units:"decibels",convert:!1,value:e.gain,param:this._filter.gain}),this.type=e.type}static getDefaults(){return Object.assign(ue.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(e){me(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(e)!==-1,`Invalid filter type: ${e}`),this._filter.type=e}getFrequencyResponse(e=128){const t=new Float32Array(e);for(let o=0;os.type=e)}get rolloff(){return this._rolloff}set rolloff(e){const t=xs(e)?e:parseInt(e,10),s=[-12,-24,-48,-96];let r=s.indexOf(t);me(r!==-1,`rolloff can only be ${s.join(", ")}`),r+=1,this._rolloff=t,this.input.disconnect(),this._filters.forEach(i=>i.disconnect()),this._filters=new Array(r);for(let i=0;i1);return this._filters.forEach(()=>{t.getFrequencyResponse(e).forEach((i,o)=>s[o]*=i)}),t.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(e=>{e.dispose()}),ih(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class ro extends Jt{constructor(){super(Z(ro.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const e=Z(ro.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=e.octaves,this._baseFrequency=this.toFrequency(e.baseFrequency),this._exponent=this.input=new Yi({context:this.context,value:e.exponent}),this._scale=this.output=new Ba({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(Jt.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(e){const t=this.toFrequency(e);dn(t,0),this._baseFrequency=t,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(e){this._octaves=e,this._scale.max=this._baseFrequency*Math.pow(2,e)}get exponent(){return this._exponent.value}set exponent(e){this._exponent.value=e}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class io extends Xn{constructor(){super(Z(io.getDefaults(),arguments)),this.name="MonoSynth";const e=Z(io.getDefaults(),arguments);this.oscillator=new er(Object.assign(e.oscillator,{context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new Wr(Object.assign(e.filter,{context:this.context})),this.filterEnvelope=new ro(Object.assign(e.filterEnvelope,{context:this.context})),this.envelope=new kc(Object.assign(e.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),je(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(Xn.getDefaults(),{envelope:Object.assign(Tr(Jt.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(Tr(Wr.getDefaults(),Object.keys(ue.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(Tr(ro.getDefaults(),Object.keys(ue.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(Tr(er.getDefaults(),Object.keys(mt.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(e,t=1){if(this.envelope.triggerAttack(e,t),this.filterEnvelope.triggerAttack(e),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.filterEnvelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class oo extends no{constructor(){super(Z(oo.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const e=Z(oo.getDefaults(),arguments);this.pitchDecay=e.pitchDecay,this.octaves=e.octaves,je(this,["oscillator","envelope"])}static getDefaults(){return Pr(Xn.getDefaults(),no.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(e,t){const s=this.toSeconds(t),r=this.toFrequency(e instanceof Xt?e.toFrequency():e),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,s),this.oscillator.frequency.exponentialRampToValueAtTime(r,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}pn([Jm(0)],oo.prototype,"octaves",void 0);pn([rs(0)],oo.prototype,"pitchDecay",void 0);const eg=new Set;function dh(n){eg.add(n)}function tg(n,e){const t=`registerProcessor("${n}", ${e})`;eg.add(t)}const lP=` + /** + * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. + */ + class ToneAudioWorkletProcessor extends AudioWorkletProcessor { + + constructor(options) { + + super(options); + /** + * If the processor was disposed or not. Keep alive until it's disposed. + */ + this.disposed = false; + /** + * The number of samples in the processing block + */ + this.blockSize = 128; + /** + * the sample rate + */ + this.sampleRate = sampleRate; + + this.port.onmessage = (event) => { + // when it receives a dispose + if (event.data === "dispose") { + this.disposed = true; + } + }; + } + } +`;dh(lP);const uP=` + /** + * Abstract class for a single input/output processor. + * has a 'generate' function which processes one sample at a time + */ + class SingleIOProcessor extends ToneAudioWorkletProcessor { + + constructor(options) { + super(Object.assign(options, { + numberOfInputs: 1, + numberOfOutputs: 1 + })); + /** + * Holds the name of the parameter and a single value of that + * parameter at the current sample + * @type { [name: string]: number } + */ + this.params = {} + } + + /** + * Generate an output sample from the input sample and parameters + * @abstract + * @param input number + * @param channel number + * @param parameters { [name: string]: number } + * @returns number + */ + generate(){} + + /** + * Update the private params object with the + * values of the parameters at the given index + * @param parameters { [name: string]: Float32Array }, + * @param index number + */ + updateParams(parameters, index) { + for (const paramName in parameters) { + const param = parameters[paramName]; + if (param.length > 1) { + this.params[paramName] = parameters[paramName][index]; + } else { + this.params[paramName] = parameters[paramName][0]; + } + } + } + + /** + * Process a single frame of the audio + * @param inputs Float32Array[][] + * @param outputs Float32Array[][] + */ + process(inputs, outputs, parameters) { + const input = inputs[0]; + const output = outputs[0]; + // get the parameter values + const channelCount = Math.max(input && input.length || 0, output.length); + for (let sample = 0; sample < this.blockSize; sample++) { + this.updateParams(parameters, sample); + for (let channel = 0; channel < channelCount; channel++) { + const inputSample = input && input.length ? input[channel][sample] : 0; + output[channel][sample] = this.generate(inputSample, channel, this.params); + } + } + return !this.disposed; + } + }; +`;dh(uP);const hP=` + /** + * A multichannel buffer for use within an AudioWorkletProcessor as a delay line + */ + class DelayLine { + + constructor(size, channels) { + this.buffer = []; + this.writeHead = [] + this.size = size; + + // create the empty channels + for (let i = 0; i < channels; i++) { + this.buffer[i] = new Float32Array(this.size); + this.writeHead[i] = 0; + } + } + + /** + * Push a value onto the end + * @param channel number + * @param value number + */ + push(channel, value) { + this.writeHead[channel] += 1; + if (this.writeHead[channel] > this.size) { + this.writeHead[channel] = 0; + } + this.buffer[channel][this.writeHead[channel]] = value; + } + + /** + * Get the recorded value of the channel given the delay + * @param channel number + * @param delay number delay samples + */ + get(channel, delay) { + let readHead = this.writeHead[channel] - Math.floor(delay); + if (readHead < 0) { + readHead += this.size; + } + return this.buffer[channel][readHead]; + } + } +`;dh(hP);const dP="feedback-comb-filter",fP=` + class FeedbackCombFilterWorklet extends SingleIOProcessor { + + constructor(options) { + super(options); + this.delayLine = new DelayLine(this.sampleRate, options.channelCount || 2); + } + + static get parameterDescriptors() { + return [{ + name: "delayTime", + defaultValue: 0.1, + minValue: 0, + maxValue: 1, + automationRate: "k-rate" + }, { + name: "feedback", + defaultValue: 0.5, + minValue: 0, + maxValue: 0.9999, + automationRate: "k-rate" + }]; + } + + generate(input, channel, parameters) { + const delayedSample = this.delayLine.get(channel, parameters.delayTime * this.sampleRate); + this.delayLine.push(channel, input + delayedSample * parameters.feedback); + return delayedSample; + } + } +`;tg(dP,fP);class ao extends tr{constructor(){super(Z(ao.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const e=Z(ao.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),t={};Object.keys(e.urls).forEach(s=>{const r=parseInt(s,10);if(me(ea(s)||xs(r)&&isFinite(r),`url key is neither a note or midi pitch: ${s}`),ea(s)){const i=new Xt(this.context,s).toMidi();t[i]=e.urls[s]}else xs(r)&&isFinite(r)&&(t[r]=e.urls[r])}),this._buffers=new lh({urls:t,onload:e.onload,baseUrl:e.baseUrl,onerror:e.onerror}),this.attack=e.attack,this.release=e.release,this.curve=e.curve,this._buffers.loaded&&Promise.resolve().then(e.onload)}static getDefaults(){return Object.assign(tr.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:Ce,onerror:Ce,release:.1,urls:{}})}_findClosest(e){let s=0;for(;s<96;){if(this._buffers.has(e+s))return-s;if(this._buffers.has(e-s))return s;s++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,t,s=1){return this.log("triggerAttack",e,t,s),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=Qm(new Xt(this.context,r).toFrequency()),o=Math.round(i),a=i-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=Km(c+a),d=new Ur({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(t,0,u.duration/h,s),ln(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const f=this._activeSources.get(o),m=f.indexOf(d);m!==-1&&f.splice(m,1)}}}),this}triggerRelease(e,t){return this.log("triggerRelease",e,t),Array.isArray(e)||(e=[e]),e.forEach(s=>{const r=new Xt(this.context,s).toMidi();if(this._activeSources.has(r)&&this._activeSources.get(r).length){const i=this._activeSources.get(r);t=this.toSeconds(t),i.forEach(o=>{o.stop(t)}),this._activeSources.set(r,[])}}),this}releaseAll(e){const t=this.toSeconds(e);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(t)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,t,s,r=1){const i=this.toSeconds(s);return this.triggerAttack(e,i,r),ln(t)?(me(ln(e),"notes must be an array when duration is array"),e.forEach((o,a)=>{const c=t[Math.min(a,t.length-1)];this.triggerRelease(o,i+this.toSeconds(c))})):this.triggerRelease(e,i+this.toSeconds(t)),this}add(e,t,s){if(me(ea(e)||isFinite(e),`note must be a pitch or midi: ${e}`),ea(e)){const r=new Xt(this.context,e).toMidi();this._buffers.add(r,t,s)}else this._buffers.add(e,t,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(e=>{e.forEach(t=>t.dispose())}),this._activeSources.clear(),this}}pn([rs(0)],ao.prototype,"attack",void 0);pn([rs(0)],ao.prototype,"release",void 0);class Wa extends ue{constructor(){super(Object.assign(Z(Wa.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new cP({context:this.context}),this.a=new Ne({context:this.context,gain:0}),this.b=new Ne({context:this.context,gain:0}),this.output=new Ne({context:this.context}),this._internalChannels=[this.a,this.b];const e=Z(Wa.getDefaults(),arguments,["fade"]);this.fade=new Fe({context:this.context,units:"normalRange",value:e.fade}),je(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",ws(this._split,this.a.gain,0),ws(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(ue.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class Mf extends ue{constructor(e){super(e),this.name="Effect",this._dryWet=new Wa({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new Ne({context:this.context}),this.effectReturn=new Ne({context:this.context}),this.input=new Ne({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(e.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],je(this,"wet")}static getDefaults(){return Object.assign(ue.getDefaults(),{wet:1})}connectEffect(e){return this._internalChannels.push(e),this.effectSend.chain(e,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class qa extends ue{constructor(){super(Object.assign(Z(qa.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const e=Z(qa.getDefaults(),arguments,["pan"]);this.pan=new Oe({context:this.context,param:this._panner.pan,value:e.pan,minValue:-1,maxValue:1}),this._panner.channelCount=e.channelCount,this._panner.channelCountMode="explicit",je(this,"pan")}static getDefaults(){return Object.assign(ue.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const pP="bit-crusher",mP=` + class BitCrusherWorklet extends SingleIOProcessor { + + static get parameterDescriptors() { + return [{ + name: "bits", + defaultValue: 12, + minValue: 1, + maxValue: 16, + automationRate: 'k-rate' + }]; + } + + generate(input, _channel, parameters) { + const step = Math.pow(0.5, parameters.bits - 1); + const val = step * Math.floor(input / step + 0.5); + return val; + } + } +`;tg(pP,mP);class Ha extends ue{constructor(){super(Z(Ha.getDefaults(),arguments,["channels"])),this.name="Merge";const e=Z(Ha.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(e.channels)}static getDefaults(){return Object.assign(ue.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class Ga extends Mf{constructor(){super(Z(Ga.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const e=Z(Ga.getDefaults(),arguments,["decay"]);this._decay=e.decay,this._preDelay=e.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Mf.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(e){e=this.toSeconds(e),dn(e,.001),this._decay=e,this.generate()}get preDelay(){return this._preDelay}set preDelay(e){e=this.toSeconds(e),dn(e,0),this._preDelay=e,this.generate()}generate(){return Ie(this,void 0,void 0,function*(){const e=this.ready,t=new xc(2,this._decay+this._preDelay,this.context.sampleRate),s=new Zi({context:t}),r=new Zi({context:t}),i=new Ha({context:t});s.connect(i,0,0),r.connect(i,0,1);const o=new Ne({context:t}).toDestination();i.connect(o),s.start(0),r.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=t.render();return this.ready=a.then(Ce),yield e,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class et extends ue{constructor(){super(Z(et.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Z(et.getDefaults(),arguments,["solo"]);this.input=this.output=new Ne({context:this.context}),et._allSolos.has(this.context)||et._allSolos.set(this.context,new Set),et._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(ue.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),et._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){et._soloed.has(this.context)||et._soloed.set(this.context,new Set),et._soloed.get(this.context).add(this)}_removeSolo(){et._soloed.has(this.context)&&et._soloed.get(this.context).delete(this)}_isSoloed(){return et._soloed.has(this.context)&&et._soloed.get(this.context).has(this)}_noSolos(){return!et._soloed.has(this.context)||et._soloed.has(this.context)&&et._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),et._allSolos.get(this.context).delete(this),this._removeSolo(),this}}et._allSolos=new Map;et._soloed=new Map;class Ya extends ue{constructor(){super(Z(Ya.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Z(Ya.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new qa({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new ks({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,je(this,["pan","volume"])}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class Ls extends ue{constructor(){super(Z(Ls.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Z(Ls.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new et({solo:e.solo,context:this.context}),this._panVol=this.output=new Ya({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),je(this,["pan","volume"])}static getDefaults(){return Object.assign(ue.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return Ls.buses.has(e)||Ls.buses.set(e,new Ne({context:this.context})),Ls.buses.get(e)}send(e,t=0){const s=this._getBus(e),r=new Ne({context:this.context,units:"decibels",gain:t});return this.connect(r),r.connect(s),r}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}Ls.buses=new Map;class gP extends ue{constructor(){super(...arguments),this.name="Listener",this.positionX=new Oe({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Oe({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Oe({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Oe({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Oe({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Oe({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Oe({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Oe({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Oe({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(ue.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}vc(n=>{n.listener=new gP({context:n})});bc(n=>{n.listener.dispose()});on().transport;const fh=on().destination;on().destination;on().listener;on().draw;on();const ph=new Wr(900,"highpass"),ng=new ks(-6);ng.chain(ph,fh);const _P=new Ga(3).connect(ng),Tc=new io({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Tc.oscillator.type="triangle2";Tc.volume.value=-6;Tc.chain(ph,fh);const Ec=new io({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(_P);Ec.oscillator.type="triangle";Ec.volume.value=-6;Ec.chain(ph,fh);function yP(){return Math.floor((Math.random()-.5)*20)}let If=!1;const vP=async(n=0)=>{If||(await GA(),If=!0);try{if(n>2e3)Ec.triggerAttackRelease(60,.3);else if(n>1e3){let e=310;e+=yP(),Tc.triggerAttackRelease(e,.001)}}catch(e){console.warn(e)}},na=1800,bP=(n,e)=>n.clone().normalize().clone().negate().normalize().multiplyScalar(e).add(n),xP=(n,e,t,s,r)=>{const i=new lp,o=1e-5;i.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),i.absarc(o,e-s*2,o,Math.PI,Math.PI/2,!0),i.absarc(n-s*2,e-s*2,o,Math.PI/2,0,!0),i.absarc(n-s*2,o,o,0,-Math.PI/2,!0);const a=new gy(i,{depth:t-s*2,bevelEnabled:!0,bevelSegments:r,steps:2,bevelSize:s,bevelThickness:s,curveSegments:r});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(m=f.x/n+.5,p=1-(f.z/t+.5)):Math.abs(d.x)>.9?(m=-f.z/t+.5,p=1-(-f.y/e+.5)):Math.abs(d.z)>.9&&(m=f.x/n+.5,p=1-(-f.y/e+.5)),c.push(m,p)}return a.setAttribute("uv",new aa(c,2)),a};xP(10,10,10,2,10);new my(10,10,10);const wP=500,kP=800;let wi=null;const TP=500,sg=(n,e)=>{if(wi)return null;wi=setTimeout(()=>{wi&&(clearTimeout(wi),wi=null)},TP);const t=[];return n.forEach(r=>{const i=e.position.distanceTo(_E.set(r.x,r.y,r.z));ir.distance-i.distance).slice(0,wP).map(r=>r.id)};let yr,ki;const EP=1e3,CP=2e3,SP=n=>{const e=Jn(),t=fs(w=>w.isUserDragging),s=fs(w=>w.isUserScrolling),r=fs(w=>w.setUserMovedCamera),{data:i,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=kt(w=>w),{camera:h}=We(),[d,f]=y.useState(!1),[m,p]=y.useState(!1),[g,_]=y.useState(hf),x=y.useMemo(()=>{if(a)return new ce(0,0,0);const w=i==null?void 0:i.nodes.find(R=>R.ref_id===(e==null?void 0:e.ref_id)),C=u+300;let S=new ce(0,0,C);if(w&&i){const R=i==null?void 0:i.nodes.filter(B=>{var z;return(z=w.children)==null?void 0:z.find(U=>U===B.id)}),O=new ce(w.x,w.y,w.z);let L=new ce(0,0,0);R.map(B=>(L=L.add(new ce(B.x,B.y,B.z).normalize()),B));const j=w.scale?1-1/(w.scale+10):1,W=O.sub(L).multiplyScalar(.8*j);S=O.add(W)}return S},[a,e,i,u]),k=y.useMemo(()=>{if(a)return new ce(0,0,0);const w=i==null?void 0:i.nodes.find(C=>C.ref_id===(e==null?void 0:e.ref_id));return new ce((w==null?void 0:w.x)||0,(w==null?void 0:w.y)||0,(w==null?void 0:w.z)||0)},[a,e,i]);y.useEffect(()=>{var w;a&&((w=n.current)==null||w.setLookAt(tl.x,tl.y,tl.z,0,0,0,!1)),v()},[a]),y.useEffect(()=>{a?_(wE):(e==null?void 0:e.node_type)==="topic"?_(xE):_(hf)},[e,_,a]),y.useEffect(()=>{b()},[l]),y.useEffect(()=>{(t||s)&&(f(!0),p(!0))},[t,s,f,p]),y.useEffect(()=>{if(e)if(!a&&o==="earth"&&(n!=null&&n.current)){const w=n.current.camera.position.distanceTo(new ce),C=bP(k,-w/2);n.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else yr&&clearTimeout(yr),yr=setTimeout(()=>{p(!0),clearTimeout(yr)},CP),v();return()=>{yr&&clearTimeout(yr),ki&&clearTimeout(ki)}},[e]),Nt(w=>{n.current&&(d||T(x,w.camera),m||E(k,w.camera))});const v=()=>{if(e){const w=h.position.distanceTo(x);vP(w)}b()},b=()=>{f(!1),p(!1),r(!1),ki&&clearTimeout(ki),ki=setTimeout(()=>{f(!0),p(!0)},EP)},T=(w,C)=>{if(C.position.distanceTo(w){var S;(S=n==null?void 0:n.current)==null||S.setLookAt(C.position.x,C.position.y,C.position.z,w.x,w.y,w.z,!0)};return null},OP=1;let sa=null;const AP=(n,{enabled:e})=>{const t=Jn();SP(n);const s=fs(a=>a.isUserDragging),{graphStyle:r,graphRadius:i,disableCameraRotation:o}=kt(a=>a);return y.useEffect(()=>{e||(sa==null||sa.kill(),sa=null)},[e]),y.useEffect(()=>{n.current&&i&&(r==="sphere"?(n.current.maxDistance=8e3,n.current.minDistance=200,n.current.setTarget(0,0,500,!0)):(n.current.maxDistance=n.current.getDistanceToFitSphere(i+200),n.current.minDistance=100))},[i,r,n]),y.useEffect(()=>{!t&&n.current&&n.current.setLookAt(Di.x,Di.y,i,0,0,0,!0)},[t,i]),Nt((a,c)=>{n.current&&(!o&&!s&&(n.current.azimuthAngle+=OP*c*_y.DEG2RAD),n.current.update(c))}),null},PP=({disableAnimations:n})=>{const e=y.useRef(null),{data:t,setNearbyNodeIds:s,setDisableCameraRotation:r}=kt(h=>h),[i]=y.useState(.8),{camera:o}=We(),[a,c,l,u]=fs(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return AP(e,{enabled:!n&&!l&&!a}),y.useEffect(()=>{if(!a){const h=sg((t==null?void 0:t.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,t==null?void 0:t.nodes,s,a]),y.useEffect(()=>{a&&r(!0)},[a,r]),V.jsx(b1,{ref:e,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:i})};function Ln(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function rg(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*! + * GSAP 3.12.4 + * https://gsap.com + * + * @license Copyright 2008-2023, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for + * Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com +*/var Bt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},qr={duration:.5,overwrite:!1,delay:0},mh,ft,Ye,Zt=1e8,Me=1/Zt,Zl=Math.PI*2,RP=Zl/4,DP=0,ig=Math.sqrt,MP=Math.cos,IP=Math.sin,ut=function(e){return typeof e=="string"},Xe=function(e){return typeof e=="function"},Zn=function(e){return typeof e=="number"},gh=function(e){return typeof e>"u"},On=function(e){return typeof e=="object"},At=function(e){return e!==!1},_h=function(){return typeof window<"u"},ra=function(e){return Xe(e)||ut(e)},og=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},pt=Array.isArray,Kl=/(?:-?\.?\d|\.)+/gi,ag=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Cr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,rl=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,cg=/[+-]=-?[.\d]+/,lg=/[^,'"\[\]\s]+/gi,NP=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,qe,Gt,Ql,yh,Wt={},Xa={},ug,hg=function(e){return(Xa=nr(e,Wt))&&It},vh=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},co=function(e,t){return!t&&console.warn(e)},dg=function(e,t){return e&&(Wt[e]=t)&&Xa&&(Xa[e]=t)||Wt},lo=function(){return 0},$P={suppressEvents:!0,isStart:!0,kill:!1},ha={suppressEvents:!0,kill:!1},FP={suppressEvents:!0},bh={},ms=[],Jl={},fg,Ft={},il={},Nf=30,da=[],xh="",wh=function(e){var t=e[0],s,r;if(On(t)||Xe(t)||(e=[e]),!(s=(t._gsap||{}).harness)){for(r=da.length;r--&&!da[r].targetTest(t););s=da[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Fg(e[r],s)))||e.splice(r,1);return e},qs=function(e){return e._gsap||wh(Kt(e))[0]._gsap},pg=function(e,t,s){return(s=e[t])&&Xe(s)?e[t]():gh(s)&&e.getAttribute&&e.getAttribute(t)||s},Pt=function(e,t){return(e=e.split(",")).forEach(t)||e},tt=function(e){return Math.round(e*1e5)/1e5||0},ct=function(e){return Math.round(e*1e7)/1e7||0},Dr=function(e,t){var s=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),s==="+"?e+r:s==="-"?e-r:s==="*"?e*r:e/r},LP=function(e,t){for(var s=t.length,r=0;e.indexOf(t[r])<0&&++ra;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[s],e[s]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Cc=function(e,t,s,r){s===void 0&&(s="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[s]===t&&(e[s]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Cs=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Hs=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var s=e;s;)s._dirty=1,s=s.parent;return e},zP=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},eu=function(e,t,s,r){return e._startAt&&(ft?e._startAt.revert(ha):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},UP=function n(e){return!e||e._ts&&n(e.parent)},Ff=function(e){return e._repeat?Hr(e._tTime,e=e.duration()+e._rDelay)*e:0},Hr=function(e,t){var s=Math.floor(e/=t);return e&&s===e?s-1:s},Qa=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Sc=function(e){return e._end=ct(e._start+(e._tDur/Math.abs(e._ts||e._rts||Me)||0))},Oc=function(e,t){var s=e._dp;return s&&s.smoothChildTiming&&e._ts&&(e._start=ct(s._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Sc(e),s._dirty||Hs(s,e)),e},vg=function(e,t){var s;if((t._time||!t._dur&&t._initted||t._startMe)&&t.render(s,!0)),Hs(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&s.totalTime(s._tTime),s=s._dp;e._zTime=-Me}},xn=function(e,t,s,r){return t.parent&&Cs(t),t._start=ct((Zn(s)?s:s||e!==qe?Ht(e,s,t):e._time)+t._delay),t._end=ct(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),yg(e,t,"_first","_last",e._sort?"_start":0),tu(t)||(e._recent=t),r||vg(e,t),e._ts<0&&Oc(e,e._tTime),e},bg=function(e,t){return(Wt.ScrollTrigger||vh("scrollTrigger",t))&&Wt.ScrollTrigger.create(t,e)},xg=function(e,t,s,r,i){if(Th(e,t,i),!e._initted)return 1;if(!s&&e._pt&&!ft&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&fg!==jt.frame)return ms.push(e),e._lazy=[i,r],1},BP=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},tu=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},WP=function(e,t,s,r){var i=e.ratio,o=t<0||!t&&(!e._start&&BP(e)&&!(!e._initted&&tu(e))||(e._ts<0||e._dp._ts<0)&&!tu(e))?0:1,a=e._rDelay,c=0,l,u,h;if(a&&e._repeat&&(c=Io(0,e._tDur,t),u=Hr(c,a),e._yoyo&&u&1&&(o=1-o),u!==Hr(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||ft||r||e._zTime===Me||!t&&e._zTime){if(!e._initted&&xg(e,t,r,s,c))return;for(h=e._zTime,e._zTime=t||(s?Me:0),s||(s=t&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=c,l=e._pt;l;)l.r(o,l.d),l=l._next;t<0&&eu(e,t,s,!0),e._onUpdate&&!s&&Vt(e,"onUpdate"),c&&e._repeat&&!s&&e.parent&&Vt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Cs(e,1),!s&&!ft&&(Vt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},qP=function(e,t,s){var r;if(s>t)for(r=e._first;r&&r._start<=s;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=s;){if(r.data==="isPause"&&r._start0&&!r&&Oc(e,e._tTime=e._tDur*a),e.parent&&Sc(e),s||Hs(e.parent,e),e},Lf=function(e){return e instanceof bt?Hs(e):Gr(e,e._dur)},HP={_start:0,endTime:lo,totalDuration:lo},Ht=function n(e,t,s){var r=e.labels,i=e._recent||HP,o=e.duration()>=Zt?i.endTime(!1):e._dur,a,c,l;return ut(t)&&(isNaN(t)||t in r)?(c=t.charAt(0),l=t.substr(-1)==="%",a=t.indexOf("="),c==="<"||c===">"?(a>=0&&(t=t.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(t.substr(1))||0)*(l?(a<0?i:s).totalDuration()/100:1)):a<0?(t in r||(r[t]=o),r[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),l&&s&&(c=c/100*(pt(s)?s[0]:s).totalDuration()),a>1?n(e,t.substr(0,a-1),s)+c:o+c)):t==null?o:+t},Ni=function(e,t,s){var r=Zn(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],a,c;if(r&&(o.duration=t[1]),o.parent=s,e){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=At(c.vars.inherit)&&c.parent;o.immediateRender=At(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new rt(t[0],o,t[i+1])},Rs=function(e,t){return e||e===0?t(e):t},Io=function(e,t,s){return st?t:s},dt=function(e,t){return!ut(e)||!(t=NP.exec(e))?"":t[1]},GP=function(e,t,s){return Rs(s,function(r){return Io(e,t,r)})},nu=[].slice,wg=function(e,t){return e&&On(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&On(e[0]))&&!e.nodeType&&e!==Gt},YP=function(e,t,s){return s===void 0&&(s=[]),e.forEach(function(r){var i;return ut(r)&&!t||wg(r,1)?(i=s).push.apply(i,Kt(r)):s.push(r)})||s},Kt=function(e,t,s){return Ye&&!t&&Ye.selector?Ye.selector(e):ut(e)&&!s&&(Ql||!Yr())?nu.call((t||yh).querySelectorAll(e),0):pt(e)?YP(e,s):wg(e)?nu.call(e,0):e?[e]:[]},su=function(e){return e=Kt(e)[0]||co("Invalid scope")||{},function(t){var s=e.current||e.nativeElement||e;return Kt(t,s.querySelectorAll?s:s===e?co("Invalid scope")||yh.createElement("div"):e)}},kg=function(e){return e.sort(function(){return .5-Math.random()})},Tg=function(e){if(Xe(e))return e;var t=On(e)?e:{each:e},s=Gs(t.ease),r=t.from||0,i=parseFloat(t.base)||0,o={},a=r>0&&r<1,c=isNaN(r)||a,l=t.axis,u=r,h=r;return ut(r)?u=h={center:.5,edges:.5,end:1}[r]||0:!a&&c&&(u=r[0],h=r[1]),function(d,f,m){var p=(m||t).length,g=o[p],_,x,k,v,b,T,E,w,C;if(!g){if(C=t.grid==="auto"?0:(t.grid||[1,Zt])[1],!C){for(E=-Zt;E<(E=m[C++].getBoundingClientRect().left)&&CE&&(E=b),bp?p-1:l?l==="y"?p/C:C:Math.max(C,p/C))||0)*(r==="edges"?-1:1),g.b=p<0?i-p:i,g.u=dt(t.amount||t.each)||0,s=s&&p<0?Ig(s):s}return p=(g[d]-g.min)/g.max||0,ct(g.b+(s?s(p):p)*g.v)+g.u}},ru=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var r=ct(Math.round(parseFloat(s)/e)*e*t);return(r-r%1)/t+(Zn(s)?0:dt(s))}},Eg=function(e,t){var s=pt(e),r,i;return!s&&On(e)&&(r=s=e.radius||Zt,e.values?(e=Kt(e.values),(i=!Zn(e[0]))&&(r*=r)):e=ru(e.increment)),Rs(t,s?Xe(e)?function(o){return i=e(o),Math.abs(i-o)<=r?i:o}:function(o){for(var a=parseFloat(i?o.x:o),c=parseFloat(i?o.y:0),l=Zt,u=0,h=e.length,d,f;h--;)i?(d=e[h].x-a,f=e[h].y-c,d=d*d+f*f):d=Math.abs(e[h]-a),dr?i-o:o)})},uo=function(e){for(var t=0,s="",r,i,o,a;~(r=e.indexOf("random(",t));)o=e.indexOf(")",r),a=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(a?lg:Kl),s+=e.substr(t,r-t)+Cg(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return s+e.substr(t,e.length-t)},Og=function(e,t,s,r,i){var o=t-e,a=r-s;return Rs(i,function(c){return s+((c-e)/o*a||0)})},eR=function n(e,t,s,r){var i=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!i){var o=ut(e),a={},c,l,u,h,d;if(s===!0&&(r=1)&&(s=null),o)e={p:e},t={p:t};else if(pt(e)&&!pt(t)){for(u=[],h=e.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,i=a);return c},Vt=function(e,t,s){var r=e.vars,i=r[t],o=Ye,a=e._ctx,c,l,u;if(i)return c=r[t+"Params"],l=r.callbackScope||e,s&&ms.length&&Za(),a&&(Ye=a),u=c?i.apply(l,c):i.call(l),Ye=o,u},Ci=function(e){return Cs(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ft),e.progress()<1&&Vt(e,"onInterrupt"),e},Sr,Ag=[],Pg=function(e){if(_h()&&e){e=!e.name&&e.default||e;var t=e.name,s=Xe(e),r=t&&!s&&e.init?function(){this._props=[]}:e,i={init:lo,render:Sh,add:kh,kill:gR,modifier:mR,rawVars:0},o={targetTest:0,get:0,getSetter:Ch,aliases:{},register:0};if(Yr(),e!==r){if(Ft[t])return;en(r,en(Ka(e,i),o)),nr(r.prototype,nr(i,Ka(e,o))),Ft[r.prop=t]=r,e.targetTest&&(da.push(r),bh[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}dg(t,r),e.register&&e.register(It,r,Rt)}else e&&Ag.push(e)},De=255,Si={aqua:[0,De,De],lime:[0,De,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,De],navy:[0,0,128],white:[De,De,De],olive:[128,128,0],yellow:[De,De,0],orange:[De,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[De,0,0],pink:[De,192,203],cyan:[0,De,De],transparent:[De,De,De,0]},ol=function(e,t,s){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(s-t)*e*6:e<.5?s:e*3<2?t+(s-t)*(2/3-e)*6:t)*De+.5|0},Rg=function(e,t,s){var r=e?Zn(e)?[e>>16,e>>8&De,e&De]:0:Si.black,i,o,a,c,l,u,h,d,f,m;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Si[e])r=Si[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+i+i+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&De,r&De,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&De,e&De]}else if(e.substr(0,3)==="hsl"){if(r=m=e.match(Kl),!t)c=+r[0]%360/360,l=+r[1]/100,u=+r[2]/100,o=u<=.5?u*(l+1):u+l-u*l,i=u*2-o,r.length>3&&(r[3]*=1),r[0]=ol(c+1/3,i,o),r[1]=ol(c,i,o),r[2]=ol(c-1/3,i,o);else if(~e.indexOf("="))return r=e.match(ag),s&&r.length<4&&(r[3]=1),r}else r=e.match(Kl)||Si.transparent;r=r.map(Number)}return t&&!m&&(i=r[0]/De,o=r[1]/De,a=r[2]/De,h=Math.max(i,o,a),d=Math.min(i,o,a),u=(h+d)/2,h===d?c=l=0:(f=h-d,l=u>.5?f/(2-h-d):f/(h+d),c=h===i?(o-a)/f+(oe&&(s+=_-t),r+=_,b=r-s,k=b-o,(k>0||x)&&(T=++h.frame,d=b-h.time*1e3,h.time=b=b/1e3,o+=k+(k>=i?4:i-k),v=1),x||(c=l(p)),v)for(f=0;f=_&&f--},_listeners:a},h}(),Yr=function(){return!ho&&jt.wake()},be={},nR=/^[\d.\-M][\d.\-,\s]/,sR=/["']/g,rR=function(e){for(var t={},s=e.substr(1,e.length-3).split(":"),r=s[0],i=1,o=s.length,a,c,l;i1&&s.config?s.config.apply(null,~e.indexOf("{")?[rR(t[1])]:iR(e).split(",").map(gg)):be._CE&&nR.test(e)?be._CE("",e):s},Ig=function(e){return function(t){return 1-e(1-t)}},Ng=function n(e,t){for(var s=e._first,r;s;)s instanceof bt?n(s,t):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==t&&(s.timeline?n(s.timeline,t):(r=s._ease,s._ease=s._yEase,s._yEase=r,s._yoyo=t)),s=s._next},Gs=function(e,t){return e&&(Xe(e)?e:be[e]||oR(e))||t},cr=function(e,t,s,r){s===void 0&&(s=function(c){return 1-t(1-c)}),r===void 0&&(r=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var i={easeIn:t,easeOut:s,easeInOut:r},o;return Pt(e,function(a){be[a]=Wt[a]=i,be[o=a.toLowerCase()]=s;for(var c in i)be[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=be[a+"."+c]=i[c]}),i},$g=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},al=function n(e,t,s){var r=t>=1?t:1,i=(s||(e?.3:.45))/(t<1?t:1),o=i/Zl*(Math.asin(1/r)||0),a=function(u){return u===1?1:r*Math.pow(2,-10*u)*IP((u-o)*i)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:$g(a);return i=Zl/i,c.config=function(l,u){return n(e,l,u)},c},cl=function n(e,t){t===void 0&&(t=1.70158);var s=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?s:e==="in"?function(i){return 1-s(1-i)}:$g(s);return r.config=function(i){return n(e,i)},r};Pt("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;cr(n+",Power"+(t-1),e?function(s){return Math.pow(s,t)}:function(s){return s},function(s){return 1-Math.pow(1-s,t)},function(s){return s<.5?Math.pow(s*2,t)/2:1-Math.pow((1-s)*2,t)/2})});be.Linear.easeNone=be.none=be.Linear.easeIn;cr("Elastic",al("in"),al("out"),al());(function(n,e){var t=1/e,s=2*t,r=2.5*t,i=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,Gr(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,r){if(Yr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Oc(this,s),!i._dp||i.parent||vg(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&xn(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Me||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),mg(this,s,r)),this},e.time=function(s,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Ff(this))%(this._dur+this._rDelay)||(s?this._dur:0),r):this._time},e.totalProgress=function(s,r){return arguments.length?this.totalTime(this.totalDuration()*s,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(s,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Ff(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(s,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*i,r):this._repeat?Hr(this._tTime,i)+1:1},e.timeScale=function(s,r){if(!arguments.length)return this._rts===-Me?0:this._rts;if(this._rts===s)return this;var i=this.parent&&this._ts?Qa(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Me?0:this._rts,this.totalTime(Io(-Math.abs(this._delay),this._tDur,i),r!==!1),Sc(this),zP(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Yr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Me&&(this._tTime-=Me)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&xn(r,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(At(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var r=this.parent||this._dp;return r?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Qa(r.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=FP);var r=ft;return ft=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),ft=r,this},e.globalTime=function(s){for(var r=this,i=arguments.length?s:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(s):i},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Lf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var r=this._time;return this._rDelay=s,Lf(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,r){return this.totalTime(Ht(this,s),At(r))},e.restart=function(s,r){return this.play().totalTime(s?-this._delay:0,At(r))},e.play=function(s,r){return s!=null&&this.seek(s,r),this.reversed(!1).paused(!1)},e.reverse=function(s,r){return s!=null&&this.seek(s||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(s,r){return s!=null&&this.seek(s,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Me:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Me,this},e.isActive=function(){var s=this.parent||this._dp,r=this._start,i;return!!(!s||this._ts&&this._initted&&s.isActive()&&(i=s.rawTime(!0))>=r&&i1?(r?(o[s]=r,i&&(o[s+"Params"]=i),s==="onUpdate"&&(this._onUpdate=r)):delete o[s],this):o[s]},e.then=function(s){var r=this;return new Promise(function(i){var o=Xe(s)?s:_g,a=function(){var l=r.then;r.then=null,Xe(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=l),i(o),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){Ci(this)},n}();en(fo.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Me,_prom:0,_ps:!1,_rts:1});var bt=function(n){rg(e,n);function e(s,r){var i;return s===void 0&&(s={}),i=n.call(this,s)||this,i.labels={},i.smoothChildTiming=!!s.smoothChildTiming,i.autoRemoveChildren=!!s.autoRemoveChildren,i._sort=At(s.sortChildren),qe&&xn(s.parent||qe,Ln(i),r),s.reversed&&i.reverse(),s.paused&&i.paused(!0),s.scrollTrigger&&bg(Ln(i),s.scrollTrigger),i}var t=e.prototype;return t.to=function(r,i,o){return Ni(0,arguments,this),this},t.from=function(r,i,o){return Ni(1,arguments,this),this},t.fromTo=function(r,i,o,a){return Ni(2,arguments,this),this},t.set=function(r,i,o){return i.duration=0,i.parent=this,Ii(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new rt(r,i,Ht(this,o),1),this},t.call=function(r,i,o){return xn(this,rt.delayedCall(0,r,i),o)},t.staggerTo=function(r,i,o,a,c,l,u){return o.duration=i,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new rt(r,o,Ht(this,c)),this},t.staggerFrom=function(r,i,o,a,c,l,u){return o.runBackwards=1,Ii(o).immediateRender=At(o.immediateRender),this.staggerTo(r,i,o,a,c,l,u)},t.staggerFromTo=function(r,i,o,a,c,l,u,h){return a.startAt=o,Ii(a).immediateRender=At(a.immediateRender),this.staggerTo(r,i,a,c,l,u,h)},t.render=function(r,i,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=r<=0?0:ct(r),h=this._zTime<0!=r<0&&(this._initted||!l),d,f,m,p,g,_,x,k,v,b,T,E;if(this!==qe&&u>c&&r>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,r+=this._time-a),d=u,v=this._start,k=this._ts,_=!k,h&&(l||(a=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(T=this._yoyo,g=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,i,o);if(d=ct(u%g),u===c?(p=this._repeat,d=l):(p=~~(u/g),p&&p===u/g&&(d=l,p--),d>l&&(d=l)),b=Hr(this._tTime,g),!a&&this._tTime&&b!==p&&this._tTime-b*g-this._dur<=0&&(b=p),T&&p&1&&(d=l-d,E=1),p!==b&&!this._lock){var w=T&&b&1,C=w===(T&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(m=f._next,(f._act||d>=f._start)&&f._ts&&x!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,i,o),d!==this._time||!this._ts&&!_){x=0,m&&(u+=this._zTime=-Me);break}}f=m}else{f=this._last;for(var S=r<0?r:d;f;){if(m=f._prev,(f._act||S<=f._end)&&f._ts&&x!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(S-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(S-f._start)*f._ts,i,o||ft&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){x=0,m&&(u+=this._zTime=S?-Me:Me);break}}f=m}}if(x&&!i&&(this.pause(),x.render(d>=a?0:-Me)._zTime=d>=a?1:-1,this._ts))return this._start=v,Sc(this),this.render(r,i,o);this._onUpdate&&!i&&Vt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(v===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Cs(this,1),!i&&!(r<0&&!a)&&(u||a||!c)&&(Vt(this,u===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Zn(i)||(i=Ht(this,i,r)),!(r instanceof fo)){if(pt(r))return r.forEach(function(a){return o.add(a,i)}),this;if(ut(r))return this.addLabel(r,i);if(Xe(r))r=rt.delayedCall(0,r);else return this}return this!==r?xn(this,r,i):this},t.getChildren=function(r,i,o,a){r===void 0&&(r=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),a===void 0&&(a=-Zt);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof rt?i&&c.push(l):(o&&c.push(l),r&&c.push.apply(c,l.getChildren(!0,i,o)))),l=l._next;return c},t.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},t.remove=function(r){return ut(r)?this.removeLabel(r):Xe(r)?this.killTweensOf(r):(Cc(this,r),r===this._recent&&(this._recent=this._last),Hs(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ct(jt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=Ht(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var a=rt.delayedCall(0,i||lo,o);return a.data="isPause",this._hasPause=1,xn(this,a,Ht(this,r))},t.removePause=function(r){var i=this._first;for(r=Ht(this,r);i;)i._start===r&&i.data==="isPause"&&Cs(i),i=i._next},t.killTweensOf=function(r,i,o){for(var a=this.getTweensOf(r,o),c=a.length;c--;)us!==a[c]&&a[c].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],a=Kt(r),c=this._first,l=Zn(i),u;c;)c instanceof rt?LP(c._targets,a)&&(l?(!us||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&o.push(c):(u=c.getTweensOf(a,i)).length&&o.push.apply(o,u),c=c._next;return o},t.tweenTo=function(r,i){i=i||{};var o=this,a=Ht(o,r),c=i,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,f,m=rt.to(o,en({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Me,onStart:function(){if(o.pause(),!f){var g=i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());m._dur!==g&&Gr(m,g,0,1).render(m._time,!0,!0),f=1}u&&u.apply(m,h||[])}},i));return d?m.render(0):m},t.tweenFromTo=function(r,i,o){return this.tweenTo(i,en({startAt:{time:Ht(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),jf(this,Ht(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),jf(this,Ht(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Me)},t.shiftChildren=function(r,i,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=r,a._end+=r),a=a._next;if(i)for(l in c)c[l]>=o&&(c[l]+=r);return Hs(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return n.prototype.invalidate.call(this,r)},t.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Hs(this)},t.totalDuration=function(r){var i=0,o=this,a=o._last,c=Zt,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,xn(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(i-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>i&&a._ts&&(i=a._end),a=l;Gr(o,o===qe&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(qe._ts&&(mg(qe,Qa(r,qe)),fg=jt.frame),jt.frame>=Nf){Nf+=Bt.autoSleep||120;var i=qe._first;if((!i||!i._ts)&&Bt.autoSleep&&jt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||jt.sleep()}}},e}(fo);en(bt.prototype,{_lock:0,_hasPause:0,_forcing:0});var aR=function(e,t,s,r,i,o,a){var c=new Rt(this._pt,e,t,0,1,Bg,null,i),l=0,u=0,h,d,f,m,p,g,_,x;for(c.b=s,c.e=r,s+="",r+="",(_=~r.indexOf("random("))&&(r=uo(r)),o&&(x=[s,r],o(x,e,t),s=x[0],r=x[1]),d=s.match(rl)||[];h=rl.exec(r);)m=h[0],p=r.substring(l,h.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),m!==d[u++]&&(g=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:p||u===1?p:",",s:g,c:m.charAt(1)==="="?Dr(g,m)-g:parseFloat(m)-g,m:f&&f<4?Math.round:0},l=rl.lastIndex);return c.c=l")}),v.duration();else{T={};for(w in m)w==="ease"||w==="easeEach"||hR(w,m[w],T,m.easeEach);for(w in T)for(L=T[w].sort(function(B,z){return B.t-z.t}),O=0,b=0;bc-Me&&!u?c:rl&&(d=l)),_=this._yoyo&&m&1,_&&(v=this._yEase,d=l-d),g=Hr(this._tTime,p),d===a&&!o&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(k&&this._yEase&&Ng(k,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(ct(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(xg(this,u?r:d,o,i,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==g))return this;if(l!==this._dur)return this.render(r,i,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(v||this._ease)(d/l),this._from&&(this.ratio=x=1-x),d&&!a&&!i&&!m&&(Vt(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(x,f.d),f=f._next;k&&k.render(r<0?r:!d&&_?-Me:k._dur*k._ease(d/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(u&&eu(this,r,i,o),Vt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!i&&this.parent&&Vt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&eu(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Cs(this,1),!i&&!(u&&!a)&&(h||a||_)&&(Vt(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),n.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,a,c){ho||jt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Th(this,l),u=this._ease(l/this._dur),lR(this,r,i,o,a,u,l,c)?this.resetTo(r,i,o,a,1):(Oc(this,0),this.parent||yg(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Ci(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,us&&us.vars.overwrite!==!0)._first||Ci(this),this.parent&&o!==this.timeline.totalDuration()&&Gr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=r?Kt(r):a,l=this._ptLookup,u=this._pt,h,d,f,m,p,g,_;if((!i||i==="all")&&VP(a,c))return i==="all"&&(this._pt=0),Ci(this);for(h=this._op=this._op||[],i!=="all"&&(ut(i)&&(p={},Pt(i,function(x){return p[x]=1}),i=p),i=uR(a,i)),_=a.length;_--;)if(~c.indexOf(a[_])){d=l[_],i==="all"?(h[_]=i,m=d,f={}):(f=h[_]=h[_]||{},m=i);for(p in m)g=d&&d[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&Cc(this,g,"_pt"),delete d[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&u&&Ci(this),this},e.to=function(r,i){return new e(r,i,arguments[2])},e.from=function(r,i){return Ni(1,arguments)},e.delayedCall=function(r,i,o,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(r,i,o){return Ni(2,arguments)},e.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(r,i)},e.killTweensOf=function(r,i,o){return qe.killTweensOf(r,i,o)},e}(fo);en(rt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Pt("staggerTo,staggerFrom,staggerFromTo",function(n){rt[n]=function(){var e=new bt,t=nu.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var Eh=function(e,t,s){return e[t]=s},zg=function(e,t,s){return e[t](s)},dR=function(e,t,s,r){return e[t](r.fp,s)},fR=function(e,t,s){return e.setAttribute(t,s)},Ch=function(e,t){return Xe(e[t])?zg:gh(e[t])&&e.setAttribute?fR:Eh},Ug=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},pR=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Bg=function(e,t){var s=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;s;)r=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+r,s=s._next;r+=t.c}t.set(t.t,t.p,r,t)},Sh=function(e,t){for(var s=t._pt;s;)s.r(e,s.d),s=s._next},mR=function(e,t,s,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,s),i=o},gR=function(e){for(var t=this._pt,s,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Cc(this,t,"_pt"):t.dep||(s=1),t=r;return!s},_R=function(e,t,s,r){r.mSet(e,t,r.m.call(r.tween,s,r.mt),r)},Wg=function(e){for(var t=e._pt,s,r,i,o;t;){for(s=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:o)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:o=t,t=s}e._pt=i},Rt=function(){function n(t,s,r,i,o,a,c,l,u){this.t=s,this.s=i,this.c=o,this.p=r,this.r=a||Ug,this.d=c||this,this.set=l||Eh,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(s,r,i){this.mSet=this.mSet||this.set,this.set=_R,this.m=s,this.mt=i,this.tween=r},n}();Pt(xh+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(n){return bh[n]=1});Wt.TweenMax=Wt.TweenLite=rt;Wt.TimelineLite=Wt.TimelineMax=bt;qe=new bt({sortChildren:!1,defaults:qr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Bt.stringFilter=Mg;var Ys=[],fa={},yR=[],zf=0,vR=0,ll=function(e){return(fa[e]||yR).map(function(t){return t()})},ou=function(){var e=Date.now(),t=[];e-zf>2&&(ll("matchMediaInit"),Ys.forEach(function(s){var r=s.queries,i=s.conditions,o,a,c,l;for(a in r)o=Gt.matchMedia(r[a]).matches,o&&(c=1),o!==i[a]&&(i[a]=o,l=1);l&&(s.revert(),c&&t.push(s))}),ll("matchMediaRevert"),t.forEach(function(s){return s.onMatch(s,function(r){return s.add(null,r)})}),zf=e,ll("matchMedia"))},qg=function(){function n(t,s){this.selector=s&&su(s),this.data=[],this._r=[],this.isReverted=!1,this.id=vR++,t&&this.add(t)}var e=n.prototype;return e.add=function(s,r,i){Xe(s)&&(i=r,r=s,s=Xe);var o=this,a=function(){var l=Ye,u=o.selector,h;return l&&l!==o&&l.data.push(o),i&&(o.selector=su(i)),Ye=o,h=r.apply(o,arguments),Xe(h)&&o._r.push(h),Ye=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Xe?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},e.ignore=function(s){var r=Ye;Ye=null,s(this),Ye=r},e.getTweens=function(){var s=[];return this.data.forEach(function(r){return r instanceof n?s.push.apply(s,r.getTweens()):r instanceof rt&&!(r.parent&&r.parent.data==="nested")&&s.push(r)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,r){var i=this;if(s?function(){for(var a=i.getTweens(),c=i.data.length,l;c--;)l=i.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=i.data.length;c--;)l=i.data[c],l instanceof bt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof rt)&&l.revert&&l.revert(s);i._r.forEach(function(u){return u(s,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Ys.length;o--;)Ys[o].id===this.id&&Ys.splice(o,1)},e.revert=function(s){this.kill(s||{})},n}(),bR=function(){function n(t){this.contexts=[],this.scope=t}var e=n.prototype;return e.add=function(s,r,i){On(s)||(s={matches:s});var o=new qg(0,i||this.scope),a=o.conditions={},c,l,u;Ye&&!o.selector&&(o.selector=Ye.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=s;for(l in s)l==="all"?u=1:(c=Gt.matchMedia(s[l]),c&&(Ys.indexOf(o)<0&&Ys.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(ou):c.addEventListener("change",ou)));return u&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(s){this.kill(s||{})},e.kill=function(s){this.contexts.forEach(function(r){return r.kill(s,!0)})},n}(),Ja={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),s=0;s1){var r=e.map(function(u){return It.quickSetter(u,t,s)}),i=r.length;return function(u){for(var h=i;h--;)r[h](u)}}e=e[0]||{};var o=Ft[t],a=qs(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;Sr._pt=0,h.init(e,s?u+s:u,Sr,0,[e]),h.render(1,h),Sr._pt&&Sh(1,Sr)}:a.set(e,c);return o?l:function(u){return l(e,c,s?u+s:u,a,1)}},quickTo:function(e,t,s){var r,i=It.to(e,nr((r={},r[t]="+=0.1",r.paused=!0,r),s||{})),o=function(c,l,u){return i.resetTo(t,c,l,u)};return o.tween=i,o},isTweening:function(e){return qe.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Gs(e.ease,qr.ease)),$f(qr,e||{})},config:function(e){return $f(Bt,e||{})},registerEffect:function(e){var t=e.name,s=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Ft[a]&&!Wt[a]&&co(t+" effect requires "+a+" plugin.")}),il[t]=function(a,c,l){return s(Kt(a),en(c||{},i),l)},o&&(bt.prototype[t]=function(a,c,l){return this.add(il[t](a,On(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){be[e]=Gs(t)},parseEase:function(e,t){return arguments.length?Gs(e,t):be},getById:function(e){return qe.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var s=new bt(e),r,i;for(s.smoothChildTiming=At(e.smoothChildTiming),qe.remove(s),s._dp=0,s._time=s._tTime=qe._time,r=qe._first;r;)i=r._next,(t||!(!r._dur&&r instanceof rt&&r.vars.onComplete===r._targets[0]))&&xn(s,r,r._start-r._delay),r=i;return xn(qe,s,0),s},context:function(e,t){return e?new qg(e,t):Ye},matchMedia:function(e){return new bR(e)},matchMediaRefresh:function(){return Ys.forEach(function(e){var t=e.conditions,s,r;for(r in t)t[r]&&(t[r]=!1,s=1);s&&e.revert()})||ou()},addEventListener:function(e,t){var s=fa[e]||(fa[e]=[]);~s.indexOf(t)||s.push(t)},removeEventListener:function(e,t){var s=fa[e],r=s&&s.indexOf(t);r>=0&&s.splice(r,1)},utils:{wrap:QP,wrapYoyo:JP,distribute:Tg,random:Cg,snap:Eg,normalize:KP,getUnit:dt,clamp:GP,splitColor:Rg,toArray:Kt,selector:su,mapRange:Og,pipe:XP,unitize:ZP,interpolate:eR,shuffle:kg},install:hg,effects:il,ticker:jt,updateRoot:bt.updateRoot,plugins:Ft,globalTimeline:qe,core:{PropTween:Rt,globals:dg,Tween:rt,Timeline:bt,Animation:fo,getCache:qs,_removeLinkedListItem:Cc,reverting:function(){return ft},context:function(e){return e&&Ye&&(Ye.data.push(e),e._ctx=Ye),Ye},suppressOverwrites:function(e){return mh=e}}};Pt("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return Ja[n]=rt[n]});jt.add(bt.updateRoot);Sr=Ja.to({},{duration:0});var xR=function(e,t){for(var s=e._pt;s&&s.p!==t&&s.op!==t&&s.fp!==t;)s=s._next;return s},wR=function(e,t){var s=e._targets,r,i,o;for(r in t)for(i=s.length;i--;)o=e._ptLookup[i][r],o&&(o=o.d)&&(o._pt&&(o=xR(o,r)),o&&o.modifier&&o.modifier(t[r],e,s[i],r))},ul=function(e,t){return{name:e,rawVars:1,init:function(r,i,o){o._onInit=function(a){var c,l;if(ut(i)&&(c={},Pt(i,function(u){return c[u]=1}),i=c),t){c={};for(l in i)c[l]=t(i[l]);i=c}wR(a,i)}}}},It=Ja.registerPlugin({name:"attr",init:function(e,t,s,r,i){var o,a,c;this.tween=s;for(o in t)c=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(c||0)+"",t[o],r,i,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(e,t){for(var s=t._pt;s;)ft?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",init:function(e,t){for(var s=t.length;s--;)this.add(e,s,e[s]||0,t[s],0,0,0,0,0,1)}},ul("roundProps",ru),ul("modifiers"),ul("snap",Eg))||Ja;rt.version=bt.version=It.version="3.12.4";ug=1;_h()&&Yr();be.Power0;be.Power1;be.Power2;be.Power3;be.Power4;be.Linear;be.Quad;be.Cubic;be.Quart;be.Quint;be.Strong;be.Elastic;be.Back;be.SteppedEase;be.Bounce;be.Sine;be.Expo;be.Circ;/*! + * CSSPlugin 3.12.4 + * https://gsap.com + * + * Copyright 2008-2023, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for + * Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com +*/var Uf,hs,Mr,Oh,zs,Bf,Ah,kR=function(){return typeof window<"u"},Kn={},Fs=180/Math.PI,Ir=Math.PI/180,vr=Math.atan2,Wf=1e8,Ph=/([A-Z])/g,TR=/(left|right|width|margin|padding|x)/i,ER=/[\s,\(]\S/,wn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},au=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},CR=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},SR=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},OR=function(e,t){var s=t.s+t.c*e;t.set(t.t,t.p,~~(s+(s<0?-.5:.5))+t.u,t)},Hg=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Gg=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},AR=function(e,t,s){return e.style[t]=s},PR=function(e,t,s){return e.style.setProperty(t,s)},RR=function(e,t,s){return e._gsap[t]=s},DR=function(e,t,s){return e._gsap.scaleX=e._gsap.scaleY=s},MR=function(e,t,s,r,i){var o=e._gsap;o.scaleX=o.scaleY=s,o.renderTransform(i,o)},IR=function(e,t,s,r,i){var o=e._gsap;o[t]=s,o.renderTransform(i,o)},He="transform",Dt=He+"Origin",NR=function n(e,t){var s=this,r=this.target,i=r.style,o=r._gsap;if(e in Kn&&i){if(this.tfm=this.tfm||{},e!=="transform")e=wn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return s.tfm[a]=Vn(r,a)}):this.tfm[e]=o.x?o[e]:Vn(r,e),e===Dt&&(this.tfm.zOrigin=o.zOrigin);else return wn.transform.split(",").forEach(function(a){return n.call(s,a,t)});if(this.props.indexOf(He)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Dt,t,"")),e=He}(i||t)&&this.props.push(e,t,i[e])},Yg=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},$R=function(){var e=this.props,t=this.target,s=t.style,r=t._gsap,i,o;for(i=0;i=0?qf[o]:"")+e},lu=function(){kR()&&window.document&&(Uf=window,hs=Uf.document,Mr=hs.documentElement,zs=cu("div")||{style:{}},cu("div"),He=Xr(He),Dt=He+"Origin",zs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Zg=!!Xr("perspective"),Ah=It.core.reverting,Oh=1)},hl=function n(e){var t=cu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,r=this.nextSibling,i=this.style.cssText,o;if(Mr.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(r?s.insertBefore(this,r):s.appendChild(this)),Mr.removeChild(t),this.style.cssText=i,o},Hf=function(e,t){for(var s=t.length;s--;)if(e.hasAttribute(t[s]))return e.getAttribute(t[s])},Kg=function(e){var t;try{t=e.getBBox()}catch{t=hl.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===hl||(t=hl.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Hf(e,["x","cx","x1"])||0,y:+Hf(e,["y","cy","y1"])||0,width:0,height:0}:t},Qg=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Kg(e))},sr=function(e,t){if(t){var s=e.style,r;t in Kn&&t!==Dt&&(t=He),s.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),s.removeProperty(r==="--"?t:t.replace(Ph,"-$1").toLowerCase())):s.removeAttribute(t)}},ds=function(e,t,s,r,i,o){var a=new Rt(e._pt,t,s,0,1,o?Gg:Hg);return e._pt=a,a.b=r,a.e=i,e._props.push(s),a},Gf={deg:1,rad:1,turn:1},FR={grid:1,flex:1},Ss=function n(e,t,s,r){var i=parseFloat(s)||0,o=(s+"").trim().substr((i+"").length)||"px",a=zs.style,c=TR.test(t),l=e.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=r==="px",f=r==="%",m,p,g,_;if(r===o||!i||Gf[r]||Gf[o])return i;if(o!=="px"&&!d&&(i=n(e,t,s,"px")),_=e.getCTM&&Qg(e),(f||o==="%")&&(Kn[t]||~t.indexOf("adius")))return m=_?e.getBBox()[c?"width":"height"]:e[u],tt(f?i/m*h:i/100*m);if(a[c?"width":"height"]=h+(d?o:r),p=~t.indexOf("adius")||r==="em"&&e.appendChild&&!l?e:e.parentNode,_&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===hs||!p.appendChild)&&(p=hs.body),g=p._gsap,g&&f&&g.width&&c&&g.time===jt.time&&!g.uncache)return tt(i/g.width*h);if(f&&(t==="height"||t==="width")){var x=e.style[t];e.style[t]=h+r,m=e[u],x?e.style[t]=x:sr(e,t)}else(f||o==="%")&&!FR[Tn(p,"display")]&&(a.position=Tn(e,"position")),p===e&&(a.position="static"),p.appendChild(zs),m=zs[u],p.removeChild(zs),a.position="absolute";return c&&f&&(g=qs(p),g.time=jt.time,g.width=p[u]),tt(d?m*i/h:m&&i?h/m*i:0)},Vn=function(e,t,s,r){var i;return Oh||lu(),t in wn&&t!=="transform"&&(t=wn[t],~t.indexOf(",")&&(t=t.split(",")[0])),Kn[t]&&t!=="transform"?(i=mo(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:tc(Tn(e,Dt))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=ec[t]&&ec[t](e,t,s)||Tn(e,t)||pg(e,t)||(t==="opacity"?1:0))),s&&!~(i+"").trim().indexOf(" ")?Ss(e,t,i,s)+s:i},LR=function(e,t,s,r){if(!s||s==="none"){var i=Xr(t,e,1),o=i&&Tn(e,i,1);o&&o!==s?(t=i,s=o):t==="borderColor"&&(s=Tn(e,"borderTopColor"))}var a=new Rt(this._pt,e.style,t,0,1,Bg),c=0,l=0,u,h,d,f,m,p,g,_,x,k,v,b;if(a.b=s,a.e=r,s+="",r+="",r==="auto"&&(p=e.style[t],e.style[t]=r,r=Tn(e,t)||r,p?e.style[t]=p:sr(e,t)),u=[s,r],Mg(u),s=u[0],r=u[1],d=s.match(Cr)||[],b=r.match(Cr)||[],b.length){for(;h=Cr.exec(r);)g=h[0],x=r.substring(c,h.index),m?m=(m+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(m=1),g!==(p=d[l++]||"")&&(f=parseFloat(p)||0,v=p.substr((f+"").length),g.charAt(1)==="="&&(g=Dr(f,g)+v),_=parseFloat(g),k=g.substr((_+"").length),c=Cr.lastIndex-k.length,k||(k=k||Bt.units[t]||v,c===r.length&&(r+=k,a.e+=k)),v!==k&&(f=Ss(e,t,p,k)||0),a._pt={_next:a._pt,p:x||l===1?x:",",s:f,c:_-f,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=i[l],Kn[a]&&(c=1,a=a==="transformOrigin"?Dt:He),sr(s,a);c&&(sr(s,He),o&&(o.svg&&s.removeAttribute("transform"),mo(s,1),o.uncache=1,Yg(r)))}},ec={clearProps:function(e,t,s,r,i){if(i.data!=="isFromStart"){var o=e._pt=new Rt(e._pt,t,s,0,0,VR);return o.u=r,o.pr=-10,o.tween=i,e._props.push(s),1}}},po=[1,0,0,1,0,0],Jg={},e_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Xf=function(e){var t=Tn(e,He);return e_(t)?po:t.substr(7).match(ag).map(tt)},Rh=function(e,t){var s=e._gsap||qs(e),r=e.style,i=Xf(e),o,a,c,l;return s.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?po:i):(i===po&&!e.offsetParent&&e!==Mr&&!s.svg&&(c=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,Mr.appendChild(e)),i=Xf(e),c?r.display=c:sr(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):Mr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},uu=function(e,t,s,r,i,o){var a=e._gsap,c=i||Rh(e,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,f=c[0],m=c[1],p=c[2],g=c[3],_=c[4],x=c[5],k=t.split(" "),v=parseFloat(k[0])||0,b=parseFloat(k[1])||0,T,E,w,C;s?c!==po&&(E=f*g-m*p)&&(w=v*(g/E)+b*(-p/E)+(p*x-g*_)/E,C=v*(-m/E)+b*(f/E)-(f*x-m*_)/E,v=w,b=C):(T=Kg(e),v=T.x+(~k[0].indexOf("%")?v/100*T.width:v),b=T.y+(~(k[1]||k[0]).indexOf("%")?b/100*T.height:b)),r||r!==!1&&a.smooth?(_=v-l,x=b-u,a.xOffset=h+(_*f+x*p)-_,a.yOffset=d+(_*m+x*g)-x):a.xOffset=a.yOffset=0,a.xOrigin=v,a.yOrigin=b,a.smooth=!!r,a.origin=t,a.originIsAbsolute=!!s,e.style[Dt]="0px 0px",o&&(ds(o,a,"xOrigin",l,v),ds(o,a,"yOrigin",u,b),ds(o,a,"xOffset",h,a.xOffset),ds(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",v+" "+b)},mo=function(e,t){var s=e._gsap||new Fg(e);if("x"in s&&!t&&!s.uncache)return s;var r=e.style,i=s.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=Tn(e,Dt)||"0",u,h,d,f,m,p,g,_,x,k,v,b,T,E,w,C,S,R,O,L,j,W,B,z,U,X,K,te,$,F,A,I;return u=h=d=p=g=_=x=k=v=0,f=m=1,s.svg=!!(e.getCTM&&Qg(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[He]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[He]!=="none"?c[He]:"")),r.scale=r.rotate=r.translate="none"),E=Rh(e,s.svg),s.svg&&(s.uncache?(U=e.getBBox(),l=s.xOrigin-U.x+"px "+(s.yOrigin-U.y)+"px",z=""):z=!t&&e.getAttribute("data-svg-origin"),uu(e,z||l,!!z||s.originIsAbsolute,s.smooth!==!1,E)),b=s.xOrigin||0,T=s.yOrigin||0,E!==po&&(R=E[0],O=E[1],L=E[2],j=E[3],u=W=E[4],h=B=E[5],E.length===6?(f=Math.sqrt(R*R+O*O),m=Math.sqrt(j*j+L*L),p=R||O?vr(O,R)*Fs:0,x=L||j?vr(L,j)*Fs+p:0,x&&(m*=Math.abs(Math.cos(x*Ir))),s.svg&&(u-=b-(b*R+T*L),h-=T-(b*O+T*j))):(I=E[6],F=E[7],K=E[8],te=E[9],$=E[10],A=E[11],u=E[12],h=E[13],d=E[14],w=vr(I,$),g=w*Fs,w&&(C=Math.cos(-w),S=Math.sin(-w),z=W*C+K*S,U=B*C+te*S,X=I*C+$*S,K=W*-S+K*C,te=B*-S+te*C,$=I*-S+$*C,A=F*-S+A*C,W=z,B=U,I=X),w=vr(-L,$),_=w*Fs,w&&(C=Math.cos(-w),S=Math.sin(-w),z=R*C-K*S,U=O*C-te*S,X=L*C-$*S,A=j*S+A*C,R=z,O=U,L=X),w=vr(O,R),p=w*Fs,w&&(C=Math.cos(w),S=Math.sin(w),z=R*C+O*S,U=W*C+B*S,O=O*C-R*S,B=B*C-W*S,R=z,W=U),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,_=180-_),f=tt(Math.sqrt(R*R+O*O+L*L)),m=tt(Math.sqrt(B*B+I*I)),w=vr(W,B),x=Math.abs(w)>2e-4?w*Fs:0,v=A?1/(A<0?-A:A):0),s.svg&&(z=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!e_(Tn(e,He)),z&&e.setAttribute("transform",z))),Math.abs(x)>90&&Math.abs(x)<270&&(i?(f*=-1,x+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,x+=x<=0?180:-180)),t=t||s.uncache,s.x=u-((s.xPercent=u&&(!t&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!t&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=tt(f),s.scaleY=tt(m),s.rotation=tt(p)+a,s.rotationX=tt(g)+a,s.rotationY=tt(_)+a,s.skewX=x+a,s.skewY=k+a,s.transformPerspective=v+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!t&&s.zOrigin||0)&&(r[Dt]=tc(l)),s.xOffset=s.yOffset=0,s.force3D=Bt.force3D,s.renderTransform=s.svg?UR:Zg?t_:zR,s.uncache=0,s},tc=function(e){return(e=e.split(" "))[0]+" "+e[1]},dl=function(e,t,s){var r=dt(t);return tt(parseFloat(t)+parseFloat(Ss(e,"x",s+"px",r)))+r},zR=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,t_(e,t)},Ns="0deg",Ti="0px",$s=") ",t_=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,f=s.skewY,m=s.scaleX,p=s.scaleY,g=s.transformPerspective,_=s.force3D,x=s.target,k=s.zOrigin,v="",b=_==="auto"&&e&&e!==1||_===!0;if(k&&(h!==Ns||u!==Ns)){var T=parseFloat(u)*Ir,E=Math.sin(T),w=Math.cos(T),C;T=parseFloat(h)*Ir,C=Math.cos(T),o=dl(x,o,E*C*-k),a=dl(x,a,-Math.sin(T)*-k),c=dl(x,c,w*C*-k+k)}g!==Ti&&(v+="perspective("+g+$s),(r||i)&&(v+="translate("+r+"%, "+i+"%) "),(b||o!==Ti||a!==Ti||c!==Ti)&&(v+=c!==Ti||b?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+$s),l!==Ns&&(v+="rotate("+l+$s),u!==Ns&&(v+="rotateY("+u+$s),h!==Ns&&(v+="rotateX("+h+$s),(d!==Ns||f!==Ns)&&(v+="skew("+d+", "+f+$s),(m!==1||p!==1)&&(v+="scale("+m+", "+p+$s),x.style[He]=v||"translate(0, 0)"},UR=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,f=s.target,m=s.xOrigin,p=s.yOrigin,g=s.xOffset,_=s.yOffset,x=s.forceCSS,k=parseFloat(o),v=parseFloat(a),b,T,E,w,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Ir,l*=Ir,b=Math.cos(c)*h,T=Math.sin(c)*h,E=Math.sin(c-l)*-d,w=Math.cos(c-l)*d,l&&(u*=Ir,C=Math.tan(l-u),C=Math.sqrt(1+C*C),E*=C,w*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),b*=C,T*=C)),b=tt(b),T=tt(T),E=tt(E),w=tt(w)):(b=h,w=d,T=E=0),(k&&!~(o+"").indexOf("px")||v&&!~(a+"").indexOf("px"))&&(k=Ss(f,"x",o,"px"),v=Ss(f,"y",a,"px")),(m||p||g||_)&&(k=tt(k+m-(m*b+p*E)+g),v=tt(v+p-(m*T+p*w)+_)),(r||i)&&(C=f.getBBox(),k=tt(k+r/100*C.width),v=tt(v+i/100*C.height)),C="matrix("+b+","+T+","+E+","+w+","+k+","+v+")",f.setAttribute("transform",C),x&&(f.style[He]=C)},BR=function(e,t,s,r,i){var o=360,a=ut(i),c=parseFloat(i)*(a&&~i.indexOf("rad")?Fs:1),l=c-r,u=r+l+"deg",h,d;return a&&(h=i.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Wf)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Wf)%o-~~(l/o)*o)),e._pt=d=new Rt(e._pt,t,s,r,l,CR),d.e=u,d.u="deg",e._props.push(s),d},Zf=function(e,t){for(var s in t)e[s]=t[s];return e},WR=function(e,t,s){var r=Zf({},s._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,f,m;r.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[He]=t,a=mo(s,1),sr(s,He),s.setAttribute("transform",l)):(l=getComputedStyle(s)[He],o[He]=t,a=mo(s,1),o[He]=l);for(c in Kn)l=r[c],u=a[c],l!==u&&i.indexOf(c)<0&&(f=dt(l),m=dt(u),h=f!==m?Ss(s,c,l,m):parseFloat(l),d=parseFloat(u),e._pt=new Rt(e._pt,a,c,h,d-h,au),e._pt.u=m||0,e._props.push(c));Zf(a,r)};Pt("padding,margin,Width,Radius",function(n,e){var t="Top",s="Right",r="Bottom",i="Left",o=(e<3?[t,s,r,i]:[t+i,t+s,r+s,r+i]).map(function(a){return e<2?n+a:"border"+a+n});ec[e>1?"border"+n:n]=function(a,c,l,u,h){var d,f;if(arguments.length<4)return d=o.map(function(m){return Vn(a,m,l)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(u+"").split(" "),f={},o.forEach(function(m,p){return f[m]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(c,f,h)}});var n_={name:"css",register:lu,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,s,r,i){var o=this._props,a=e.style,c=s.vars.startAt,l,u,h,d,f,m,p,g,_,x,k,v,b,T,E,w;Oh||lu(),this.styles=this.styles||Xg(e),w=this.styles.props,this.tween=s;for(p in t)if(p!=="autoRound"&&(u=t[p],!(Ft[p]&&Lg(p,t,s,r,e,i)))){if(f=typeof u,m=ec[p],f==="function"&&(u=u.call(s,r,e,i),f=typeof u),f==="string"&&~u.indexOf("random(")&&(u=uo(u)),m)m(this,e,p,u,s)&&(E=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",gs.lastIndex=0,gs.test(l)||(g=dt(l),_=dt(u)),_?g!==_&&(l=Ss(e,p,l,_)+_):g&&(u+=g),this.add(a,"setProperty",l,u,r,i,0,0,p),o.push(p),w.push(p,0,a[p]);else if(f!=="undefined"){if(c&&p in c?(l=typeof c[p]=="function"?c[p].call(s,r,e,i):c[p],ut(l)&&~l.indexOf("random(")&&(l=uo(l)),dt(l+"")||l==="auto"||(l+=Bt.units[p]||dt(Vn(e,p))||""),(l+"").charAt(1)==="="&&(l=Vn(e,p))):l=Vn(e,p),d=parseFloat(l),x=f==="string"&&u.charAt(1)==="="&&u.substr(0,2),x&&(u=u.substr(2)),h=parseFloat(u),p in wn&&(p==="autoAlpha"&&(d===1&&Vn(e,"visibility")==="hidden"&&h&&(d=0),w.push("visibility",0,a.visibility),ds(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=wn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),k=p in Kn,k){if(this.styles.save(p),v||(b=e._gsap,b.renderTransform&&!t.parseTransform||mo(e,t.parseTransform),T=t.smoothOrigin!==!1&&b.smooth,v=this._pt=new Rt(this._pt,a,He,0,1,b.renderTransform,b,0,-1),v.dep=1),p==="scale")this._pt=new Rt(this._pt,b,"scaleY",b.scaleY,(x?Dr(b.scaleY,x+h):h)-b.scaleY||0,au),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){w.push(Dt,0,a[Dt]),u=jR(u),b.svg?uu(e,u,0,T,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==b.zOrigin&&ds(this,b,"zOrigin",b.zOrigin,_),ds(this,a,p,tc(l),tc(u)));continue}else if(p==="svgOrigin"){uu(e,u,1,T,0,this);continue}else if(p in Jg){BR(this,b,p,d,x?Dr(d,x+u):u);continue}else if(p==="smoothOrigin"){ds(this,b,"smooth",b.smooth,u);continue}else if(p==="force3D"){b[p]=u;continue}else if(p==="transform"){WR(this,u,e);continue}}else p in a||(p=Xr(p)||p);if(k||(h||h===0)&&(d||d===0)&&!ER.test(u)&&p in a)g=(l+"").substr((d+"").length),h||(h=0),_=dt(u)||(p in Bt.units?Bt.units[p]:g),g!==_&&(d=Ss(e,p,l,_)),this._pt=new Rt(this._pt,k?b:a,p,d,(x?Dr(d,x+h):h)-d,!k&&(_==="px"||p==="zIndex")&&t.autoRound!==!1?OR:au),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=SR);else if(p in a)LR.call(this,e,p,l,x?x+u:u);else if(p in e)this.add(e,p,l||e[p],x?x+u:u,r,i);else if(p!=="parseTransform"){vh(p,u);continue}k||(p in a?w.push(p,0,a[p]):w.push(p,1,l||e[p])),o.push(p)}}E&&Wg(this)},render:function(e,t){if(t.tween._time||!Ah())for(var s=t._pt;s;)s.r(e,s.d),s=s._next;else t.styles.revert()},get:Vn,aliases:wn,getSetter:function(e,t,s){var r=wn[t];return r&&r.indexOf(",")<0&&(t=r),t in Kn&&t!==Dt&&(e._gsap.x||Vn(e,"x"))?s&&Bf===s?t==="scale"?DR:RR:(Bf=s||{})&&(t==="scale"?MR:IR):e.style&&!gh(e.style[t])?AR:~t.indexOf("-")?PR:Ch(e,t)},core:{_removeProperty:sr,_getMatrix:Rh}};It.utils.checkPrefix=Xr;It.core.getStyleSaver=Xg;(function(n,e,t,s){var r=Pt(n+","+e+","+t,function(i){Kn[i]=1});Pt(e,function(i){Bt.units[i]="deg",Jg[i]=1}),wn[r[13]]=n+","+e,Pt(s,function(i){var o=i.split(":");wn[o[1]]=r[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Bt.units[n]="px"});It.registerPlugin(n_);var Fi=It.registerPlugin(n_)||It;Fi.core.Tween;const s_=({isSelected:n,position:e,label:t,target:s,source:r})=>{const i=y.useRef(null);return y.useEffect(()=>{if(i.current){const o=i.current;Fi.fromTo(o.material,{linewidth:uf*15},{linewidth:uf,duration:1})}},[n,i]),Nt(()=>{const{selectedNode:o,hoveredNode:a}=kt.getState();if(i.current){const c=i.current,l=o||a;(l==null?void 0:l.ref_id)===r||(l==null?void 0:l.ref_id)===s?(c.visible=!0,Fi.to(c.material,{linewidth:6,duration:.5,ease:"power1.out"})):Fi.to(c.material,{linewidth:1,duration:.5,ease:"power1.out"})}}),V.jsxs("group",{children:[V.jsx(A_,{ref:i,isLine2:!0,name:"line",opacity:.5,points:[new ce(e.sx,e.sy,e.sz),new ce(e.tx,e.ty,e.tz)]}),V.jsx(wu,{children:V.jsx(op,{anchorX:"center",anchorY:"middle",color:"white",fontSize:10,children:t})})]})};s_.displayName="LineComponent";const qR=y.memo(s_),r_=y.memo(({linksPosition:n})=>{const e=Os(r=>r.dataInitial),{showSelectionGraph:t}=kt(r=>r),s=Jn();return V.jsx("group",{name:"simulation-3d-group__connections",visible:!t||!0,children:e==null?void 0:e.links.map(r=>{const i=(s==null?void 0:s.ref_id)===r.source||(s==null?void 0:s.ref_id)===r.target,o=n.get(r.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return V.jsx(qR,{isSelected:i,label:r.edge_type,position:o,source:r.source,target:r.target},r.ref_id)})})});r_.displayName="Connections";const HR=({color:n,scale:e})=>V.jsx(wu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:V.jsx(kp,{color:n,scale:e})}),GR=["#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"],YR=()=>{const n=Jn(),e=Os(i=>i.dataInitial),{normalizedSchemasByType:t}=du(i=>i),s=sp(),r=y.useMemo(()=>new yy(30,2,16,100),[]);return V.jsx(V.Fragment,{children:V.jsxs(k1,{geometry:r,limit:1e3,range:1e3,visible:!n,children:[V.jsx("meshBasicMaterial",{}),e==null?void 0:e.nodes.map(i=>{var c;const a=((c=t[i.node_type])==null?void 0:c.primary_color)??(GR[s.indexOf(i.node_type)]||Ae.white);return V.jsx(HR,{color:a,scale:i.scale||1},i.ref_id)})]})})},XR=y.memo(YR),ZR=Ke(Qn)` + text-align: center; + width: ${n=>n.type==="topic"?"auto":`${n.size}px`}; + height: ${n=>n.type==="topic"?"auto":`${n.size}px`}; + outline: 1px solid ${n=>Ae.white||n.color}; + outline-offset: 0px; + background: rgba(0, 0, 0, 0.75); + color: ${n=>n.fontColor}; + border-radius: ${n=>`${n.type==="guest"?"100%":"6px"}`}; + font-size: ${n=>`${n.fontSize}px`}; + cursor: pointer; + transition: font-size 0.4s, outline 0.4s; + transform: scale(${n=>n.scale}); + align-items: center; + justify-content: center; + font-family: Barlow; + font-size: 26px; + font-style: normal; + font-weight: 700; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); + + &:hover { + outline-offset: 4px; + } + + &.selected { + .badge-wrapper { + top: 0; + } + + font-size: 36px; + + &:hover { + outline-offset: 0px; + } + } + + &.topic { + outline: none; + background: none; + &:hover { + font-size: 36px; + } + white-space: nowrap; + .badge-wrapper { + display: none; + } + } + + .badge-wrapper { + position: absolute; + top: -7px; + left: -14px; + } +`,KR=Ke(Qn)` + text-align: center; + outline: 1px solid ${Ae.white}; + outline-offset: 0px; + white-space: nowrap; + padding: 4px; + background: rgba(0, 0, 0, 0.75); + color: ${Ae.white}; + border-radius: 6px; + font-size: 20px; + cursor: pointer; + transition: font-size 0.4s, outline 0.4s; + align-items: center; + justify-content: flex-start; + font-family: Barlow; + font-size: 26px; + font-style: normal; + font-weight: 700; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); + max-width: auto; + max-height: 100px; + white-space: normal; + font-size: 16px; + + &:hover { + outline-offset: 4px; + } + + &.selected { + .badge-wrapper { + top: 0; + } + + font-size: 36px; + + &:hover { + outline-offset: 0px; + } + } + + &.topic { + outline: none; + background: none; + &:hover { + font-size: 36px; + } + white-space: nowrap; + .badge-wrapper { + display: none; + } + } + + .badge-wrapper { + position: absolute; + top: -7px; + left: -14px; + } +`;Ke.img` + background-image: ${({src:n})=>`url(${n})`}; + background-size: contain; + background-repeat: no-repeat; + width: ${n=>n.size}px; + height: ${n=>n.size}px; + border-radius: ${n=>n.borderRadius}; +`;Ke.div` + display: flex; + position: absolute; + bottom: -14px; + left: -5px; + width: auto; + justify-content: center; + align-items: center; +`;Ke.div` + display: flex; + justify-content: center; + align-items: center; + background: ${Ae.transparentBlack}; + border: 2px solid ${n=>n.color}; + color: #fff; + padding: 0 4px; + min-width: 30px; + height: 26px; + font-size: 12px; + font-weight: 500; + border-radius: 6px; + margin-right: 5px; +`;Ke.div` + display: flex; + justify-content: center; + align-items: center; + border: 2px solid ${n=>n.color}44; + background: ${Ae.transparentBlack}; + padding: 0 4px; + color: ${n=>n.color}; + min-width: 30px; + height: 26px; + font-size: 12px; + font-weight: 500; + border-radius: 6px; + margin-right: 5px; +`;const QR=new ce,JR=({position:n,userData:e,color:t})=>{const s=y.useRef(null),{selectedNode:r,setSelectedNode:i,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=kt(pu(f=>f)),l=((e==null?void 0:e.node_type)||"")==="Topic"||!!e.name,u=((e==null?void 0:e.node_type)||"")==="Guest"||((e==null?void 0:e.node_type)||"")==="Person";Nt(()=>{if(o&&s.current){const f=QR.set((e==null?void 0:e.x)||0,(e==null?void 0:e.y)||0,(e==null?void 0:e.z)||0);s.current.position.copy(f)}}),y.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=y.useMemo(()=>(a==null?void 0:a.ref_id)===(e==null?void 0:e.ref_id),[a==null?void 0:a.ref_id,e==null?void 0:e.ref_id]),d=(r==null?void 0:r.ref_id)===(e==null?void 0:e.ref_id);return l||d&&o||!d?V.jsx("group",{ref:s,position:n,children:V.jsx(_o,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?V.jsxs(KR,{direction:"column",onClick:f=>{f.stopPropagation(),e&&i(e)},onPointerOut:f=>{f.stopPropagation()},onPointerOver:f=>{f.stopPropagation()},children:[V.jsx("div",{className:"badge-wrapper",children:V.jsx(Ih,{type:(e==null?void 0:e.node_type)||""})}),e!=null&&e.name?V.jsx("span",{children:cp(e==null?void 0:e.name,20)}):null]}):V.jsxs(ZR,{className:rp(e==null?void 0:e.node_type,{selected:d}),color:t,fontColor:Ae.white,fontSize:l?64:20,onClick:f=>{f.stopPropagation(),e&&i(e)},onPointerOut:f=>{f.stopPropagation()},onPointerOver:f=>{f.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(e==null?void 0:e.node_type)||"",children:[!u&&!l?V.jsx("div",{className:"badge-wrapper",children:V.jsx(Ih,{type:(e==null?void 0:e.node_type)||""})}):null,e!=null&&e.name?e==null?void 0:e.name:V.jsx(V_,{rounded:u,size:d?60:52,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:e==null?void 0:e.node_type})]})})}):null},i_=y.memo(()=>{const{simulation:n,showSelectionGraph:e,selectedNode:t,selectionGraphData:s}=kt(pu(o=>o)),r=mu(),i=y.useMemo(()=>{const o=(n==null?void 0:n.nodes())||[];return(e?s.nodes:o).filter(u=>r.includes((u==null?void 0:u.ref_id)||"")||(t==null?void 0:t.ref_id)===(u==null?void 0:u.ref_id)).slice(0,vE).map(u=>{const h=ap(u.node_type||"",!0),d=new ce((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),f=o.filter(m=>m.ref_id&&bE(m,u)).map(m=>(m==null?void 0:m.ref_id)||"")||[];return V.jsx(JR,{color:h,position:d,relativeIds:f,userData:u},`node-badge-${u.ref_id}`)})},[n,e,s.nodes,r,t==null?void 0:t.ref_id]);return V.jsx(y.Fragment,{children:i.length?i:null},"node-badges")});i_.displayName="RelevanceBadges";const eD=({link:n,animated:e})=>{const t=y.useRef(null),s=Jn(),[r,i]=y.useState(new ce(0,0,0)),[o,a]=y.useState(new ce(0,0,0)),[c,l]=y.useState(8947848),u=kt(h=>h.selectionGraphData);return y.useEffect(()=>{var f,m,p,g,_,x;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===n.target||h===n.source);!n.onlyVisibleOnSelect||d?(i(new ce(((f=n.sourcePosition)==null?void 0:f.x)||0,((m=n.sourcePosition)==null?void 0:m.y)||0,((p=n.sourcePosition)==null?void 0:p.z)||0)),a(new ce(((g=n.targetPosition)==null?void 0:g.x)||0,((_=n.targetPosition)==null?void 0:_.y)||0,((x=n.targetPosition)==null?void 0:x.z)||0))):(i(new ce(0,0,0)),a(new ce(0,0,0))),l(d?n.color||__.children.segmentColor:s?5592405:8947848)},[s,n]),Nt(()=>{if(e&&t.current){const h=u.nodes.find(f=>f.ref_id===n.source),d=u.nodes.find(f=>f.ref_id===n.target);t.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),t.current.end.set((d==null?void 0:d.x)||0,(d==null?void 0:d.y)||0,(d==null?void 0:d.z)||0)}}),V.jsx(V.Fragment,{children:V.jsx(C1,{ref:t,color:"0xFFFFFF",end:o,start:r})})},tD=({links:n,simulation:e})=>{const t=y.useRef(null);return y.useEffect(()=>function(){t.current&&t.current.clear()},[t]),Nt(()=>{if(t.current){const s=e.nodes();t.current.children.forEach((i,o)=>{var u;const a=n[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=i.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),n.length?V.jsx("group",{ref:t,children:n.map(s=>V.jsx("mesh",{children:V.jsx(_o,{center:!0,sprite:!0,children:V.jsxs(nD,{direction:"row",justify:"center",onClick:r=>{r.stopPropagation()},onPointerOut:r=>{r.stopPropagation()},onPointerOver:r=>{r.stopPropagation()},children:[V.jsx("span",{children:s.edge_type}),V.jsx(Qn,{className:"icon",children:V.jsx(z_,{})})]})})},s.ref_id))}):null},nD=Ke(Qn)` + text-align: center; + + outline-offset: 0px; + background: rgba(0, 0, 0, 0.75); + color: #eee; + cursor: pointer; + transition: font-size 0.4s, outline 0.4s; + align-items: center; + justify-content: center; + font-family: Barlow; + font-size: 12px; + font-style: normal; + font-weight: 700; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); + + &:hover { + outline-offset: 4px; + span { + opacity: 0.1; + } + + .icon { + display: flex; + } + } + + .icon { + position: absolute; + width: 24px; + height: 24px; + /* bottom: 100%; */ + display: none; + color: #000; + border-radius: 40px; + justify-content: center; + align-items: center; + background: #ffffff; + color: #000; + border-radius: 100%; + font-size: 16px; + cursor: pointer; + transition: opacity 0.4s; + box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); + } + + .badge-wrapper { + position: absolute; + top: -7px; + left: -14px; + } +`;function sD(n){const e=y.useRef(n);y.useEffect(()=>{const t=Object.entries(n).reduce((s,[r,i])=>(e.current[r]!==i&&(s[r]=[e.current[r],i]),s),{});Object.keys(t).length>0&&console.log("Changed props:",t),e.current=n})}const rD=n=>{const e=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return n.replace(e,t=>/^[\d*#]$/.test(t)?t:"")},o_={metalness:.9,roughness:0},a_=new rc,c_=a_.load("noimage.jpeg");new oc({...o_,map:c_});const iD=.4;new oc({...o_,map:c_,transparent:!0,opacity:iD});const ia={},oD=n=>{const[e,t]=y.useState(null);return y.useEffect(()=>{var r;if(!n){t(null);return}const s=n;if((r=ia[s])!=null&&r.texture){t(ia[s].texture);return}a_.load(n,i=>{ia[s]={texture:i,material:new oc({map:i})},t(i)},void 0,()=>{t(null)})},[n]),y.useEffect(()=>()=>{e&&(Object.values(ia).some(r=>r.texture===e)||e.dispose())},[e]),{texture:e}};function aD(n){const e=cp(n,30),t=e.split(" ");if(t.length<=5)return e;const s=Math.ceil(t.length/3),r=s*2,i=t.slice(0,s).join(" "),o=t.slice(s,r).join(" "),a=t.slice(r).join(" ");return`${i} +${o} +${a}`}const Dh=y.memo(n=>{var v,b,T,E;const{node:e,hide:t,ignoreDistance:s,color:r}=n,i=y.useRef(null),o=y.useRef(null),a=y.useRef(null);sD(n);const c=y.useRef(new ce),{texture:l}=oD(((v=e.properties)==null?void 0:v.image_url)||""),{normalizedSchemasByType:u,getNodeKeysByType:h}=du(w=>w);Nt(({camera:w,clock:C})=>{const{selectedNode:S,hoveredNode:R,activeEdge:O}=kt.getState(),L=()=>{const W=c.current.setFromMatrixPosition(o.current.matrixWorld);o.current&&(o.current.visible=s?!0:W.distanceTo(w.position)<1500)};if(e.ref_id===(S==null?void 0:S.ref_id)||e.ref_id===(R==null?void 0:R.ref_id)||(O==null?void 0:O.target)===e.ref_id||(O==null?void 0:O.source)===e.ref_id){o.current&&(o.current.visible=!0);const W=3+.2*Math.sin(C.getElapsedTime()*2);a.current&&(a.current.visible=!0,a.current.scale.set(W,W,W));return}a.current&&(a.current.visible=!1),L()}),y.useEffect(()=>{o.current&&Fi.fromTo(o.current.scale,{x:1,y:1,z:1},{x:2,y:2,z:2,duration:1.5,yoyo:!0,repeat:1})},[o]);const d=(b=u[e.node_type])==null?void 0:b.primary_color,f=(T=u[e.node_type])==null?void 0:T.icon,m=d??r,g=(f?U_[f]:null)?f:"NodesIcon",_=h(e.node_type)||"",x=_&&(e!=null&&e.properties)?rD(String((e==null?void 0:e.properties[_])||"")):"",k={u_texture:{value:l},u_radius:{value:.5}};return V.jsx(wu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:e,children:V.jsxs("mesh",{ref:o,name:e.ref_id,userData:e,visible:!t,children:[V.jsxs("mesh",{ref:a,position:[0,0,-2],visible:!1,children:[V.jsx("circleGeometry",{args:[30,32]}),V.jsx("meshBasicMaterial",{color:m,opacity:.5,transparent:!0})]}),(E=e.properties)!=null&&E.image_url&&["Person","Episode","Guest","Host","Show"].includes(e.node_type)&&l?V.jsx(P_,{args:[10*2,10*2],scale:2,children:V.jsx("shaderMaterial",{fragmentShader:` + uniform sampler2D u_texture; + uniform float u_radius; + varying vec2 vUv; + + void main() { + vec2 center = vec2(0.5, 0.5); // Center of the circle + float dist = distance(vUv, center); + if (dist < u_radius) { + gl_FragColor = texture2D(u_texture, vUv); + } else { + discard; // Discard pixels outside the circle + } + } + `,uniforms:k,vertexShader:` + varying vec2 vUv; + void main() { + vUv = uv; + gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); + } + `})}):V.jsx(m1,{ref:i,name:"svg",onUpdate:w=>{w.traverse(C=>{C instanceof up&&(C.material=new vy({color:r}))})},position:[-15,15,0],scale:2,src:`svg-icons/${g}.svg`,strokeMaterial:{color:"yellow"},userData:e}),x&&V.jsx(op,{color:r,fillOpacity:1,name:"text",position:[0,-65,0],scale:20,userData:e,...R_,children:aD(x)})]})})},(n,e)=>n.hide===e.hide&&n.ignoreDistance===e.ignoreDistance&&n.node.ref_id===e.node.ref_id);Dh.displayName="TextNode";const l_=y.memo(()=>{const[n,e]=y.useState(null),{dataInitial:t}=Os(l=>l),s=Jn(),r=y.useRef(null),i=mu(),o=D_(t==null?void 0:t.nodes.length),{selectionGraphData:a,setSelectionData:c}=kt(pu(l=>l));return y.useEffect(()=>{const l=structuredClone((t==null?void 0:t.nodes)||[]),u=structuredClone((t==null?void 0:t.links)||[]);if(o===l.length)return;const h=l.filter(d=>d.ref_id===(s==null?void 0:s.ref_id)||i.includes((d==null?void 0:d.ref_id)||"")).map(d=>{const f=d.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...d,x:0,y:0,z:0,...f}});if(h){const d=u.filter(f=>h.some(m=>m.ref_id===f.target)&&h.some(m=>m.ref_id===f.source));c({nodes:h,links:d})}},[t,s,i,c,o]),y.useEffect(()=>{if(n||!a.nodes.length)return;const l=structuredClone(a.links),u=B_([]).numDimensions(2).stop().nodes(a.nodes).force("link",W_().links(l).id(h=>h.ref_id)).force("collide",q_().radius(()=>150).strength(1).iterations(1)).alpha(1).restart();e(u)},[a,n]),y.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),y.useEffect(()=>{n&&n.on("tick",()=>{r.current&&r.current.children.forEach((u,h)=>{const d=n.nodes()[h];d&&u.position.set(d.x,d.y,d.z)})})},[n]),V.jsxs(V.Fragment,{children:[V.jsx("group",{ref:r,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>V.jsx("mesh",{children:V.jsx(Dh,{color:"white",hide:!0,ignoreDistance:!0,node:l},l.ref_id||l.id)},l.ref_id))}),V.jsx(T1,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>V.jsx(eD,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),n&&V.jsx(tD,{links:a.links,simulation:n})]})});l_.displayName="SelectionDataNodes";const cD=200,lD=["#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"],u_=y.memo(()=>{const n=Jn(),e=H_(),t=mu(),{selectionGraphData:s,showSelectionGraph:r,setHoveredNode:i,setIsHovering:o}=kt(g=>g),a=sp(),c=Os(g=>g.dataInitial),l=go(g=>g.setTranscriptOpen),u=y.useCallback(g=>!!(r&&!s.nodes.find(_=>_.ref_id===g.ref_id)),[r,s]),h=y.useCallback(g=>{const _=g==null?void 0:g[0];_&&(l(!1),_.userData&&(u(_.userData)||kt.getState().setSelectedNode((_==null?void 0:_.userData)||null)))},[l,u]),d=y.useRef(null),f=y.useCallback(g=>{g.stopPropagation(),d.current&&(clearTimeout(d.current),d.current=null),e&&(o(!1),i(null))},[o,i,e]),m=y.useCallback(g=>{var k;const x=g.intersections.map(v=>v.object)[0];if(d.current&&(clearTimeout(d.current),d.current=null),(k=x==null?void 0:x.userData)!=null&&k.ref_id){const v=x.userData;u(v)||(g.stopPropagation(),d.current=setTimeout(()=>{o(!0),i(v)},cD))}},[i,u,o]),p=r&&!!n;return V.jsxs(p1,{filter:g=>g.filter(_=>{var x;return!!((x=_.userData)!=null&&x.ref_id)}),onChange:h,onPointerOut:f,onPointerOver:m,children:[V.jsx(i_,{}),V.jsx("group",{name:"simulation-3d-group__nodes",visible:!p,children:c==null?void 0:c.nodes.map(g=>{const _=!!n&&(t.includes(g.ref_id)||n.ref_id===g.ref_id),x=lD[a.indexOf(g.node_type)]||Ae.white;return V.jsxs("mesh",{name:"wr2",scale:g.scale||1,userData:g,children:[V.jsx("boxGeometry",{args:[40,40,40]}),V.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),V.jsx(Dh,{color:x,hide:p||_,ignoreDistance:!1,node:g},g.ref_id)]},g.ref_id)})}),V.jsx("group",{name:"simulation-3d-group__node-points",children:V.jsx(XR,{})}),p&&V.jsx(l_,{})]})});u_.displayName="Cubes";const uD={earthRef:null},hD=ep(n=>({...uD,setEarthRef:e=>n({earthRef:e})})),dD=new ce(0,0,0),fD=()=>{const n=y.useRef(null),e=y.useRef(null),{graphStyle:t,showSelectionGraph:s}=kt(a=>a),r=hD(a=>a.setEarthRef),i=Us("textures/earth/galaxy.png"),o=Us("textures/earth/clouds.png");return Nt(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(dD))}),y.useLayoutEffect(()=>{n.current&&r(n)},[r]),t!=="earth"||s?null:V.jsxs(V.Fragment,{children:[V.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[V.jsx("sphereGeometry",{args:[na,200,200]}),V.jsx(pD,{})]}),V.jsxs("mesh",{children:[V.jsx("sphereGeometry",{args:[na+2,200,200]}),V.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),V.jsxs("mesh",{children:[V.jsx("sphereGeometry",{args:[na*4,200,200]}),V.jsx("meshStandardMaterial",{map:i,opacity:.4,side:ml,transparent:!0})]}),V.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,na*3]})]})},pD=()=>{const n=Us("textures/earth/earth.jpeg"),e=Us("textures/earth/bump.jpeg"),t=Us("textures/earth/water.png"),s=y.useMemo(()=>new oc({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return V.jsx("meshStandardMaterial",{...s})},mD="C",gD=256,_D=256,yD={g:"LottieFiles AE 0.1.20"},vD=[{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}],bD="5.5.7",xD=60,wD=104,kD=0,TD=[{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}]}],ED={nm:mD,h:gD,w:_D,meta:yD,layers:vD,v:bD,fr:xD,op:wD,ip:kD,assets:TD},CD=({meshId:n})=>{const e=y.useRef(null);return y.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=y_.loadAnimation({container:t,animationData:ED,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),V.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},fl=()=>Math.floor(Math.random()*2001)-1e3,SD=()=>V.jsx(V.Fragment,{children:["a","b","c"].map(n=>{const e=fl(),t=fl(),s=fl();return V.jsx("mesh",{position:[e,t,s],children:V.jsx(_o,{center:!0,sprite:!0,children:V.jsx(OD,{children:V.jsx(CD,{meshId:n})})})},n)})}),OD=Ke.div` + border: 2px solid white; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + color: white; + font-size: 20px; +`,br=2e3,oa=I_*4,Kf=Object.values(M_).map(n=>n),AD=()=>{const n=y.useRef(null);Nt(()=>{var o,a,c,l,u;const r=(a=(o=n.current)==null?void 0:o.geometry.getAttribute("position"))==null?void 0:a.array,i=(l=(c=n.current)==null?void 0:c.geometry.getAttribute("velocity"))==null?void 0:l.array;if(r&&i){for(let h=0;hoa*oa){const v=Math.random()*Math.PI*2,b=Math.random()*Math.PI*2,T=Math.random()*oa;r[h]=Math.sin(v)*Math.cos(b)*T,r[h+1]=Math.sin(v)*Math.sin(b)*T,r[h+2]=Math.cos(v)*T}}((u=n.current)==null?void 0:u.geometry.getAttribute("position")).needsUpdate=!0}});const e=y.useMemo(()=>new Float32Array(br*3),[]),t=y.useMemo(()=>new Float32Array(br*3),[]);y.useEffect(()=>{const r=oa;for(let i=0;i{s.current&&n.current&&(s.current.setAttribute("position",new Fc(e,3)),s.current.setAttribute("velocity",new Fc(t,3)),n.current.geometry=s.current)},[e,t]),y.useEffect(()=>{if(s.current){const r=[];for(let i=0;i({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:n?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:n?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:n?"#ffffff66":"#5078f2",fontColor:n?"#ffffff66":"#fff"}}),PD=new ce,h_=y.memo(()=>{var w,C;const n=y.useRef(null),e=go(S=>S.setSidebarOpen),[t,s]=M.useState(null),{open:r}=$o("editNodeName"),{open:i}=$o("addEdgeToNode"),{open:o}=$o("mergeToNode"),{open:a}=$o("createBounty"),[c]=np(S=>[S.isAdmin]),[l]=Os(S=>[S.addNewNode]),u=Jn(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:f,setShowSelectionGraph:m}=kt(S=>S),p=by(),g=y.useCallback(async()=>{try{if(u!=null&&u.ref_id){const S=await v_(u==null?void 0:u.ref_id,d.nodes.length||0);S&&l(S)}}catch(S){console.error(S)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);Nt(()=>{_()});const _=y.useCallback(()=>{const S=h?d:p;if(n.current){const R=S==null?void 0:S.nodes.find(O=>O.ref_id===(u==null?void 0:u.ref_id));if(R){const O=PD.set(R==null?void 0:R.x,R==null?void 0:R.y,R==null?void 0:R.z);n.current.position.copy(O)}}},[u,h,d,p]),x=y.useMemo(()=>{const S=c?[{key:"control-key-1",colors:Ei(h).focus,icon:V.jsx(K_,{}),left:-80,className:"add",onClick:O=>{s(O.currentTarget)}},{key:"control-key-2",colors:Ei(h).focus,icon:V.jsx(Q_,{}),left:-40,className:"edit",onClick:()=>{r()}}]:[],R=[{key:"control-key-4",colors:Ei(h).focus,icon:V.jsx(b_,{}),left:0,className:"expand",onClick:()=>{const O=!h;m(O),O&&e(!0)}},{key:"control-key-5",colors:Ei(!0).close,icon:V.jsx(J_,{}),left:40,className:"exit",onClick:()=>{g()}},{key:"control-key-6",colors:Ei(!0).close,icon:V.jsx(x_,{}),left:40,className:"exit",onClick:()=>{m(!1),f(null)}}];return[...S,...R].map((O,L)=>({...O,left:-80+L*40}))},[c,h,r,m,e,g,f]);if(!u)return null;const k=()=>{s(null)},v=!!t,b=v?"simple-popover":void 0,T=((w=u==null?void 0:u.node_type)==null?void 0:w.toLowerCase())==="repository",E=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return V.jsx("group",{ref:n,children:V.jsxs(_o,{center:!0,className:"control-panel",onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),onPointerDown:S=>S.stopPropagation(),onPointerOut:S=>S.stopPropagation(),onPointerOver:S=>S.stopPropagation(),onPointerUp:S=>S.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[x.map(S=>V.jsx(RD,{backgroundColor:S.colors.backgroundColor,borderColor:S.colors.borderColor,className:S.className,fontColor:S.colors.fontColor,left:S.left,onClick:R=>{R.stopPropagation(),S.onClick(R)},children:S.icon},S.key)),E&&V.jsx(MD,{left:2,onClick:()=>{a()},children:"Create Test"}),V.jsx(DD,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:b,onClose:k,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:T?V.jsxs(V.Fragment,{children:[V.jsxs(xr,{"data-testid":"generate_tests",onClick:()=>{k()},children:[V.jsx(Qf,{children:V.jsx(Nh,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),V.jsxs(xr,{"data-testid":"add_comments",onClick:()=>{k()},children:[V.jsxs(Qf,{children:[V.jsx(Y_,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),V.jsxs(xr,{"data-testid":"review_bugs",onClick:()=>{k()},children:[V.jsx(X_,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),V.jsxs(xr,{"data-testid":"find_vulnerabilities",onClick:()=>{k()},children:[V.jsx(Z_,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):V.jsxs(V.Fragment,{children:[V.jsxs(xr,{"data-testid":"merge",onClick:()=>{o(),k()},children:[V.jsx(G_,{"data-testid":"MergeIcon"})," Merge"]}),V.jsxs(xr,{"data-testid":"add_edge",onClick:()=>{i(),k()},children:[V.jsx(Nh,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});h_.displayName="NodeControls";const RD=Ke.div` + position: fixed; + top: -60px; + left: ${n=>-7+n.left}px; + width: 24px; + height: 24px; + + border-radius: 40px; + display: flex; + justify-content: center; + align-items: center; + background: ${n=>n.backgroundColor?n.backgroundColor:"#000000bb"}; + color: ${n=>n.fontColor?n.fontColor:"#ffffff"}; + border-radius: 100%; + font-size: 16px; + cursor: pointer; + transition: opacity 0.4s; + box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); +`,xr=Ke(Qn).attrs({direction:"row",px:12,py:8})` + display: flex; + align-items: center; + justify-content: start; + gap: 12px; + cursor: pointer; + background: ${Ae.BUTTON1}; + color: ${Ae.white}; + + &:hover { + background: ${Ae.BUTTON1_HOVER}; + color: ${Ae.GRAY3}; + } +`,DD=Ke(ey)` + && { + z-index: 9999; + } + .MuiPaper-root { + min-width: 149px; + color: ${Ae.GRAY3}; + box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2); + border-radius: 6px; + z-index: 1; + font-family: Barlow; + font-size: 14px; + font-weight: 500; + background-color: transparent !important; + margin: 2px; + } +`,Qf=Ke.div` + display: flex; + align-items: center; + justify-content: start; + + svg { + margin-top: 1px; + width: 12px; + height: 12px; + } +`,MD=Ke.div` + position: fixed; + top: 40px; + left: ${n=>-53+n.left}px; + width: 100px; + padding: 6px; + border-radius: 4px; + display: flex; + justify-content: center; + align-items: center; + background: ${Ae.createTestButton}; + color: ${Ae.black}; + font-size: 14px; + font-family: Barlow; + font-weight: 600; + cursor: pointer; + &:hover { + transform: scale(1.05); + } +`,d_=y.memo(()=>V.jsx(V.Fragment,{children:V.jsx(h_,{})}));d_.displayName="NodeDetailsPanel";const ID=()=>{const{dataInitial:n,isLoadingNew:e,isFetching:t,dataNew:s,resetDataNew:r}=Os(p=>p),i=y.useRef(null),o=y.useRef(!1),{normalizedSchemasByType:a}=du(p=>p),c=y.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:f,setGraphRadius:m}=kt(p=>p);return y.useEffect(()=>{if(!s)return;const p=s.nodes||[],g=s.links||[],_=structuredClone(p),x=structuredClone(g);if(u){const k=w_.isEqual(s,n);d.addNodesAndLinks(_,x,k)}u||h(_,x),r()},[l,s,u,h,r,d,n]),y.useEffect(()=>{u&&d.setForces()},[f,d,u]),y.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const p=u.nodes().map(x=>new ce(x.x,x.y,x.z)),g=new Fh().setFromPoints(p),_=new Lh;g.getBoundingSphere(_),Math.min(5e3,_.radius)}if(i.current){const p=i.current.getObjectByName("simulation-3d-group__nodes"),g=i.current.getObjectByName("simulation-3d-group__node-points"),_=i.current.getObjectByName("simulation-3d-group__connections");if(p&&p.children.forEach((x,k)=>{const v=u.nodes()[k];v&&x.position.set(v.x,v.y,v.z)}),g&&g.children[0].children.forEach((x,k)=>{const v=u.nodes()[k];v&&x.position.set(v.x,v.y,v.z)}),u.alpha()>1)return;_&&(c.current.clear(),_.children.forEach((x,k)=>{var T;const v=x.children[0],b=x.children[1];if(v instanceof ip){const E=v,w=n==null?void 0:n.links[k];if(w){const C=u.nodes().find(K=>K.ref_id===w.source),S=u.nodes().find(K=>K.ref_id===w.target);if(!C||!S){console.warn(`Missing source or target node for link: ${w==null?void 0:w.ref_id}`);return}const{x:R,y:O,z:L}=C,{x:j,y:W,z:B}=S;c.current.set(w.ref_id,{sx:R,sy:O,sz:L,tx:j,ty:W,tz:B});const z=new ce((R+j)/2,(O+W)/2,(L+B)/2);b.position.set(z.x,z.y,z.z);const U=((T=a[C.node_type])==null?void 0:T.primary_color)||"white";E.geometry.setPositions([R,O,L,j,W,B]);const{material:X}=E;X.color=new ic(U),X.transparent=!0,X.opacity=.3}}}))}}),u.on("end",()=>{const p=u.nodes().map(k=>(k.fx=k.x,k.fy=k.y,k.fz=k.z,new ce(k.x,k.y,k.z))),g=new Fh().setFromPoints(p),_=new Lh;g.getBoundingSphere(_);const x=_.radius;m(x*1.5),o.current=!1}))},[n,u,m,a]),u?V.jsxs("group",{ref:i,children:[V.jsx(u_,{}),f==="earth"&&V.jsx(fD,{}),V.jsx(AD,{}),(e||t)&&V.jsx(SD,{}),f!=="earth"&&V.jsx(r_,{linksPosition:c.current}),V.jsx(d_,{})]}):null},ND=({fullSize:n=!0})=>{const e=go(t=>t.sidebarIsOpen);return V.jsx($D,{align:"center",className:rp({"sidebar-is-open":e&&!n}),justify:"center",children:V.jsx(xy,{color:Ae.SECONDARY_BLUE,size:64})})},$D=Ke(Qn)` + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + background-color: ${Ae.black}; + z-index: 1; +`,FD=()=>V.jsx(_o,{children:V.jsx(u1,{})}),LD=()=>{const{universeColor:n}=aE("universe",{universeColor:Ae.black}),e=Jn();return y.useMemo(()=>e!=null&&e.node_type?ap(e.node_type):yE,[e]),V.jsxs(V.Fragment,{children:[V.jsx("color",{args:[n],attach:"background"}),V.jsx(F_,{}),V.jsx(PP,{}),V.jsxs(R1,{children:[!1,V.jsx(ID,{})]})]})};let pl=null;const jD={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Di.x,Di.y,Di.z]},VD=()=>{const[n,e,t]=[fs(a=>a.setIsUserScrollingOnHtmlPanel),fs(a=>a.setIsUserScrolling),fs(a=>a.setUserMovedCamera)],s=Os(a=>a.isFetching),r=go(a=>a.universeQuestionIsOpen),i=y.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;pl&&clearTimeout(pl),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{e(!1),n(!1)},200)},[e,n,t]),o=y.useCallback(a=>k_(a,"threeState"),[]);return V.jsxs(zD,{children:[V.jsxs(y.Suspense,{fallback:null,children:[V.jsx(Y0,{hidden:!0,isRoot:!0}),V.jsxs(N_,{camera:jD,id:"universe-canvas",onCreated:o,onWheel:i,children:[T_&&V.jsx($_,{position:"top-right",style:{top:"80px"}}),V.jsxs(y.Suspense,{fallback:V.jsx(FD,{}),children:[V.jsx(S1,{}),V.jsx(O1,{}),V.jsx(A1,{}),V.jsx(LD,{})]})]})]}),r&&V.jsx(lE,{}),s&&V.jsx(ND,{fullSize:!1}),V.jsx(ty,{})]})},zD=Ke(Qn)` + flex: 1 1 100%; + position: relative; +`,AM=y.memo(VD);export{AM as Universe}; diff --git a/build/assets/index-3e8cb7c2.js b/build/assets/index-acbc4510.js similarity index 63% rename from build/assets/index-3e8cb7c2.js rename to build/assets/index-acbc4510.js index 01554f3ab..969b08b37 100644 --- a/build/assets/index-3e8cb7c2.js +++ b/build/assets/index-acbc4510.js @@ -1,4 +1,4 @@ -import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bt as C,bu as R,aY as I}from"./index-f2cb870a.js";import{aP as z,i as D,p as E}from"./index-d6936fc6.js";import{S as L}from"./Skeleton-a2b376e5.js";import{C as T}from"./ClipLoader-83efcb6b.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(z,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` +import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bt as C,bu as R,aY as I}from"./index-794e801a.js";import{aJ as z,i as D,n as E}from"./index-d39d2c64.js";import{S as L}from"./Skeleton-8352c4ee.js";import{C as T}from"./ClipLoader-548a512b.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(z,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; @@ -19,7 +19,7 @@ import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bt as C,bu as R,a path:nth-child(3) { color: #6b7a8d; } -`,W=()=>{const{close:p}=j("removeNode"),{close:h}=j("editNodeName"),[x,d]=l.useState(!1),[g]=D(s=>[s.setSelectedNode]),[v]=$(s=>[s.removeNode]),[N,y]=l.useState(!1),[n,b]=l.useState(),[a,S]=l.useState(),o=E(),u=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:r}=await C({search:o==null?void 0:o.name}),f=r.find(m=>m.name===o.name);S(f)}else b(o)}catch(r){console.error(r)}finally{y(!1)}}})()},[o]);const k=async()=>{d(!0);try{g(null),u(),h()}catch(s){console.warn(s)}finally{d(!1)}},B=async()=>{let s="";const r=n||a;if(!r)return;r!=null&&r.ref_id&&(s=r.ref_id),d(!0);const f=o==null?void 0:o.ref_id;try{await R(s),v(f),g(null),u(),h()}catch(m){console.warn(m)}finally{d(!1)}};return e.jsxs(_,{children:[e.jsx(G,{nodeName:(n==null?void 0:n.name)||(a==null?void 0:a.name)||""}),N?e.jsx(L,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:u,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(H,{color:"secondary",disabled:x||!n&&!a,onClick:n||a?B:k,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(O,{children:e.jsx(T,{color:t.lightGray,size:12})})]})]})]})},_=i(c)` +`,W=()=>{const{close:p}=j("removeNode"),{close:h}=j("editNodeName"),[x,d]=l.useState(!1),[g]=D(s=>[s.setSelectedNode]),[v]=$(s=>[s.removeNode]),[N,y]=l.useState(!1),[r,b]=l.useState(),[a,S]=l.useState(),o=E(),u=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:n}=await C({search:o==null?void 0:o.name}),f=n.find(m=>m.name===o.name);S(f)}else b(o)}catch(n){console.error(n)}finally{y(!1)}}})()},[o]);const k=async()=>{d(!0);try{g(null),u(),h()}catch(s){console.warn(s)}finally{d(!1)}},B=async()=>{let s="";const n=r||a;if(!n)return;n!=null&&n.ref_id&&(s=n.ref_id),d(!0);const f=o==null?void 0:o.ref_id;try{await R(s),v(f),g(null),u(),h()}catch(m){console.warn(m)}finally{d(!1)}};return e.jsxs(_,{children:[e.jsx(G,{nodeName:(r==null?void 0:r.name)||(a==null?void 0:a.name)||""}),N?e.jsx(L,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:u,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(H,{color:"secondary",disabled:x||!r&&!a,onClick:r||a?B:k,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(J,{children:e.jsx(T,{color:t.lightGray,size:12})})]})]})]})},_=i(c)` padding: 4px 12px 16px; `,F=i(w)` && { @@ -45,6 +45,6 @@ import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bt as C,bu as R,a background-color: ${t.primaryRed}; } } -`,O=i.span` +`,J=i.span` margin-top: 2px; -`,K=()=>e.jsx(I,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(W,{})});export{K as RemoveNodeModal}; +`,P=()=>e.jsx(I,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(W,{})});export{P as RemoveNodeModal}; diff --git a/build/assets/index-9c5cc1d2.js b/build/assets/index-b8e1ee43.js similarity index 95% rename from build/assets/index-9c5cc1d2.js rename to build/assets/index-b8e1ee43.js index 3a6403713..c82575166 100644 --- a/build/assets/index-9c5cc1d2.js +++ b/build/assets/index-b8e1ee43.js @@ -1,4 +1,4 @@ -import{s as v,a as B,T as F,F as r,r as f,ao as $,j as e,aV as J,aW as K,ba as Q,B as E,bb as U,q as X,bc as Z,e as D,t as N,N as O,aY as ee,w as te,bt as ne,bx as re}from"./index-f2cb870a.js";import{p as V}from"./index-83069401.js";import{C as W}from"./ClipLoader-83efcb6b.js";import{p as Y}from"./index-d6936fc6.js";import{A as G}from"./index-d8ea0c8b.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-9c942ca6.js";import"./Stack-a2ecd800.js";import"./createSvgIcon-968d1259.js";import"./TextareaAutosize-449c264d.js";const q=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=$();f.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{a(""),l("sourceType")},b=!t||h||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:s(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:Q}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(F)` +import{s as v,a as B,T as F,F as r,r as f,ao as $,j as e,aV as J,aW as K,ba as Q,B as E,bb as U,q as X,bc as Z,e as D,t as N,N as O,aY as ee,v as te,bt as ne,bx as re}from"./index-794e801a.js";import{p as V}from"./index-086ee5d7.js";import{C as W}from"./ClipLoader-548a512b.js";import{n as Y}from"./index-d39d2c64.js";import{A as G}from"./index-f6ae5354.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-df70f22b.js";import"./Stack-0bfda087.js";import"./createSvgIcon-72fbec8f.js";import"./TextareaAutosize-cee09ef8.js";const q=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=$();f.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{a(""),l("sourceType")},b=!t||h||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:s(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:Q}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-63bb2002.js b/build/assets/index-c5a5c142.js similarity index 67% rename from build/assets/index-63bb2002.js rename to build/assets/index-c5a5c142.js index a28add447..42a331098 100644 --- a/build/assets/index-63bb2002.js +++ b/build/assets/index-c5a5c142.js @@ -1,8 +1,8 @@ -import{s as a,j as e,F as s,aV as g,aW as j,B as w,T as i,a as n,e as S,t as y,r as m,aU as k,aY as F,w as v,A as B}from"./index-f2cb870a.js";import{aW as T}from"./index-d6936fc6.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(W,{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"})})]}),W=a(i)` +import{s as a,j as e,F as s,aV as g,aW as j,B as w,T as i,a as n,e as S,t as y,r as m,aU as k,aY as v,v as F,z as B}from"./index-794e801a.js";import{aO as T}from"./index-d39d2c64.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'; -`,z=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(C,{children:e.jsx(T,{})}),e.jsx(M,{children:"We've Got Your Feedback"}),e.jsx($,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),C=a.div` +`,C=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(M,{children:e.jsx(T,{})}),e.jsx(W,{children:"We've Got Your Feedback"}),e.jsx($,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),M=a.div` margin-bottom: 20px; width: 50px; height: 50px; @@ -17,7 +17,7 @@ import{s as a,j as e,F as s,aV as g,aW as j,B as w,T as i,a as n,e as S,t as y,r circle { color: ${n.SUCESS}; } -`,M=a(i)` +`,W=a(i)` font-size: 22px; font-weight: 700; font-family: 'Barlow'; @@ -31,4 +31,4 @@ import{s as a,j as e,F as s,aV as g,aW as j,B as w,T as i,a as n,e as S,t as y,r font-weight: 400; color: ${n.GRAY6}; padding-top: 10px; -`,A=async r=>{try{const t=await B.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},R=()=>{const{close:r,visible:t}=S("feedback"),o=y({mode:"onChange"}),{watch:u,reset:c}=o,[x,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=u("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await A(p),k("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(F,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(v,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:x?e.jsx(z,{}):e.jsx(E,{allowNextStep:h})})})})};export{R as UserFeedBackModal}; +`,I=async r=>{try{const t=await B.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},R=()=>{const{close:r,visible:t}=S("feedback"),o=y({mode:"onChange"}),{watch:u,reset:c}=o,[x,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=u("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),k("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(v,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(F,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:x?e.jsx(C,{}):e.jsx(E,{allowNextStep:h})})})})};export{R as UserFeedBackModal}; diff --git a/build/assets/index-21017702.js b/build/assets/index-cf1b42c2.js similarity index 77% rename from build/assets/index-21017702.js rename to build/assets/index-cf1b42c2.js index 44ee0e020..bfe613c99 100644 --- a/build/assets/index-21017702.js +++ b/build/assets/index-cf1b42c2.js @@ -1,17 +1,17 @@ -import{as as He,H as Tr,j as V,s as zn,a as Bn,r as Un,e as vt,k as zr,b as Lr,u as Or,D as Dr,F as fe,T as Ft,B as vr,c as Fr,aY as Rr}from"./index-f2cb870a.js";import{d as Br,a_ as Nr,a$ as Mr}from"./index-d6936fc6.js";function _r(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur={};function Ue(n,e){return((e||Ur).jsx?Hr:jr).test(n)}const Vr=/[ \t\n\f\r]/g;function qr(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(Vr,"")===""}class jn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function Rt(n,e){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` -`,Qe="/",Xe="*",Sn="",pi="comment",fi="declaration",hi=function(n,e){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];e=e||{};var t=1,r=1;function i(y){var k=y.match(ri);k&&(t+=k.length);var I=y.lastIndexOf(ci);r=~I?y.length-I:r+y.length}function l(){var y={line:t,column:r};return function(k){return k.position=new o(y),s(),k}}function o(y){this.start=y,this.end={line:t,column:r},this.source=e.source}o.prototype.content=n;function a(y){var k=new Error(e.source+":"+t+":"+r+": "+y);if(k.reason=y,k.filename=e.source,k.line=t,k.column=r,k.source=n,!e.silent)throw k}function u(y){var k=y.exec(n);if(k){var I=k[0];return i(I),n=n.slice(I.length),k}}function s(){u(ii)}function c(y){var k;for(y=y||[];k=f();)k!==!1&&y.push(k);return y}function f(){var y=l();if(!(Qe!=n.charAt(0)||Xe!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(Xe!=n.charAt(k)||Qe!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var I=n.slice(2,k-2);return r+=2,i(I),n=n.slice(k),r+=2,y({type:pi,comment:I})}}function d(){var y=l(),k=u(li);if(k){if(f(),!u(oi))return a("property missing ':'");var I=u(ai),w=y({type:fi,property:Ye(k[0].replace(We,Sn)),value:I?Ye(I[0].replace(We,Sn)):Sn});return u(ui),w}}function p(){var y=[];c(y);for(var k;k=d();)k!==!1&&(y.push(k),c(y));return y}return s(),p()};function Ye(n){return n?n.replace(si,Sn):Sn}var mi=He&&He.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Vt,"__esModule",{value:!0});var di=mi(hi);function gi(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,di.default)(n),i=typeof e=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?e(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var Ke=Vt.default=gi;const yi=Ke.default||Ke,qt=$t("end"),Ee=$t("start");function $t(n){return e;function e(t){const r=t&&t.position&&t.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xi(n){const e=Ee(n),t=qt(n);if(e&&t)return{start:e,end:t}}function Nn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ge(n.position):"start"in n||"end"in n?Ge(n):"line"in n||"column"in n?de(n):""}function de(n){return Je(n&&n.line)+":"+Je(n&&n.column)}function Ge(n){return de(n&&n.start)+"-"+de(n&&n.end)}function Je(n){return n&&typeof n=="number"?n:1}class K extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof e=="string"?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Nn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Ie={}.hasOwnProperty,ki=new Map,bi=/[A-Z]/g,wi=/-([a-z])/g,Si=new Set(["table","tbody","thead","tfoot","tr"]),Ci=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ei(n,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Di(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Oi(t,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ce:ei,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=Qt(i,n,void 0);return l&&typeof l!="string"?l:i.create(n,i.Fragment,{children:l||void 0},void 0)}function Qt(n,e,t){if(e.type==="element")return Ii(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return Ai(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Ti(n,e,t);if(e.type==="mdxjsEsm")return Pi(n,e);if(e.type==="root")return zi(n,e,t);if(e.type==="text")return Li(n,e)}function Ii(n,e,t){const r=n.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=Yt(n,e.tagName,!1),o=vi(n,e);let a=Pe(n,e);return Si.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!qr(u):!0})),Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function Ai(n,e){if(e.data&&e.data.estree&&n.evaluater){const r=e.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}_n(n,e.position)}function Pi(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);_n(n,e.position)}function Ti(n,e,t){const r=n.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=e.name===null?n.Fragment:Yt(n,e.name,!0),o=Fi(n,e),a=Pe(n,e);return Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function zi(n,e,t){const r={};return Ae(r,Pe(n,e)),n.create(e,n.Fragment,r,t)}function Li(n,e){return e.value}function Xt(n,e,t,r){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(e.node=r)}function Ae(n,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(n.children=t)}}function Oi(n,e,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:e;return a?s(l,o,a):s(l,o)}}function Di(n,e){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=Ee(r);return e(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function vi(n,e){const t={};let r,i;for(i in e.properties)if(i!=="children"&&Ie.call(e.properties,i)){const l=Ri(n,i,e.properties[i]);if(l){const[o,a]=l;n.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ci.has(e.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Fi(n,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,n.evaluater.evaluateExpression(a.argument))}else _n(n,e.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const a=r.value.data.estree.body[0];a.type,l=n.evaluater.evaluateExpression(a.expression)}else _n(n,e.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Pe(n,e){const t=[];let r=-1;const i=n.passKeys?new Map:ki;for(;++ri?0:i+e:e=e>i?i:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),n.splice(...o);else for(t&&n.splice(e,t);l0?(pn(n,n.length,0,e),n):e}const et={}.hasOwnProperty;function qi(n){const e={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Tn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qi=xn(/\p{P}/u),cn=xn(/[A-Za-z]/),en=xn(/[\dA-Za-z]/),Xi=xn(/[#-'*+\--9=?A-Z^-~]/);function ge(n){return n!==null&&(n<32||n===127)}const ye=xn(/\d/),Yi=xn(/[\dA-Fa-f]/),Jt=xn(/[!-/:-@[-`{-~]/);function T(n){return n!==null&&n<-2}function J(n){return n!==null&&(n<0||n===32)}function B(n){return n===-2||n===-1||n===32}function Ki(n){return Jt(n)||Qi(n)}const Gi=xn(/\s/);function xn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function On(n){const e=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const a=n.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(e.push(n.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return e.join("")+n.slice(r)}function j(n,e,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return B(u)?(n.enter(t),a(u)):e(u)}function a(u){return B(u)&&l++o))return;const R=e.events.length;let q=R,M,H;for(;q--;)if(e.events[q][0]==="exit"&&e.events[q][1].type==="chunkFlow"){if(M){H=e.events[q][1].end;break}M=!0}for(w(r),x=R;xC;){const O=t[D];e.containerState=O[1],O[0].exit.call(e,n)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,e.containerState._closeFlow=void 0}}function tl(n,e,t){return j(n,n.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rt(n){if(n===null||J(n)||Gi(n))return 1;if(Ki(n))return 2}function ze(n,e,t){const r=[];let i=-1;for(;++i1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),d=Object.assign({},n[t][1].start);it(f,-u),it(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[t][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=tn(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=tn(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=tn(s,ze(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=tn(s,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",i,e]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,s=tn(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,pn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&B(x)?j(n,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||T(x)?n.check(lt,k,D)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||T(x)?(n.exit("codeFlowValue"),E(x)):(n.consume(x),C)}function D(x){return n.exit("codeFenced"),e(x)}function O(x,R,q){let M=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),B(F)?j(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===a?(x.enter("codeFencedFenceSequence"),U(F)):q(F)}function U(F){return F===a?(M++,x.consume(F),U):M>=o?(x.exit("codeFencedFenceSequence"),B(F)?j(x,$,"whitespace")(F):$(F)):q(F)}function $(F){return F===null||T(F)?(x.exit("codeFencedFence"),R(F)):q(F)}}}function ml(n,e,t){const r=this;return i;function i(o){return o===null?t(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const re={name:"codeIndented",tokenize:gl},dl={tokenize:yl,partial:!0};function gl(n,e,t){const r=this;return i;function i(s){return n.enter("codeIndented"),j(n,l,"linePrefix",4+1)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?n.attempt(dl,o,u)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function u(s){return n.exit("codeIndented"),e(s)}}function yl(n,e,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):j(n,l,"linePrefix",4+1)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):T(o)?i(o):t(o)}}const xl={name:"codeText",tokenize:wl,resolve:kl,previous:bl};function kl(n){let e=n.length-4,t=3,r,i;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[e][1].type==="lineEnding"||n[e][1].type==="space")){for(r=t;++r=4?e(o):n.interrupt(r.parser.constructs.flow,t,e)(o)}}function rr(n,e,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),d):w===null||w===32||w===41||ge(w)?t(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),k(w))}function d(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),e):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(n.exit("chunkString"),n.exit(a),d(w)):w===null||w===60||T(w)?t(w):(n.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(n.consume(w),p):p(w)}function k(w){return!c&&(w===null||w===41||J(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),e(w)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),e):T(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(n.exit("chunkString"),c(p)):(n.consume(p),u||(u=!B(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function lr(n,e,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(n.enter(r),n.enter(i),n.consume(d),n.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(n.enter(i),n.consume(d),n.exit(i),n.exit(r),e):(n.enter(l),s(d))}function s(d){return d===o?(n.exit(l),u(o)):d===null?t(d):T(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),j(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(n.exit("chunkString"),s(d)):(n.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(n.consume(d),c):c(d)}}function Mn(n,e){let t;return r;function r(i){return T(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):B(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const Tl={name:"definition",tokenize:Ll},zl={tokenize:Ol,partial:!0};function Ll(n,e,t){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return ir.call(r,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Tn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),u):t(p)}function u(p){return J(p)?Mn(n,s)(p):s(p)}function s(p){return rr(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(zl,f,f)(p)}function f(p){return B(p)?j(n,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(n.exit("definition"),r.parser.defined.push(i),e(p)):t(p)}}function Ol(n,e,t){return r;function r(a){return J(a)?Mn(n,i)(a):t(a)}function i(a){return lr(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return B(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?e(a):t(a)}}const Dl={name:"hardBreakEscape",tokenize:vl};function vl(n,e,t){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return T(l)?(n.exit("hardBreakEscape"),e(l)):t(l)}}const Fl={name:"headingAtx",tokenize:Bl,resolve:Rl};function Rl(n,e){let t=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),t-2>r&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&n[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[t][1].end},l={type:"chunkText",start:n[r][1].start,end:n[t][1].end,contentType:"text"},pn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function Bl(n,e,t){let r=0;return i;function i(c){return n.enter("atxHeading"),l(c)}function l(c){return n.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(n.consume(c),o):c===null||J(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(n.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(n.exit("atxHeading"),e(c)):B(c)?j(n,a,"whitespace")(c):(n.enter("atxHeadingText"),s(c))}function u(c){return c===35?(n.consume(c),u):(n.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||J(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),s)}}const Nl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],Ml={name:"htmlFlow",tokenize:Ul,resolveTo:Hl,concrete:!0},_l={tokenize:ql,partial:!0},jl={tokenize:Vl,partial:!0};function Hl(n){let e=n.length;for(;e--&&!(n[e][0]==="enter"&&n[e][1].type==="htmlFlow"););return e>1&&n[e-2][1].type==="linePrefix"&&(n[e][1].start=n[e-2][1].start,n[e+1][1].start=n[e-2][1].start,n.splice(e-2,2)),n}function Ul(n,e,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(m),f}function f(m){return m===33?(n.consume(m),d):m===47?(n.consume(m),l=!0,k):m===63?(n.consume(m),i=3,r.interrupt?e:h):cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(n.consume(m),i=2,p):m===91?(n.consume(m),i=5,a=0,y):cn(m)?(n.consume(m),i=4,r.interrupt?e:h):t(m)}function p(m){return m===45?(n.consume(m),r.interrupt?e:h):t(m)}function y(m){const an="CDATA[";return m===an.charCodeAt(a++)?(n.consume(m),a===an.length?r.interrupt?e:A:y):t(m)}function k(m){return cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const an=m===47,kn=o.toLowerCase();return!an&&!l&&at.includes(kn)?(i=1,r.interrupt?e(m):A(m)):Nl.includes(o.toLowerCase())?(i=6,an?(n.consume(m),w):r.interrupt?e(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||en(m)?(n.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(n.consume(m),r.interrupt?e:A):t(m)}function E(m){return B(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||cn(m)?(n.consume(m),D):B(m)?(n.consume(m),C):H(m)}function D(m){return m===45||m===46||m===58||m===95||en(m)?(n.consume(m),D):O(m)}function O(m){return m===61?(n.consume(m),x):B(m)?(n.consume(m),O):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(n.consume(m),u=m,R):B(m)?(n.consume(m),x):q(m)}function R(m){return m===u?(n.consume(m),u=null,M):m===null||T(m)?t(m):(n.consume(m),R)}function q(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?O(m):(n.consume(m),q)}function M(m){return m===47||m===62||B(m)?C(m):t(m)}function H(m){return m===62?(n.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):B(m)?(n.consume(m),P):t(m)}function A(m){return m===45&&i===2?(n.consume(m),Y):m===60&&i===1?(n.consume(m),Q):m===62&&i===4?(n.consume(m),on):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),fn):T(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(_l,hn,U)(m)):m===null||T(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(jl,$,hn)(m)}function $(m){return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),F}function F(m){return m===null||T(m)?U(m):(n.enter("htmlFlowData"),A(m))}function Y(m){return m===45?(n.consume(m),h):A(m)}function Q(m){return m===47?(n.consume(m),o="",ln):A(m)}function ln(m){if(m===62){const an=o.toLowerCase();return at.includes(an)?(n.consume(m),on):A(m)}return cn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),ln):A(m)}function fn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),on):m===45&&i===2?(n.consume(m),h):A(m)}function on(m){return m===null||T(m)?(n.exit("htmlFlowData"),hn(m)):(n.consume(m),on)}function hn(m){return n.exit("htmlFlow"),e(m)}}function Vl(n,e,t){const r=this;return i;function i(o){return T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function ql(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Gn,e,t)}}const $l={name:"htmlText",tokenize:Wl};function Wl(n,e,t){const r=this;let i,l,o;return a;function a(h){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(h),u}function u(h){return h===33?(n.consume(h),s):h===47?(n.consume(h),O):h===63?(n.consume(h),C):cn(h)?(n.consume(h),q):t(h)}function s(h){return h===45?(n.consume(h),c):h===91?(n.consume(h),l=0,y):cn(h)?(n.consume(h),E):t(h)}function c(h){return h===45?(n.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(n.consume(h),d):T(h)?(o=f,Q(h)):(n.consume(h),f)}function d(h){return h===45?(n.consume(h),p):f(h)}function p(h){return h===62?Y(h):h===45?d(h):f(h)}function y(h){const on="CDATA[";return h===on.charCodeAt(l++)?(n.consume(h),l===on.length?k:y):t(h)}function k(h){return h===null?t(h):h===93?(n.consume(h),I):T(h)?(o=k,Q(h)):(n.consume(h),k)}function I(h){return h===93?(n.consume(h),w):k(h)}function w(h){return h===62?Y(h):h===93?(n.consume(h),w):k(h)}function E(h){return h===null||h===62?Y(h):T(h)?(o=E,Q(h)):(n.consume(h),E)}function C(h){return h===null?t(h):h===63?(n.consume(h),D):T(h)?(o=C,Q(h)):(n.consume(h),C)}function D(h){return h===62?Y(h):C(h)}function O(h){return cn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||en(h)?(n.consume(h),x):R(h)}function R(h){return T(h)?(o=R,Q(h)):B(h)?(n.consume(h),R):Y(h)}function q(h){return h===45||en(h)?(n.consume(h),q):h===47||h===62||J(h)?M(h):t(h)}function M(h){return h===47?(n.consume(h),Y):h===58||h===95||cn(h)?(n.consume(h),H):T(h)?(o=M,Q(h)):B(h)?(n.consume(h),M):Y(h)}function H(h){return h===45||h===46||h===58||h===95||en(h)?(n.consume(h),H):P(h)}function P(h){return h===61?(n.consume(h),A):T(h)?(o=P,Q(h)):B(h)?(n.consume(h),P):M(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(n.consume(h),i=h,U):T(h)?(o=A,Q(h)):B(h)?(n.consume(h),A):(n.consume(h),$)}function U(h){return h===i?(n.consume(h),i=void 0,F):h===null?t(h):T(h)?(o=U,Q(h)):(n.consume(h),U)}function $(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?M(h):(n.consume(h),$)}function F(h){return h===47||h===62||J(h)?M(h):t(h)}function Y(h){return h===62?(n.consume(h),n.exit("htmlTextData"),n.exit("htmlText"),e):t(h)}function Q(h){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),ln}function ln(h){return B(h)?j(n,fn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fn(h)}function fn(h){return n.enter("htmlTextData"),o(h)}}const Le={name:"labelEnd",tokenize:Jl,resolveTo:Gl,resolveAll:Kl},Ql={tokenize:Zl},Xl={tokenize:no},Yl={tokenize:eo};function Kl(n){let e=-1;for(;++e=3&&(s===null||T(s))?(n.exit("thematicBreak"),e(s)):t(s)}function u(s){return s===i?(n.consume(s),r++,u):(n.exit("thematicBreakSequence"),B(s)?j(n,a,"whitespace")(s):a(s))}}const G={name:"list",tokenize:co,continuation:{tokenize:po},exit:ho},uo={tokenize:mo,partial:!0},so={tokenize:fo,partial:!0};function co(n,e,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ye(p)){if(r.containerState.type||(r.containerState.type=y,n.enter(y,{_container:!0})),y==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Wn,t,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(p)}return t(p)}function u(p){return ye(p)&&++o<10?(n.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):t(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(Gn,r.interrupt?t:c,n.attempt(uo,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return B(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,e(p)}}function po(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Gn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(n,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!B(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(so,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(G,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function fo(n,e,t){const r=this;return j(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(l):t(l)}}function ho(n){n.exit(this.containerState.type)}function mo(n,e,t){const r=this;return j(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!B(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const ut={name:"setextUnderline",tokenize:yo,resolveTo:go};function go(n,e){let t=n.length,r,i,l;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){r=t;break}n[t][1].type==="paragraph"&&(i=t)}else n[t][1].type==="content"&&n.splice(t,1),!l&&n[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,e]),n.splice(l+1,0,["exit",n[r][1],e]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,e]),n}function yo(n,e,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),B(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const xo={tokenize:ko};function ko(n){const e=this,t=n.attempt(Gn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(Cl,i)),"linePrefix")));return t;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),e.currentConstruct=void 0,t}}const bo={resolveAll:ar()},wo=or("string"),So=or("text");function or(n){return{tokenize:e,resolveAll:ar(n==="text"?Co:void 0)};function e(t){const r=this,i=this.parser.constructs[n],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function Ao(n,e){let t=-1;const r=[];let i;for(;++t4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` +`,Qe="/",Xe="*",Sn="",pi="comment",fi="declaration",hi=function(n,e){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];e=e||{};var t=1,r=1;function i(y){var k=y.match(ri);k&&(t+=k.length);var I=y.lastIndexOf(ci);r=~I?y.length-I:r+y.length}function l(){var y={line:t,column:r};return function(k){return k.position=new o(y),s(),k}}function o(y){this.start=y,this.end={line:t,column:r},this.source=e.source}o.prototype.content=n;function a(y){var k=new Error(e.source+":"+t+":"+r+": "+y);if(k.reason=y,k.filename=e.source,k.line=t,k.column=r,k.source=n,!e.silent)throw k}function u(y){var k=y.exec(n);if(k){var I=k[0];return i(I),n=n.slice(I.length),k}}function s(){u(ii)}function c(y){var k;for(y=y||[];k=f();)k!==!1&&y.push(k);return y}function f(){var y=l();if(!(Qe!=n.charAt(0)||Xe!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(Xe!=n.charAt(k)||Qe!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var I=n.slice(2,k-2);return r+=2,i(I),n=n.slice(k),r+=2,y({type:pi,comment:I})}}function d(){var y=l(),k=u(li);if(k){if(f(),!u(oi))return a("property missing ':'");var I=u(ai),w=y({type:fi,property:Ye(k[0].replace(We,Sn)),value:I?Ye(I[0].replace(We,Sn)):Sn});return u(ui),w}}function p(){var y=[];c(y);for(var k;k=d();)k!==!1&&(y.push(k),c(y));return y}return s(),p()};function Ye(n){return n?n.replace(si,Sn):Sn}var mi=He&&He.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Vt,"__esModule",{value:!0});var di=mi(hi);function gi(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,di.default)(n),i=typeof e=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?e(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var Ke=Vt.default=gi;const yi=Ke.default||Ke,qt=$t("end"),Ee=$t("start");function $t(n){return e;function e(t){const r=t&&t.position&&t.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xi(n){const e=Ee(n),t=qt(n);if(e&&t)return{start:e,end:t}}function Nn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ge(n.position):"start"in n||"end"in n?Ge(n):"line"in n||"column"in n?de(n):""}function de(n){return Je(n&&n.line)+":"+Je(n&&n.column)}function Ge(n){return de(n&&n.start)+"-"+de(n&&n.end)}function Je(n){return n&&typeof n=="number"?n:1}class K extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof e=="string"?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Nn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Ie={}.hasOwnProperty,ki=new Map,bi=/[A-Z]/g,wi=/-([a-z])/g,Si=new Set(["table","tbody","thead","tfoot","tr"]),Ci=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ei(n,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Di(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Oi(t,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ce:ei,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=Qt(i,n,void 0);return l&&typeof l!="string"?l:i.create(n,i.Fragment,{children:l||void 0},void 0)}function Qt(n,e,t){if(e.type==="element")return Ii(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return Ai(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Pi(n,e,t);if(e.type==="mdxjsEsm")return Ti(n,e);if(e.type==="root")return zi(n,e,t);if(e.type==="text")return Li(n,e)}function Ii(n,e,t){const r=n.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=Yt(n,e.tagName,!1),o=vi(n,e);let a=Te(n,e);return Si.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!qr(u):!0})),Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function Ai(n,e){if(e.data&&e.data.estree&&n.evaluater){const r=e.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}_n(n,e.position)}function Ti(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);_n(n,e.position)}function Pi(n,e,t){const r=n.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=e.name===null?n.Fragment:Yt(n,e.name,!0),o=Fi(n,e),a=Te(n,e);return Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function zi(n,e,t){const r={};return Ae(r,Te(n,e)),n.create(e,n.Fragment,r,t)}function Li(n,e){return e.value}function Xt(n,e,t,r){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(e.node=r)}function Ae(n,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(n.children=t)}}function Oi(n,e,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:e;return a?s(l,o,a):s(l,o)}}function Di(n,e){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=Ee(r);return e(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function vi(n,e){const t={};let r,i;for(i in e.properties)if(i!=="children"&&Ie.call(e.properties,i)){const l=Ri(n,i,e.properties[i]);if(l){const[o,a]=l;n.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ci.has(e.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Fi(n,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,n.evaluater.evaluateExpression(a.argument))}else _n(n,e.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const a=r.value.data.estree.body[0];a.type,l=n.evaluater.evaluateExpression(a.expression)}else _n(n,e.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Te(n,e){const t=[];let r=-1;const i=n.passKeys?new Map:ki;for(;++ri?0:i+e:e=e>i?i:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),n.splice(...o);else for(t&&n.splice(e,t);l0?(pn(n,n.length,0,e),n):e}const et={}.hasOwnProperty;function qi(n){const e={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Pn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qi=xn(/\p{P}/u),cn=xn(/[A-Za-z]/),en=xn(/[\dA-Za-z]/),Xi=xn(/[#-'*+\--9=?A-Z^-~]/);function ge(n){return n!==null&&(n<32||n===127)}const ye=xn(/\d/),Yi=xn(/[\dA-Fa-f]/),Jt=xn(/[!-/:-@[-`{-~]/);function P(n){return n!==null&&n<-2}function J(n){return n!==null&&(n<0||n===32)}function B(n){return n===-2||n===-1||n===32}function Ki(n){return Jt(n)||Qi(n)}const Gi=xn(/\s/);function xn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function On(n){const e=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const a=n.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(e.push(n.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return e.join("")+n.slice(r)}function j(n,e,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return B(u)?(n.enter(t),a(u)):e(u)}function a(u){return B(u)&&l++o))return;const R=e.events.length;let q=R,M,H;for(;q--;)if(e.events[q][0]==="exit"&&e.events[q][1].type==="chunkFlow"){if(M){H=e.events[q][1].end;break}M=!0}for(w(r),x=R;xC;){const O=t[D];e.containerState=O[1],O[0].exit.call(e,n)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,e.containerState._closeFlow=void 0}}function tl(n,e,t){return j(n,n.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rt(n){if(n===null||J(n)||Gi(n))return 1;if(Ki(n))return 2}function ze(n,e,t){const r=[];let i=-1;for(;++i1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),d=Object.assign({},n[t][1].start);it(f,-u),it(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[t][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=tn(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=tn(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=tn(s,ze(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=tn(s,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",i,e]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,s=tn(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,pn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&B(x)?j(n,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||P(x)?n.check(lt,k,D)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||P(x)?(n.exit("codeFlowValue"),E(x)):(n.consume(x),C)}function D(x){return n.exit("codeFenced"),e(x)}function O(x,R,q){let M=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),T}function T(F){return x.enter("codeFencedFence"),B(F)?j(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===a?(x.enter("codeFencedFenceSequence"),U(F)):q(F)}function U(F){return F===a?(M++,x.consume(F),U):M>=o?(x.exit("codeFencedFenceSequence"),B(F)?j(x,$,"whitespace")(F):$(F)):q(F)}function $(F){return F===null||P(F)?(x.exit("codeFencedFence"),R(F)):q(F)}}}function ml(n,e,t){const r=this;return i;function i(o){return o===null?t(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const re={name:"codeIndented",tokenize:gl},dl={tokenize:yl,partial:!0};function gl(n,e,t){const r=this;return i;function i(s){return n.enter("codeIndented"),j(n,l,"linePrefix",4+1)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):P(s)?n.attempt(dl,o,u)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||P(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function u(s){return n.exit("codeIndented"),e(s)}}function yl(n,e,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):P(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):j(n,l,"linePrefix",4+1)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):P(o)?i(o):t(o)}}const xl={name:"codeText",tokenize:wl,resolve:kl,previous:bl};function kl(n){let e=n.length-4,t=3,r,i;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[e][1].type==="lineEnding"||n[e][1].type==="space")){for(r=t;++r=4?e(o):n.interrupt(r.parser.constructs.flow,t,e)(o)}}function rr(n,e,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),d):w===null||w===32||w===41||ge(w)?t(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),k(w))}function d(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),e):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(n.exit("chunkString"),n.exit(a),d(w)):w===null||w===60||P(w)?t(w):(n.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(n.consume(w),p):p(w)}function k(w){return!c&&(w===null||w===41||J(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),e(w)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),e):P(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||P(p)||a++>999?(n.exit("chunkString"),c(p)):(n.consume(p),u||(u=!B(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function lr(n,e,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(n.enter(r),n.enter(i),n.consume(d),n.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(n.enter(i),n.consume(d),n.exit(i),n.exit(r),e):(n.enter(l),s(d))}function s(d){return d===o?(n.exit(l),u(o)):d===null?t(d):P(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),j(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||P(d)?(n.exit("chunkString"),s(d)):(n.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(n.consume(d),c):c(d)}}function Mn(n,e){let t;return r;function r(i){return P(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):B(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const Pl={name:"definition",tokenize:Ll},zl={tokenize:Ol,partial:!0};function Ll(n,e,t){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return ir.call(r,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),u):t(p)}function u(p){return J(p)?Mn(n,s)(p):s(p)}function s(p){return rr(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(zl,f,f)(p)}function f(p){return B(p)?j(n,d,"whitespace")(p):d(p)}function d(p){return p===null||P(p)?(n.exit("definition"),r.parser.defined.push(i),e(p)):t(p)}}function Ol(n,e,t){return r;function r(a){return J(a)?Mn(n,i)(a):t(a)}function i(a){return lr(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return B(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||P(a)?e(a):t(a)}}const Dl={name:"hardBreakEscape",tokenize:vl};function vl(n,e,t){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return P(l)?(n.exit("hardBreakEscape"),e(l)):t(l)}}const Fl={name:"headingAtx",tokenize:Bl,resolve:Rl};function Rl(n,e){let t=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),t-2>r&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&n[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[t][1].end},l={type:"chunkText",start:n[r][1].start,end:n[t][1].end,contentType:"text"},pn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function Bl(n,e,t){let r=0;return i;function i(c){return n.enter("atxHeading"),l(c)}function l(c){return n.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(n.consume(c),o):c===null||J(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(n.enter("atxHeadingSequence"),u(c)):c===null||P(c)?(n.exit("atxHeading"),e(c)):B(c)?j(n,a,"whitespace")(c):(n.enter("atxHeadingText"),s(c))}function u(c){return c===35?(n.consume(c),u):(n.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||J(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),s)}}const Nl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],Ml={name:"htmlFlow",tokenize:Ul,resolveTo:Hl,concrete:!0},_l={tokenize:ql,partial:!0},jl={tokenize:Vl,partial:!0};function Hl(n){let e=n.length;for(;e--&&!(n[e][0]==="enter"&&n[e][1].type==="htmlFlow"););return e>1&&n[e-2][1].type==="linePrefix"&&(n[e][1].start=n[e-2][1].start,n[e+1][1].start=n[e-2][1].start,n.splice(e-2,2)),n}function Ul(n,e,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(m),f}function f(m){return m===33?(n.consume(m),d):m===47?(n.consume(m),l=!0,k):m===63?(n.consume(m),i=3,r.interrupt?e:h):cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(n.consume(m),i=2,p):m===91?(n.consume(m),i=5,a=0,y):cn(m)?(n.consume(m),i=4,r.interrupt?e:h):t(m)}function p(m){return m===45?(n.consume(m),r.interrupt?e:h):t(m)}function y(m){const an="CDATA[";return m===an.charCodeAt(a++)?(n.consume(m),a===an.length?r.interrupt?e:A:y):t(m)}function k(m){return cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const an=m===47,kn=o.toLowerCase();return!an&&!l&&at.includes(kn)?(i=1,r.interrupt?e(m):A(m)):Nl.includes(o.toLowerCase())?(i=6,an?(n.consume(m),w):r.interrupt?e(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||en(m)?(n.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(n.consume(m),r.interrupt?e:A):t(m)}function E(m){return B(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||cn(m)?(n.consume(m),D):B(m)?(n.consume(m),C):H(m)}function D(m){return m===45||m===46||m===58||m===95||en(m)?(n.consume(m),D):O(m)}function O(m){return m===61?(n.consume(m),x):B(m)?(n.consume(m),O):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(n.consume(m),u=m,R):B(m)?(n.consume(m),x):q(m)}function R(m){return m===u?(n.consume(m),u=null,M):m===null||P(m)?t(m):(n.consume(m),R)}function q(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?O(m):(n.consume(m),q)}function M(m){return m===47||m===62||B(m)?C(m):t(m)}function H(m){return m===62?(n.consume(m),T):t(m)}function T(m){return m===null||P(m)?A(m):B(m)?(n.consume(m),T):t(m)}function A(m){return m===45&&i===2?(n.consume(m),Y):m===60&&i===1?(n.consume(m),Q):m===62&&i===4?(n.consume(m),on):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),fn):P(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(_l,hn,U)(m)):m===null||P(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(jl,$,hn)(m)}function $(m){return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),F}function F(m){return m===null||P(m)?U(m):(n.enter("htmlFlowData"),A(m))}function Y(m){return m===45?(n.consume(m),h):A(m)}function Q(m){return m===47?(n.consume(m),o="",ln):A(m)}function ln(m){if(m===62){const an=o.toLowerCase();return at.includes(an)?(n.consume(m),on):A(m)}return cn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),ln):A(m)}function fn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),on):m===45&&i===2?(n.consume(m),h):A(m)}function on(m){return m===null||P(m)?(n.exit("htmlFlowData"),hn(m)):(n.consume(m),on)}function hn(m){return n.exit("htmlFlow"),e(m)}}function Vl(n,e,t){const r=this;return i;function i(o){return P(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function ql(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Gn,e,t)}}const $l={name:"htmlText",tokenize:Wl};function Wl(n,e,t){const r=this;let i,l,o;return a;function a(h){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(h),u}function u(h){return h===33?(n.consume(h),s):h===47?(n.consume(h),O):h===63?(n.consume(h),C):cn(h)?(n.consume(h),q):t(h)}function s(h){return h===45?(n.consume(h),c):h===91?(n.consume(h),l=0,y):cn(h)?(n.consume(h),E):t(h)}function c(h){return h===45?(n.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(n.consume(h),d):P(h)?(o=f,Q(h)):(n.consume(h),f)}function d(h){return h===45?(n.consume(h),p):f(h)}function p(h){return h===62?Y(h):h===45?d(h):f(h)}function y(h){const on="CDATA[";return h===on.charCodeAt(l++)?(n.consume(h),l===on.length?k:y):t(h)}function k(h){return h===null?t(h):h===93?(n.consume(h),I):P(h)?(o=k,Q(h)):(n.consume(h),k)}function I(h){return h===93?(n.consume(h),w):k(h)}function w(h){return h===62?Y(h):h===93?(n.consume(h),w):k(h)}function E(h){return h===null||h===62?Y(h):P(h)?(o=E,Q(h)):(n.consume(h),E)}function C(h){return h===null?t(h):h===63?(n.consume(h),D):P(h)?(o=C,Q(h)):(n.consume(h),C)}function D(h){return h===62?Y(h):C(h)}function O(h){return cn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||en(h)?(n.consume(h),x):R(h)}function R(h){return P(h)?(o=R,Q(h)):B(h)?(n.consume(h),R):Y(h)}function q(h){return h===45||en(h)?(n.consume(h),q):h===47||h===62||J(h)?M(h):t(h)}function M(h){return h===47?(n.consume(h),Y):h===58||h===95||cn(h)?(n.consume(h),H):P(h)?(o=M,Q(h)):B(h)?(n.consume(h),M):Y(h)}function H(h){return h===45||h===46||h===58||h===95||en(h)?(n.consume(h),H):T(h)}function T(h){return h===61?(n.consume(h),A):P(h)?(o=T,Q(h)):B(h)?(n.consume(h),T):M(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(n.consume(h),i=h,U):P(h)?(o=A,Q(h)):B(h)?(n.consume(h),A):(n.consume(h),$)}function U(h){return h===i?(n.consume(h),i=void 0,F):h===null?t(h):P(h)?(o=U,Q(h)):(n.consume(h),U)}function $(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?M(h):(n.consume(h),$)}function F(h){return h===47||h===62||J(h)?M(h):t(h)}function Y(h){return h===62?(n.consume(h),n.exit("htmlTextData"),n.exit("htmlText"),e):t(h)}function Q(h){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),ln}function ln(h){return B(h)?j(n,fn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fn(h)}function fn(h){return n.enter("htmlTextData"),o(h)}}const Le={name:"labelEnd",tokenize:Jl,resolveTo:Gl,resolveAll:Kl},Ql={tokenize:Zl},Xl={tokenize:no},Yl={tokenize:eo};function Kl(n){let e=-1;for(;++e=3&&(s===null||P(s))?(n.exit("thematicBreak"),e(s)):t(s)}function u(s){return s===i?(n.consume(s),r++,u):(n.exit("thematicBreakSequence"),B(s)?j(n,a,"whitespace")(s):a(s))}}const G={name:"list",tokenize:co,continuation:{tokenize:po},exit:ho},uo={tokenize:mo,partial:!0},so={tokenize:fo,partial:!0};function co(n,e,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ye(p)){if(r.containerState.type||(r.containerState.type=y,n.enter(y,{_container:!0})),y==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Wn,t,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(p)}return t(p)}function u(p){return ye(p)&&++o<10?(n.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):t(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(Gn,r.interrupt?t:c,n.attempt(uo,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return B(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,e(p)}}function po(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Gn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(n,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!B(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(so,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(G,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function fo(n,e,t){const r=this;return j(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(l):t(l)}}function ho(n){n.exit(this.containerState.type)}function mo(n,e,t){const r=this;return j(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!B(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const ut={name:"setextUnderline",tokenize:yo,resolveTo:go};function go(n,e){let t=n.length,r,i,l;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){r=t;break}n[t][1].type==="paragraph"&&(i=t)}else n[t][1].type==="content"&&n.splice(t,1),!l&&n[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,e]),n.splice(l+1,0,["exit",n[r][1],e]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,e]),n}function yo(n,e,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),B(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||P(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const xo={tokenize:ko};function ko(n){const e=this,t=n.attempt(Gn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(Cl,i)),"linePrefix")));return t;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),e.currentConstruct=void 0,t}}const bo={resolveAll:ar()},wo=or("string"),So=or("text");function or(n){return{tokenize:e,resolveAll:ar(n==="text"?Co:void 0)};function e(t){const r=this,i=this.parser.constructs[n],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function Ao(n,e){let t=-1;const r=[];let i;for(;++t0){const un=z.tokenStack[z.tokenStack.length-1];(un[1]||ct).call(z,void 0,un[0])}for(S.position={start:yn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:yn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N0){const un=z.tokenStack[z.tokenStack.length-1];(un[1]||ct).call(z,void 0,un[0])}for(S.position={start:yn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:yn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};n.patch(e,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return n.patch(e,s),n.applyData(e,s)}function Zo(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function na(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function cr(n,e){const t=e.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=n.all(e),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function ea(n,e){const t=String(e.identifier).toUpperCase(),r=n.definitionById.get(t);if(!r)return cr(n,e);const i={src:On(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return n.patch(e,l),n.applyData(e,l)}function ta(n,e){const t={src:On(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const r={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,r),n.applyData(e,r)}function ra(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,r),n.applyData(e,r)}function ia(n,e){const t=String(e.identifier).toUpperCase(),r=n.definitionById.get(t);if(!r)return cr(n,e);const i={href:On(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:n.all(e)};return n.patch(e,l),n.applyData(e,l)}function la(n,e){const t={href:On(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const r={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,r),n.applyData(e,r)}function oa(n,e,t){const r=n.all(e),i=t?aa(t):pr(e),l={},o=[];if(typeof e.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a1}function ua(n,e){const t={},r=n.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=Ee(e.children[1]),u=qt(e.children[e.children.length-1]);a&&u&&(o.position={start:a,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:n.wrap(i,!0)};return n.patch(e,l),n.applyData(e,l)}function ha(n,e,t){const r=t?t.children:void 0,l=(r?r.indexOf(e):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:e.children.length;let u=-1;const s=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=t.exec(e);return l.push(ht(e.slice(i),i>0,!1)),l.join("")}function ht(n,e,t){let r=0,i=n.length;if(e){let l=n.codePointAt(r);for(;l===pt||l===ft;)r++,l=n.codePointAt(r)}if(t){let l=n.codePointAt(i-1);for(;l===pt||l===ft;)i--,l=n.codePointAt(i-1)}return i>r?n.slice(r,i):""}function ga(n,e){const t={type:"text",value:da(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function ya(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const xa={blockquote:Qo,break:Xo,code:Yo,delete:Ko,emphasis:Go,footnoteReference:Jo,heading:Zo,html:na,imageReference:ea,image:ta,inlineCode:ra,linkReference:ia,link:la,listItem:oa,list:ua,paragraph:sa,root:ca,strong:pa,table:fa,tableCell:ma,tableRow:ha,text:ga,thematicBreak:ya,toml:Vn,yaml:Vn,definition:Vn,footnoteDefinition:Vn};function Vn(){}const fr=-1,Jn=0,Xn=1,Yn=2,Oe=3,De=4,ve=5,Fe=6,hr=7,mr=8,mt=typeof self=="object"?self:globalThis,ka=(n,e)=>{const t=(i,l)=>(n.set(l,i),i),r=i=>{if(n.has(i))return n.get(i);const[l,o]=e[i];switch(l){case Jn:case fr:return t(o,i);case Xn:{const a=t([],i);for(const u of o)a.push(r(u));return a}case Yn:{const a=t({},i);for(const[u,s]of o)a[r(u)]=r(s);return a}case Oe:return t(new Date(o),i);case De:{const{source:a,flags:u}=o;return t(new RegExp(a,u),i)}case ve:{const a=t(new Map,i);for(const[u,s]of o)a.set(r(u),r(s));return a}case Fe:{const a=t(new Set,i);for(const u of o)a.add(r(u));return a}case hr:{const{name:a,message:u}=o;return t(new mt[a](u),i)}case mr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i)}return t(new mt[l](o),i)};return r},dt=n=>ka(new Map,n)(0),An="",{toString:ba}={},{keys:wa}=Object,Rn=n=>{const e=typeof n;if(e!=="object"||!n)return[Jn,e];const t=ba.call(n).slice(8,-1);switch(t){case"Array":return[Xn,An];case"Object":return[Yn,An];case"Date":return[Oe,An];case"RegExp":return[De,An];case"Map":return[ve,An];case"Set":return[Fe,An]}return t.includes("Array")?[Xn,t]:t.includes("Error")?[hr,t]:[Yn,t]},qn=([n,e])=>n===Jn&&(e==="function"||e==="symbol"),Sa=(n,e,t,r)=>{const i=(o,a)=>{const u=r.push(o)-1;return t.set(a,u),u},l=o=>{if(t.has(o))return t.get(o);let[a,u]=Rn(o);switch(a){case Jn:{let c=o;switch(u){case"bigint":a=mr,c=o.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([fr],o)}return i([a,c],o)}case Xn:{if(u)return i([u,[...o]],o);const c=[],f=i([a,c],o);for(const d of o)c.push(l(d));return f}case Yn:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(e&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([a,c],o);for(const d of wa(o))(n||!qn(Rn(o[d])))&&c.push([l(d),l(o[d])]);return f}case Oe:return i([a,o.toISOString()],o);case De:{const{source:c,flags:f}=o;return i([a,{source:c,flags:f}],o)}case ve:{const c=[],f=i([a,c],o);for(const[d,p]of o)(n||!(qn(Rn(d))||qn(Rn(p))))&&c.push([l(d),l(p)]);return f}case Fe:{const c=[],f=i([a,c],o);for(const d of o)(n||!qn(Rn(d)))&&c.push(l(d));return f}}const{message:s}=o;return i([a,{name:u,message:s}],o)};return l},gt=(n,{json:e,lossy:t}={})=>{const r=[];return Sa(!(e||t),!!e,new Map,r)(n),r},Kn=typeof structuredClone=="function"?(n,e)=>e&&("json"in e||"lossy"in e)?dt(gt(n,e)):structuredClone(n):(n,e)=>dt(gt(n,e));function Ca(n,e){const t=[{type:"text",value:"↩"}];return e>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),t}function Ea(n,e){return"Back to reference "+(n+1)+(e>1?"-"+e:"")}function Ia(n){const e=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",t=n.options.footnoteBackContent||Ca,r=n.options.footnoteBackLabel||Ea,i=n.options.footnoteLabel||"Footnotes",l=n.options.footnoteLabelTagName||"h2",o=n.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u0&&y.push({type:"text",value:" "});let E=typeof t=="string"?t:t(u,p);typeof E=="string"&&(E={type:"text",value:E}),y.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const I=c[c.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const E=I.children[I.children.length-1];E&&E.type==="text"?E.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...y)}else c.push(...y);const w={type:"element",tagName:"li",properties:{id:e+"fn-"+d},children:n.wrap(c,!0)};n.patch(s,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Kn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:` -`}]}}const dr=function(n){if(n==null)return za;if(typeof n=="function")return Zn(n);if(typeof n=="object")return Array.isArray(n)?Aa(n):Pa(n);if(typeof n=="string")return Ta(n);throw new Error("Expected function, string, or object as test")};function Aa(n){const e=[];let t=-1;for(;++t":""))+")"})}return d;function d(){let p=gr,y,k,I;if((!e||l(u,s,c[c.length-1]||void 0))&&(p=Fa(t(u,c)),p[0]===yt))return p;if("children"in u&&u.children){const w=u;if(w.children&&p[0]!==Da)for(k=(r?w.children.length:-1)+o,I=c.concat(w);k>-1&&k":""))+")"})}return d;function d(){let p=gr,y,k,I;if((!e||l(u,s,c[c.length-1]||void 0))&&(p=Fa(t(u,c)),p[0]===yt))return p;if("children"in u&&u.children){const w=u;if(w.children&&p[0]!==Da)for(k=(r?w.children.length:-1)+o,I=c.concat(w);k>-1&&k0&&t.push({type:"text",value:` `}),t}function xt(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function kt(n,e){const t=Ba(n,e),r=t.one(n,void 0),i=Ia(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` -`},i),l}function Ha(n,e){return n&&"run"in n?async function(t,r){const i=kt(t,e);await n.run(i,r)}:function(t){return kt(t,e||n)}}function bt(n){if(n)throw n}var Qn=Object.prototype.hasOwnProperty,xr=Object.prototype.toString,wt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Ct=function(e){return typeof Array.isArray=="function"?Array.isArray(e):xr.call(e)==="[object Array]"},Et=function(e){if(!e||xr.call(e)!=="[object Object]")return!1;var t=Qn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Qn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var i;for(i in e);return typeof i>"u"||Qn.call(e,i)},It=function(e,t){wt&&t.name==="__proto__"?wt(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},At=function(e,t){if(t==="__proto__")if(Qn.call(e,t)){if(St)return St(e,t).value}else return;return e[t]},Ua=function n(){var e,t,r,i,l,o,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});uo.length;let u;a&&o.push(i);try{u=n.apply(this,o)}catch(s){const c=s;if(a&&t)throw c;return i(c)}a||(u instanceof Promise?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){t||(t=!0,e(o,...a))}function l(o){i(null,o)}}const sn={basename:$a,dirname:Wa,extname:Qa,join:Xa,sep:"/"};function $a(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Hn(n);let t=0,r=-1,i=n.length,l;if(e===void 0||e.length===0||e.length>n.length){for(;i--;)if(n.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":n.slice(t,r)}if(e===n)return"";let o=-1,a=e.length-1;for(;i--;)if(n.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(n.codePointAt(i)===e.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=n.length),n.slice(t,r)}function Wa(n){if(Hn(n),n.length===0)return".";let e=-1,t=n.length,r;for(;--t;)if(n.codePointAt(t)===47){if(r){e=t;break}}else r||(r=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function Qa(n){Hn(n);let e=n.length,t=-1,r=0,i=-1,l=0,o;for(;e--;){const a=n.codePointAt(e);if(a===47){if(o){r=e+1;break}continue}t<0&&(o=!0,t=e+1),a===46?i<0?i=e:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":n.slice(i,t)}function Xa(...n){let e=-1,t;for(;++e0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function Ka(n,e){let t="",r=0,i=-1,l=0,o=-1,a,u;for(;++o<=n.length;){if(o2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}e&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+n.slice(i+1,o):t=n.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Hn(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Ga={cwd:Ja};function Ja(){return"/"}function we(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Za(n){if(typeof n=="string")n=new URL(n);else if(!we(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return nu(n)}function nu(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=n.pathname;let t=-1;for(;++t0){let[p,...y]=c;const k=r[d][1];be(k)&&be(p)&&(p=le(!0,k,p)),r[d]=[s,p,...y]}}}}const iu=new Re().freeze();function se(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function ce(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function pe(n,e){if(e)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tt(n){if(!be(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function zt(n,e,t){if(!t)throw new Error("`"+n+"` finished async. Use `"+e+"` instead")}function $n(n){return lu(n)?n:new kr(n)}function lu(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function ou(n){return typeof n=="string"||au(n)}function au(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const uu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lt=[],Ot={allowDangerousHtml:!0},su=/^(https?|ircs?|mailto|xmpp)$/i,cu=[{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 pu(n){const e=n.allowedElements,t=n.allowElement,r=n.children||"",i=n.className,l=n.components,o=n.disallowedElements,a=n.rehypePlugins||Lt,u=n.remarkPlugins||Lt,s=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Ot}:Ot,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||fu,p=iu().use(Wo).use(u).use(Ha,s).use(a),y=new kr;typeof r=="string"&&(y.value=r);for(const E of cu)Object.hasOwn(n,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+uu+E.id,void 0);const k=p.parse(y);let I=p.runSync(k,y);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),yr(I,w),Ei(I,{Fragment:V.Fragment,components:l,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function w(E,C,D){if(E.type==="raw"&&D&&typeof C=="number")return c?D.children.splice(C,1):D.children[C]={type:"text",value:E.value},C;if(E.type==="element"){let O;for(O in te)if(Object.hasOwn(te,O)&&Object.hasOwn(E.properties,O)){const x=E.properties[O],R=te[O];(R===null||R.includes(E.tagName))&&(E.properties[O]=d(String(x||""),O,E))}}if(E.type==="element"){let O=e?!e.includes(E.tagName):o?o.includes(E.tagName):!1;if(!O&&t&&typeof C=="number"&&(O=!t(E,C,D)),O&&D&&typeof C=="number")return f&&E.children?D.children.splice(C,1,...E.children):D.children.splice(C,1),C}}}function fu(n){const e=n.indexOf(":"),t=n.indexOf("?"),r=n.indexOf("#"),i=n.indexOf("/");return e<0||i>-1&&e>i||t>-1&&e>t||r>-1&&e>r||su.test(n.slice(0,e))?n:""}const hu=({trend:n,onClose:e})=>{var I,w;const[t,r]=Un.useState(!1),{close:i}=vt("briefDescription"),{currentPlayingAudio:l,setCurrentPlayingAudio:o}=zr(E=>E),[a]=Lr(E=>[E.setBudget]),{fetchData:u,setAbortRequests:s}=Or(E=>E),c=Un.useRef(null),f=async()=>{d(),await u(a,s,n.tldr_topic??n.name)},d=Un.useCallback(()=>{e(),i()},[e,i]),p=()=>{c.current&&(t?c.current.pause():c.current.play(),r(!t))},y=()=>{var C,D,O;const E=!((C=l==null?void 0:l.current)!=null&&C.paused);E&&((D=l==null?void 0:l.current)==null||D.pause(),o(null)),(((O=l==null?void 0:l.current)==null?void 0:O.src)!==n.audio_EN||!E)&&p()};Un.useEffect(()=>{const E=c.current,C=()=>{r(!1),o(null)};return E&&E.addEventListener("ended",C),()=>{E&&E.removeEventListener("ended",C)}},[o]);const k=((I=l==null?void 0:l.current)==null?void 0:I.src)===n.audio_EN&&!((w=l==null?void 0:l.current)!=null&&w.paused)||t;return V.jsxs(V.Fragment,{children:[n.audio_EN?V.jsxs(V.Fragment,{children:[V.jsxs(xu,{children:[V.jsx(Dt,{className:Dr("default",{play:k}),onClick:y,size:"small",startIcon:k?V.jsx(Br,{}):V.jsx(Nr,{}),children:k?"Pause":"Listen"}),V.jsx(Dt,{className:"default",onClick:f,size:"small",startIcon:V.jsx(Mr,{}),children:"Learn More"})]}),V.jsx(yu,{ref:c,src:n.audio_EN,children:V.jsx("track",{kind:"captions"})})]}):null,V.jsxs(fe,{mt:75,children:[V.jsx(gu,{children:n.tldr_topic??n.name}),V.jsx(mu,{children:V.jsx(fe,{children:V.jsx(du,{children:n.tldr&&V.jsx(pu,{children:n.tldr})})})})]})]})},mu=zn.div` +`},i),l}function Ha(n,e){return n&&"run"in n?async function(t,r){const i=kt(t,e);await n.run(i,r)}:function(t){return kt(t,e||n)}}function bt(n){if(n)throw n}var Qn=Object.prototype.hasOwnProperty,xr=Object.prototype.toString,wt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Ct=function(e){return typeof Array.isArray=="function"?Array.isArray(e):xr.call(e)==="[object Array]"},Et=function(e){if(!e||xr.call(e)!=="[object Object]")return!1;var t=Qn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Qn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var i;for(i in e);return typeof i>"u"||Qn.call(e,i)},It=function(e,t){wt&&t.name==="__proto__"?wt(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},At=function(e,t){if(t==="__proto__")if(Qn.call(e,t)){if(St)return St(e,t).value}else return;return e[t]},Ua=function n(){var e,t,r,i,l,o,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});uo.length;let u;a&&o.push(i);try{u=n.apply(this,o)}catch(s){const c=s;if(a&&t)throw c;return i(c)}a||(u instanceof Promise?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){t||(t=!0,e(o,...a))}function l(o){i(null,o)}}const sn={basename:$a,dirname:Wa,extname:Qa,join:Xa,sep:"/"};function $a(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Hn(n);let t=0,r=-1,i=n.length,l;if(e===void 0||e.length===0||e.length>n.length){for(;i--;)if(n.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":n.slice(t,r)}if(e===n)return"";let o=-1,a=e.length-1;for(;i--;)if(n.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(n.codePointAt(i)===e.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=n.length),n.slice(t,r)}function Wa(n){if(Hn(n),n.length===0)return".";let e=-1,t=n.length,r;for(;--t;)if(n.codePointAt(t)===47){if(r){e=t;break}}else r||(r=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function Qa(n){Hn(n);let e=n.length,t=-1,r=0,i=-1,l=0,o;for(;e--;){const a=n.codePointAt(e);if(a===47){if(o){r=e+1;break}continue}t<0&&(o=!0,t=e+1),a===46?i<0?i=e:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":n.slice(i,t)}function Xa(...n){let e=-1,t;for(;++e0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function Ka(n,e){let t="",r=0,i=-1,l=0,o=-1,a,u;for(;++o<=n.length;){if(o2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}e&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+n.slice(i+1,o):t=n.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Hn(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Ga={cwd:Ja};function Ja(){return"/"}function we(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Za(n){if(typeof n=="string")n=new URL(n);else if(!we(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return nu(n)}function nu(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=n.pathname;let t=-1;for(;++t0){let[p,...y]=c;const k=r[d][1];be(k)&&be(p)&&(p=le(!0,k,p)),r[d]=[s,p,...y]}}}}const iu=new Re().freeze();function se(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function ce(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function pe(n,e){if(e)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Pt(n){if(!be(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function zt(n,e,t){if(!t)throw new Error("`"+n+"` finished async. Use `"+e+"` instead")}function $n(n){return lu(n)?n:new kr(n)}function lu(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function ou(n){return typeof n=="string"||au(n)}function au(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const uu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lt=[],Ot={allowDangerousHtml:!0},su=/^(https?|ircs?|mailto|xmpp)$/i,cu=[{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 pu(n){const e=n.allowedElements,t=n.allowElement,r=n.children||"",i=n.className,l=n.components,o=n.disallowedElements,a=n.rehypePlugins||Lt,u=n.remarkPlugins||Lt,s=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Ot}:Ot,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||fu,p=iu().use(Wo).use(u).use(Ha,s).use(a),y=new kr;typeof r=="string"&&(y.value=r);for(const E of cu)Object.hasOwn(n,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+uu+E.id,void 0);const k=p.parse(y);let I=p.runSync(k,y);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),yr(I,w),Ei(I,{Fragment:V.Fragment,components:l,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function w(E,C,D){if(E.type==="raw"&&D&&typeof C=="number")return c?D.children.splice(C,1):D.children[C]={type:"text",value:E.value},C;if(E.type==="element"){let O;for(O in te)if(Object.hasOwn(te,O)&&Object.hasOwn(E.properties,O)){const x=E.properties[O],R=te[O];(R===null||R.includes(E.tagName))&&(E.properties[O]=d(String(x||""),O,E))}}if(E.type==="element"){let O=e?!e.includes(E.tagName):o?o.includes(E.tagName):!1;if(!O&&t&&typeof C=="number"&&(O=!t(E,C,D)),O&&D&&typeof C=="number")return f&&E.children?D.children.splice(C,1,...E.children):D.children.splice(C,1),C}}}function fu(n){const e=n.indexOf(":"),t=n.indexOf("?"),r=n.indexOf("#"),i=n.indexOf("/");return e<0||i>-1&&e>i||t>-1&&e>t||r>-1&&e>r||su.test(n.slice(0,e))?n:""}const hu=({trend:n,onClose:e})=>{var I,w;const[t,r]=Un.useState(!1),{close:i}=vt("briefDescription"),{currentPlayingAudio:l,setCurrentPlayingAudio:o}=zr(E=>E),[a]=Lr(E=>[E.setBudget]),{fetchData:u,setAbortRequests:s}=Or(E=>E),c=Un.useRef(null),f=async()=>{d(),await u(a,s,n.tldr_topic??n.name)},d=Un.useCallback(()=>{e(),i()},[e,i]),p=()=>{c.current&&(t?c.current.pause():c.current.play(),r(!t))},y=()=>{var C,D,O;const E=!((C=l==null?void 0:l.current)!=null&&C.paused);E&&((D=l==null?void 0:l.current)==null||D.pause(),o(null)),(((O=l==null?void 0:l.current)==null?void 0:O.src)!==n.audio_EN||!E)&&p()};Un.useEffect(()=>{const E=c.current,C=()=>{r(!1),o(null)};return E&&E.addEventListener("ended",C),()=>{E&&E.removeEventListener("ended",C)}},[o]);const k=((I=l==null?void 0:l.current)==null?void 0:I.src)===n.audio_EN&&!((w=l==null?void 0:l.current)!=null&&w.paused)||t;return V.jsxs(V.Fragment,{children:[n.audio_EN?V.jsxs(V.Fragment,{children:[V.jsxs(xu,{children:[V.jsx(Dt,{className:Dr("default",{play:k}),onClick:y,size:"small",startIcon:k?V.jsx(Br,{}):V.jsx(Nr,{}),children:k?"Pause":"Listen"}),V.jsx(Dt,{className:"default",onClick:f,size:"small",startIcon:V.jsx(Mr,{}),children:"Learn More"})]}),V.jsx(yu,{ref:c,src:n.audio_EN,children:V.jsx("track",{kind:"captions"})})]}):null,V.jsxs(fe,{mt:75,children:[V.jsx(gu,{children:n.tldr_topic??n.name}),V.jsx(mu,{children:V.jsx(fe,{children:V.jsx(du,{children:n.tldr&&V.jsx(pu,{children:n.tldr})})})})]})]})},mu=zn.div` max-height: 310px; overflow-y: auto; margin: 8px 0; diff --git a/build/assets/index-cf684ffa.js b/build/assets/index-cf684ffa.js deleted file mode 100644 index ca5c21557..000000000 --- a/build/assets/index-cf684ffa.js +++ /dev/null @@ -1,681 +0,0 @@ -import{r as I,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b as Gl,k as Ji,n as Sd,d as Ma,ab as $l,D as Xl,ac as Ed,l as Od,L as Ad,e as fr,E as Md,ad as Dd,ae as Pd,i as Id,af as Nd,v as Rd}from"./index-f2cb870a.js";import{u as It,a as Pe,m as uo,b as ho,e as Da,L as Zl,c as Fd,d as Ld,g as Vd,T as Ql,h as Kl,H as tr,t as Jl,P as Ud,f as zd,i as jd,C as Bd,j as qd,k as Wd}from"./index-5b1d6c13.js";import{m as ei,n as Ic,H as Hd,E as Yd,_ as qt,o as Be,p as gs,i as pe,q as Pa,r as Ia,g as Nc,b as Gd,D as $d,I as Xd,s as Zd,t as Qd,v as Kd,w as Jd,x as tf,y as Rc,z as ef,G as sf,R as nf,h as rf,J as of,N as af,P as cf,O as lf,K as uf}from"./index-d6936fc6.js";import{T as hf}from"./TextareaAutosize-449c264d.js";import{a as pr,b as df,V as it,c as ff,d as pf,M as _n,e as _t,f as mf,B as _f,S as tu,P as Po,g as gf,h as Mr,i as Bs,T as fo,j as sa,k as yf,l as Fc,m as er,Q as vf,G as xf,C as Na,n as kf,o as eu,p as Tf,q as wf,r as bf,E as Cf,s as Sf,t as Ef,u as po,v as Of,w as Lc,x as Vc}from"./three.module-9c942ca6.js";import{u as Af}from"./index-57a408d8.js";import{C as Mf}from"./ClipLoader-83efcb6b.js";function Df(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 Pf=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Uc=Pf?I.useEffect:I.useLayoutEffect;function If(i){const t=typeof i=="function"?Df(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=I.useReducer(m=>m+1,0),o=t.getState(),a=I.useRef(o),c=I.useRef(s),l=I.useRef(n),u=I.useRef(!1),h=I.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)),Uc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=I.useRef(o);Uc(()=>{const m=()=>{try{const w=t.getState(),b=c.current(w);l.current(h.current,b)||(a.current=w,h.current=b,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return I.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 si=0;const Nf=If(i=>(pr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100})},pr.onLoad=()=>{i({active:!1})},pr.onError=t=>i(e=>({errors:[...e.errors,t]})),pr.onProgress=(t,e,s)=>{e===s&&(si=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),Rf=i=>`Loading ${i.toFixed(2)}%`;function Ff({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Rf,initialState:r=o=>o}){const{active:o,progress:a}=Nf(),c=I.useRef(0),l=I.useRef(0),u=I.useRef(null),[h,d]=I.useState(r(o));I.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=I.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?I.createElement("div",{style:{...mr.container,opacity:o?1:0,...i}},I.createElement("div",null,I.createElement("div",{style:{...mr.inner,...t}},I.createElement("div",{style:{...mr.bar,transform:`scaleX(${a/100})`,...e}}),I.createElement("span",{ref:u,style:{...mr.data,...s}})))):null}const mr={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"}},Io=new df,No=new it,gn=new it,Ne=new it,ns=new it,He=new it,is=new it,rs=new it,ni=new it,ii=new it,ri=new it,_r=new it,oi=new it,ai=new it,ci=new it;class Lf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new it,this.endPoint=new it,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(Io,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){gn.copy(t),gn.x=Math.min(t.x,e.x),gn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Ne.setFromMatrixPosition(this.camera.matrixWorld),ns.copy(gn),He.set(e.x,gn.y,0),is.copy(e),rs.set(gn.x,e.y,0),ns.unproject(this.camera),He.unproject(this.camera),is.unproject(this.camera),rs.unproject(this.camera),oi.copy(ns).sub(Ne),ai.copy(He).sub(Ne),ci.copy(is).sub(Ne),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Ne),ai.add(Ne),ci.add(Ne);var s=Io.planes;s[0].setFromCoplanarPoints(Ne,ns,He),s[1].setFromCoplanarPoints(Ne,He,is),s[2].setFromCoplanarPoints(is,rs,Ne),s[3].setFromCoplanarPoints(rs,ns,Ne),s[4].setFromCoplanarPoints(He,is,rs),s[5].setFromCoplanarPoints(ci,ai,oi),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);ns.set(n,r,-1),He.set(o,r,-1),is.set(o,a,-1),rs.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),_r.set(n,a,1),ns.unproject(this.camera),He.unproject(this.camera),is.unproject(this.camera),rs.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),_r.unproject(this.camera);var s=Io.planes;s[0].setFromCoplanarPoints(ns,ni,ii),s[1].setFromCoplanarPoints(He,ii,ri),s[2].setFromCoplanarPoints(ri,_r,rs),s[3].setFromCoplanarPoints(_r,ni,ns),s[4].setFromCoplanarPoints(He,is,rs),s[5].setFromCoplanarPoints(ri,ii,ni),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(),No.copy(e.geometry.boundingSphere.center),No.applyMatrix4(e.matrixWorld),t.containsPoint(No)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?X.copy(M[M.length-1]):X.identity())}function n(R){const F=new Bs,S=new _t,P=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 Pc=Math.sqrt(Q);F=Pc*F,S=Pc*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 Yt=vt*F*pt/S,Ie=-vt*S*J/F,ti=Math.cos(P)*Yt-Math.sin(P)*Ie+(U.x+rt.x)/2,Do=Math.sin(P)*Yt+Math.cos(P)*Ie+(U.y+rt.y)/2,dr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Cd=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);R.currentPath.absellipse(ti,Do,F,S,dr,dr+Cd,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 U=Math.acos(Math.max(-1,Math.min(1,H/N)));return R*P-F*S<0&&(U=-U),U}function c(R){const F=b(R.getAttribute("x")||0),S=b(R.getAttribute("y")||0),P=b(R.getAttribute("rx")||R.getAttribute("ry")||0),H=b(R.getAttribute("ry")||R.getAttribute("rx")||0),N=b(R.getAttribute("width")),U=b(R.getAttribute("height")),rt=1-.551915024494,st=new Bs;return st.moveTo(F+P,S),st.lineTo(F+N-P,S),(P!==0||H!==0)&&st.bezierCurveTo(F+N-P*rt,S,F+N,S+H*rt,F+N,S+H),st.lineTo(F+N,S+U-H),(P!==0||H!==0)&&st.bezierCurveTo(F+N,S+U-H*rt,F+N-P*rt,S+U,F+N-P,S+U),st.lineTo(F+P,S+U),(P!==0||H!==0)&&st.bezierCurveTo(F+P*rt,S+U,F,S+U-H*rt,F,S+U-H),st.lineTo(F,S+H),(P!==0||H!==0)&&st.bezierCurveTo(F,S+H*rt,F+P*rt,S,F+P,S),st}function l(R){function F(N,U,rt){const st=b(U),nt=b(rt);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new Bs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!0,P}function u(R){function F(N,U,rt){const st=b(U),nt=b(rt);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new Bs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!1,P}function h(R){const F=b(R.getAttribute("cx")||0),S=b(R.getAttribute("cy")||0),P=b(R.getAttribute("r")||0),H=new Po;H.absarc(F,S,P,0,Math.PI*2);const N=new Bs;return N.subPaths.push(H),N}function d(R){const F=b(R.getAttribute("cx")||0),S=b(R.getAttribute("cy")||0),P=b(R.getAttribute("rx")||0),H=b(R.getAttribute("ry")||0),N=new Po;N.absellipse(F,S,P,H,0,Math.PI*2);const U=new Bs;return U.subPaths.push(N),U}function p(R){const F=b(R.getAttribute("x1")||0),S=b(R.getAttribute("y1")||0),P=b(R.getAttribute("x2")||0),H=b(R.getAttribute("y2")||0),N=new Bs;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 U=R.getAttribute("class").split(/\s/).filter(Boolean).map(rt=>rt.trim());for(let rt=0;rt0&&F.premultiply(M[M.length-1]),X.copy(F),M.push(F),F}function y(R){const F=new _n,S=V;if(R.nodeName==="use"&&(R.hasAttribute("x")||R.hasAttribute("y"))){const P=b(R.getAttribute("x")),H=b(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 U=N.indexOf("("),rt=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),G.identity().rotate(J),Y.multiplyMatrices(G,B),B.identity().translate(pt,K),S.multiplyMatrices(B,Y)}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 T(R,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const P=k(F),H=R.subPaths;for(let N=0,U=H.length;N=1||Y<0||Y>1)return null;if(M===0&&B===0){for(let j=0;j<2;j++)if(o(j===0?w:b,m,v),n.loc==s.ORIGIN){const z=j===0?w:b;return{x:z.x,y:z.y,t:n.t}}else if(n.loc==s.BETWEEN){const z=+(g+n.t*(y-g)).toPrecision(10),X=+(x+n.t*(C-x)).toPrecision(10);return{x:z,y:X,t:n.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?w:b,m,v),n.loc==s.ORIGIN){const Z=X===0?w:b;return{x:Z.x,y:Z.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(x+G*(C-x)).toPrecision(10);return{x:j,y:z,t:G}}}function o(m,v,w){const b=w.x-v.x,g=w.y-v.y,y=m.x-v.x,T=m.y-v.y,k=b*T-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===w.x&&m.y===w.y){n.loc=s.DESTINATION,n.t=1;return}if(k<-Number.EPSILON){n.loc=s.LEFT;return}if(k>Number.EPSILON){n.loc=s.RIGHT;return}if(b*y<0||g*T<0){n.loc=s.BEHIND;return}if(Math.sqrt(b*b+g*g)D.t<=O.t+Number.EPSILON&&D.t>=O.t-Number.EPSILON)===void 0&&(w.push(O),b.push(new _t(O.x,O.y)))}}return b}function c(m,v,w){const b=new _t;v.getCenter(b);const g=[];return w.forEach(y=>{y.boundingBox.containsPoint(b)&&a(m,y.points).forEach(k=>{g.push({identifier:y.identifier,isCW:y.isCW,point:k})})}),g.sort((y,T)=>y.point.x-T.point.x),g}function l(m,v,w,b,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const T=[new _t(w,y.y),new _t(b,y.y)],k=c(T,m.boundingBox,v);k.sort((V,B)=>V.point.x-B.point.x);const x=[],C=[];k.forEach(V=>{V.identifier===m.identifier?x.push(V):C.push(V)});const O=x[0].point.x,D=[];let M=0;for(;M0&&D[D.length-1]===C[M].identifier?D.pop():D.push(C[M].identifier),M++;if(D.push(m.identifier),g==="evenodd"){const V=D.length%2===0,B=D[D.length-2];return{identifier:m.identifier,isHole:V,for:B}}else if(g==="nonzero"){let V=!0,B=null,G=null;for(let Y=0;Y{const v=m.getPoints();let w=-999999999,b=999999999,g=-999999999,y=999999999;for(let T=0;Tw&&(w=k.y),k.yg&&(g=k.x),k.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:mf.isClockWise(v),identifier:u++,boundingBox:new _f(new _t(y,b),new _t(g,w))}});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 w=new tu;w.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],T=new Po;T.curves=y.curves,w.holes.push(T)}),f.push(w)}}),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(ki.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new gf;return c.setAttribute("position",new Mr(r,3)),c.setAttribute("normal",new Mr(o,3)),c.setAttribute("uv",new Mr(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,w=new _t,b=new _t,g=new _t,y=new _t,T=new _t,k=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 D=t[0].equals(t[O-1]);let M,V=t[0],B;const G=e.strokeWidth/2,Y=1/(O-1);let j=0,z,X,Z,et,R=!1,F=0,S=c*3,P=c*2;H(t[0],t[1],l).multiplyScalar(G),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),w.copy(m),b.copy(v);for(let K=1;K=n&&A.push(K[E]);return A.push(K[K.length-1]),A}}}function Vf(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]=I.useState(!1),[v,w]=I.useReducer((T,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?T.includes(k)?T.filter(C=>C!==k):[k,...T]:T[0]===k?[]:[k],[]);I.useEffect(()=>void(s==null?void 0:s(v)),[v]);const b=I.useCallback(T=>{T.stopPropagation(),w({object:o([T.object])[0],shift:t&&T.shiftKey})},[]),g=I.useCallback(T=>!f&&w({}),[f]),y=I.useRef(null);return I.useEffect(()=>{if(!i||!t)return;const T=new Lf(l,y.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=n,k.style.backgroundColor=r,k.style.position="fixed";const x=new _t,C=new _t,O=new _t,D=_().events.enabled,M=d==null?void 0:d.enabled;let V=!1;function B(R,F){const{offsetX:S,offsetY:P}=R,{width:H,height:N}=p;F.set(S/H*2-1,-(P/N)*2+1)}function G(R){var F;d&&(d.enabled=!1),c({enabled:!1}),V=!0,(F=h.domElement.parentElement)==null||F.appendChild(k),k.style.left=`${R.clientX}px`,k.style.top=`${R.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=R.clientX,x.y=R.clientY}function Y(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),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${O.x-C.x}px`,k.style.height=`${O.y-C.y}px`}function j(){if(V){var R;d&&(d.enabled=M),c({enabled:D}),V=!1,(R=k.parentElement)==null||R.removeChild(k)}}function z(R){R.shiftKey&&(G(R),B(R,T.startPoint))}let X=[];function Z(R){if(V){Y(R),B(R,T.endPoint);const F=T.select().sort(S=>S.uuid).filter(S=>S.isMesh);Vf(F,X)||(X=F,w({object:o(F)}))}}function et(R){V&&j()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",Z,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),I.createElement("group",Se({ref:y,onClick:b,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),I.createElement(Uf.Provider,{value:v},e))}const Ra=I.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=I.useRef();return Pe(({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)}),I.createElement("group",Se({ref:uo([a,o])},r))}),zc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Qs(i,t){const e=It(n=>n.gl),s=ho(fo,zc(i)?Object.values(i):i);if(I.useLayoutEffect(()=>{t==null||t(s)},[t]),I.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}Qs.preload=i=>ho.preload(fo,i);Qs.clear=i=>ho.clear(fo,i);const jf=I.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=ho(ki,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(_=>ki.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return I.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),I.createElement("object3D",Se({ref:l},c),I.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return I.createElement(I.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&ki.createShapes(d).map((m,v)=>I.createElement("mesh",Se({key:v},o),I.createElement("shapeGeometry",{args:[m]}),I.createElement("meshBasicMaterial",Se({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:sa,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)=>I.createElement("mesh",Se({key:v,geometry:h[p][v]},a),I.createElement("meshBasicMaterial",Se({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:sa,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},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}),yn={NONE:0,IN:1,OUT:-1};function qs(i){return i.isPerspectiveCamera}function Ts(i){return i.isOrthographicCamera}const vn=Math.PI*2,jc=Math.PI/2,su=1e-5,li=Math.PI/180;function Re(i,t,e){return Math.max(t,Math.min(e,i))}function Et(i,t=su){return Math.abs(i)0==p>u&&(p=u,e.value=(p-u)/r),p}function qc(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,w=d,b=n*s,g=b*b,y=p*p+_*_+f*f;if(y>g){const G=Math.sqrt(y);p=p/G*b,_=_/G*b,f=f/G*b}u=i.x-p,h=i.y-_,d=i.z-f;const T=(e.x+a*p)*r,k=(e.y+a*_)*r,x=(e.z+a*f)*r;e.x=(e.x-a*T)*l,e.y=(e.y-a*k)*l,e.z=(e.z-a*x)*l,o.x=u+(p+T)*l,o.y=h+(_+k)*l,o.z=d+(f+x)*l;const C=m-i.x,O=v-i.y,D=w-i.z,M=o.x-m,V=o.y-v,B=o.z-w;return C*M+O*V+D*B>0&&(o.x=m,o.y=v,o.z=w,e.x=(o.x-m)/r,e.y=(o.y-v)/r,e.z=(o.z-w)/r),o}function Ro(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 Fo(i,t){return Ts(i)?(console.warn(`${t} is not supported in OrthographicCamera`),!0):!1}class Bf{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=yn.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new at.Vector3,this._focalOffsetVelocity=new at.Vector3,this._zoomVelocity={value:0},this._truckInternal=(g,y,T)=>{let k,x;if(qs(this._camera)){const C=ht.copy(this._camera.position).sub(this._target),O=this._camera.getEffectiveFOV()*li,D=C.length()*Math.tan(O*.5);k=this.truckSpeed*g*D/this._elementRect.height,x=this.truckSpeed*y*D/this._elementRect.height}else if(Ts(this._camera)){const C=this._camera;k=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?(T?this.setFocalOffset(this._focalOffsetEnd.x+k,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(k,0,!0),this.forward(-x,!0)):T?this.setFocalOffset(this._focalOffsetEnd.x+k,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(k,x,!0)},this._rotateInternal=(g,y)=>{const T=vn*this.azimuthRotateSpeed*g/this._elementRect.height,k=vn*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(T,k,!0)},this._dollyInternal=(g,y,T)=>{const k=Math.pow(.95,-g*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*k,O=Re(C,this.minDistance,this.maxDistance),D=O-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(D,!0),this._dollyToNoClamp(O,!0)):this._dollyToNoClamp(O,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:O)-x,this._dollyControlCoord.set(y,T)),this._lastDollyDirection=Math.sign(-g)},this._zoomInternal=(g,y,T)=>{const k=Math.pow(.95,g*this.dollySpeed),x=this._zoom,C=this._zoom*k;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(y,T))},typeof at>"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 at.Quaternion().setFromUnitVectors(this._camera.up,vr),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=W.NONE,this._target=new at.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new at.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new at.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 at.Vector3,new at.Vector3,new at.Vector3,new at.Vector3],this._updateNearPlaneCorners(),this._boundary=new at.Box3(new at.Vector3(-1/0,-1/0,-1/0),new at.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 at.Vector2,this.mouseButtons={left:W.ROTATE,middle:W.DOLLY,right:W.TRUCK,wheel:qs(this._camera)?W.DOLLY:Ts(this._camera)?W.ZOOM:W.NONE},this.touches={one:W.TOUCH_ROTATE,two:qs(this._camera)?W.TOUCH_DOLLY_TRUCK:Ts(this._camera)?W.TOUCH_ZOOM_TRUCK:W.NONE,three:W.TOUCH_TRUCK};const s=new at.Vector2,n=new at.Vector2,r=new at.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 k=this._domElement.getBoundingClientRect(),x=g.clientX/k.width,C=g.clientY/k.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 k=this._findPointerByMouseButton(y);k&&this._disposePointer(k)}if((g.buttons&ct.LEFT)===ct.LEFT&&this._lockedPointer)return;const T={pointerId:g.pointerId,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,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 k=this._domElement.getBoundingClientRect(),x=g.clientX/k.width,C=g.clientY/k.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 k=this._findPointerByMouseButton(y);k&&this._disposePointer(k)}const T={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(T),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,f(g)},c=g=>{g.cancelable&&g.preventDefault();const y=g.pointerId,T=this._lockedPointer||this._findPointerById(y);if(T){if(T.clientX=g.clientX,T.clientY=g.clientY,T.deltaX=g.movementX,T.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,D=g.clientY/C.height;if(Othis._interactiveArea.right||Dthis._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=Wf?-1:-3,T=g.deltaMode===1?g.deltaY/y:g.deltaY/(y*10),k=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(-T,k,x),this._isUserControllingDolly=!0;break}case W.ZOOM:{this._zoomInternal(-T,k,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},_=g=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===na.ACTION.NONE){const y=g instanceof PointerEvent?g.pointerId:(g instanceof MouseEvent,0),T=this._findPointerById(y);T&&this._disposePointer(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}g.preventDefault()}},f=g=>{if(!this._enabled)return;if(Ro(this._activePointers,ae),this._getClientRect(this._elementRect),s.copy(ae),n.copy(ae),this._activePointers.length>=2){const T=ae.x-this._activePointers[1].clientX,k=ae.y-this._activePointers[1].clientY,x=Math.sqrt(T*T+k*k);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,Ro(this._activePointers,ae);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,T=y?-y.deltaX:n.x-ae.x,k=y?-y.deltaY:n.y-ae.y;if(n.copy(ae),((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(T,k),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*k*yr,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(O*k*yr,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=ae.x-this._activePointers[1].clientX,C=ae.y-this._activePointers[1].clientY,O=Math.sqrt(x*x+C*C),D=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(D*yr,M,V),this._isUserControllingDolly=!0):(this._zoomInternal(D*yr,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(T,k,!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(T,k,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},v=()=>{Ro(this._activePointers,ae),n.copy(ae),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",w),this._domElement.ownerDocument.addEventListener("pointerlockerror",b),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",w),this._domElement.ownerDocument.removeEventListener("pointerlockerror",b))};const w=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},b=()=>{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),Hf&&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",w),this._domElement.ownerDocument.removeEventListener("pointerlockerror",b))},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=Re(t.width,0,1),this._interactiveArea.height=Re(t.height,0,1),this._interactiveArea.x=Re(t.x,0,1-this._interactiveArea.width),this._interactiveArea.y=Re(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=Re(t,this.minAzimuthAngle,this.maxAzimuthAngle),r=Re(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=yn.NONE,this._changedDolly=0,this._dollyToNoClamp(Re(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(di).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=Re(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(),Ye.setFromMatrixColumn(this._camera.matrix,0),Ge.setFromMatrixColumn(this._camera.matrix,1),Ye.multiplyScalar(t),Ge.multiplyScalar(-e);const n=ht.copy(Ye).add(Ge),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?kn.copy(t):kn.setFromObject(t);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=Bc(this._sphericalEnd.theta,jc),h=Bc(this._sphericalEnd.phi,jc);c.push(this.rotateTo(u,h,e));const d=ht.setFromSpherical(this._sphericalEnd).normalize(),p=$c.setFromUnitVectors(d,Lo),_=gt(Math.abs(d.y),1);_&&p.multiply(Uo.setFromAxisAngle(vr,u)),p.multiply(this._yAxisUpSpaceInverse);const f=Gc.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(Lo,d),_&&p.premultiply(Uo.invert()),p.premultiply(this._yAxisUpSpace);const m=f.getSize(ht),v=f.getCenter(mt).applyQuaternion(p);if(qs(this._camera)){const w=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.dollyTo(w,e)),c.push(this.setFocalOffset(0,0,0,e))}else if(Ts(this._camera)){const w=this._camera,b=w.right-w.left,g=w.top-w.bottom,y=s?Math.max(b/m.x,g/m.y):Math.min(b/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 at.Sphere?Vo.copy(t):na.createBoundingSphere(t,Vo);if(s.push(this.moveTo(r.center.x,r.center.y,r.center.z,e)),qs(this._camera)){const o=this.getDistanceToFitSphere(r.radius);s.push(this.dollyTo(o,e))}else if(Ts(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=yn.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=yn.NONE,this._changedDolly=0;const f=ht.set(n,r,o),m=mt.set(t,e,s);we.setFromVector3(m.sub(f).applyQuaternion(this._yAxisUpSpace));const v=xn.set(u,h,d),w=mt.set(a,c,l);fi.setFromVector3(w.sub(v).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(f.lerp(v,p));const b=fi.theta-we.theta,g=fi.phi-we.phi,y=fi.radius-we.radius;this._sphericalEnd.set(we.radius+y*p,we.phi+g*p,we.theta+b*p),this.normalizeRotations(),this._needsUpdate=!0,_||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const T=!_||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(T)}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=Re(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(),Ye.setFromMatrixColumn(this._camera.matrixWorldInverse,0),Ge.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Ws.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const n=ht.set(t,e,s),r=n.distanceTo(this._camera.position),o=n.sub(this._camera.position);Ye.multiplyScalar(o.x),Ge.multiplyScalar(o.y),Ws.multiplyScalar(o.z),ht.copy(Ye).add(Ge).add(Ws),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 at.Vector4,typeof t=="number"?this._viewport.set(t,e,s,n):this._viewport.copy(t)}getDistanceToFitBox(t,e,s,n=!1){if(Fo(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const r=t/e,o=this._camera.getEffectiveFOV()*li,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,xn).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(qs(this._camera)){const t=this._camera,e=t.near,s=t.getEffectiveFOV()*li,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(Ts(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)||Fo(this._camera,"_collisionTest"))return t;const s=this._getTargetDirection(di);zo.lookAt(Wc,s,this._camera.up);for(let n=0;n<4;n++){const r=mt.copy(this._nearPlaneCorners[n]);r.applyMatrix4(zo);const o=xn.addVectors(this._target,r);xr.set(o,s),xr.far=this._spherical.radius+1;const a=xr.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 at.Sphere){const s=e,n=s.center;kn.makeEmpty(),t.traverseVisible(o=>{o.isMesh&&kn.expandByObject(o)}),kn.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{I.useMemo(()=>{jo.install({THREE:yf}),Da({CameraControlsImpl:jo})},[]);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),w=e||u,b=s||p.connected||h.domElement,g=I.useMemo(()=>new jo(w),[w]);return Pe((y,T)=>{g.enabled&&g.update(T)},-1),I.useEffect(()=>(g.connect(b),()=>void g.disconnect()),[b,g]),I.useEffect(()=>{const y=x=>{d(),c&&v.regress(),a&&a(x)},T=x=>{r&&r(x)},k=x=>{o&&o(x)};return g.addEventListener("update",y),g.addEventListener("controlstart",T),g.addEventListener("controlend",k),()=>{g.removeEventListener("update",y),g.removeEventListener("controlstart",T),g.removeEventListener("controlend",k)}},[g,r,o,d,_,c,a]),I.useEffect(()=>{if(n){const y=m().controls;return f({controls:g}),()=>f({controls:y})}},[n,g]),I.createElement("primitive",Se({ref:t,object:g},l))});ei.func.isRequired,ei.arrayOf(ei.oneOfType([ei.element,ei.func])).isRequired;const Xc=new er,Zc=new er,kr=[],pi=new eu;class Gf extends xf{constructor(){super(),this.color=new Na("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;pi.geometry=s.geometry;const n=s.matrixWorld,r=s.userData.instances.indexOf(this.instanceKey);if(!(r===-1||r>s.count)){s.getMatrixAt(r,Xc),Zc.multiplyMatrices(n,Xc),pi.matrixWorld=Zc,s.material instanceof kf?pi.material.side=s.material.side:pi.material.side=s.material[0].side,pi.raycast(t,kr);for(let o=0,a=kr.length;o{I.useMemo(()=>Da({PositionMesh:Gf}),[]);const n=I.useRef(),{subscribe:r,getParent:o}=I.useContext(i||iu);return I.useLayoutEffect(()=>r(n),[]),I.createElement("positionMesh",Se({instance:o(),instanceKey:n,ref:uo([s,n])},e),t)}),Xf=I.forwardRef(({children:i,range:t,limit:e=1e3,frames:s=1/0,...n},r)=>{const[{context:o,instance:a}]=I.useState(()=>{const m=I.createContext(null);return{context:m,instance:I.forwardRef((v,w)=>I.createElement(ru,Se({context:m},v,{ref:w})))}}),c=I.useRef(null),[l,u]=I.useState([]),[[h,d]]=I.useState(()=>{const m=new Float32Array(e*16);for(let v=0;v1))]});I.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let p=0,_=0;Pe(()=>{if(s===1/0||p({getParent:()=>c,subscribe:m=>(u(v=>[...v,m]),()=>u(v=>v.filter(w=>w.current!==m.current)))}),[]);return I.createElement("instancedMesh",Se({userData:{instances:l},matrixAutoUpdate:!1,ref:uo([r,c]),args:[null,null,0],raycast:()=>null},n),I.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Fc}),I.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Fc}),typeof i=="function"?I.createElement(o.Provider,{value:f},i(a)):I.createElement(iu.Provider,{value:f},i))}),ou=I.createContext(null),Zf=I.forwardRef((i,t)=>{I.useMemo(()=>Da({SegmentObject:Qf}),[]);const{limit:e=1e3,lineWidth:s=1,children:n,...r}=i,[o,a]=I.useState([]),[c]=I.useState(()=>new Zl),[l]=I.useState(()=>new Fd),[u]=I.useState(()=>new Ld),[h]=I.useState(()=>new _t(512,512)),[d]=I.useState(()=>Array(e*6).fill(0)),[p]=I.useState(()=>Array(e*6).fill(0)),_=I.useMemo(()=>({subscribe:f=>(a(m=>[...m,f]),()=>a(m=>m.filter(v=>v.current!==f.current)))}),[]);return Pe(()=>{for(let m=0;mi instanceof it?i:new it(...typeof i=="number"?[i,i,i]:i),Kf=I.forwardRef(({color:i,start:t,end:e},s)=>{const n=I.useContext(ou);if(!n)throw"Segment must used inside Segments component.";const r=I.useRef(null);return I.useLayoutEffect(()=>n.subscribe(r),[]),I.createElement("segmentObject",{ref:uo([r,s]),color:i,start:sl(t),end:sl(e)})});function Jf({all:i,scene:t,camera:e}){const s=It(({gl:o})=>o),n=It(({camera:o})=>o),r=It(({scene:o})=>o);return I.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 Tf(128);new wf(.01,1e5,a).update(s,t||r),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function t0({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 I.useEffect(()=>{const o=t.domElement;return()=>{e&&r(n),i&&o&&(o.style.imageRendering="auto")}},[]),I.useEffect(()=>{r(s*n),i&&t.domElement&&(t.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function e0(){const i=It(s=>s.get),t=It(s=>s.setEvents),e=It(s=>s.performance.current);return I.useEffect(()=>{const s=i().events.enabled;return()=>t({enabled:s})},[]),I.useEffect(()=>t({enabled:e===1}),[e]),null}const s0=I.createContext(null);function n0({children:i,enabled:t=!0}){const[e,s]=I.useState([]),n=I.useMemo(()=>({selected:e,select:s,enabled:t}),[e,s,t]);return L.jsx(s0.Provider,{value:n,children:i})}const i0={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Es=Hl(i=>({...i0,setIsUserDragging:t=>i({isUserDragging:t}),setIsUserScrolling:t=>i({isUserScrolling:t}),setUserMovedCamera:t=>i({userMovedCamera:t}),setIsUserScrollingOnHtmlPanel:t=>i({isUserScrollingOnHtmlPanel:t})})),r0=()=>{const[i,t]=I.useState(""),e=I.useRef(null),{fetchData:s,setAbortRequests:n,seedQuestions:r}=Vs(g=>g),[o]=Gl(g=>[g.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=Ji(g=>({setUniverseQuestionIsOpen:g.setUniverseQuestionIsOpen,setSidebarOpen:g.setSidebarOpen,setShowCollapseButton:g.setShowCollapseButton})),u=Sd(g=>g.resetAiSummaryAnswer),[h,d]=I.useState([]);I.useEffect(()=>{r&&d(w(r).slice(0,4))},[r]),I.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)},w=g=>{const y=[...g];let T=y.length-1;for(;T>0;){const k=Math.floor(Math.random()*(T+1));[y[T],y[k]]=[y[k],y[T]],T-=1}return y},b=!!i&&i.trim().length>0;return L.jsxs(c0,{children:["Ideas have shapes",L.jsxs(a0,{onKeyDown:f,py:12,tabIndex:-1,children:[L.jsx(o0,{ref:e,onChange:g=>t(g.target.value),placeholder:"What do you want to know?",value:i}),L.jsx(l0,{color:"secondary",disabled:!b,onClick:()=>p(i),variant:"contained",children:b?L.jsxs(L.Fragment,{children:["Search ",L.jsx(Ic,{})]}):L.jsx(Ic,{})})]}),h.length>0&&L.jsx(h0,{children:h.map(g=>L.jsxs(d0,{onClick:()=>m(g),children:[L.jsx(Hd,{}),g]},g))}),L.jsx(u0,{"data-testid":"explore-graph-btn",onClick:v,startIcon:L.jsx(Yd,{}),children:"Explore Graph"})]})},o0=Ut(hf).attrs({maxRows:3})` - background: ${Tt.BG1}; - max-width: 700px; - width: 700px; - color: ${Tt.white}; - padding: 0 16px 0 16px; - overflow-y: auto !important; - border: none; - resize: none; - outline: none; - border-radius: 12px; - font-family: 'Barlow'; - display: flex; - align-items: center; - text-align: justify; - font-size: 16px; - font-weight: 400; - - &:-moz-placeholder, /* Firefox 18- */ - &::-moz-placeholder, /* Firefox 19+ */ - &:-ms-input-placeholder, /* IE 10+ */ - &::-webkit-input-placeholder, /* Webkit based */ - &::placeholder { - color: #0bf; - } - - &::-webkit-scrollbar { - width: 3px; - } - - &::-webkit-scrollbar-track { - border-radius: 12px; - margin: 13px; - overflow-y: hidden; - } -`,a0=Ut(_s)` - position: relative; - margin-top: 30px; - background: ${Tt.BG1}; - max-width: 702px; - width: 702px; - color: ${Tt.white}; - min-height: 150px; - border: 1px solid ${Tt.modalShield}; - resize: none; - outline: none; - border-radius: 12px; - box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); -`,c0=Ut(_s)` - background: #16161de3; - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - color: #fff; - align-items: center; - justify-content: center; - font-size: 32px; - font-style: normal; - font-weight: 700; - line-height: 16px; - font-family: 'Barlow'; -`,l0=Ut(Yl)` - && { - position: absolute; - bottom: 16px; - right: 16px; - height: 32px; - border-radius: 16px; - min-width: 32px; - } - - &&.MuiButton-root { - padding: 0 10px 0 12px; - } - - svg { - margin-top: 1px; - width: 11px; - height: 11px; - } -`,u0=Ut(Yl)` - && { - position: absolute; - bottom: 20px; - right: 20px; - border-radius: 16px; - } -`,h0=Ut.div` - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 10px; - margin-top: 20px; - max-width: 702px; - width: 100%; -`,d0=Ut.div` - background: ${Tt.BG1}; - color: ${Tt.white}; - padding: 15px 12px; - border-radius: 8px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: flex-start; - text-align: left; - font-family: Barlow; - font-size: 14px; - font-weight: 400; - gap: 10px; - &:hover { - background: ${Tt.SEEDQUESTION_HOVER}; - } - - &:active { - background: ${Tt.SEEDQUESTION}; - } - svg { - width: 20px; - height: 20px; - } - - path { - fill: ${Tt.modalWhiteOverlayBg}; - } -`,Ti=new it(0,0,0),nl=100,f0=600,p0=2e3,Bo={x:172.7392402058252,y:-239.04675366094037,z:-2e3},au="14.8.49",il=(i,t,e)=>({endTime:t,insertTime:e,type:"exponentialRampToValue",value:i}),rl=(i,t,e)=>({endTime:t,insertTime:e,type:"linearRampToValue",value:i}),ia=(i,t)=>({startTime:t,type:"setValue",value:i}),cu=(i,t,e)=>({duration:e,startTime:t,type:"setValueCurve",values:i}),lu=(i,t,{startTime:e,target:s,timeConstant:n})=>s+(t-s)*Math.exp((e-i)/n),En=i=>i.type==="exponentialRampToValue",Fr=i=>i.type==="linearRampToValue",ws=i=>En(i)||Fr(i),Fa=i=>i.type==="setValue",as=i=>i.type==="setValueCurve",Lr=(i,t,e,s)=>{const n=i[t];return n===void 0?s:ws(n)||Fa(n)?n.value:as(n)?n.values[n.values.length-1]:lu(e,Lr(i,t-1,n.startTime,s),n)},ol=(i,t,e,s,n)=>e===void 0?[s.insertTime,n]:ws(e)?[e.endTime,e.value]:Fa(e)?[e.startTime,e.value]:as(e)?[e.startTime+e.duration,e.values[e.values.length-1]]:[e.startTime,Lr(i,t-1,e.startTime,n)],ra=i=>i.type==="cancelAndHold",oa=i=>i.type==="cancelScheduledValues",ks=i=>ra(i)||oa(i)?i.cancelTime:En(i)||Fr(i)?i.endTime:i.startTime,al=(i,t,e,{endTime:s,value:n})=>e===n?n:0e+(i-t)/(s-t)*(n-e),m0=(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]},_0=(i,{duration:t,startTime:e,values:s})=>{const n=(i-e)/t*(s.length-1);return m0(s,n)},Tr=i=>i.type==="setTarget";class g0{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const e=ks(t);if(ra(t)||oa(t)){const s=this._automationEvents.findIndex(r=>oa(t)&&as(r)?r.startTime+r.duration>=e:ks(r)>=e),n=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),ra(t)){const r=this._automationEvents[this._automationEvents.length-1];if(n!==void 0&&ws(n)){if(r!==void 0&&Tr(r))throw new Error("The internal list is malformed.");const o=r===void 0?n.insertTime:as(r)?r.startTime+r.duration:ks(r),a=r===void 0?this._defaultValue:as(r)?r.values[r.values.length-1]:r.value,c=En(n)?al(e,o,a,n):cl(e,o,a,n),l=En(n)?il(c,e,this._currenTime):rl(c,e,this._currenTime);this._automationEvents.push(l)}if(r!==void 0&&Tr(r)&&this._automationEvents.push(ia(this.getValue(e),e)),r!==void 0&&as(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;hks(o)>e),n=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(n!==void 0&&as(n)&&ks(n)+n.duration>e)return!1;const r=En(t)?il(t.value,t.endTime,this._currenTime):Fr(t)?rl(t.value,e,this._currenTime):t;if(s===-1)this._automationEvents.push(r);else{if(as(t)&&e+t.duration>ks(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,r)}}return!0}flush(t){const e=this._automationEvents.findIndex(s=>ks(s)>t);if(e>1){const s=this._automationEvents.slice(e-1),n=s[0];Tr(n)&&s.unshift(ia(Lr(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=>ks(o)>t),s=this._automationEvents[e],n=(e===-1?this._automationEvents.length:e)-1,r=this._automationEvents[n];if(r!==void 0&&Tr(r)&&(s===void 0||!ws(s)||s.insertTime>t))return lu(t,Lr(this._automationEvents,n-1,r.startTime,this._defaultValue),r);if(r!==void 0&&Fa(r)&&(s===void 0||!ws(s)))return r.value;if(r!==void 0&&as(r)&&(s===void 0||!ws(s)||r.startTime+r.duration>t))return t({cancelTime:i,type:"cancelAndHold"}),v0=i=>({cancelTime:i,type:"cancelScheduledValues"}),x0=(i,t)=>({endTime:t,type:"exponentialRampToValue",value:i}),k0=(i,t)=>({endTime:t,type:"linearRampToValue",value:i}),T0=(i,t,e)=>({startTime:t,target:i,timeConstant:e,type:"setTarget"}),w0=()=>new DOMException("","AbortError"),b0=i=>(t,e,[s,n,r],o)=>{i(t[n],[e,s,r],a=>a[0]===e&&a[1]===s,o)},C0=i=>(t,e,s)=>{const n=[];for(let r=0;r(t,e)=>{i.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})},Ln=new WeakSet,uu=new WeakMap,La=new WeakMap,hu=new WeakMap,Va=new WeakMap,mo=new WeakMap,du=new WeakMap,aa=new WeakMap,ca=new WeakMap,la=new WeakMap,fu={construct(){return fu}},E0=i=>{try{const t=new Proxy(i,fu);new t}catch{return!1}return!0},ll=/^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]*);?/,ul=(i,t)=>{const e=[];let s=i.replace(/^[\s]+/,""),n=s.match(ll);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(ll)}return[e.join(";"),s]},hl=i=>{if(i!==void 0&&!Array.isArray(i))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},dl=i=>{if(!E0(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.")},O0=(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 w=l.get(_);if(w!==void 0){const y=w.get(f);if(y!==void 0)return y}const b=r(_),g=b.audioWorklet===void 0?n(f).then(([y,T])=>{const[k,x]=ul(y,T),C=`${k};((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(b.currentTime,b.sampleRate,()=>y(class{},void 0,(T,k)=>{if(T.trim()==="")throw t();const x=ca.get(b);if(x!==void 0){if(x.has(T))throw t();dl(k),hl(k.parameterDescriptors),x.set(T,k)}else dl(k),hl(k.parameterDescriptors),ca.set(b,new Map([[T,k]]))},b.sampleRate,void 0,void 0))}):Promise.all([n(f),Promise.resolve(i(h,h))]).then(([[y,T],k])=>{const x=p+1;p=x;const[C,O]=ul(y,T),B=`${C};((AudioWorkletProcessor,registerProcessor)=>{${O} -})(${k?"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{${k?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${k?"":"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}})`,G=new Blob([B],{type:"application/javascript; charset=utf-8"}),Y=URL.createObjectURL(G);return b.audioWorklet.addModule(Y,m).then(()=>{if(a(b))return b;const j=o(b);return j.audioWorklet.addModule(Y,m).then(()=>j)}).then(j=>{if(c===null)throw new SyntaxError;try{new c(j,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Y))});return w===void 0?l.set(_,new Map([[f,g]])):w.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},_o=(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},pu=(i,t,e,s)=>{const n=ze(i,t),r=_o(n,o=>o[0]===e&&o[1]===s);return n.size===0&&i.delete(t),r},sr=i=>ze(du,i),Vn=i=>{if(Ln.has(i))throw new Error("The AudioNode is already stored.");Ln.add(i),sr(i).forEach(t=>t(!0))},mu=i=>"port"in i,nr=i=>{if(!Ln.has(i))throw new Error("The AudioNode is not stored.");Ln.delete(i),sr(i).forEach(t=>t(!1))},ua=(i,t)=>{!mu(i)&&t.every(e=>e.size===0)&&nr(i)},A0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{const p=new WeakMap;return(_,f,m,v,w)=>{const{activeInputs:b,passiveInputs:g}=r(f),{outputs:y}=r(_),T=a(_),k=x=>{const C=c(f),O=c(_);if(x){const D=pu(g,_,m,v);i(b,_,D,!1),!w&&!h(_)&&e(O,C,m,v),d(f)&&Vn(f)}else{const D=s(b,_,m,v);t(g,v,D,!1),!w&&!h(_)&&n(O,C,m,v);const M=o(f);if(M===0)u(f)&&ua(f,b);else{const V=p.get(f);V!==void 0&&clearTimeout(V),p.set(f,setTimeout(()=>{u(f)&&ua(f,b)},M*1e3))}}};return l(y,[f,m,v],x=>x[0]===f&&x[1]===m&&x[2]===v,!0)?(T.add(k),u(_)?i(b,_,[m,v,k],!0):t(g,v,[_,m,k],!0),!0):!1}},M0=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)},D0=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)},P0=i=>(t,e)=>{i(t).add(e)},I0={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},N0=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...I0,...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,R0=(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)}}},Vr=i=>{try{i.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},ts=()=>new DOMException("","IndexSizeError"),Ua=i=>{i.getChannelData=(t=>e=>{try{return t.call(i,e)}catch(s){throw s.code===12?ts():s}})(i.getChannelData)},F0={numberOfChannels:1},L0=(i,t,e,s,n,r,o,a)=>{let c=null;return class _u{constructor(u){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:p}={...F0,...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(_),Ua(_)):t(Vr,()=>Vr(_))||a(_),i.add(_),_}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===_u.prototype||i.has(u)}}},ce=-34028234663852886e22,ne=-ce,us=i=>Ln.has(i),V0={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},U0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...V0,...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,ce)}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"){Vn(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),us(this)&&nr(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},z0=(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,B0=i=>"frequency"in i&&"gain"in i,q0=i=>"offset"in i,W0=i=>!("frequency"in i)&&"gain"in i,H0=i=>"detune"in i&&"frequency"in i,Y0=i=>"pan"in i,re=i=>ze(uu,i),ir=i=>ze(hu,i),ha=(i,t)=>{const{activeInputs:e}=re(i);e.forEach(n=>n.forEach(([r])=>{t.includes(i)||ha(r,[...t,i])}));const s=j0(i)?[i.playbackRate]:mu(i)?Array.from(i.parameters.values()):B0(i)?[i.Q,i.detune,i.frequency,i.gain]:q0(i)?[i.offset]:W0(i)?[i.gain]:H0(i)?[i.detune,i.frequency]:Y0(i)?[i.pan]:[];for(const n of s){const r=ir(n);r!==void 0&&r.activeInputs.forEach(([o])=>ha(o,t))}us(i)&&nr(i)},gu=i=>{ha(i.destination,[])},G0=i=>i===void 0||typeof i=="number"||typeof i=="string"&&(i==="balanced"||i==="interactive"||i==="playback"),$0=(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(!G0(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()),gu(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})}},X0=(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}},Z0=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)}}},Q0=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),T=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),k=o(l);let x=!1,C=[0,0,-1,0,1,0],O=[0,0,0];const D=()=>{if(x)return;x=!0;const G=s(l,256,9,0);G.onaudioprocess=({inputBuffer:Y})=>{const j=[r(Y,y,0),r(Y,y,1),r(Y,y,2),r(Y,y,3),r(Y,y,4),r(Y,y,5)];j.some((X,Z)=>X!==C[Z])&&(u.setOrientation(...j),C=j);const z=[r(Y,y,6),r(Y,y,7),r(Y,y,8)];z.some((X,Z)=>X!==O[Z])&&(u.setPosition(...z),O=z)},T.connect(G)},M=G=>Y=>{Y!==C[G]&&(C[G]=Y,u.setOrientation(...C))},V=G=>Y=>{Y!==O[G]&&(O[G]=Y,u.setPosition(...O))},B=(G,Y,j)=>{const z=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y});z.connect(T,0,G),z.start(),Object.defineProperty(z.offset,"defaultValue",{get(){return Y}});const X=i({context:c},k,z.offset,ne,ce);return a(X,"value",Z=>()=>Z.call(X),Z=>et=>{try{Z.call(X,et)}catch(R){if(R.code!==9)throw R}D(),k&&j(et)}),X.cancelAndHoldAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.linearRampToValueAtTime),X.setTargetAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.setTargetAtTime),X.setValueAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.setValueAtTime),X.setValueCurveAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.setValueCurveAtTime),X};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:w,upY:b,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 w},get upY(){return b},get upZ(){return g}}},Ur=i=>"context"in i,rr=i=>Ur(i[0]),dn=(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},fl=(i,t,[e,s],n)=>{dn(i,[t,e,s],r=>r[0]===t&&r[1]===e,n)},pl=(i,[t,e,s],n)=>{const r=i.get(t);r===void 0?i.set(t,new Set([[e,s]])):dn(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]},yu=(i,t,e)=>{for(const s of i)if(s[0]===t&&s[1]===e)return i.delete(s),s;return null},K0=(i,t,e)=>_o(i,s=>s[0]===t&&s[1]===e),vu=(i,t)=>{if(!sr(i).delete(t))throw new Error("Missing the expected event listener.")},xu=(i,t,e)=>{const s=ze(i,t),n=_o(s,r=>r[0]===e);return s.size===0&&i.delete(t),n},jr=(i,t,e,s)=>{Xn(t)?i.disconnect(t.inputs[s],e,0):i.disconnect(t,e,s)},Dt=i=>ze(La,i),Ei=i=>ze(Va,i),rn=i=>aa.has(i),Dr=i=>!Ln.has(i),ml=(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()}}),qo=(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))},Br=i=>"context"in i,J0=i=>{const t=new Map;i.connect=(e=>(s,n=0,r=0)=>{const o=Br(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=>{Br(o)?i.connect(o,c.output,c.input):i.connect(o,c.output)})})(i.disconnect)},tp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=ir(t),{outputs:o}=re(i),a=sr(i),c=l=>{const u=Dt(i),h=Ei(t);if(l){const d=xu(r,i,e);fl(n,i,d,!1),!s&&!rn(i)&&u.connect(h,e)}else{const d=K0(n,i,e);pl(r,d,!1),!s&&!rn(i)&&u.disconnect(h,e)}};return dn(o,[t,e],l=>l[0]===t&&l[1]===e,!0)?(a.add(c),us(i)?fl(n,i,[e,c],!0):pl(r,[i,e,c],!0),!0):!1},ep=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=re(t),o=yu(n[s],i,e);return o===null?[pu(r,i,e,s)[2],!1]:[o[2],!0]},sp=(i,t,e)=>{const{activeInputs:s,passiveInputs:n}=ir(t),r=yu(s,i,e);return r===null?[xu(n,i,e)[1],!1]:[r[2],!0]},za=(i,t,e,s,n)=>{const[r,o]=ep(i,e,s,n);if(r!==null&&(vu(i,r),o&&!t&&!rn(i)&&jr(Dt(i),Dt(e),s,n)),us(e)){const{activeInputs:a}=re(e);ua(e,a)}},ja=(i,t,e,s)=>{const[n,r]=sp(i,e,s);n!==null&&(vu(i,n),r&&!t&&!rn(i)&&Dt(i).disconnect(Ei(e),s))},np=(i,t)=>{const e=re(i),s=[];for(const n of e.outputs)rr(n)?za(i,t,...n):ja(i,t,...n),s.push(n[0]);return e.outputs.clear(),s},ip=(i,t,e)=>{const s=re(i),n=[];for(const r of s.outputs)r[1]===e&&(rr(r)?za(i,t,...r):ja(i,t,...r),n.push(r[0]),s.outputs.delete(r));return n},rp=(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=>(rr(o)?za(i,t,...o):ja(i,t,...o),r.outputs.delete(o),o[0]))},op=(i,t,e,s,n,r,o,a,c,l,u,h,d,p,_,f)=>class extends l{constructor(v,w,b,g){super(b),this._context=v,this._nativeAudioNode=b;const y=u(v);h(y)&&e(ml,()=>ml(y,f))!==!0&&J0(b),La.set(this,b),du.set(this,new Set),v.state!=="closed"&&w&&Vn(this),i(this,g,b)}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,w=0,b=0){if(w<0||w>=this._nativeAudioNode.numberOfOutputs)throw n();const g=u(this._context),y=_(g);if(d(v)||p(v))throw r();if(Ur(v)){const x=Dt(v);try{const O=zr(this._nativeAudioNode,x,w,b),D=Dr(this);(y||D)&&this._nativeAudioNode.disconnect(...O),this.context.state!=="closed"&&!D&&Dr(v)&&Vn(v)}catch(O){throw O.code===12?r():O}if(t(this,v,w,b,y)){const O=c([this],v);qo(O,s(y))}return v}const T=Ei(v);if(T.name==="playbackRate"&&T.maxValue===1024)throw o();try{this._nativeAudioNode.connect(T,w),(y||Dr(this))&&this._nativeAudioNode.disconnect(T,w)}catch(x){throw x.code===12?r():x}if(tp(this,v,w,y)){const x=c([this],v);qo(x,s(y))}}disconnect(v,w,b){let g;const y=u(this._context),T=_(y);if(v===void 0)g=np(this,T);else if(typeof v=="number"){if(v<0||v>=this.numberOfOutputs)throw n();g=ip(this,T,v)}else{if(w!==void 0&&(w<0||w>=this.numberOfOutputs)||Ur(v)&&b!==void 0&&(b<0||b>=v.numberOfInputs))throw n();if(g=rp(this,T,v,w,b),g.length===0)throw r()}for(const k of g){const x=c([this],k);qo(x,a)}}},ap=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m=null,v=null)=>{const w=f.value,b=new g0(w),g=_?s(b):null,y={get defaultValue(){return w},get maxValue(){return m===null?f.maxValue:m},get minValue(){return v===null?f.minValue:v},get value(){return f.value},set value(T){f.value=T,y.setValueAtTime(T,p.context.currentTime)},cancelAndHoldAtTime(T){if(typeof f.cancelAndHoldAtTime=="function")g===null&&b.flush(p.context.currentTime),b.add(n(T)),f.cancelAndHoldAtTime(T);else{const k=Array.from(b).pop();g===null&&b.flush(p.context.currentTime),b.add(n(T));const x=Array.from(b).pop();f.cancelScheduledValues(T),k!==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(T){return g===null&&b.flush(p.context.currentTime),b.add(r(T)),f.cancelScheduledValues(T),y},exponentialRampToValueAtTime(T,k){if(T===0)throw new RangeError;if(!Number.isFinite(k)||k<0)throw new RangeError;const x=p.context.currentTime;return g===null&&b.flush(x),Array.from(b).length===0&&(b.add(l(w,x)),f.setValueAtTime(w,x)),b.add(o(T,k)),f.exponentialRampToValueAtTime(T,k),y},linearRampToValueAtTime(T,k){const x=p.context.currentTime;return g===null&&b.flush(x),Array.from(b).length===0&&(b.add(l(w,x)),f.setValueAtTime(w,x)),b.add(a(T,k)),f.linearRampToValueAtTime(T,k),y},setTargetAtTime(T,k,x){return g===null&&b.flush(p.context.currentTime),b.add(c(T,k,x)),f.setTargetAtTime(T,k,x),y},setValueAtTime(T,k){return g===null&&b.flush(p.context.currentTime),b.add(l(T,k)),f.setValueAtTime(T,k),y},setValueCurveAtTime(T,k,x){const C=T instanceof Float32Array?T:new Float32Array(T);if(h!==null&&h.name==="webkitAudioContext"){const O=k+x,D=p.context.sampleRate,M=Math.ceil(k*D),V=Math.floor(O*D),B=V-M,G=new Float32Array(B);for(let j=0;j({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 ku{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 lp={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},up=(i,t,e,s,n,r,o,a,c,l,u,h,d,p)=>class extends t{constructor(f,m,v){var w;const b=a(f),g=c(b),y=u({...lp,...v});d(y);const T=ca.get(b),k=T==null?void 0:T.get(m),x=g||b.state!=="closed"?b:(w=o(b))!==null&&w!==void 0?w:b,C=n(x,g?null:f.baseLatency,l,m,k,y),O=g?s(m,y,k):null;super(f,!0,C,O);const D=[];C.parameters.forEach((V,B)=>{const G=e(this,g,V);D.push([B,G])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new ku(D),g&&i(b,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 qr(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 Tu=(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)},Wr=(i,t)=>{const e=[];for(let s=0;s{const e=ze(la,i),s=Dt(t);return ze(e,s)},dp=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 hp(e,i),p=Wr(s.numberOfInputs,s.channelCount),_=Wr(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{qr(t,f,v,c+w,m)});for(let v=0;vh.activeInputs[g].size===0?[]:b),w=o(m/e.sampleRate,e.sampleRate,()=>d.process(v,_,f));if(u!==null)for(let b=0,g=0;b(m,v,w)=>{const b=new WeakMap;let g=null;const y=async(T,k)=>{let x=u(T),C=null;const O=se(x,k),D=Array.isArray(v.outputChannelCount)?v.outputChannelCount:Array.from(v.outputChannelCount);if(h===null){const M=D.reduce((Y,j)=>Y+j,0),V=n(k,{channelCount:Math.max(1,M),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,M)}),B=[];for(let Y=0;Y{const et=new d(X,Math.ceil(T.context.length/128)*128,k.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,j+z)});for(let H=0;H_(T,et,H))),f(et)})(),k,v,D,w,l)}const M=await g,V=e(k,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[B,G,Y]=C;M!==null&&(V.buffer=M,V.start(0)),V.connect(B);for(let j=0,z=0;jclass extends _{constructor(y,T){super(y,T),this._nativeContext=y,this._audioWorklet=i===void 0?void 0:{addModule:(k,x)=>i(this,k,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new t(this)}createBiquadFilter(){return new n(this)}createBuffer(y,T,k){return new e({length:T,numberOfChannels:y,sampleRate:k})}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,T){return new p(this,{feedback:T,feedforward:y})}createOscillator(){return new f(this)}createPanner(){return new m(this)}createPeriodicWave(y,T,k={disableNormalization:!1}){return new v(this,{...k,imag:T,real:y})}createStereoPanner(){return new w(this)}createWaveShaper(){return new b(this)}decodeAudioData(y,T,k){return l(this._nativeContext,y).then(x=>(typeof T=="function"&&T(x),x),x=>{throw typeof k=="function"&&k(x),x})}},mp={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},_p=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...mp,...u},p=n(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._Q=t(this,_,p.Q,ne,ce),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),ce),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()}},gp=(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)}}},yp=(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}},vp={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},xp=(i,t,e,s,n)=>class extends i{constructor(o,a){const c=s(o),l={...vp,...a},u=e(c,l),h=n(c)?t():null;super(o,!1,u,h)}},kp=(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)}}},Tp={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},wp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=r({...Tp,...c}),h=e(l,u),d=n(l)?t():null;super(a,!1,h,d)}},bp=(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)}}},Cp=i=>(t,e,s)=>i(e,t,s),Sp=i=>(t,e,s=0,n=0)=>{const r=t[s];if(r===void 0)throw i();return Br(e)?r.connect(e,0,n):r.connect(e,0)},Ep=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)}},Op={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},Ap=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Op,...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,ce),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"){Vn(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),us(this)&&nr(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},Mp=(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)}}},Dp=i=>t=>(i[0]=t,i[0]),Pp={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},Ip=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u={...Pp,...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}},Np=(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)}}},Rp=(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}},Fp=()=>new DOMException("","DataCloneError"),_l=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()}})},Lp=(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(_=>(_l(d).catch(()=>{}),t(a,()=>a(_))||u(_),i.add(_),_)):new Promise((_,f)=>{const m=async()=>{try{await _l(d)}catch{}},v=w=>{f(w),m()};try{p.decodeAudioData(d,w=>{typeof w.copyFromChannel!="function"&&(l(w),Ua(w)),i.add(w),m().then(()=>_(w))},w=>{v(w===null?s():w)})}catch(w){v(w)}})},Vp=(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(rr(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)},Up={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},zp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Up,...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)}}},Bp=i=>(t,e,s,n)=>i(t[n],r=>r[0]===e&&r[1]===s),qp=i=>(t,e)=>{i(t).delete(e)},Wp=i=>"delayTime"in i,Hp=(i,t,e)=>function s(n,r){const o=Ur(r)?r:e(i,r);if(Wp(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),[])},wr=(i,t,e)=>{const s=t[e];if(s===void 0)throw i();return s},Yp=i=>(t,e=void 0,s=void 0,n=0)=>e===void 0?t.forEach(r=>r.disconnect()):typeof e=="number"?wr(i,t,e).disconnect():Br(e)?s===void 0?t.forEach(r=>r.disconnect(e)):n===void 0?wr(i,t,s).disconnect(e,0):wr(i,t,s).disconnect(e,0,n):s===void 0?t.forEach(r=>r.disconnect(e)):wr(i,t,s).disconnect(e,0),Gp={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},$p=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...Gp,...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}},Xp=(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)}}},Zp=()=>new DOMException("","EncodingError"),Qp=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)}}),Kp=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)}},Jp=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)}},tm=i=>async t=>{try{const e=await fetch(t);if(e.ok)return[await e.text(),e.url]}catch{}throw i()},em={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},sm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...em,...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,ce)}get gain(){return this._gain}},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={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)}}},im=(i,t)=>e=>t(i,e),rm=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},om=i=>t=>{var e;return(e=i.get(t))!==null&&e!==void 0?e:0},am=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},cm=i=>t=>i.get(t),Xt=()=>new DOMException("","InvalidStateError"),lm=i=>t=>{const e=i.get(t);if(e===void 0)throw Xt();return e},um=(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},hm=i=>t=>{const e=i.get(t);if(e===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return e},go=()=>new DOMException("","InvalidAccessError"),dm=i=>{i.getFrequencyResponse=(t=>(e,s,n)=>{if(e.length!==s.length||s.length!==n.length)throw go();return t.call(i,e,s,n)})(i.getFrequencyResponse)},fm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},pm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=n(l),h={...fm,...c},d=t(l,u?null:a.baseLatency,h),p=u?e(h.feedback,h.feedforward):null;super(a,!1,d,p),dm(d),this._nativeIIRFilterNode=d,r(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},wu=(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 mm(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)}}},gm=(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(rr(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)},ym=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},vm=(i,t)=>e=>i.has(e)||t(e),xm=(i,t)=>e=>i.has(e)||t(e),km=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Tm=i=>t=>i!==null&&t instanceof i,wm=i=>t=>i!==null&&typeof i.AudioNode=="function"&&t instanceof i.AudioNode,bm=i=>t=>i!==null&&typeof i.AudioParam=="function"&&t instanceof i.AudioParam,Cm=(i,t)=>e=>i(e)||t(e),Sm=i=>t=>i!==null&&t instanceof i,Em=i=>i!==null&&i.isSecureContext,Om=(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}},Am={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},Mm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r);if(s(a))throw new TypeError;const c={...Am,...o},l=t(a,c);super(r,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},Dm=(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}},Pm=(i,t,e)=>class extends i{constructor(n,r){const o=e(n),a=t(o,r);super(n,!0,a,null)}},Im=(i,t,e,s,n,r)=>class extends e{constructor(a,c){super(a),this._nativeContext=a,mo.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}},Oi=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},Nm=(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)},Gt=(i,t)=>{Pt(i,t,"channelCount"),Pt(i,t,"channelCountMode"),Pt(i,t,"channelInterpretation")},gl=i=>typeof i.getFloatTimeDomainData=="function",Rm=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(Gt(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(gl,()=>gl(n))||Rm(n),n},Lm=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)},Vm=i=>{i.start=(t=>{let e=!1;return(s=0,n=0,r)=>{if(e)throw Xt();t.call(i,s,n,r),e=!0}})(i.start)},Ba=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)},qa=i=>{i.stop=(t=>(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");t.call(i,e)})(i.stop)},Um=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=h.createBufferSource();return Gt(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))||Vm(p),t(s,()=>s(h))||c(p),t(n,()=>n(h))||l(p,h),t(r,()=>r(h))||Ba(p),t(o,()=>o(h))||u(p,h),t(a,()=>a(h))||qa(p),i(h,p),p},zm=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},Bm=i=>i===null?null:i.hasOwnProperty("AudioWorkletNode")?i.AudioWorkletNode:null,qm=i=>{const{port1:t}=new MessageChannel;try{t.postMessage(i)}finally{t.close()}},Wm=(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]=w=>{w.type==="error"?(Object.defineProperties(w,{type:{value:"processorerror"}}),m(w)):m(new ErrorEvent(f[0],{...w}))},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)},bu=(i,t)=>i===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(i*t))))),Hm=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)}),Ym=async(i,t)=>{const e=await Hm(t);return new i(e)},Gm=(i,t,e,s)=>{let n=la.get(i);n===void 0&&(n=new WeakMap,la.set(i,n));const r=Ym(e,s);return n.set(t,r),r},$m=(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 w=m.channelCount*m.numberOfInputs,b=v.reduce((q,A)=>q+A,0),g=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(w+g>6||b>6)throw c();const y=new MessageChannel,T=[],k=[];for(let q=0;qq===void 0?0:q},maxValue:{get:()=>A===void 0?ne:A},minValue:{get:()=>E===void 0?ce:E}}),x.push(tt)}const C=s(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,w+g)}),O=bu(_,p.sampleRate),D=a(p,O,w+g,Math.max(1,b)),M=n(p,{channelCount:Math.max(1,b),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,b)}),V=[];for(let q=0;q{const E=x[A];return E.connect(C,0,w+A),E.start(0),[q,E.offset]}));C.connect(D);let G=m.channelInterpretation,Y=null;const j=m.numberOfOutputs===0?[D]:V,z={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 G},set channelInterpretation(q){for(const A of T)A.channelInterpretation=q;G=q},get context(){return D.context},get inputs(){return T},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return Y},set onprocessorerror(q){typeof Y=="function"&&z.removeEventListener("processorerror",Y),Y=typeof q=="function"?q:null,typeof Y=="function"&&z.addEventListener("processorerror",Y)},get parameters(){return B},get port(){return y.port2},addEventListener(...q){return D.addEventListener(q[0],q[1],q[2])},connect:i.bind(null,j),disconnect:l.bind(null,j),dispatchEvent(...q){return D.dispatchEvent(q[0])},removeEventListener(...q){return D.removeEventListener(q[0],q[1],q[2])}},X=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 Q=X.get(A[1]);Q!==void 0?A[1]=Q:(A[1]=tt=>{u(p.currentTime,p.sampleRate,()=>E(tt))},X.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=X.get(A[1]);E!==void 0&&(X.delete(A[1]),A[1]=E)}return q.call(y.port1,A[0],A[1],A[2])})(y.port1.removeEventListener);let Z=null;Object.defineProperty(y.port1,"onmessage",{get:()=>Z,set:q=>{typeof Z=="function"&&y.port1.removeEventListener("message",Z),Z=typeof q=="function"?q:null,typeof Z=="function"&&(y.port1.addEventListener("message",Z),y.port1.start())}}),f.prototype.port=y.port1;let et=null;Gm(p,z,f,m).then(q=>et=q);const F=Wr(m.numberOfInputs,m.channelCount),S=Wr(m.numberOfOutputs,v),P=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((q,{name:A})=>({...q,[A]:new Float32Array(128)}),{});let H=!0;const N=()=>{m.numberOfOutputs>0&&D.disconnect(M);for(let q=0,A=0;q{if(et!==null){const E=h(z);for(let Q=0;Q{qr(q,P,tt,w+lt,Q)});for(let tt=0;tt{if(E[Yt].size>0)return U.set(Yt,O/128),vt;const ti=U.get(Yt);return ti===void 0?[]:(vt.every(Do=>Do.every(dr=>dr===0))&&(ti===1?U.delete(Yt):U.set(Yt,ti-1)),vt)});H=u(p.currentTime+Q/p.sampleRate,p.sampleRate,()=>et.process(tt,S,P));for(let vt=0,Yt=0;vtD.connect(st).connect(p.destination),J=()=>{D.disconnect(st),st.disconnect()},pt=()=>{if(H){J(),m.numberOfOutputs>0&&D.connect(M);for(let q=0,A=0;q{H&&(nt(),N()),rt=!1};return nt(),d(z,pt,K)},Cu=(i,t)=>{const e=i.createBiquadFilter();return Gt(e,t),Ft(e,t,"Q"),Ft(e,t,"detune"),Ft(e,t,"frequency"),Ft(e,t,"gain"),Pt(e,t,"type"),e},Xm=(i,t)=>(e,s)=>{const n=e.createChannelMerger(s.numberOfInputs);return i!==null&&i.name==="webkitAudioContext"&&t(e,n),Gt(n,s),n},Zm=i=>{const t=i.numberOfOutputs;Object.defineProperty(i,"channelCount",{get:()=>t,set:e=>{if(e!==t)throw Xt()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:e=>{if(e!=="explicit")throw Xt()}}),Object.defineProperty(i,"channelInterpretation",{get:()=>"discrete",set:e=>{if(e!=="discrete")throw Xt()}})},or=(i,t)=>{const e=i.createChannelSplitter(t.numberOfOutputs);return Gt(e,t),Zm(e),e},Qm=(i,t,e,s,n)=>(r,o)=>{if(r.createConstantSource===void 0)return e(r,o);const a=r.createConstantSource();return Gt(a,o),Ft(a,o,"offset"),t(s,()=>s(r))||Ba(a),t(n,()=>n(r))||qa(a),i(r,a),a},Zn=(i,t)=>(i.connect=t.connect.bind(t),i.disconnect=t.disconnect.bind(t),i),Km=(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(Zn(h,l),d,p)},Jm=(i,t)=>(e,s)=>{const n=e.createConvolver();if(Gt(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},Su=(i,t)=>{const e=i.createDelay(t.maxDelayTime);return Gt(e,t),Ft(e,t,"delayTime"),e},t_=i=>(t,e)=>{const s=t.createDynamicsCompressor();if(Gt(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 Gt(e,t),Ft(e,t,"gain"),e},e_=i=>(t,e,s)=>{if(t.createIIRFilter===void 0)return i(t,e,s);const n=t.createIIRFilter(s.feedforward,s.feedback);return Gt(n,s),n};function s_(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 n_(i,t){return[i[0]*t[0]-i[1]*t[1],i[0]*t[1]+i[1]*t[0]]}function yl(i,t){let e=[0,0];for(let s=i.length-1;s>=0;s-=1)e=n_(e,t),e[0]+=i[s];return e}const i_=(i,t,e,s)=>(n,r,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=bu(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,D=C.numberOfChannels;for(let M=0;Mi.createMediaElementSource(t.mediaElement),o_=(i,t)=>{const e=i.createMediaStreamDestination();return Gt(e,t),e.numberOfOutputs===1&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e},a_=(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},c_=(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},l_=i=>i===null?null:i.hasOwnProperty("OfflineAudioContext")?i.OfflineAudioContext:i.hasOwnProperty("webkitOfflineAudioContext")?i.webkitOfflineAudioContext:null,u_=(i,t,e,s,n,r)=>(o,a)=>{const c=o.createOscillator();return Gt(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))||Ba(c),t(s,()=>s(o))||r(c,o),t(n,()=>n(o))||qa(c),i(o,c),c},h_=i=>(t,e)=>{const s=t.createPanner();return s.orientationX===void 0?i(t,e):(Gt(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)},d_=(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:w,panningModel:b,positionX:g,positionY:y,positionZ:T,refDistance:k,rolloffFactor:x,...C})=>{const O=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();Gt(O,C);const D={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},M=e(u,{...D,channelInterpretation:"speakers",numberOfInputs:6}),V=s(u,{...C,gain:1}),B=s(u,{...D,gain:1}),G=s(u,{...D,gain:0}),Y=s(u,{...D,gain:0}),j=s(u,{...D,gain:0}),z=s(u,{...D,gain:0}),X=s(u,{...D,gain:0}),Z=n(u,256,6,1),et=r(u,{...D,curve:new Float32Array([1,1]),oversample:"none"});let R=[m,v,w],F=[g,y,T];const S=new Float32Array(1);Z.onaudioprocess=({inputBuffer:U})=>{const rt=[c(U,S,0),c(U,S,1),c(U,S,2)];rt.some((nt,J)=>nt!==R[J])&&(O.setOrientation(...rt),R=rt);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(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(j.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const P={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 G.gain},get orientationZ(){return Y.gain},get panningModel(){return O.panningModel},set panningModel(U){O.panningModel=U},get positionX(){return j.gain},get positionY(){return z.gain},get positionZ(){return X.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!==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),w!==P.orientationZ.value&&(P.orientationZ.value=w),b!==P.panningModel&&(P.panningModel=b),g!==P.positionX.value&&(P.positionX.value=g),y!==P.positionY.value&&(P.positionY.value=y),T!==P.positionZ.value&&(P.positionZ.value=T),k!==P.refDistance&&(P.refDistance=k),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=()=>{V.connect(O),i(V,et,0,0),et.connect(B).connect(M,0,0),et.connect(G).connect(M,0,1),et.connect(Y).connect(M,0,2),et.connect(j).connect(M,0,3),et.connect(z).connect(M,0,4),et.connect(X).connect(M,0,5),M.connect(Z).connect(u.destination)},N=()=>{V.disconnect(O),a(V,et,0,0),et.disconnect(B),B.disconnect(M),et.disconnect(G),G.disconnect(M),et.disconnect(Y),Y.disconnect(M),et.disconnect(j),j.disconnect(M),et.disconnect(z),z.disconnect(M),et.disconnect(X),X.disconnect(M),M.disconnect(Z),Z.disconnect(u.destination)};return l(Zn(P,O),H,N)},f_=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},ar=(i,t,e,s)=>i.createScriptProcessor(t,e,s),p_=(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 Gt(r,s),Ft(r,s,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>n,set:o=>{if(o!==n)throw t()}}),r},m_=(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 w=new Float32Array(16385),b=new Float32Array(16385);for(let C=0;C<16385;C+=1){const O=C/16384*c;w[C]=Math.cos(O),b[C]=Math.sin(O)}const g=e(_,{...l,gain:0}),y=s(_,{...u,curve:w}),T=s(_,{...u,curve:a}),k=e(_,{...l,gain:0}),x=s(_,{...u,curve:b});return{connectGraph(){f.connect(g),f.connect(T.inputs===void 0?T:T.inputs[0]),f.connect(k),T.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(k.gain),g.connect(v,0,0),k.connect(v,0,1)},disconnectGraph(){f.disconnect(g),f.disconnect(T.inputs===void 0?T:T.inputs[0]),f.disconnect(k),T.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(k.gain),g.disconnect(v,0,0),k.disconnect(v,0,1)}}},d=(_,f,m,v)=>{const w=new Float32Array(16385),b=new Float32Array(16385),g=new Float32Array(16385),y=new Float32Array(16385),T=Math.floor(16385/2);for(let j=0;j<16385;j+=1)if(j>T){const z=(j-T)/(16384-T)*c;w[j]=Math.cos(z),b[j]=Math.sin(z),g[j]=0,y[j]=1}else{const z=j/(16384-T)*c;w[j]=1,b[j]=0,g[j]=Math.cos(z),y[j]=Math.sin(z)}const k=t(_,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=e(_,{...l,gain:0}),C=s(_,{...u,curve:w}),O=e(_,{...l,gain:0}),D=s(_,{...u,curve:b}),M=s(_,{...u,curve:a}),V=e(_,{...l,gain:0}),B=s(_,{...u,curve:g}),G=e(_,{...l,gain:0}),Y=s(_,{...u,curve:y});return{connectGraph(){f.connect(k),f.connect(M.inputs===void 0?M:M.inputs[0]),k.connect(x,0),k.connect(O,0),k.connect(V,1),k.connect(G,1),M.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(D.inputs===void 0?D:D.inputs[0]),m.connect(B.inputs===void 0?B:B.inputs[0]),m.connect(Y.inputs===void 0?Y:Y.inputs[0]),C.connect(x.gain),D.connect(O.gain),B.connect(V.gain),Y.connect(G.gain),x.connect(v,0,0),V.connect(v,0,0),O.connect(v,0,1),G.connect(v,0,1)},disconnectGraph(){f.disconnect(k),f.disconnect(M.inputs===void 0?M:M.inputs[0]),k.disconnect(x,0),k.disconnect(O,0),k.disconnect(V,1),k.disconnect(G,1),M.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(D.inputs===void 0?D:D.inputs[0]),m.disconnect(B.inputs===void 0?B:B.inputs[0]),m.disconnect(Y.inputs===void 0?Y:Y.inputs[0]),C.disconnect(x.gain),D.disconnect(O.gain),B.disconnect(V.gain),Y.disconnect(G.gain),x.disconnect(v,0,0),V.disconnect(v,0,0),O.disconnect(v,0,1),G.disconnect(v,0,1)}}},p=(_,f,m,v,w)=>{if(f===1)return h(_,m,v,w);if(f===2)return d(_,m,v,w);throw n()};return(_,{channelCount:f,channelCountMode:m,pan:v,...w})=>{if(m==="max")throw n();const b=i(_,{...w,channelCount:1,channelCountMode:m,numberOfInputs:2}),g=e(_,{...w,channelCount:f,channelCountMode:m,gain:1}),y=e(_,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:v});let{connectGraph:T,disconnectGraph:k}=p(_,f,g,y,b);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&&k(),{connectGraph:T,disconnectGraph:k}=p(_,M,g,y,b),C&&T()),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=()=>{T(),C=!0},D=()=>{k(),C=!1};return r(Zn(x,b),O,D)}},__=(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);Gt(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)})},g_=(i,t,e,s,n)=>(r,{curve:o,oversample:a,...c})=>{const l=r.createWaveShaper(),u=r.createWaveShaper();Gt(l,c),Gt(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 w={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 T=y.length,k=new Float32Array(T+2-T%2),x=new Float32Array(T+2-T%2);k[0]=y[0],x[0]=-y[T-1];const C=Math.ceil((T+1)/2),O=(T+1)/2-1;for(let D=1;D{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(Zn(w,p),b,g)},oe=()=>new DOMException("","NotSupportedError"),y_={numberOfChannels:1},v_=(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}={...y_,...l},p=s(h,u,d);t(Oi,()=>Oi(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,gu(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},x_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},k_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...x_,...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"){Vn(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),us(this)&&nr(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},T_=(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)}}},w_={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},b_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...w_,...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,ce),this._orientationY=t(this,p,d.orientationY,ne,ce),this._orientationZ=t(this,p,d.orientationZ,ne,ce),this._positionX=t(this,p,d.positionX,ne,ce),this._positionY=t(this,p,d.positionY,ne,ce),this._positionZ=t(this,p,d.positionZ,ne,ce),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}},C_=(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},w={...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},b=se(m,_);if("bufferSize"in m)f=s(_,{...v,gain:1});else if(!b){const g={...w,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 D=new o(6,p.context.length,_.sampleRate),M=t(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});M.connect(D.destination),h=(async()=>{const V=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(B,G)=>{const Y=e(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G===0?1:0});return await a(D,B,Y.offset),Y}));for(let B=0;B<6;B+=1)V[B].connect(M,0,B),V[B].start(0);return l(D)})()}const g=await h,y=s(_,{...v,gain:1});await c(p,_,y);const T=[];for(let D=0;DB!==k[G])||V.some((B,G)=>B!==x[G])){k=M,x=V;const B=D/_.sampleRate;C.gain.setValueAtTime(0,B),C=s(_,{...v,gain:0}),O=n(_,{...w,orientationX:k[0],orientationY:k[1],orientationZ:k[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 b?(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,_)}}},S_={disableNormalization:!1},E_=(i,t,e,s)=>class Eu{constructor(r,o){const a=t(r),c=s({...S_,...o}),l=i(a,c);return e.add(l),l}static[Symbol.hasInstance](r){return r!==null&&typeof r=="object"&&Object.getPrototypeOf(r)===Eu.prototype||e.has(r)}},O_=(i,t)=>(e,s,n)=>(i(s).replay(n),t(s,e,n)),A_=(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],[]))},M_=(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)}))},D_=(i,t,e,s)=>n=>i(Oi,()=>Oi(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()}),P_=i=>(t,e)=>{i.set(t,e)},I_=i=>(t,e)=>i.set(t,e),N_=(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),Ua(u)):t(r,()=>r(u))||a(u),i.add(u),u)),R_={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},F_=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...R_,...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}},L_=(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)}}},V_=i=>()=>{if(i===null)return!1;try{new i({length:1,sampleRate:44100})}catch{return!1}return!0},U_=(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},z_=(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"),B_={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={...B_,...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}},W_=(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)}}},H_=()=>typeof window>"u"?null:window,Y_=(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))},X_=(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))},Ou=(i,t,e)=>i.copyFromChannel===void 0?i.getChannelData(e)[0]:(i.copyFromChannel(t,e),t[0]),Au=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},cr=(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)})},Z_=i=>({...i,outputChannelCount:i.outputChannelCount!==void 0?i.outputChannelCount:i.numberOfInputs===1&&i.numberOfOutputs===1?[i.channelCount]:Array.from({length:i.numberOfOutputs},()=>1)}),Q_=i=>({...i,channelCount:i.numberOfOutputs}),K_=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}},Mu=(i,t,e)=>{try{i.setValueAtTime(t,e)}catch(s){if(s.code!==9)throw s;Mu(i,t,e+1e-7)}},J_=i=>{const t=i.createBufferSource();t.start();try{t.start()}catch{return!0}return!1},tg=i=>{const t=i.createBufferSource(),e=i.createBuffer(1,1,44100);t.buffer=e;try{t.start(0,1)}catch{return!1}return!0},eg=i=>{const t=i.createBufferSource();t.start();try{t.stop()}catch{return!1}return!0},Wa=i=>{const t=i.createOscillator();try{t.start(-1)}catch(e){return e instanceof RangeError}return!1},Du=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}},Ha=i=>{const t=i.createOscillator();try{t.stop(-1)}catch(e){return e instanceof RangeError}return!1},sg=i=>{const{port1:t,port2:e}=new MessageChannel;try{t.postMessage(i)}finally{t.close(),e.close()}},ng=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)},Pu=(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),Zn(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)},Qn=(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)},ig=b0(dn),rg=M0(dn),og=Bp(_o),Iu=new WeakMap,ag=om(Iu),qe=yp(new Map,new WeakMap),Ke=H_(),Nu=Fm(qe,ts),Ya=rm(re),Qt=A_(re,Ya,rn),cg=R0(Nu,Dt,Qt),At=lm(mo),ys=l_(Ke),wt=Sm(ys),Ru=new WeakMap,Fu=Kp(Qn),lr=zm(Ke),Ga=Tm(lr),$a=wm(Ke),Lu=bm(Ke),Ai=Bm(Ke),Wt=op(C0(uu),A0(ig,rg,zr,og,jr,re,ag,sr,Dt,dn,us,rn,Dr),qe,gm(aa,jr,re,Dt,Ei,us),ts,go,oe,Vp(zr,aa,re,Dt,Ei,At,us,wt),Hp(Ru,re,ze),Fu,At,Ga,$a,Lu,wt,Ai),lg=N0(Wt,cg,ts,Nu,At,wt),Xa=new WeakSet,vl=Lm(Ke),Vu=Dp(new Uint32Array(1)),Za=Y_(Vu,ts),Qa=G_(Vu),Uu=L0(Xa,qe,oe,vl,ys,V_(vl),Za,Qa),yo=D0(me),zu=M_(Ya,ir,rn),es=Cp(zu),Kn=Um(yo,qe,J_,tg,eg,Wa,Du,Ha,ng,$_(cr),Pu),ss=O_(am(ir),zu),ug=z0(es,Kn,Dt,ss,Qt),We=ap(S0(hu),Ru,Va,cp,y0,v0,x0,k0,T0,ia,cu,lr,Mu),hg=U0(Wt,ug,We,Xt,Kn,At,wt,Qn),dg=X0(Wt,Z0,ts,Xt,jm(me,cr),At,wt,Qt),fg=gp(es,Cu,Dt,ss,Qt),fn=I_(Iu),pg=_p(Wt,We,fg,go,Cu,At,wt,fn),Us=Nm(dn,$a),mg=X_(Xt,Us),zs=Xm(lr,mg),_g=kp(zs,Dt,Qt),gg=xp(Wt,_g,zs,At,wt),yg=bp(or,Dt,Qt),vg=wp(Wt,yg,or,At,wt,Q_),xg=Km(yo,Kn,me,Us),Jn=Qm(yo,qe,xg,Wa,Ha),kg=Mp(es,Jn,Dt,ss,Qt),Tg=Ap(Wt,We,kg,Jn,At,wt,Qn),ju=Jm(oe,cr),wg=Np(ju,Dt,Qt),bg=Ip(Wt,wg,ju,At,wt,fn),Cg=jp(es,Su,Dt,ss,Qt),Sg=zp(Wt,We,Cg,Su,At,wt,fn),Bu=t_(oe),Eg=Xp(es,Bu,Dt,ss,Qt),Og=$p(Wt,We,Eg,Bu,oe,At,wt,fn),Ag=nm(es,me,Dt,ss,Qt),Mg=sm(Wt,We,Ag,me,At,wt),Dg=i_(go,Xt,ar,oe),vo=D_(qe,me,ar,z_(me,ys)),Pg=_m(Kn,Dt,ys,Qt,vo),Ig=e_(Dg),Ng=pm(Wt,Ig,Pg,At,wt,fn),Rg=Q0(We,zs,Jn,ar,oe,Ou,wt,cr),qu=new WeakMap,Fg=Im(dg,Rg,Fu,wt,qu,Qn),Wu=u_(yo,qe,Wa,Du,Ha,Pu),Lg=T_(es,Wu,Dt,ss,Qt),Vg=k_(Wt,We,Wu,Lg,At,wt,Qn),Hu=Ep(Kn),Ug=g_(Hu,Xt,me,Au,Us),xo=__(Hu,Xt,Ug,Au,Us,lr,cr),zg=d_(zr,Xt,zs,me,ar,xo,oe,jr,Ou,Us),Yu=h_(zg),jg=C_(es,zs,Jn,me,Yu,Dt,ys,ss,Qt,vo),Bg=b_(Wt,We,Yu,jg,At,wt,fn),qg=f_(ts),Wg=E_(qg,At,new WeakSet,K_),Hg=m_(zs,or,me,xo,oe,Us),Gu=p_(Hg,oe),Yg=L_(es,Gu,Dt,ss,Qt),Gg=F_(Wt,We,Gu,Yg,At,wt),$g=W_(xo,Dt,Qt),Xg=q_(Wt,Xt,xo,$g,At,wt,fn),$u=Em(Ke),Ka=Jp(Ke),Xu=new WeakMap,Zg=um(Xu,ys),Qg=$u?O0(qe,oe,Qp(Ke),Ka,tm(w0),At,Zg,wt,Ai,new WeakMap,new WeakMap,U_(Ai,ys),Ke):void 0,Kg=Cm(Ga,wt),Jg=Lp(Xa,qe,Fp,Zp,new WeakSet,At,Kg,Vr,Oi,Za,Qa),Zu=pp(Qg,lg,Uu,hg,pg,gg,vg,Tg,bg,Jg,Sg,Og,Mg,Ng,Fg,Vg,Bg,Wg,Gg,Xg),ty=Om(Wt,r_,At,wt),ey=Mm(Wt,o_,At,wt),sy=Dm(Wt,a_,At,wt),ny=c_(Xt,wt),iy=Pm(Wt,ny,At),ry=$0(Zu,Xt,oe,j_,ty,ey,sy,iy,lr),Ja=hm(qu),oy=P0(Ja),Qu=Sp(ts),ay=qp(Ja),Ku=Yp(ts),Ju=new WeakMap,cy=im(Ju,ze),ly=$m(Qu,ts,Xt,zs,or,Jn,me,ar,oe,Ku,Ka,cy,Us),uy=Wm(Xt,ly,me,oe,Us),hy=fp(es,Qu,Kn,zs,or,Jn,me,ay,Ku,Ka,Dt,Ai,ys,ss,Qt,vo),dy=cm(Xu),fy=P_(Ju),xl=$u?up(oy,Wt,We,hy,uy,re,dy,At,wt,Ai,Z_,fy,sg,Qn):void 0,py=Rp(oe,ys),my=N_(Xa,qe,Ya,Ja,vo,Vr,Za,Qa),_y=v_(Zu,qe,Xt,py,my),gy=ym(mo,Ga),yy=vm(La,$a),vy=xm(Va,Lu),xy=km(mo,wt);function xe(i){return typeof i>"u"}function dt(i){return!xe(i)}function ky(i){return typeof i=="function"}function Ds(i){return typeof i=="number"}function Ks(i){return Object.prototype.toString.call(i)==="[object Object]"&&i.constructor===Object}function Ty(i){return typeof i=="boolean"}function Ue(i){return Array.isArray(i)}function hs(i){return typeof i=="string"}function br(i){return hs(i)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(i)}function ut(i,t){if(!i)throw new Error(t)}function je(i,t,e=1/0){if(!(t<=i&&i<=e))throw new RangeError(`Value must be within [${t}, ${e}], got: ${i}`)}function th(i){!i.isOffline&&i.state!=="running"&&tc('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let eh=!1,kl=!1;function Tl(i){eh=i}function wy(i){xe(i)&&eh&&!kl&&(kl=!0,tc("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let sh=console;function by(...i){sh.log(...i)}function tc(...i){sh.warn(...i)}function Cy(i){return new ry(i)}function Sy(i,t,e){return new _y(i,t,e)}const Js=typeof self=="object"?self:null,Ey=Js&&(Js.hasOwnProperty("AudioContext")||Js.hasOwnProperty("webkitAudioContext"));function Oy(i,t,e){return ut(dt(xl),"This node only works in a secure context (https or localhost)"),new xl(i,t,e)}class Ay{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 - self.onmessage = function(msg){ - timeoutTime = parseInt(msg.data); - }; - // the tick function which posts a message - // and schedules a new tick - function tick(){ - setTimeout(tick, timeoutTime); - self.postMessage('tick'); - } - // call tick initially - tick(); - `],{type:"text/javascript"}),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 on(i){return vy(i)}function Os(i){return yy(i)}function Pr(i){return xy(i)}function Sn(i){return gy(i)}function My(i){return i instanceof Uu}function Dy(i,t){return i==="value"||on(t)||Os(t)||My(t)}function Pn(i,...t){if(!t.length)return i;const e=t.shift();if(Ks(i)&&Ks(e))for(const s in e)Dy(s,e[s])?i[s]=e[s]:Ks(e[s])?(i[s]||Object.assign(i,{[s]:{}}),Pn(i[s],e[s])):Object.assign(i,{[s]:e[s]});return Pn(i,...t)}function Py(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(Ks(r[0])&&s&&!Reflect.has(r[0],s)&&(Object.keys(r[0]).some(a=>Reflect.has(i,a))||(Pn(n,{[s]:r[0]}),e.splice(e.indexOf(s),1),r.shift())),r.length===1&&Ks(r[0]))Pn(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 vs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||Js&&this.toString()===Js.TONE_DEBUG_CLASS)&&by(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}vs.version=au;const ec=1e-6;function Un(i,t){return i>t+ec}function da(i,t){return Un(i,t)||Fe(i,t)}function Hr(i,t){return i+ecthis.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(Fe(this._timeline[e].time,t)){for(let s=e;s>=0&&Fe(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&&da(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&&Fe(this._timeline[s].time,t)){let n=s;for(let r=s;r>=0&&Fe(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 ih=[];function ko(i){ih.push(i)}function Ry(i){ih.forEach(t=>t(i))}const rh=[];function To(i){rh.push(i)}function Fy(i){rh.forEach(t=>t(i))}class ur extends vs{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(n=>{xe(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(xe(this._events)&&(this._events={}),this._events.hasOwnProperty(n))if(xe(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(ur.prototype,e);Object.defineProperty(t.prototype,e,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class oh extends ur{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let sc=class ah extends oh{constructor(){var t,e;super(),this.name="Context",this._constants=new Map,this._timeouts=new Ze,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=$(ah.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((t=arguments[0])===null||t===void 0?void 0:t.latencyHint)||""):(this._context=Cy({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new Ay(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||(Ry(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(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(t)}createMediaElementSource(t){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(t)}createMediaStreamDestination(){return ut(Sn(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 Oy(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 Sn(this._context)?this._context.resume():Promise.resolve()}close(){return qt(this,void 0,void 0,function*(){Sn(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&Fy(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 Ly extends oh{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){Ue(t)?t.forEach(e=>Mt(i,e)):Object.defineProperty(i,t,{enumerable:!0,writable:!1})}function nc(i,t){Ue(t)?t.forEach(e=>nc(i,e)):Object.defineProperty(i,t,{writable:!0})}const yt=()=>{};class xt extends vs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=yt;const t=$(xt.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,hs(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:Le().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=Ue(t)&&t[0].length>0,s=e?t.length:1,n=e?t[0].length:t.length,r=Le(),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(Ds(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 Le().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 wo extends sc{constructor(){super({clockSource:"offline",context:Pr(arguments[0])?arguments[0]:Sy(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:Pr(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=Pr(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 ch=new Ly;let Xs=ch;function Le(){return Xs===ch&&Ey&&Vy(new sc),Xs}function Vy(i,t=!1){t&&Xs.dispose(),Sn(i)?Xs=new sc(i):Pr(i)?Xs=new wo(i):Xs=i}function Uy(){return Xs.resume()}if(Js&&!Js.TONE_SILENCE_LOGGING){const t=` * Tone.js v${au} * `;console.log(`%c${t}`,"background: #000; color: #fff")}function zy(i){return Math.pow(10,i/20)}function jy(i){return 20*(Math.log(i)/Math.LN10)}function lh(i){return Math.pow(2,i/12)}let bo=440;function By(){return bo}function qy(i){bo=i}function fa(i){return Math.round(uh(i))}function uh(i){return 69+12*Math.log2(i/bo)}function Wy(i){return bo*Math.pow(2,(i-69)/12)}class ic extends vs{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 ic&&this.fromType(this._val),xe(this._val))return this._noArg();if(hs(this._val)&&xe(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(Ks(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 hs(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 Ve extends ic{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 Ve(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 Ve(this.context,e[0]).toSeconds();return e.forEach(r=>{const o=new Ve(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 fa(this.toFrequency())}_now(){return this.context.now()}}class Ee extends Ve{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return By()}static set A4(t){qy(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return this.defaultUnits==="midi"?t:Ee.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(t,e){const n=Hy[t.toLowerCase()]+(parseInt(e,10)+1)*12;return this.defaultUnits==="midi"?n:Ee.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 Ee(this.context,this.valueOf()*lh(t))}harmonize(t){return t.map(e=>this.transpose(e))}toMidi(){return fa(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/Ee.A4);let s=Math.round(12*e)+57;const n=Math.floor(s/12);return n<0&&(s+=-12*n),Yy[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 Wy(t)}static ftom(t){return fa(t)}}const Hy={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},Yy=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class wi extends Ve{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class le extends vs{constructor(){super();const t=$(le.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Le()}}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 wy(t),new Ve(this.context,t).toSeconds()}toFrequency(t){return new Ee(this.context,t).toFrequency()}toTicks(t){return new wi(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(s=>{xe(t[s])&&delete e[s]}),e}get(){const t=Iy(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 le?t[e]=s._getPartialProperties(t[e]):Ue(s)||Ds(s)||hs(s)||Ty(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 le?this[e].set(t[e]):this[e]=t[e])}),this}}class rc extends Ze{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 je(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 ot extends le{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return dt(this.input)?on(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 ot||Os(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 Ps(this,t,e,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return tc("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,s=0){return Gy(this,t,e,s),this}chain(...t){return Mi(this,...t),this}fan(...t){return t.forEach(e=>this.connect(e)),this}dispose(){return super.dispose(),dt(this.input)&&(this.input instanceof ot?this.input.dispose():Os(this.input)&&this.input.disconnect()),dt(this.output)&&(this.output instanceof ot?this.output.dispose():Os(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Mi(...i){const t=i.shift();i.reduce((e,s)=>(e instanceof ot?e.connect(s):Os(e)&&Ps(e,s),s),t)}function Ps(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 ot||Os(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 ot||t instanceof kt;)dt(t.input)&&(t=t.input);for(;i instanceof ot;)dt(i.output)&&(i=i.output);on(t)?i.connect(t,e):i.connect(t,e,s)}function Gy(i,t,e=0,s=0){if(dt(t))for(;t instanceof ot;)t=t.input;for(;!Os(i);)dt(i.output)&&(i=i.output);on(t)?i.disconnect(t,e):Os(t)?i.disconnect(t,e,s):i.disconnect()}class St extends ot{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(ot.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zn extends ot{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(ot.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"]);Ps(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 ot{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(ot.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,s=0){return oc(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 oc(i,t,e,s){(t instanceof kt||on(t)||t instanceof Ot&&t.override)&&(t.cancelScheduledValues(0),t.setValueAtTime(0,0),t instanceof Ot&&(t.overridden=!0)),Ps(i,t,e,s)}class Gr extends kt{constructor(){super($(Gr.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Ze(1/0),this._multiplier=1;const t=$(Gr.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(xe(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 $r extends Ot{constructor(){super($($r.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=$($r.getDefaults(),arguments,["value"]);this.input=this._param=new Gr({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 le{constructor(){super($(Xr.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new rc,this._tickOffset=new Ze,this._ticksAtTime=new Ze,this._secondsAtTime=new Ze;const t=$(Xr.getDefaults(),arguments,["frequency"]);this.frequency=new $r({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"},le.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=Fe(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}}ur.mixin(Di);class ac extends vs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=$(ac.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 hs(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 An extends wi{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 $y extends le{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Ze,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}}ko(i=>{i.draw=new $y({context:i})});To(i=>{i.draw.dispose()});class Xy extends vs{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 Zy(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 Zy{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 Is extends ot{constructor(){super($(Is.getDefaults(),arguments,["volume"])),this.name="Volume";const t=$(Is.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(ot.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 Qy=class pa extends ot{constructor(){super($(pa.getDefaults(),arguments)),this.name="Destination",this.input=new Is({context:this.context}),this.output=new St({context:this.context}),this.volume=this.input.volume;const t=$(pa.getDefaults(),arguments);Mi(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(ot.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),Mi(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};ko(i=>{i.destination=new Qy({context:i})});To(i=>{i.destination.dispose()});class Ky extends vs{constructor(t){super(),this.name="TimelineValue",this._timeline=new Ze({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 ds extends ot{constructor(){super(Object.assign($(ds.getDefaults(),arguments,["context"])))}connect(t,e=0,s=0){return oc(this,t,e,s),this}}class an extends ds{constructor(){super(Object.assign($(an.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=$(an.getDefaults(),arguments,["mapping","length"]);Ue(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):ky(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 Pi extends ds{constructor(){super(Object.assign($(Pi.getDefaults(),arguments,["value"]))),this.name="Pow";const t=$(Pi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new an({context:this.context,mapping:this._expFunc(t.value),length:8192}),this._exponent=t.value}static getDefaults(){return Object.assign(ds.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 Ns{constructor(t,e){this.id=Ns._eventId++,this._remainderTime=0;const s=Object.assign(Ns.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}}Ns._eventId=0;class cc extends Ns{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(cc.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({},Ns.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvent(){return Hr(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new An(this.context,this._nextTick).toSeconds()):-1}_createEvents(t){Hr(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 An(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);Un(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 Ii extends le{constructor(){super($(Ii.getDefaults(),arguments)),this.name="Transport",this._loop=new Ky(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Ze,this._repeatedEvents=new Xy,this._syncedSignals=[],this._swingAmount=0;const t=$(Ii.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Di({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(le.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 An(this.context,this._swingTicks*2/3).toSeconds()*n}Tl(!0),this._timeline.forEachAtTime(e,s=>s.invoke(t)),Tl(!1)}schedule(t,e){const s=new Ns(this,{callback:t,time:new wi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(t,e,s,n=1/0){const r=new cc(this,{callback:t,duration:new Ve(this.context,n).toTicks(),interval:new Ve(this.context,e).toTicks(),time:new wi(this.context,s).toTicks()});return this._addEvent(r,this._repeatedEvents)}scheduleOnce(t,e){const s=new Ns(this,{callback:t,once:!0,time:new wi(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 An(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){Ue(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new Ve(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new Ve(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 An(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 An(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 Pi(-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(),nc(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}ur.mixin(Ii);ko(i=>{i.transport=new Ii({context:i})});To(i=>{i.transport.dispose()});class ee extends ot{constructor(t){super(t),this.input=void 0,this._state=new rc("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 Is({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(ot.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=xe(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(n=this._clampToCurrentTime(n),!this._synced&&this._state.getValueAtTime(n)==="started")ut(Un(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(In(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 th(this.context),this._start(n,e,s);return this}stop(t){let e=xe(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(Un(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 jn extends zn{constructor(){super($(jn.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=$(jn.getDefaults(),arguments,["url","onload"]);Ps(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=In(e,this.loopStart):e=In(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;da(o,a)&&(o=(o-c)%l+c),Fe(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Hr(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 Ni extends ee{constructor(){super($(Ni.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const t=$(Ni.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 wl,"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=wl[this._type];this._source=new jn({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 Tn=44100*5,Wo=2,os={brown:null,pink:null,white:null},wl={get brown(){if(!os.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&&Py(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){je(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 Rs extends Ot{constructor(){super(Object.assign($(Rs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=$(Rs.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 Ri extends ee{constructor(){super($(Ri.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new Jy({context:this.context}),this._modulationNode=new St({context:this.context});const t=$(Ri.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 Rs({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 pn(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 Fi extends ee{constructor(){super($(Fi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new St({context:this.context,gain:0});const t=$(Fi.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 Rs({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Rs({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 pn(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 Bn extends ee{constructor(){super($(Bn.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new St({context:this.context,gain:0}),this._thresh=new an({context:this.context,mapping:e=>e<=0?-1:1});const t=$(Bn.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 pn(this,t)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Li extends ee{constructor(){super($(Li.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=$(Li.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(je(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 pn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class Vi extends ee{constructor(){super($(Vi.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Rs({context:this.context,value:2});const t=$(Vi.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Bn({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 pn(this,t)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const bl={am:Ri,fat:Li,fm:Fi,oscillator:Bt,pulse:Bn,pwm:Vi};class cn extends ee{constructor(){super($(cn.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=$(cn.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(),Fi.getDefaults(),Ri.getDefaults(),Li.getDefaults(),Bn.getDefaults(),Vi.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=bl[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 bl[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")&&Ds(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")&&Ds(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"))&&hs(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 pn(this,t)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class lc extends Ot{constructor(){super(Object.assign($(lc.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,Mi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Qr extends ds{constructor(){super(Object.assign($(Qr.getDefaults(),arguments,["min","max"]))),this.name="Scale";const t=$(Qr.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Rs({context:this.context,value:t.max-t.min}),this._add=this.output=new lc({context:this.context,value:t.min}),this._min=t.min,this._max=t.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(ds.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 hh(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){je(r,i,t),e.set(this,r)}})}}function xs(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){je(this.toSeconds(r),i,t),e.set(this,r)}})}}class Ui extends ee{constructor(){super($(Ui.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=$(Ui.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=In(e,this._loopStart):e=In(e,0);const n=this.toSeconds(e),r=s;s=In(s,Math.max(this._buffer.duration-n,0));let o=this.toSeconds(s);o=o/this._playbackRate,t=this.toSeconds(t);const a=new jn({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&&xe(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&&je(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&&je(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}}Be([xs(0)],Ui.prototype,"fadeIn",void 0);Be([xs(0)],Ui.prototype,"fadeOut",void 0);class t1 extends ds{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new an({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 Me extends ot{constructor(){super($(Me.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=$(Me.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(ot.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(hs(t))return t;{let s;for(s in Cr)if(Cr[s][e]===t)return s;return t}}_setCurve(t,e,s){if(hs(s)&&Reflect.has(Cr,s)){const n=Cr[s];Ks(n)?t!=="_decayCurve"&&(this[t]=n[e]):this[t]=n}else if(Ue(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=$(ln.getDefaults(),arguments);this._volume=this.output=new Is({context:this.context,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume")}static getDefaults(){return Object.assign(ot.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 fs extends ln{constructor(){super($(fs.getDefaults(),arguments));const t=$(fs.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(ln.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 Ee?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}}Be([xs(0)],fs.prototype,"portamento",void 0);class Co extends Me{constructor(){super($(Co.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 fs{constructor(){super($(zi.getDefaults(),arguments)),this.name="Synth";const t=$(zi.getDefaults(),arguments);this.oscillator=new cn(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 Co(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(fs.getDefaults(),{envelope:Object.assign(On(Me.getDefaults(),Object.keys(ot.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(On(cn.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 ji extends ot{constructor(){super($(ji.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const t=$(ji.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(ot.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=Ds(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()}),nc(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class Bi extends Me{constructor(){super($(Bi.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const t=$(Bi.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=t.octaves,this._baseFrequency=this.toFrequency(t.baseFrequency),this._exponent=this.input=new Pi({context:this.context,value:t.exponent}),this._scale=this.output=new Qr({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(Me.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(t){const e=this.toFrequency(t);je(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 qi extends fs{constructor(){super($(qi.getDefaults(),arguments)),this.name="MonoSynth";const t=$(qi.getDefaults(),arguments);this.oscillator=new cn(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 qn(Object.assign(t.filter,{context:this.context})),this.filterEnvelope=new Bi(Object.assign(t.filterEnvelope,{context:this.context})),this.envelope=new Co(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(fs.getDefaults(),{envelope:Object.assign(On(Me.getDefaults(),Object.keys(ot.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(On(qn.getDefaults(),Object.keys(ot.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(On(Bi.getDefaults(),Object.keys(ot.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(On(cn.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 Wi extends zi{constructor(){super($(Wi.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=$(Wi.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,Mt(this,["oscillator","envelope"])}static getDefaults(){return Pn(fs.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 Ee?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}}Be([hh(0)],Wi.prototype,"octaves",void 0);Be([xs(0)],Wi.prototype,"pitchDecay",void 0);const dh=new Set;function uc(i){dh.add(i)}function fh(i,t){const e=`registerProcessor("${i}", ${t})`;dh.add(e)}const e1=` - /** - * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. - */ - class ToneAudioWorkletProcessor extends AudioWorkletProcessor { - - constructor(options) { - - super(options); - /** - * If the processor was disposed or not. Keep alive until it's disposed. - */ - this.disposed = false; - /** - * The number of samples in the processing block - */ - this.blockSize = 128; - /** - * the sample rate - */ - this.sampleRate = sampleRate; - - this.port.onmessage = (event) => { - // when it receives a dispose - if (event.data === "dispose") { - this.disposed = true; - } - }; - } - } -`;uc(e1);const s1=` - /** - * Abstract class for a single input/output processor. - * has a 'generate' function which processes one sample at a time - */ - class SingleIOProcessor extends ToneAudioWorkletProcessor { - - constructor(options) { - super(Object.assign(options, { - numberOfInputs: 1, - numberOfOutputs: 1 - })); - /** - * Holds the name of the parameter and a single value of that - * parameter at the current sample - * @type { [name: string]: number } - */ - this.params = {} - } - - /** - * Generate an output sample from the input sample and parameters - * @abstract - * @param input number - * @param channel number - * @param parameters { [name: string]: number } - * @returns number - */ - generate(){} - - /** - * Update the private params object with the - * values of the parameters at the given index - * @param parameters { [name: string]: Float32Array }, - * @param index number - */ - updateParams(parameters, index) { - for (const paramName in parameters) { - const param = parameters[paramName]; - if (param.length > 1) { - this.params[paramName] = parameters[paramName][index]; - } else { - this.params[paramName] = parameters[paramName][0]; - } - } - } - - /** - * Process a single frame of the audio - * @param inputs Float32Array[][] - * @param outputs Float32Array[][] - */ - process(inputs, outputs, parameters) { - const input = inputs[0]; - const output = outputs[0]; - // get the parameter values - const channelCount = Math.max(input && input.length || 0, output.length); - for (let sample = 0; sample < this.blockSize; sample++) { - this.updateParams(parameters, sample); - for (let channel = 0; channel < channelCount; channel++) { - const inputSample = input && input.length ? input[channel][sample] : 0; - output[channel][sample] = this.generate(inputSample, channel, this.params); - } - } - return !this.disposed; - } - }; -`;uc(s1);const n1=` - /** - * A multichannel buffer for use within an AudioWorkletProcessor as a delay line - */ - class DelayLine { - - constructor(size, channels) { - this.buffer = []; - this.writeHead = [] - this.size = size; - - // create the empty channels - for (let i = 0; i < channels; i++) { - this.buffer[i] = new Float32Array(this.size); - this.writeHead[i] = 0; - } - } - - /** - * Push a value onto the end - * @param channel number - * @param value number - */ - push(channel, value) { - this.writeHead[channel] += 1; - if (this.writeHead[channel] > this.size) { - this.writeHead[channel] = 0; - } - this.buffer[channel][this.writeHead[channel]] = value; - } - - /** - * Get the recorded value of the channel given the delay - * @param channel number - * @param delay number delay samples - */ - get(channel, delay) { - let readHead = this.writeHead[channel] - Math.floor(delay); - if (readHead < 0) { - readHead += this.size; - } - return this.buffer[channel][readHead]; - } - } -`;uc(n1);const i1="feedback-comb-filter",r1=` - class FeedbackCombFilterWorklet extends SingleIOProcessor { - - constructor(options) { - super(options); - this.delayLine = new DelayLine(this.sampleRate, options.channelCount || 2); - } - - static get parameterDescriptors() { - return [{ - name: "delayTime", - defaultValue: 0.1, - minValue: 0, - maxValue: 1, - automationRate: "k-rate" - }, { - name: "feedback", - defaultValue: 0.5, - minValue: 0, - maxValue: 0.9999, - automationRate: "k-rate" - }]; - } - - generate(input, channel, parameters) { - const delayedSample = this.delayLine.get(channel, parameters.delayTime * this.sampleRate); - this.delayLine.push(channel, input + delayedSample * parameters.feedback); - return delayedSample; - } - } -`;fh(i1,r1);class Hi extends ln{constructor(){super($(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=$(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(s=>{const n=parseInt(s,10);if(ut(br(s)||Ds(n)&&isFinite(n),`url key is neither a note or midi pitch: ${s}`),br(s)){const r=new Ee(this.context,s).toMidi();e[r]=t.urls[s]}else Ds(n)&&isFinite(n)&&(e[n]=t.urls[n])}),this._buffers=new ac({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(ln.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=uh(new Ee(this.context,n).toFrequency()),o=Math.round(r),a=r-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=lh(c+a),d=new jn({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),Ue(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 Ee(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),Ue(e)?(ut(Ue(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(br(t)||isFinite(t),`note must be a pitch or midi: ${t}`),br(t)){const n=new Ee(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}}Be([xs(0)],Hi.prototype,"attack",void 0);Be([xs(0)],Hi.prototype,"release",void 0);class Kr extends ot{constructor(){super(Object.assign($(Kr.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new t1({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=$(Kr.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",Ps(this._split,this.a.gain,0),Ps(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(ot.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 Cl extends ot{constructor(t){super(t),this.name="Effect",this._dryWet=new Kr({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(ot.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 Jr extends ot{constructor(){super(Object.assign($(Jr.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=$(Jr.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(ot.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const o1="bit-crusher",a1=` - class BitCrusherWorklet extends SingleIOProcessor { - - static get parameterDescriptors() { - return [{ - name: "bits", - defaultValue: 12, - minValue: 1, - maxValue: 16, - automationRate: 'k-rate' - }]; - } - - generate(input, _channel, parameters) { - const step = Math.pow(0.5, parameters.bits - 1); - const val = step * Math.floor(input / step + 0.5); - return val; - } - } -`;fh(o1,a1);class to extends ot{constructor(){super($(to.getDefaults(),arguments,["channels"])),this.name="Merge";const t=$(to.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(t.channels)}static getDefaults(){return Object.assign(ot.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class eo extends Cl{constructor(){super($(eo.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const t=$(eo.getDefaults(),arguments,["decay"]);this._decay=t.decay,this._preDelay=t.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Cl.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(t){t=this.toSeconds(t),je(t,.001),this._decay=t,this.generate()}get preDelay(){return this._preDelay}set preDelay(t){t=this.toSeconds(t),je(t,0),this._preDelay=t,this.generate()}generate(){return qt(this,void 0,void 0,function*(){const t=this.ready,e=new wo(2,this._decay+this._preDelay,this.context.sampleRate),s=new Ni({context:e}),n=new Ni({context:e}),r=new to({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 zt extends ot{constructor(){super($(zt.getDefaults(),arguments,["solo"])),this.name="Solo";const t=$(zt.getDefaults(),arguments,["solo"]);this.input=this.output=new St({context:this.context}),zt._allSolos.has(this.context)||zt._allSolos.set(this.context,new Set),zt._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(ot.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),zt._allSolos.get(this.context).forEach(e=>e._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){zt._soloed.has(this.context)||zt._soloed.set(this.context,new Set),zt._soloed.get(this.context).add(this)}_removeSolo(){zt._soloed.has(this.context)&&zt._soloed.get(this.context).delete(this)}_isSoloed(){return zt._soloed.has(this.context)&&zt._soloed.get(this.context).has(this)}_noSolos(){return!zt._soloed.has(this.context)||zt._soloed.has(this.context)&&zt._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(),zt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}zt._allSolos=new Map;zt._soloed=new Map;class so extends ot{constructor(){super($(so.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=$(so.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Jr({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Is({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(ot.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 $s extends ot{constructor(){super($($s.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=$($s.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new zt({solo:t.solo,context:this.context}),this._panVol=this.output=new so({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(ot.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 $s.buses.has(t)||$s.buses.set(t,new St({context:this.context})),$s.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}}$s.buses=new Map;class c1 extends ot{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(ot.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}}ko(i=>{i.listener=new c1({context:i})});To(i=>{i.listener.dispose()});Le().transport;const hc=Le().destination;Le().destination;Le().listener;Le().draw;Le();const dc=new qn(900,"highpass"),ph=new Is(-6);ph.chain(dc,hc);const l1=new eo(3).connect(ph),So=new qi({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});So.oscillator.type="triangle2";So.volume.value=-6;So.chain(dc,hc);const Eo=new qi({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(l1);Eo.oscillator.type="triangle";Eo.volume.value=-6;Eo.chain(dc,hc);function u1(){return Math.floor((Math.random()-.5)*20)}let Sl=!1;const h1=async(i=0)=>{Sl||(await Uy(),Sl=!0);try{if(i>2e3)Eo.triggerAttackRelease(60,.3);else if(i>1e3){let t=310;t+=u1(),So.triggerAttackRelease(t,.001)}}catch(t){console.warn(t)}},Sr=1800,d1=(i,t)=>i.clone().normalize().clone().negate().normalize().multiplyScalar(t).add(i),f1=(i,t,e,s,n)=>{const r=new tu,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 Cf(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 Mr(c,2)),a};f1(10,10,10,2,10);new bf(10,10,10);const p1=500,m1=800,_1=new it(0,0,0),El=1,g1=16777215,y1=50,v1=(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 mi=null;const x1=500,mh=(i,t)=>{if(mi)return null;mi=setTimeout(()=>{mi&&(clearTimeout(mi),mi=null)},x1);const e=[];return i.forEach(n=>{const r=t.position.distanceTo(_1.set(n.x,n.y,n.z));rn.distance-r.distance).slice(0,p1).map(n=>n.id)};let wn,_i;const k1=1e3,T1=2e3,w1=i=>{const t=gs(),e=Es(x=>x.isUserDragging),s=Es(x=>x.isUserScrolling),n=Es(x=>x.setUserMovedCamera),{data:r,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=pe(x=>x),{camera:h}=It(),[d,p]=I.useState(!1),[_,f]=I.useState(!1),[m,v]=I.useState(nl),w=I.useMemo(()=>{if(a)return new it(0,0,0);const x=r==null?void 0:r.nodes.find(D=>D.ref_id===(t==null?void 0:t.ref_id)),C=u+300;let O=new it(0,0,C);if(x&&r){const D=r==null?void 0:r.nodes.filter(Y=>{var j;return(j=x.children)==null?void 0:j.find(z=>z===Y.id)}),M=new it(x.x,x.y,x.z);let V=new it(0,0,0);D.map(Y=>(V=V.add(new it(Y.x,Y.y,Y.z).normalize()),Y));const B=x.scale?1-1/(x.scale+10):1,G=M.sub(V).multiplyScalar(.8*B);O=M.add(G)}return O},[a,t,r,u]),b=I.useMemo(()=>{if(a)return new it(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 it((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,t,r]);I.useEffect(()=>{var x;a&&((x=i.current)==null||x.setLookAt(Bo.x,Bo.y,Bo.z,0,0,0,!1)),g()},[a]),I.useEffect(()=>{a?v(p0):(t==null?void 0:t.node_type)==="topic"?v(f0):v(nl)},[t,v,a]),I.useEffect(()=>{y()},[l]),I.useEffect(()=>{(e||s)&&(p(!0),f(!0))},[e,s,p,f]),I.useEffect(()=>{if(t)if(!a&&o==="earth"&&(i!=null&&i.current)){const x=i.current.camera.position.distanceTo(new it),C=d1(b,-x/2);i.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else wn&&clearTimeout(wn),wn=setTimeout(()=>{f(!0),clearTimeout(wn)},T1),g();return()=>{wn&&clearTimeout(wn),_i&&clearTimeout(_i)}},[t]),Pe(x=>{i.current&&(d||T(w,x.camera),_||k(b,x.camera))});const g=()=>{if(t){const x=h.position.distanceTo(w);h1(x)}y()},y=()=>{p(!1),f(!1),n(!1),_i&&clearTimeout(_i),_i=setTimeout(()=>{p(!0),f(!0)},k1)},T=(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},b1=1;let Er=null;const C1=(i,{enabled:t})=>{const e=gs();w1(i);const s=Es(a=>a.isUserDragging),{graphStyle:n,graphRadius:r,disableCameraRotation:o}=pe(a=>a);return I.useEffect(()=>{t||(Er==null||Er.kill(),Er=null)},[t]),I.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]),I.useEffect(()=>{!e&&i.current&&i.current.setLookAt(Ti.x,Ti.y,r,0,0,0,!0)},[e,r]),Pe((a,c)=>{i.current&&(!o&&!s&&(i.current.azimuthAngle+=b1*c*Sf.DEG2RAD),i.current.update(c))}),null},S1=({disableAnimations:i})=>{const t=I.useRef(null),{data:e,setNearbyNodeIds:s,setDisableCameraRotation:n}=pe(h=>h),[r]=I.useState(.8),{camera:o}=It(),[a,c,l,u]=Es(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return C1(t,{enabled:!i&&!l&&!a}),I.useEffect(()=>{if(!a){const h=mh((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]),I.useEffect(()=>{a&&n(!0)},[a,n]),L.jsx(Yf,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:r})};function cs(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _h(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t}/*! - * GSAP 3.12.4 - * https://gsap.com - * - * @license Copyright 2008-2023, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license or for - * Club GSAP members, the agreement issued with that membership. - * @author: Jack Doyle, jack@greensock.com -*/var ke={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Wn={duration:.5,overwrite:!1,delay:0},fc,Jt,Lt,Oe=1e8,Ct=1/Oe,ma=Math.PI*2,E1=ma/4,O1=0,gh=Math.sqrt,A1=Math.cos,M1=Math.sin,Zt=function(t){return typeof t=="string"},Vt=function(t){return typeof t=="function"},ps=function(t){return typeof t=="number"},pc=function(t){return typeof t>"u"},Je=function(t){return typeof t=="object"},ue=function(t){return t!==!1},mc=function(){return typeof window<"u"},Or=function(t){return Vt(t)||Zt(t)},yh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},te=Array.isArray,_a=/(?:-?\.?\d|\.)+/gi,vh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Mn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ho=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,xh=/[+-]=-?[.\d]+/,kh=/[^,'"\[\]\s]+/gi,D1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Ce,ga,_c,Te={},no={},Th,wh=function(t){return(no=un(t,Te))&&_e},gc=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)},bh=function(t,e){return t&&(Te[t]=e)&&no&&(no[t]=e)||Te},Gi=function(){return 0},P1={suppressEvents:!0,isStart:!0,kill:!1},Ir={suppressEvents:!0,kill:!1},I1={suppressEvents:!0},yc={},As=[],ya={},Ch,ge={},Yo={},Ol=30,Nr=[],vc="",xc=function(t){var e=t[0],s,n;if(Je(e)||Vt(e)||(t=[t]),!(s=(e._gsap||{}).harness)){for(n=Nr.length;n--&&!Nr[n].targetTest(e););s=Nr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Xh(t[n],s)))||t.splice(n,1);return t},tn=function(t){return t._gsap||xc(Ae(t))[0]._gsap},Sh=function(t,e,s){return(s=t[e])&&Vt(s)?t[e]():pc(s)&&t.getAttribute&&t.getAttribute(e)||s},he=function(t,e){return(t=t.split(",")).forEach(e)||t},jt=function(t){return Math.round(t*1e5)/1e5||0},$t=function(t){return Math.round(t*1e7)/1e7||0},Nn=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},N1=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},Oo=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},Fs=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},en=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},L1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},va=function(t,e,s,n){return t._startAt&&(Jt?t._startAt.revert(Ir):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},V1=function i(t){return!t||t._ts&&i(t.parent)},Ml=function(t){return t._repeat?Hn(t._tTime,t=t.duration()+t._rDelay)*t:0},Hn=function(t,e){var s=Math.floor(t/=e);return t&&s===t?s-1:s},oo=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ao=function(t){return t._end=$t(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ct)||0))},Mo=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)),Ao(t),s._dirty||en(s,t)),t},Dh=function(t,e){var s;if((e._time||!e._dur&&e._initted||e._startCt)&&e.render(s,!0)),en(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}},$e=function(t,e,s,n){return e.parent&&Fs(e),e._start=$t((ps(s)?s:s||t!==Nt?be(t,s,e):t._time)+e._delay),e._end=$t(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Mh(t,e,"_first","_last",t._sort?"_start":0),xa(e)||(t._recent=e),n||Dh(t,e),t._ts<0&&Mo(t,t._tTime),t},Ph=function(t,e){return(Te.ScrollTrigger||gc("scrollTrigger",e))&&Te.ScrollTrigger.create(e,t)},Ih=function(t,e,s,n,r){if(Tc(t,e,r),!t._initted)return 1;if(!s&&t._pt&&!Jt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Ch!==ye.frame)return As.push(t),t._lazy=[r,n],1},U1=function i(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||i(e))},xa=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},z1=function(t,e,s,n){var r=t.ratio,o=e<0||!e&&(!t._start&&U1(t)&&!(!t._initted&&xa(t))||(t._ts<0||t._dp._ts<0)&&!xa(t))?0:1,a=t._rDelay,c=0,l,u,h;if(a&&t._repeat&&(c=hr(0,t._tDur,e),u=Hn(c,a),t._yoyo&&u&1&&(o=1-o),u!==Hn(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&&Ih(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&&va(t,e,s,!0),t._onUpdate&&!s&&ve(t,"onUpdate"),c&&t._repeat&&!s&&t.parent&&ve(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Fs(t,1),!s&&!Jt&&(ve(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&&Mo(t,t._tTime=t._tDur*a),t.parent&&Ao(t),s||en(t.parent,t),t},Dl=function(t){return t instanceof ie?en(t):Yn(t,t._dur)},B1={_start:0,endTime:Gi,totalDuration:Gi},be=function i(t,e,s){var n=t.labels,r=t._recent||B1,o=t.duration()>=Oe?r.endTime(!1):t._dur,a,c,l;return Zt(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},Ci=function(t,e,s){var n=ps(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=ue(c.vars.inherit)&&c.parent;o.immediateRender=ue(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new Ht(e[0],o,e[r+1])},js=function(t,e){return t||t===0?e(t):e},hr=function(t,e,s){return se?e:s},Kt=function(t,e){return!Zt(t)||!(e=D1.exec(t))?"":e[1]},q1=function(t,e,s){return js(s,function(n){return hr(t,e,n)})},ka=[].slice,Nh=function(t,e){return t&&Je(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Je(t[0]))&&!t.nodeType&&t!==Ce},W1=function(t,e,s){return s===void 0&&(s=[]),t.forEach(function(n){var r;return Zt(n)&&!e||Nh(n,1)?(r=s).push.apply(r,Ae(n)):s.push(n)})||s},Ae=function(t,e,s){return Lt&&!e&&Lt.selector?Lt.selector(t):Zt(t)&&!s&&(ga||!Gn())?ka.call((e||_c).querySelectorAll(t),0):te(t)?W1(t,s):Nh(t)?ka.call(t,0):t?[t]:[]},Ta=function(t){return t=Ae(t)[0]||Yi("Invalid scope")||{},function(e){var s=t.current||t.nativeElement||t;return Ae(e,s.querySelectorAll?s:s===t?Yi("Invalid scope")||_c.createElement("div"):t)}},Rh=function(t){return t.sort(function(){return .5-Math.random()})},Fh=function(t){if(Vt(t))return t;var e=Je(t)?t:{each:t},s=sn(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 Zt(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,w,b,g,y,T,k,x,C;if(!m){if(C=e.grid==="auto"?0:(e.grid||[1,Oe])[1],!C){for(k=-Oe;k<(k=_[C++].getBoundingClientRect().left)&&Ck&&(k=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?Yh(s):s}return f=(m[d]-m.min)/m.max||0,$t(m.b+(s?s(f):f)*m.v)+m.u}},wa=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+(ps(s)?0:Kt(s))}},Lh=function(t,e){var s=te(t),n,r;return!s&&Je(t)&&(n=s=t.radius||Oe,t.values?(t=Ae(t.values),(r=!ps(t[0]))&&(n*=n)):t=wa(t.increment)),js(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=Oe,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)})},$i=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?kh:_a),s+=t.substr(e,n-e)+Vh(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),e=o+1;return s+t.substr(e,t.length-e)},zh=function(t,e,s,n,r){var o=e-t,a=n-s;return js(r,function(c){return s+((c-t)/o*a||0)})},Z1=function i(t,e,s,n){var r=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!r){var o=Zt(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},ve=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&&As.length&&io(),a&&(Lt=a),u=c?r.apply(l,c):r.call(l),Lt=o,u},vi=function(t){return Fs(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jt),t.progress()<1&&ve(t,"onInterrupt"),t},Dn,jh=[],Bh=function(t){if(mc()&&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:Gi,render:Cc,add:kc,kill:dv,modifier:hv,rawVars:0},o={targetTest:0,get:0,getSetter:bc,aliases:{},register:0};if(Gn(),t!==n){if(ge[e])return;De(n,De(ro(t,r),o)),un(n.prototype,un(r,ro(t,o))),ge[n.prop=e]=n,t.targetTest&&(Nr.push(n),yc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}bh(e,n),t.register&&t.register(_e,n,de)}else t&&jh.push(t)},bt=255,xi={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]},Go=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},qh=function(t,e,s){var n=t?ps(t)?[t>>16,t>>8&bt,t&bt]:0:xi.black,r,o,a,c,l,u,h,d,p,_;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),xi[t])n=xi[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(_a),!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]=Go(c+1/3,r,o),n[1]=Go(c,r,o),n[2]=Go(c-1/3,r,o);else if(~t.indexOf("="))return n=t.match(vh),s&&n.length<4&&(n[3]=1),n}else n=t.match(_a)||xi.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,b=y-o,(b>0||w)&&(T=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=b+(b>=r?4:r-b),g=1),w||(c=l(f)),g)for(p=0;p=v&&p--},_listeners:a},h}(),Gn=function(){return!Xi&&ye.wake()},ft={},K1=/^[\d.\-M][\d.\-,\s]/,J1=/["']/g,tv=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("{")?[tv(e[1])]:ev(t).split(",").map(Oh)):ft._CE&&K1.test(t)?ft._CE("",t):s},Yh=function(t){return function(e){return 1-t(1-e)}},Gh=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},sn=function(t,e){return t&&(Vt(t)?t:ft[t]||sv(t))||e},mn=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 he(t,function(a){ft[a]=Te[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},$h=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},$o=function i(t,e,s){var n=e>=1?e:1,r=(s||(t?.3:.45))/(e<1?e:1),o=r/ma*(Math.asin(1/n)||0),a=function(u){return u===1?1:n*Math.pow(2,-10*u)*M1((u-o)*r)+1},c=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:$h(a);return r=ma/r,c.config=function(l,u){return i(t,l,u)},c},Xo=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)}:$h(s);return n.config=function(r){return i(t,r)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,t){var e=t<5?t+1:t;mn(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;mn("Elastic",$o("in"),$o("out"),$o());(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(Gn(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Mo(this,s),!r._dp||r.parent||Dh(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)&&$e(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),Eh(this,s,n)),this},t.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Ml(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)+Ml(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?Hn(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?oo(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ct?0:this._rts,this.totalTime(hr(-Math.abs(this._delay),this._tDur,r),n!==!1),Ao(this),L1(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):(Gn(),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)&&$e(n,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(ue(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?oo(n.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=I1);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,Dl(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,Dl(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(be(this,s),ue(n))},t.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,ue(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:Ah,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(){vi(this)},i}();De(Zi.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){_h(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=ue(s.sortChildren),Nt&&$e(s.parent||Nt,cs(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&Ph(cs(r),s.scrollTrigger),r}var e=t.prototype;return e.to=function(n,r,o){return Ci(0,arguments,this),this},e.from=function(n,r,o){return Ci(1,arguments,this),this},e.fromTo=function(n,r,o,a){return Ci(2,arguments,this),this},e.set=function(n,r,o){return r.duration=0,r.parent=this,bi(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ht(n,r,be(this,o),1),this},e.call=function(n,r,o){return $e(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,be(this,c)),this},e.staggerFrom=function(n,r,o,a,c,l,u){return o.runBackwards=1,bi(o).immediateRender=ue(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,bi(a).immediateRender=ue(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,w,b,g,y,T,k;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,b=this._ts,v=!b,h&&(l||(a=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(T=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=Hn(this._tTime,m),!a&&this._tTime&&y!==f&&this._tTime-y*m-this._dur<=0&&(y=f),T&&f&1&&(d=l-d,k=1),f!==y&&!this._lock){var x=T&&y&1,C=x===(T&&f&1);if(f=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&w!==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){w=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&&w!==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){w=0,_&&(u+=this._zTime=O?-Ct:Ct);break}}p=_}}if(w&&!r&&(this.pause(),w.render(d>=a?0:-Ct)._zTime=d>=a?1:-1,this._ts))return this._start=g,Ao(this),this.render(n,r,o);this._onUpdate&&!r&&ve(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(g===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Fs(this,1),!r&&!(n<0&&!a)&&(u||a||!c)&&(ve(this,u===c&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},e.add=function(n,r){var o=this;if(ps(r)||(r=be(this,r,n)),!(n instanceof Zi)){if(te(n))return n.forEach(function(a){return o.add(a,r)}),this;if(Zt(n))return this.addLabel(n,r);if(Vt(n))n=Ht.delayedCall(0,n);else return this}return this!==n?$e(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=-Oe);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 Zt(n)?this.removeLabel(n):Vt(n)?this.killTweensOf(n):(Oo(this,n),n===this._recent&&(this._recent=this._last),en(this))},e.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=$t(ye.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]=be(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||Gi,o);return a.data="isPause",this._hasPause=1,$e(this,a,be(this,n))},e.removePause=function(n){var r=this._first;for(n=be(this,n);r;)r._start===n&&r.data==="isPause"&&Fs(r),r=r._next},e.killTweensOf=function(n,r,o){for(var a=this.getTweensOf(n,o),c=a.length;c--;)bs!==a[c]&&a[c].kill(n,r);return this},e.getTweensOf=function(n,r){for(var o=[],a=Ae(n),c=this._first,l=ps(r),u;c;)c instanceof Ht?N1(c._targets,a)&&(l?(!bs||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=be(o,n),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,p,_=Ht.to(o,De({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,De({startAt:{time:be(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),Pl(this,be(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),Pl(this,be(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 en(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={}),en(this)},e.totalDuration=function(n){var r=0,o=this,a=o._last,c=Oe,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,$e(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&&(Eh(Nt,oo(n,Nt)),Ch=ye.frame),ye.frame>=Ol){Ol+=ke.autoSleep||120;var r=Nt._first;if((!r||!r._ts)&&ke.autoSleep&&ye._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||ye.sleep()}}},t}(Zi);De(ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var nv=function(t,e,s,n,r,o,a){var c=new de(this._pt,t,e,0,1,ed,null,r),l=0,u=0,h,d,p,_,f,m,v,w;for(c.b=s,c.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=$i(n)),o&&(w=[s,n],o(w,t,e),s=w[0],n=w[1]),d=s.match(Ho)||[];h=Ho.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)==="="?Nn(m,_)-m:parseFloat(_)-m,m:p&&p<4?Math.round:0},l=Ho.lastIndex);return c.c=l")}),g.duration();else{T={};for(x in _)x==="ease"||x==="easeEach"||av(x,_[x],T,_.easeEach);for(x in T)for(V=T[x].sort(function(Y,j){return Y.t-j.t}),M=0,y=0;yc-Ct&&!u?c:nl&&(d=l)),v=this._yoyo&&_&1,v&&(g=this._yEase,d=l-d),m=Hn(this._tTime,f),d===a&&!o&&this._initted&&_===m)return this._tTime=h,this;_!==m&&(b&&this._yEase&&Gh(b,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(Ih(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=w=(g||this._ease)(d/l),this._from&&(this.ratio=w=1-w),d&&!a&&!r&&!_&&(ve(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(w,p.d),p=p._next;b&&b.render(n<0?n:!d&&v?-Ct:b._dur*b._ease(d/this._dur),r,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(u&&va(this,n,r,o),ve(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!r&&this.parent&&ve(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&va(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Fs(this,1),!r&&!(u&&!a)&&(h||a||v)&&(ve(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||ye.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Tc(this,l),u=this._ease(l/this._dur),rv(this,n,r,o,a,u,l,c)?this.resetTo(n,r,o,a,1):(Mo(this,0),this.parent||Mh(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?vi(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,bs&&bs.vars.overwrite!==!0)._first||vi(this),this.parent&&o!==this.timeline.totalDuration()&&Yn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=n?Ae(n):a,l=this._ptLookup,u=this._pt,h,d,p,_,f,m,v;if((!r||r==="all")&&F1(a,c))return r==="all"&&(this._pt=0),vi(this);for(h=this._op=this._op||[],r!=="all"&&(Zt(r)&&(f={},he(r,function(w){return f[w]=1}),r=f),r=ov(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)&&Oo(this,m,"_pt"),delete d[f]),p!=="all"&&(p[f]=1)}return this._initted&&!this._pt&&u&&vi(this),this},t.to=function(n,r){return new t(n,r,arguments[2])},t.from=function(n,r){return Ci(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 Ci(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}(Zi);De(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});he("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var t=new ie,e=ka.call(arguments,0);return e.splice(i==="staggerFromTo"?5:4,0,0),t[i].apply(t,e)}});var wc=function(t,e,s){return t[e]=s},Jh=function(t,e,s){return t[e](s)},cv=function(t,e,s,n){return t[e](n.fp,s)},lv=function(t,e,s){return t.setAttribute(e,s)},bc=function(t,e){return Vt(t[e])?Jh:pc(t[e])&&t.setAttribute?lv:wc},td=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},uv=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ed=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)},Cc=function(t,e){for(var s=e._pt;s;)s.r(t,s.d),s=s._next},hv=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},dv=function(t){for(var e=this._pt,s,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Oo(this,e,"_pt"):e.dep||(s=1),e=n;return!s},fv=function(t,e,s,n){n.mSet(t,e,n.m.call(n.tween,s,n.mt),n)},sd=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},de=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||td,this.d=c||this,this.set=l||wc,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=fv,this.m=s,this.mt=r,this.tween=n},i}();he(vc+"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 yc[i]=1});Te.TweenMax=Te.TweenLite=Ht;Te.TimelineLite=Te.TimelineMax=ie;Nt=new ie({sortChildren:!1,defaults:Wn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ke.stringFilter=Hh;var nn=[],Rr={},pv=[],Nl=0,mv=0,Zo=function(t){return(Rr[t]||pv).map(function(e){return e()})},Ca=function(){var t=Date.now(),e=[];t-Nl>2&&(Zo("matchMediaInit"),nn.forEach(function(s){var n=s.queries,r=s.conditions,o,a,c,l;for(a in n)o=Ce.matchMedia(n[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&e.push(s))}),Zo("matchMediaRevert"),e.forEach(function(s){return s.onMatch(s,function(n){return s.add(null,n)})}),Nl=t,Zo("matchMedia"))},nd=function(){function i(e,s){this.selector=s&&Ta(s),this.data=[],this._r=[],this.isReverted=!1,this.id=mv++,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=Ta(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=nn.length;o--;)nn[o].id===this.id&&nn.splice(o,1)},t.revert=function(s){this.kill(s||{})},i}(),_v=function(){function i(e){this.contexts=[],this.scope=e}var t=i.prototype;return t.add=function(s,n,r){Je(s)||(s={matches:s});var o=new nd(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=Ce.matchMedia(s[l]),c&&(nn.indexOf(o)<0&&nn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(Ca):c.addEventListener("change",Ca)));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}(),ao={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=ge[e],a=tn(t),c=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(u){var h=new o;Dn._pt=0,h.init(t,s?u+s:u,Dn,0,[t]),h.render(1,h),Dn._pt&&Cc(1,Dn)}: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,un((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=sn(t.ease,Wn.ease)),Al(Wn,t||{})},config:function(t){return Al(ke,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&&!ge[a]&&!Te[a]&&Yi(e+" effect requires "+a+" plugin.")}),Yo[e]=function(a,c,l){return s(Ae(a),De(c||{},r),l)},o&&(ie.prototype[e]=function(a,c,l){return this.add(Yo[e](a,Je(c)?c:(l=c)&&{},this),l)})},registerEase:function(t,e){ft[t]=sn(e)},parseEase:function(t,e){return arguments.length?sn(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=ue(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]))&&$e(s,n,n._start-n._delay),n=r;return $e(Nt,s,0),s},context:function(t,e){return t?new nd(t,e):Lt},matchMedia:function(t){return new _v(t)},matchMediaRefresh:function(){return nn.forEach(function(t){var e=t.conditions,s,n;for(n in e)e[n]&&(e[n]=!1,s=1);s&&t.revert()})||Ca()},addEventListener:function(t,e){var s=Rr[t]||(Rr[t]=[]);~s.indexOf(e)||s.push(e)},removeEventListener:function(t,e){var s=Rr[t],n=s&&s.indexOf(e);n>=0&&s.splice(n,1)},utils:{wrap:$1,wrapYoyo:X1,distribute:Fh,random:Vh,snap:Lh,normalize:G1,getUnit:Kt,clamp:q1,splitColor:qh,toArray:Ae,selector:Ta,mapRange:zh,pipe:H1,unitize:Y1,interpolate:Z1,shuffle:Rh},install:wh,effects:Yo,ticker:ye,updateRoot:ie.updateRoot,plugins:ge,globalTimeline:Nt,core:{PropTween:de,globals:bh,Tween:Ht,Timeline:ie,Animation:Zi,getCache:tn,_removeLinkedListItem:Oo,reverting:function(){return Jt},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return fc=t}}};he("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return ao[i]=Ht[i]});ye.add(ie.updateRoot);Dn=ao.to({},{duration:0});var gv=function(t,e){for(var s=t._pt;s&&s.p!==e&&s.op!==e&&s.fp!==e;)s=s._next;return s},yv=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=gv(o,n)),o&&o.modifier&&o.modifier(e[n],t,s[r],n))},Qo=function(t,e){return{name:t,rawVars:1,init:function(n,r,o){o._onInit=function(a){var c,l;if(Zt(r)&&(c={},he(r,function(u){return c[u]=1}),r=c),e){c={};for(l in r)c[l]=e(r[l]);r=c}yv(a,r)}}}},_e=ao.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)}},Qo("roundProps",wa),Qo("modifiers"),Qo("snap",Lh))||ao;Ht.version=ie.version=_e.version="3.12.4";Th=1;mc()&&Gn();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 - * - * Copyright 2008-2023, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license or for - * Club GSAP members, the agreement issued with that membership. - * @author: Jack Doyle, jack@greensock.com -*/var Rl,Cs,Rn,Sc,Zs,Fl,Ec,vv=function(){return typeof window<"u"},ms={},Gs=180/Math.PI,Fn=Math.PI/180,bn=Math.atan2,Ll=1e8,Oc=/([A-Z])/g,xv=/(left|right|width|margin|padding|x)/i,kv=/[\s,\(]\S/,Xe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Sa=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Tv=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)},wv=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)},bv=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},id=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},rd=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Cv=function(t,e,s){return t.style[e]=s},Sv=function(t,e,s){return t.style.setProperty(e,s)},Ev=function(t,e,s){return t._gsap[e]=s},Ov=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Av=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Mv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",fe=Rt+"Origin",Dv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in ms&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Xe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=ls(n,a)}):this.tfm[t]=o.x?o[t]:ls(n,t),t===fe&&(this.tfm.zOrigin=o.zOrigin);else return Xe.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(fe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},od=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Pv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Vl[o]:"")+t},Oa=function(){vv()&&window.document&&(Rl=window,Cs=Rl.document,Rn=Cs.documentElement,Zs=Ea("div")||{style:{}},Ea("div"),Rt=$n(Rt),fe=Rt+"Origin",Zs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",cd=!!$n("perspective"),Ec=_e.core.reverting,Sc=1)},Ko=function i(t){var e=Ea("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(Rn.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)),Rn.removeChild(e),this.style.cssText=r,o},Ul=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},ld=function(t){var e;try{e=t.getBBox()}catch{e=Ko.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ko||(e=Ko.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Ul(t,["x","cx","x1"])||0,y:+Ul(t,["y","cy","y1"])||0,width:0,height:0}:e},ud=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&ld(t))},hn=function(t,e){if(e){var s=t.style,n;e in ms&&e!==fe&&(e=Rt),s.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),s.removeProperty(n==="--"?e:e.replace(Oc,"-$1").toLowerCase())):s.removeAttribute(e)}},Ss=function(t,e,s,n,r,o){var a=new de(t._pt,e,s,0,1,o?rd:id);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},zl={deg:1,rad:1,turn:1},Iv={grid:1,flex:1},Ls=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Zs.style,c=xv.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&&ud(t),(p||o==="%")&&(ms[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],jt(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===Cs||!f.appendChild)&&(f=Cs.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ye.time&&!m.uncache)return jt(r/m.width*h);if(p&&(e==="height"||e==="width")){var w=t.style[e];t.style[e]=h+n,_=t[u],w?t.style[e]=w:hn(t,e)}else(p||o==="%")&&!Iv[Qe(f,"display")]&&(a.position=Qe(t,"position")),f===t&&(a.position="static"),f.appendChild(Zs),_=Zs[u],f.removeChild(Zs),a.position="absolute";return c&&p&&(m=tn(f),m.time=ye.time,m.width=f[u]),jt(d?_*r/h:_&&r?h/_*r:0)},ls=function(t,e,s,n){var r;return Sc||Oa(),e in Xe&&e!=="transform"&&(e=Xe[e],~e.indexOf(",")&&(e=e.split(",")[0])),ms[e]&&e!=="transform"?(r=Ki(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:lo(Qe(t,fe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=co[e]&&co[e](t,e,s)||Qe(t,e)||Sh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Ls(t,e,r,s)+s:r},Nv=function(t,e,s,n){if(!s||s==="none"){var r=$n(e,t,1),o=r&&Qe(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Qe(t,"borderTopColor"))}var a=new de(this._pt,t.style,e,0,1,ed),c=0,l=0,u,h,d,p,_,f,m,v,w,b,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Qe(t,e)||n,f?t.style[e]=f:hn(t,e)),u=[s,n],Hh(u),s=u[0],n=u[1],d=s.match(Mn)||[],y=n.match(Mn)||[],y.length){for(;h=Mn.exec(n);)m=h[0],w=n.substring(c,h.index),_?_=(_+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=Nn(p,m)+g),v=parseFloat(m),b=m.substr((v+"").length),c=Mn.lastIndex-b.length,b||(b=b||ke.units[e]||g,c===n.length&&(n+=b,a.e+=b)),g!==b&&(p=Ls(t,e,f,b)||0),a._pt={_next:a._pt,p:w||l===1?w:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],ms[a]&&(c=1,a=a==="transformOrigin"?fe:Rt),hn(s,a);c&&(hn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ki(s,1),o.uncache=1,od(n)))}},co={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new de(t._pt,e,s,0,0,Fv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Qi=[1,0,0,1,0,0],hd={},dd=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Bl=function(t){var e=Qe(t,Rt);return dd(e)?Qi:e.substr(7).match(vh).map(jt)},Ac=function(t,e){var s=t._gsap||tn(t),n=t.style,r=Bl(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"?Qi:r):(r===Qi&&!t.offsetParent&&t!==Rn&&!s.svg&&(c=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,a=t.nextElementSibling,Rn.appendChild(t)),r=Bl(t),c?n.display=c:hn(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):Rn.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Aa=function(t,e,s,n,r,o){var a=t._gsap,c=r||Ac(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],w=c[5],b=e.split(" "),g=parseFloat(b[0])||0,y=parseFloat(b[1])||0,T,k,x,C;s?c!==Qi&&(k=p*m-_*f)&&(x=g*(m/k)+y*(-f/k)+(f*w-m*v)/k,C=g*(-_/k)+y*(p/k)-(p*w-_*v)/k,g=x,y=C):(T=ld(t),g=T.x+(~b[0].indexOf("%")?g/100*T.width:g),y=T.y+(~(b[1]||b[0]).indexOf("%")?y/100*T.height:y)),n||n!==!1&&a.smooth?(v=g-l,w=y-u,a.xOffset=h+(v*p+w*f)-v,a.yOffset=d+(v*_+w*m)-w):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[fe]="0px 0px",o&&(Ss(o,a,"xOrigin",l,g),Ss(o,a,"yOrigin",u,y),Ss(o,a,"xOffset",h,a.xOffset),Ss(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ki=function(t,e){var s=t._gsap||new Xh(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=Qe(t,fe)||"0",u,h,d,p,_,f,m,v,w,b,g,y,T,k,x,C,O,D,M,V,B,G,Y,j,z,X,Z,et,R,F,S,P;return u=h=d=f=m=v=w=b=g=0,p=_=1,s.svg=!!(t.getCTM&&ud(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"),k=Ac(t,s.svg),s.svg&&(s.uncache?(z=t.getBBox(),l=s.xOrigin-z.x+"px "+(s.yOrigin-z.y)+"px",j=""):j=!e&&t.getAttribute("data-svg-origin"),Aa(t,j||l,!!j||s.originIsAbsolute,s.smooth!==!1,k)),y=s.xOrigin||0,T=s.yOrigin||0,k!==Qi&&(D=k[0],M=k[1],V=k[2],B=k[3],u=G=k[4],h=Y=k[5],k.length===6?(p=Math.sqrt(D*D+M*M),_=Math.sqrt(B*B+V*V),f=D||M?bn(M,D)*Gs:0,w=V||B?bn(V,B)*Gs+f:0,w&&(_*=Math.abs(Math.cos(w*Fn))),s.svg&&(u-=y-(y*D+T*V),h-=T-(y*M+T*B))):(P=k[6],F=k[7],Z=k[8],et=k[9],R=k[10],S=k[11],u=k[12],h=k[13],d=k[14],x=bn(P,R),m=x*Gs,x&&(C=Math.cos(-x),O=Math.sin(-x),j=G*C+Z*O,z=Y*C+et*O,X=P*C+R*O,Z=G*-O+Z*C,et=Y*-O+et*C,R=P*-O+R*C,S=F*-O+S*C,G=j,Y=z,P=X),x=bn(-V,R),v=x*Gs,x&&(C=Math.cos(-x),O=Math.sin(-x),j=D*C-Z*O,z=M*C-et*O,X=V*C-R*O,S=B*O+S*C,D=j,M=z,V=X),x=bn(M,D),f=x*Gs,x&&(C=Math.cos(x),O=Math.sin(x),j=D*C+M*O,z=G*C+Y*O,M=M*C-D*O,Y=Y*C-G*O,D=j,G=z),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=jt(Math.sqrt(D*D+M*M+V*V)),_=jt(Math.sqrt(Y*Y+P*P)),x=bn(G,Y),w=Math.abs(x)>2e-4?x*Gs:0,g=S?1/(S<0?-S:S):0),s.svg&&(j=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!dd(Qe(t,Rt)),j&&t.setAttribute("transform",j))),Math.abs(w)>90&&Math.abs(w)<270&&(r?(p*=-1,w+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,w+=w<=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=jt(p),s.scaleY=jt(_),s.rotation=jt(f)+a,s.rotationX=jt(m)+a,s.rotationY=jt(v)+a,s.skewX=w+a,s.skewY=b+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[fe]=lo(l)),s.xOffset=s.yOffset=0,s.force3D=ke.force3D,s.renderTransform=s.svg?Vv:cd?fd:Lv,s.uncache=0,s},lo=function(t){return(t=t.split(" "))[0]+" "+t[1]},Jo=function(t,e,s){var n=Kt(e);return jt(parseFloat(e)+parseFloat(Ls(t,"x",s+"px",n)))+n},Lv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,fd(t,e)},Hs="0deg",gi="0px",Ys=") ",fd=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,w=s.target,b=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(b&&(h!==Hs||u!==Hs)){var T=parseFloat(u)*Fn,k=Math.sin(T),x=Math.cos(T),C;T=parseFloat(h)*Fn,C=Math.cos(T),o=Jo(w,o,k*C*-b),a=Jo(w,a,-Math.sin(T)*-b),c=Jo(w,c,x*C*-b+b)}m!==gi&&(g+="perspective("+m+Ys),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==gi||a!==gi||c!==gi)&&(g+=c!==gi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Ys),l!==Hs&&(g+="rotate("+l+Ys),u!==Hs&&(g+="rotateY("+u+Ys),h!==Hs&&(g+="rotateX("+h+Ys),(d!==Hs||p!==Hs)&&(g+="skew("+d+", "+p+Ys),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Ys),w.style[Rt]=g||"translate(0, 0)"},Vv=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,w=s.forceCSS,b=parseFloat(o),g=parseFloat(a),y,T,k,x,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Fn,l*=Fn,y=Math.cos(c)*h,T=Math.sin(c)*h,k=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=Fn,C=Math.tan(l-u),C=Math.sqrt(1+C*C),k*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,T*=C)),y=jt(y),T=jt(T),k=jt(k),x=jt(x)):(y=h,x=d,T=k=0),(b&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(b=Ls(p,"x",o,"px"),g=Ls(p,"y",a,"px")),(_||f||m||v)&&(b=jt(b+_-(_*y+f*k)+m),g=jt(g+f-(_*T+f*x)+v)),(n||r)&&(C=p.getBBox(),b=jt(b+n/100*C.width),g=jt(g+r/100*C.height)),C="matrix("+y+","+T+","+k+","+x+","+b+","+g+")",p.setAttribute("transform",C),w&&(p.style[Rt]=C)},Uv=function(t,e,s,n,r){var o=360,a=Zt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?Gs: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*Ll)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Ll)%o-~~(l/o)*o)),t._pt=d=new de(t._pt,e,s,n,l,Tv),d.e=u,d.u="deg",t._props.push(s),d},ql=function(t,e){for(var s in e)t[s]=e[s];return t},zv=function(t,e,s){var n=ql({},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=Ki(s,1),hn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ki(s,1),o[Rt]=l);for(c in ms)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Ls(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new de(t._pt,a,c,h,d-h,Sa),t._pt.u=_||0,t._props.push(c));ql(a,n)};he("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});co[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return ls(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 pd={name:"css",register:Oa,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,w,b,g,y,T,k,x;Sc||Oa(),this.styles=this.styles||ad(t),x=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ge[f]&&Zh(f,e,s,n,t,r)))){if(p=typeof u,_=co[f],p==="function"&&(u=u.call(s,n,t,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=$i(u)),_)_(this,t,f,u,s)&&(k=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ms.lastIndex=0,Ms.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Ls(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],Zt(l)&&~l.indexOf("random(")&&(l=$i(l)),Kt(l+"")||l==="auto"||(l+=ke.units[f]||Kt(ls(t,f))||""),(l+"").charAt(1)==="="&&(l=ls(t,f))):l=ls(t,f),d=parseFloat(l),w=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),h=parseFloat(u),f in Xe&&(f==="autoAlpha"&&(d===1&&ls(t,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),Ss(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Xe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in ms,b){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ki(t,e.parseTransform),T=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new de(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new de(this._pt,y,"scaleY",y.scaleY,(w?Nn(y.scaleY,w+h):h)-y.scaleY||0,Sa),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){x.push(fe,0,a[fe]),u=Rv(u),y.svg?Aa(t,u,0,T,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Ss(this,y,"zOrigin",y.zOrigin,v),Ss(this,a,f,lo(l),lo(u)));continue}else if(f==="svgOrigin"){Aa(t,u,1,T,0,this);continue}else if(f in hd){Uv(this,y,f,d,w?Nn(d,w+u):u);continue}else if(f==="smoothOrigin"){Ss(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){zv(this,u,t);continue}}else f in a||(f=$n(f)||f);if(b||(h||h===0)&&(d||d===0)&&!kv.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in ke.units?ke.units[f]:m),m!==v&&(d=Ls(t,f,l,v)),this._pt=new de(this._pt,b?y:a,f,d,(w?Nn(d,w+h):h)-d,!b&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?bv:Sa),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=wv);else if(f in a)Nv.call(this,t,f,l,w?w+u:u);else if(f in t)this.add(t,f,l||t[f],w?w+u:u,n,r);else if(f!=="parseTransform"){gc(f,u);continue}b||(f in a?x.push(f,0,a[f]):x.push(f,1,l||t[f])),o.push(f)}}k&&sd(this)},render:function(t,e){if(e.tween._time||!Ec())for(var s=e._pt;s;)s.r(t,s.d),s=s._next;else e.styles.revert()},get:ls,aliases:Xe,getSetter:function(t,e,s){var n=Xe[e];return n&&n.indexOf(",")<0&&(e=n),e in ms&&e!==fe&&(t._gsap.x||ls(t,"x"))?s&&Fl===s?e==="scale"?Ov:Ev:(Fl=s||{})&&(e==="scale"?Av:Mv):t.style&&!pc(t.style[e])?Cv:~e.indexOf("-")?Sv:bc(t,e)},core:{_removeProperty:hn,_getMatrix:Ac}};_e.utils.checkPrefix=$n;_e.core.getStyleSaver=ad;(function(i,t,e,s){var n=he(i+","+t+","+e,function(r){ms[r]=1});he(t,function(r){ke.units[r]="deg",hd[r]=1}),Xe[n[13]]=i+","+t,he(s,function(r){var o=r.split(":");Xe[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");he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ke.units[i]="px"});_e.registerPlugin(pd);var Mc=_e.registerPlugin(pd)||_e;Mc.core.Tween;const md=({isSelected:i,position:t,label:e})=>{const s=I.useRef(null);return I.useEffect(()=>{if(s.current){const n=s.current;Mc.fromTo(n.material,{linewidth:El*15},{linewidth:El,duration:1})}},[i,s]),L.jsxs("group",{children:[L.jsx(Vd,{ref:s,isLine2:!0,name:"line",opacity:.5,points:[new it(t.sx,t.sy,t.sz),new it(t.tx,t.ty,t.tz)]}),L.jsx(Ra,{children:L.jsx(Ql,{anchorX:"center",anchorY:"middle",color:"white",fontSize:10,children:e})})]})};md.displayName="LineComponent";const jv=I.memo(md),_d=I.memo(({linksPosition:i})=>{const t=Vs(n=>n.dataInitial),{showSelectionGraph:e}=pe(n=>n),s=gs();return L.jsx("group",{name:"simulation-3d-group__connections",visible:!e||!0,children:t==null?void 0:t.links.map(n=>{const r=(s==null?void 0:s.ref_id)===n.source||(s==null?void 0:s.ref_id)===n.target,o=i.get(n.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return L.jsx(jv,{isSelected:r,label:n.edge_type,position:o},n.ref_id)})})});_d.displayName="Connections";const Bv=({color:i,scale:t})=>L.jsx(Ra,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(ru,{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"],Wv=()=>{const i=gs(),t=Vs(r=>r.dataInitial),{normalizedSchemasByType:e}=Ma(r=>r),s=$l(),n=I.useMemo(()=>new Ef(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(Xf,{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(Bv,{color:a,scale:r.scale||1},r.ref_id)})]})})},Hv=I.memo(Wv),Yv=Ut(_s)` - text-align: center; - width: ${i=>i.type==="topic"?"auto":`${i.size}px`}; - height: ${i=>i.type==="topic"?"auto":`${i.size}px`}; - outline: 1px solid ${i=>Tt.white||i.color}; - outline-offset: 0px; - background: rgba(0, 0, 0, 0.75); - color: ${i=>i.fontColor}; - border-radius: ${i=>`${i.type==="guest"?"100%":"6px"}`}; - font-size: ${i=>`${i.fontSize}px`}; - cursor: pointer; - transition: font-size 0.4s, outline 0.4s; - transform: scale(${i=>i.scale}); - align-items: center; - justify-content: center; - font-family: Barlow; - font-size: 26px; - font-style: normal; - font-weight: 700; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); - - &:hover { - outline-offset: 4px; - } - - &.selected { - .badge-wrapper { - top: 0; - } - - font-size: 36px; - - &:hover { - outline-offset: 0px; - } - } - - &.topic { - outline: none; - background: none; - &:hover { - font-size: 36px; - } - white-space: nowrap; - .badge-wrapper { - display: none; - } - } - - .badge-wrapper { - position: absolute; - top: -7px; - left: -14px; - } -`,Gv=Ut(_s)` - text-align: center; - outline: 1px solid ${Tt.white}; - outline-offset: 0px; - white-space: nowrap; - padding: 4px; - background: rgba(0, 0, 0, 0.75); - color: ${Tt.white}; - border-radius: 6px; - font-size: 20px; - cursor: pointer; - transition: font-size 0.4s, outline 0.4s; - align-items: center; - justify-content: flex-start; - font-family: Barlow; - font-size: 26px; - font-style: normal; - font-weight: 700; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); - max-width: auto; - max-height: 100px; - white-space: normal; - font-size: 16px; - - &:hover { - outline-offset: 4px; - } - - &.selected { - .badge-wrapper { - top: 0; - } - - font-size: 36px; - - &:hover { - outline-offset: 0px; - } - } - - &.topic { - outline: none; - background: none; - &:hover { - font-size: 36px; - } - white-space: nowrap; - .badge-wrapper { - display: none; - } - } - - .badge-wrapper { - position: absolute; - top: -7px; - left: -14px; - } -`;Ut.img` - background-image: ${({src:i})=>`url(${i})`}; - background-size: contain; - background-repeat: no-repeat; - width: ${i=>i.size}px; - height: ${i=>i.size}px; - border-radius: ${i=>i.borderRadius}; -`;Ut.div` - display: flex; - position: absolute; - bottom: -14px; - left: -5px; - width: auto; - justify-content: center; - align-items: center; -`;Ut.div` - display: flex; - justify-content: center; - align-items: center; - background: ${Tt.transparentBlack}; - border: 2px solid ${i=>i.color}; - color: #fff; - padding: 0 4px; - min-width: 30px; - height: 26px; - font-size: 12px; - font-weight: 500; - border-radius: 6px; - margin-right: 5px; -`;Ut.div` - display: flex; - justify-content: center; - align-items: center; - border: 2px solid ${i=>i.color}44; - background: ${Tt.transparentBlack}; - padding: 0 4px; - color: ${i=>i.color}; - min-width: 30px; - height: 26px; - font-size: 12px; - font-weight: 500; - border-radius: 6px; - margin-right: 5px; -`;const $v=new it,Xv=({position:i,userData:t,color:e})=>{const s=I.useRef(null),{selectedNode:n,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=pe(Pa(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";Pe(()=>{if(o&&s.current){const p=$v.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)}}),I.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=I.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(tr,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?L.jsxs(Gv,{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(Nc,{type:(t==null?void 0:t.node_type)||""})}),t!=null&&t.name?L.jsx("span",{children:Jl(t==null?void 0:t.name,20)}):null]}):L.jsxs(Yv,{className:Xl(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(Nc,{type:(t==null?void 0:t.node_type)||""})}):null,t!=null&&t.name?t==null?void 0:t.name:L.jsx(Gd,{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},gd=I.memo(()=>{const{simulation:i,showSelectionGraph:t,selectedNode:e,selectionGraphData:s}=pe(Pa(o=>o)),n=Ia(),r=I.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,y1).map(u=>{const h=Kl(u.node_type||"",!0),d=new it((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&&v1(_,u)).map(_=>(_==null?void 0:_.ref_id)||"")||[];return L.jsx(Xv,{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(I.Fragment,{children:r.length?r:null},"node-badges")});gd.displayName="RelevanceBadges";const Zv=({link:i,animated:t})=>{const e=I.useRef(null),s=gs(),[n,r]=I.useState(new it(0,0,0)),[o,a]=I.useState(new it(0,0,0)),[c,l]=I.useState(8947848),u=pe(h=>h.selectionGraphData);return I.useEffect(()=>{var p,_,f,m,v,w;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===i.target||h===i.source);!i.onlyVisibleOnSelect||d?(r(new it(((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 it(((m=i.targetPosition)==null?void 0:m.x)||0,((v=i.targetPosition)==null?void 0:v.y)||0,((w=i.targetPosition)==null?void 0:w.z)||0))):(r(new it(0,0,0)),a(new it(0,0,0))),l(d?i.color||Ed.children.segmentColor:s?5592405:8947848)},[s,i]),Pe(()=>{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(Kf,{ref:e,color:"0xFFFFFF",end:o,start:n})})},Qv=({links:i,simulation:t})=>{const e=I.useRef(null);return I.useEffect(()=>function(){e.current&&e.current.clear()},[e]),Pe(()=>{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(tr,{center:!0,sprite:!0,children:L.jsxs(Kv,{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(_s,{className:"icon",children:L.jsx($d,{})})]})})},s.ref_id))}):null},Kv=Ut(_s)` - text-align: center; - - outline-offset: 0px; - background: rgba(0, 0, 0, 0.75); - color: #eee; - cursor: pointer; - transition: font-size 0.4s, outline 0.4s; - align-items: center; - justify-content: center; - font-family: Barlow; - font-size: 12px; - font-style: normal; - font-weight: 700; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); - - &:hover { - outline-offset: 4px; - span { - opacity: 0.1; - } - - .icon { - display: flex; - } - } - - .icon { - position: absolute; - width: 24px; - height: 24px; - /* bottom: 100%; */ - display: none; - color: #000; - border-radius: 40px; - justify-content: center; - align-items: center; - background: #ffffff; - color: #000; - border-radius: 100%; - font-size: 16px; - cursor: pointer; - transition: opacity 0.4s; - box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); - } - - .badge-wrapper { - position: absolute; - top: -7px; - left: -14px; - } -`,Jv=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:"")},yd={metalness:.9,roughness:0},vd=new fo,xd=vd.load("noimage.jpeg");new po({...yd,map:xd});const tx=.4;new po({...yd,map:xd,transparent:!0,opacity:tx});const Ar={},ex=i=>{const[t,e]=I.useState(null);return I.useEffect(()=>{var n;if(!i){e(null);return}const s=i;if((n=Ar[s])!=null&&n.texture){e(Ar[s].texture);return}vd.load(i,r=>{Ar[s]={texture:r,material:new po({map:r})},e(r)},void 0,()=>{e(null)})},[i]),I.useEffect(()=>()=>{t&&(Object.values(Ar).some(n=>n.texture===t)||t.dispose())},[t]),{texture:t}},sx=["#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 nx(i){const t=Jl(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 Dc=I.memo(({node:i,hide:t,ignoreDistance:e})=>{var b,g,y,T;const s=I.useRef(null),n=I.useRef(null),r=I.useRef(null),o=I.useRef(new it),{texture:a}=ex(((b=i.properties)==null?void 0:b.image_url)||""),{normalizedSchemasByType:c,getNodeKeysByType:l}=Ma(k=>k);Pe(({camera:k,clock:x})=>{const{selectedNode:C,hoveredNode:O,activeEdge:D}=pe.getState(),M=()=>{const B=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=e?!0:B.distanceTo(k.position)<2500)};if(i.ref_id===(C==null?void 0:C.ref_id)||i.ref_id===(O==null?void 0:O.ref_id)||(D==null?void 0:D.target)===i.ref_id||(D==null?void 0:D.source)===i.ref_id){n.current&&(n.current.visible=!0);const B=3+.2*Math.sin(x.getElapsedTime()*2);r.current&&(r.current.visible=!0,r.current.scale.set(B,B,B));return}r.current&&(r.current.visible=!1),M()}),I.useEffect(()=>{n.current&&Mc.fromTo(n.current.scale,{x:1,y:1,z:1},{x:6,y:6,z:6,duration:1.5,yoyo:!0,repeat:1})},[n]);const u=$l(),h=(g=c[i.node_type])==null?void 0:g.primary_color,d=(y=c[i.node_type])==null?void 0:y.icon,p=h??(sx[u.indexOf(i.node_type)]||Tt.white),f=(d?Xd[d]:null)?d:"NodesIcon",m=l(i.node_type)||"",v=m&&(i!=null&&i.properties)?Jv(String((i==null?void 0:i.properties[m])||"")):"",w={u_texture:{value:a},u_radius:{value:.5}};return L.jsx(Ra,{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.jsxs("mesh",{ref:r,position:[0,0,-2],visible:!1,children:[L.jsx("circleGeometry",{args:[30,32]}),L.jsx("meshBasicMaterial",{color:p,opacity:.5,transparent:!0})]}),(T=i.properties)!=null&&T.image_url&&["Person","Episode","Guest","Host","Show"].includes(i.node_type)&&a?L.jsx(Ud,{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:w,vertexShader:` - varying vec2 vUv; - void main() { - vUv = uv; - gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); - } - `})}):L.jsx(jf,{ref:s,name:"svg",onUpdate:k=>{k.traverse(x=>{x instanceof eu&&(x.material=new Of({color:p}))})},position:[-15,15,0],scale:2,src:`svg-icons/${f}.svg`,strokeMaterial:{color:"yellow"},userData:i}),v&&L.jsx(Ql,{color:p,fillOpacity:1,name:"text",position:[0,-65,0],scale:20,userData:i,...zd,children:nx(v)})]})})});Dc.displayName="TextNode";const kd=I.memo(()=>{const[i,t]=I.useState(null),{dataInitial:e}=Vs(l=>l),s=gs(),n=I.useRef(null),r=Ia(),o=jd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=pe(Pa(l=>l));return I.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]),I.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=Zd([]).numDimensions(2).stop().nodes(a.nodes).force("link",Qd().links(l).id(h=>h.ref_id)).force("collide",Kd().radius(()=>150).strength(1).iterations(1)).alpha(1).restart();t(u)},[a,i]),I.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),I.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]),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.jsx(Dc,{hide:!0,ignoreDistance:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(Zf,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(Zv,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(Qv,{links:a.links,simulation:i})]})});kd.displayName="SelectionDataNodes";const ix=200,Td=I.memo(()=>{const i=gs(),t=Jd(),e=Ia(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=pe(f=>f),a=Vs(f=>f.dataInitial),c=Ji(f=>f.setTranscriptOpen),l=I.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=I.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||pe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=I.useRef(null),d=I.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=I.useCallback(f=>{var w;const v=f.intersections.map(b=>b.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(w=v==null?void 0:v.userData)!=null&&w.ref_id){const b=v.userData;l(b)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(b)},ix))}},[r,l,o]),_=n&&!!i;return L.jsxs(zf,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(gd,{}),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(Dc,{hide:_||m,ignoreDistance:!1,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Hv,{})}),_&&L.jsx(kd,{})]})});Td.displayName="Cubes";const rx={earthRef:null},ox=Hl(i=>({...rx,setEarthRef:t=>i({earthRef:t})})),ax=new it(0,0,0),cx=()=>{const i=I.useRef(null),t=I.useRef(null),{graphStyle:e,showSelectionGraph:s}=pe(a=>a),n=ox(a=>a.setEarthRef),r=Qs("textures/earth/galaxy.png"),o=Qs("textures/earth/clouds.png");return Pe(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(ax))}),I.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:[Sr,200,200]}),L.jsx(lx,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:sa,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Sr*3]})]})},lx=()=>{const i=Qs("textures/earth/earth.jpeg"),t=Qs("textures/earth/bump.jpeg"),e=Qs("textures/earth/water.png"),s=I.useMemo(()=>new po({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},ux="C",hx=256,dx=256,fx={g:"LottieFiles AE 0.1.20"},px=[{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",_x=60,gx=104,yx=0,vx=[{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}]}],xx={nm:ux,h:hx,w:dx,meta:fx,layers:px,v:mx,fr:_x,op:gx,ip:yx,assets:vx},kx=({meshId:i})=>{const t=I.useRef(null);return I.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Od.loadAnimation({container:e,animationData:xx,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},ta=()=>Math.floor(Math.random()*2001)-1e3,Tx=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=ta(),e=ta(),s=ta();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(tr,{center:!0,sprite:!0,children:L.jsx(wx,{children:L.jsx(kx,{meshId:i})})})},i)})}),wx=Ut.div` - border: 2px solid white; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - color: white; - font-size: 20px; -`,yi=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"}}),bx=new it,wd=I.memo(()=>{var x,C;const i=I.useRef(null),t=Ji(O=>O.setSidebarOpen),[e,s]=Ad.useState(null),{open:n}=fr("editNodeName"),{open:r}=fr("addEdgeToNode"),{open:o}=fr("mergeToNode"),{open:a}=fr("createBounty"),[c]=Gl(O=>[O.isAdmin]),[l]=Vs(O=>[O.addNewNode]),u=gs(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:p,setShowSelectionGraph:_}=pe(O=>O),f=Af(),m=I.useCallback(async()=>{try{if(u!=null&&u.ref_id){const O=await Md(u==null?void 0:u.ref_id,d.nodes.length||0);O&&l(O)}}catch(O){console.error(O)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);Pe(()=>{v()});const v=I.useCallback(()=>{const O=h?d:f;if(i.current){const D=O==null?void 0:O.nodes.find(M=>M.ref_id===(u==null?void 0:u.ref_id));if(D){const M=bx.set(D==null?void 0:D.x,D==null?void 0:D.y,D==null?void 0:D.z);i.current.position.copy(M)}}},[u,h,d,f]),w=I.useMemo(()=>{const O=c?[{key:"control-key-1",colors:yi(h).focus,icon:L.jsx(rf,{}),left:-80,className:"add",onClick:M=>{s(M.currentTarget)}},{key:"control-key-2",colors:yi(h).focus,icon:L.jsx(of,{}),left:-40,className:"edit",onClick:()=>{n()}}]:[],D=[{key:"control-key-4",colors:yi(h).focus,icon:L.jsx(Dd,{}),left:0,className:"expand",onClick:()=>{const M=!h;_(M),M&&t(!0)}},{key:"control-key-5",colors:yi(!0).close,icon:L.jsx(af,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:yi(!0).close,icon:L.jsx(Pd,{}),left:40,className:"exit",onClick:()=>{_(!1),p(null)}}];return[...O,...D].map((M,V)=>({...M,left:-80+V*40}))},[c,h,n,_,t,m,p]);if(!u)return null;const b=()=>{s(null)},g=!!e,y=g?"simple-popover":void 0,T=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",k=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return L.jsx("group",{ref:i,children:L.jsxs(tr,{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:[w.map(O=>L.jsx(Cx,{backgroundColor:O.colors.backgroundColor,borderColor:O.colors.borderColor,className:O.className,fontColor:O.colors.fontColor,left:O.left,onClick:D=>{D.stopPropagation(),O.onClick(D)},children:O.icon},O.key)),k&&L.jsx(Ex,{left:2,onClick:()=>{a()},children:"Create Test"}),L.jsx(Sx,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:b,open:g,transformOrigin:{vertical:"top",horizontal:"right"},children:T?L.jsxs(L.Fragment,{children:[L.jsxs(Cn,{"data-testid":"generate_tests",onClick:()=>{b()},children:[L.jsx(Wl,{children:L.jsx(Rc,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),L.jsxs(Cn,{"data-testid":"add_comments",onClick:()=>{b()},children:[L.jsxs(Wl,{children:[L.jsx(ef,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),L.jsxs(Cn,{"data-testid":"review_bugs",onClick:()=>{b()},children:[L.jsx(sf,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),L.jsxs(Cn,{"data-testid":"find_vulnerabilities",onClick:()=>{b()},children:[L.jsx(nf,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):L.jsxs(L.Fragment,{children:[L.jsxs(Cn,{"data-testid":"merge",onClick:()=>{o(),b()},children:[L.jsx(tf,{"data-testid":"MergeIcon"})," Merge"]}),L.jsxs(Cn,{"data-testid":"add_edge",onClick:()=>{r(),b()},children:[L.jsx(Rc,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});wd.displayName="NodeControls";const Cx=Ut.div` - position: fixed; - top: -60px; - left: ${i=>-7+i.left}px; - width: 24px; - height: 24px; - - border-radius: 40px; - display: flex; - justify-content: center; - align-items: center; - background: ${i=>i.backgroundColor?i.backgroundColor:"#000000bb"}; - color: ${i=>i.fontColor?i.fontColor:"#ffffff"}; - border-radius: 100%; - font-size: 16px; - cursor: pointer; - transition: opacity 0.4s; - box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); -`,Cn=Ut(_s).attrs({direction:"row",px:12,py:8})` - display: flex; - align-items: center; - justify-content: start; - gap: 12px; - cursor: pointer; - background: ${Tt.BUTTON1}; - color: ${Tt.white}; - - &:hover { - background: ${Tt.BUTTON1_HOVER}; - color: ${Tt.GRAY3}; - } -`,Sx=Ut(cf)` - && { - z-index: 9999; - } - .MuiPaper-root { - min-width: 149px; - color: ${Tt.GRAY3}; - box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2); - border-radius: 6px; - z-index: 1; - font-family: Barlow; - font-size: 14px; - font-weight: 500; - background-color: transparent !important; - margin: 2px; - } -`,Wl=Ut.div` - display: flex; - align-items: center; - justify-content: start; - - svg { - margin-top: 1px; - width: 12px; - height: 12px; - } -`,Ex=Ut.div` - position: fixed; - top: 40px; - left: ${i=>-53+i.left}px; - width: 100px; - padding: 6px; - border-radius: 4px; - display: flex; - justify-content: center; - align-items: center; - background: ${Tt.createTestButton}; - color: ${Tt.black}; - font-size: 14px; - font-family: Barlow; - font-weight: 600; - cursor: pointer; - &:hover { - transform: scale(1.05); - } -`,bd=I.memo(()=>L.jsx(L.Fragment,{children:L.jsx(wd,{})}));bd.displayName="NodeDetailsPanel";const Ox=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Vs(f=>f),r=I.useRef(null),o=I.useRef(!1),{normalizedSchemasByType:a}=Ma(f=>f),c=I.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=pe(f=>f);return I.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),w=structuredClone(m);if(u){const b=Id.isEqual(s,i);d.addNodesAndLinks(v,w,b)}u||h(v,w),n()},[l,s,u,h,n,d,i]),I.useEffect(()=>{u&&d.setForces()},[p,d,u]),I.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new it(w.x,w.y,w.z)),m=new Lc().setFromPoints(f),v=new Vc;m.getBoundingSphere(v),Math.min(5e3,v.radius)}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");if(f&&f.children.forEach((w,b)=>{const g=u.nodes()[b];g&&w.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((w,b)=>{const g=u.nodes()[b];g&&w.position.set(g.x,g.y,g.z)}),u.alpha()>1)return;v&&(c.current.clear(),v.children.forEach((w,b)=>{var T;const g=w.children[0],y=w.children[1];if(g instanceof Zl){const k=g,x=i==null?void 0:i.links[b];if(x){const C=u.nodes().find(Z=>Z.ref_id===x.source),O=u.nodes().find(Z=>Z.ref_id===x.target);if(!C||!O){console.warn(`Missing source or target node for link: ${x==null?void 0:x.ref_id}`);return}const{x:D,y:M,z:V}=C,{x:B,y:G,z:Y}=O;c.current.set(x.ref_id,{sx:D,sy:M,sz:V,tx:B,ty:G,tz:Y});const j=new it((D+B)/2,(M+G)/2,(V+Y)/2);y.position.set(j.x,j.y,j.z);const z=((T=a[C.node_type])==null?void 0:T.primary_color)||"white";k.geometry.setPositions([D,M,V,B,G,Y]);const{material:X}=k;X.color=new Na(z),X.transparent=!0,X.opacity=.3}}}))}}),u.on("end",()=>{const f=u.nodes().map(b=>new it(b.x,b.y,b.z)),m=new Lc().setFromPoints(f),v=new Vc;m.getBoundingSphere(v);const w=v.radius;_(w*1.5),o.current=!1}))},[i,u,_,a]),u?L.jsxs("group",{ref:r,children:[L.jsx(Td,{}),p==="earth"&&L.jsx(cx,{}),(t||e)&&L.jsx(Tx,{}),p!=="earth"&&L.jsx(_d,{linksPosition:c.current}),L.jsx(bd,{})]}):null},Ax=({fullSize:i=!0})=>{const t=Ji(e=>e.sidebarIsOpen);return L.jsx(Mx,{align:"center",className:Xl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(Mf,{color:Tt.SECONDARY_BLUE,size:64})})},Mx=Ut(_s)` - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - background-color: ${Tt.black}; - z-index: 1; -`,Dx=()=>L.jsx(tr,{children:L.jsx(Ff,{})}),Px=()=>{const{universeColor:i}=uf("universe",{universeColor:Tt.black}),t=gs();return I.useMemo(()=>t!=null&&t.node_type?Kl(t.node_type):g1,[t]),L.jsxs(L.Fragment,{children:[L.jsx("color",{args:[i],attach:"background"}),L.jsx(Wd,{}),L.jsx(S1,{}),L.jsxs(n0,{children:[!1,L.jsx(Ox,{})]})]})};let ea=null;const Ix={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Ti.x,Ti.y,Ti.z]},Nx=()=>{const[i,t,e]=[Es(a=>a.setIsUserScrollingOnHtmlPanel),Es(a=>a.setIsUserScrolling),Es(a=>a.setUserMovedCamera)],s=Vs(a=>a.isFetching),n=Ji(a=>a.universeQuestionIsOpen),r=I.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;ea&&clearTimeout(ea),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{t(!1),i(!1)},200)},[t,i,e]),o=I.useCallback(a=>Nd(a,"threeState"),[]);return L.jsxs(Rx,{children:[L.jsx(I.Suspense,{fallback:null,children:L.jsxs(Bd,{camera:Ix,id:"universe-canvas",onCreated:o,onWheel:r,children:[Rd&&L.jsx(qd,{position:"top-right",style:{top:"80px"}}),L.jsxs(I.Suspense,{fallback:L.jsx(Dx,{}),children:[L.jsx(Jf,{}),L.jsx(t0,{}),L.jsx(e0,{}),L.jsx(Px,{})]})]})}),n&&L.jsx(r0,{}),s&&L.jsx(Ax,{fullSize:!1}),L.jsx(lf,{})]})},Rx=Ut(_s)` - flex: 1 1 100%; - position: relative; -`,gk=I.memo(Nx);export{gk as Universe}; diff --git a/build/assets/index-4313502a.js b/build/assets/index-d02d35b0.js similarity index 93% rename from build/assets/index-4313502a.js rename to build/assets/index-d02d35b0.js index 3936d3fae..c7abccb24 100644 --- a/build/assets/index-4313502a.js +++ b/build/assets/index-d02d35b0.js @@ -1,4 +1,4 @@ -import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0,C as e0,l as o0,b as Z,d as m0,e as n0,g as c0,f as l0,h as h0,i as p0,m as d0,k as a0,n as i0,o as f0,T as L,B as y0,Q as G0,p as b0,q as u0,t as E0,v as A0,w as B0,x as D0}from"./index-f2cb870a.js";import{P as V0,T as N,u as t0,B as S0,I as g0,N as F0,a as j0,L as w0,O as v0,A as P0}from"./index-d6936fc6.js";function _0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const M0=x0` +import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0,C as e0,l as o0,b as Z,d as m0,e as n0,g as c0,f as l0,h as h0,i as p0,m as d0,k as a0,n as i0,o as f0,T as L,B as y0,Q as G0,p as b0,q as u0,t as E0,v as A0,w as B0}from"./index-794e801a.js";import{P as D0,T as N,u as t0,B as V0,I as S0,N as g0,a as F0,O as j0,A as w0}from"./index-d39d2c64.js";function v0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const P0=x0` html { box-sizing: border-box; } @@ -50,7 +50,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, border-collapse: collapse; border-spacing: 0; } -`,C0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},T0=s0(i=>({...C0,setAskedQuestion:t=>i(e=>({askedQuestions:[...e.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>i({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>i({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>i({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>i({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var e,n,o,G;(e=t==null?void 0:t.instagraph)!=null&&e.edges&&((n=t==null?void 0:t.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(G=t==null?void 0:t.instagraph)==null?void 0:G.nodes}})}})),I0="0.1.106",z0=x.lazy(()=>h(()=>import("./index-e790ac5f.js"),["assets/index-e790ac5f.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/ClipLoader-83efcb6b.js","assets/Tabs-e3b4b317.js","assets/createSvgIcon-968d1259.js"]).then(({SettingsModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-a1c8bc76.js"),["assets/index-a1c8bc76.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/ClipLoader-83efcb6b.js"]).then(({AddContentModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-4bee6c36.js"),["assets/index-4bee6c36.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/ClipLoader-83efcb6b.js","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/index-d8ea0c8b.js","assets/Stack-a2ecd800.js","assets/createSvgIcon-968d1259.js","assets/TextareaAutosize-449c264d.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-657a329d.js"),["assets/index-657a329d.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/constants-fc83fb70.js","assets/ClipLoader-83efcb6b.js","assets/index-d8ea0c8b.js","assets/Stack-a2ecd800.js","assets/createSvgIcon-968d1259.js","assets/TextareaAutosize-449c264d.js","assets/index-a583ad56.js","assets/Typography-fe8f2873.js","assets/Tabs-e3b4b317.js"]).then(({SourcesTableModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-a088126d.js"),["assets/index-a088126d.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/Skeleton-a2b376e5.js","assets/ClipLoader-83efcb6b.js"]).then(({EditNodeNameModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-3e8cb7c2.js"),["assets/index-3e8cb7c2.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/Skeleton-a2b376e5.js","assets/ClipLoader-83efcb6b.js"]).then(({RemoveNodeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-9f1e2a07.js"),["assets/index-9f1e2a07.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/index-d8ea0c8b.js","assets/Stack-a2ecd800.js","assets/createSvgIcon-968d1259.js","assets/TextareaAutosize-449c264d.js","assets/constants-fc83fb70.js","assets/ClipLoader-83efcb6b.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-2be8dff4.js"),["assets/index-2be8dff4.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/index-a583ad56.js","assets/constants-fc83fb70.js","assets/index-d8ea0c8b.js","assets/Stack-a2ecd800.js","assets/createSvgIcon-968d1259.js","assets/TextareaAutosize-449c264d.js","assets/ClipLoader-83efcb6b.js"]).then(({MergeNodeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-9c5cc1d2.js"),["assets/index-9c5cc1d2.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/ClipLoader-83efcb6b.js","assets/index-d6936fc6.js","assets/index-d8ea0c8b.js","assets/Stack-a2ecd800.js","assets/createSvgIcon-968d1259.js","assets/TextareaAutosize-449c264d.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-5f0d156b.js"),["assets/index-5f0d156b.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d8ea0c8b.js","assets/index-d6936fc6.js","assets/Stack-a2ecd800.js","assets/createSvgIcon-968d1259.js","assets/TextareaAutosize-449c264d.js","assets/ClipLoader-83efcb6b.js","assets/isPlainObject-25422081.js","assets/Typography-fe8f2873.js","assets/Tabs-e3b4b317.js","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/index-5b1d6c13.js"]).then(({BlueprintModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-63bb2002.js"),["assets/index-63bb2002.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js"]).then(({UserFeedBackModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-72b8184c.js"),["assets/index-72b8184c.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/index-d8ea0c8b.js","assets/Stack-a2ecd800.js","assets/createSvgIcon-968d1259.js","assets/TextareaAutosize-449c264d.js"]).then(({CreateBountyModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-f2cb870a.js").then(i=>i.cc),["assets/index-f2cb870a.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),K0=x.lazy(()=>h(()=>import("./index-21017702.js"),["assets/index-21017702.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js"]).then(({BriefDescription:i})=>({default:i}))),X0=()=>a.jsxs(a.Fragment,{children:[a.jsx(N0,{}),a.jsx(L0,{}),a.jsx(z0,{}),a.jsx(O0,{}),a.jsx($0,{}),a.jsx(R0,{}),a.jsx(q0,{}),a.jsx(U0,{}),a.jsx(W0,{}),a.jsx(Q0,{}),a.jsx(H0,{}),a.jsx(Y0,{}),a.jsx(J0,{}),a.jsx(K0,{})]}),Z0=()=>{const[i,t]=x.useState(null),{runningProjectMessages:e}=P(m=>m),n=m=>{t(m.currentTarget)},o=()=>{t(null)},G=!!i,u=G?"simple-popover":void 0;return e.length?a.jsxs(aa,{ml:8,children:[a.jsx(ta,{onClick:n,children:a.jsxs(N,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(r0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ka,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:G,children:[a.jsx(k0,{onClick:o,children:a.jsx(e0,{})}),a.jsx(ia,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},aa=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,ia=c(d)` +`,_0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},M0=s0(i=>({..._0,setAskedQuestion:t=>i(e=>({askedQuestions:[...e.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>i({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>i({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>i({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>i({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var e,n,o,G;(e=t==null?void 0:t.instagraph)!=null&&e.edges&&((n=t==null?void 0:t.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(G=t==null?void 0:t.instagraph)==null?void 0:G.nodes}})}})),C0="0.1.106",T0=x.lazy(()=>h(()=>import("./index-0f11e1ac.js"),["assets/index-0f11e1ac.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/ClipLoader-548a512b.js","assets/Tabs-59164736.js","assets/createSvgIcon-72fbec8f.js"]).then(({SettingsModal:i})=>({default:i}))),I0=x.lazy(()=>h(()=>import("./index-521bb72b.js"),["assets/index-521bb72b.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/ClipLoader-548a512b.js"]).then(({AddContentModal:i})=>({default:i}))),z0=x.lazy(()=>h(()=>import("./index-4ae82293.js"),["assets/index-4ae82293.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/ClipLoader-548a512b.js","assets/index-086ee5d7.js","assets/three.module-df70f22b.js","assets/index-f6ae5354.js","assets/Stack-0bfda087.js","assets/createSvgIcon-72fbec8f.js","assets/TextareaAutosize-cee09ef8.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-4a17ebed.js"),["assets/index-4a17ebed.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/constants-f6ae9f1c.js","assets/ClipLoader-548a512b.js","assets/index-f6ae5354.js","assets/Stack-0bfda087.js","assets/createSvgIcon-72fbec8f.js","assets/TextareaAutosize-cee09ef8.js","assets/index-a03166b8.js","assets/Typography-4a916cc9.js","assets/Tabs-59164736.js"]).then(({SourcesTableModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-738e774f.js"),["assets/index-738e774f.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/Skeleton-8352c4ee.js","assets/ClipLoader-548a512b.js"]).then(({EditNodeNameModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-acbc4510.js"),["assets/index-acbc4510.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/Skeleton-8352c4ee.js","assets/ClipLoader-548a512b.js"]).then(({RemoveNodeModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-3f21c8a7.js"),["assets/index-3f21c8a7.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/index-f6ae5354.js","assets/Stack-0bfda087.js","assets/createSvgIcon-72fbec8f.js","assets/TextareaAutosize-cee09ef8.js","assets/constants-f6ae9f1c.js","assets/ClipLoader-548a512b.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-d3eb8088.js"),["assets/index-d3eb8088.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/index-a03166b8.js","assets/constants-f6ae9f1c.js","assets/index-f6ae5354.js","assets/Stack-0bfda087.js","assets/createSvgIcon-72fbec8f.js","assets/TextareaAutosize-cee09ef8.js","assets/ClipLoader-548a512b.js"]).then(({MergeNodeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-b8e1ee43.js"),["assets/index-b8e1ee43.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-086ee5d7.js","assets/three.module-df70f22b.js","assets/ClipLoader-548a512b.js","assets/index-d39d2c64.js","assets/index-f6ae5354.js","assets/Stack-0bfda087.js","assets/createSvgIcon-72fbec8f.js","assets/TextareaAutosize-cee09ef8.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-555cc0b7.js"),["assets/index-555cc0b7.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-f6ae5354.js","assets/index-d39d2c64.js","assets/Stack-0bfda087.js","assets/createSvgIcon-72fbec8f.js","assets/TextareaAutosize-cee09ef8.js","assets/ClipLoader-548a512b.js","assets/isPlainObject-11606a25.js","assets/Typography-4a916cc9.js","assets/index-195d9df5.js","assets/Tabs-59164736.js","assets/index-086ee5d7.js","assets/three.module-df70f22b.js","assets/index-3ee44dc3.js"]).then(({BlueprintModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-c5a5c142.js"),["assets/index-c5a5c142.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js"]).then(({UserFeedBackModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-444ad080.js"),["assets/index-444ad080.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/index-f6ae5354.js","assets/Stack-0bfda087.js","assets/createSvgIcon-72fbec8f.js","assets/TextareaAutosize-cee09ef8.js"]).then(({CreateBountyModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-794e801a.js").then(i=>i.cb),["assets/index-794e801a.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-cf1b42c2.js"),["assets/index-cf1b42c2.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js"]).then(({BriefDescription:i})=>({default:i}))),J0=()=>a.jsxs(a.Fragment,{children:[a.jsx(z0,{}),a.jsx(I0,{}),a.jsx(T0,{}),a.jsx(N0,{}),a.jsx(R0,{}),a.jsx(L0,{}),a.jsx(O0,{}),a.jsx(q0,{}),a.jsx(Q0,{}),a.jsx($0,{}),a.jsx(U0,{}),a.jsx(W0,{}),a.jsx(H0,{}),a.jsx(Y0,{})]}),K0=()=>{const[i,t]=x.useState(null),{runningProjectMessages:e}=P(m=>m),n=m=>{t(m.currentTarget)},o=()=>{t(null)},G=!!i,u=G?"simple-popover":void 0;return e.length?a.jsxs(X0,{ml:8,children:[a.jsx(aa,{onClick:n,children:a.jsxs(N,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(r0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ia,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:G,children:[a.jsx(k0,{onClick:o,children:a.jsx(e0,{})}),a.jsx(Z0,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},X0=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,Z0=c(d)` max-height: 50vh; max-width: 30vw; background: transparent; @@ -81,7 +81,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, &:hover { background: ${r.MESSAGE_BG_HOVER}; } -`,ta=c(d).attrs({align:"center",direction:"row"})` +`,aa=c(d).attrs({align:"center",direction:"row"})` display: flex; cursor: pointer; height: 2.5rem; @@ -143,7 +143,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, width: 1.5em; height: 1.5em; } -`,ka=c(V0)` +`,ia=c(D0)` .MuiPopover-paper { margin-top: 4px; background-color: transparent !important; @@ -158,9 +158,9 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, } } } -`,xa="A",sa=0,ra=128,ea=128,oa={g:"LottieFiles AE 3.5.2"},ma=[{ty:0,nm:"M",sr:1,st:0,op:54,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"M",sr:1,st:54,op:108,ip:54,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"2",sr:1,st:108,op:162,ip:108,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"2",sr:1,st:162,op:255,ip:162,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],na="4.8.0",ca=60,la=216,ha=0,pa=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.216,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.216,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:19}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]}],da={nm:xa,ddd:sa,h:ra,w:ea,meta:oa,layers:ma,v:na,fr:ca,op:la,ip:ha,assets:pa},fa=()=>{const i=x.useRef(null);return x.useEffect(()=>{const t=document.getElementById("lottie-animation");return t&&(i.current=o0.loadAnimation({container:t,animationData:da,loop:!0,autoplay:!0})),()=>{i.current&&i.current.destroy()}},[]),a.jsx("div",{id:"lottie-animation",style:{width:"2em",height:"2em"}})},ya=()=>{const[i,t]=x.useState(!1),[e,n]=x.useState(0),[o,G]=Z(s=>[s.budget,s.setBudget]),{normalizedSchemasByType:u}=m0(s=>s),[m,V,_,M]=P(s=>[s.stats,s.setStats,s.fetchData,s.setAbortRequests]);t0();const{open:C}=n0("sourcesTable"),S=async()=>{try{const s=await c0();s.totalProcessing&&s.totalProcessing>0?(t(!0),n(s.totalProcessing)):t(!1)}catch(s){console.error("Error fetching data:",s),t(!1)}};function T(s){}if(x.useEffect(()=>{m||(async()=>{try{const p=await l0();if(p){const f=h0(p);V(f)}}catch{p0.noop()}})()},[V,m]),x.useEffect(()=>{S()},[]),!m)return null;const g=s=>s.replace(/\b\w/g,p=>p.toUpperCase()),F=s=>{var y;const p=g(s.split("_")[0]),f=p,B=(y=u[p])==null?void 0:y.icon,D=g0[B]||F0;return{name:p,Icon:D,key:s,dataKey:s,mediaType:p,tooltip:f}},j=Object.keys(m).map(s=>F(s));return a.jsxs(ua,{children:[a.jsx(Ga,{children:j.map(({name:s,Icon:p,key:f,mediaType:B,tooltip:D})=>m[f]!==0?a.jsx(Ea,{"data-testid":B,onClick:()=>void 0,children:a.jsxs(N,{content:D,margin:"13px",children:[a.jsx("div",{className:"icon",children:a.jsx(p,{})}),a.jsx("div",{className:"text",children:m[f]})]})},s):a.jsx(a.Fragment,{}))}),a.jsxs(ba,{children:[i?a.jsxs(Ba,{"data-testid":"view-content",onClick:C,children:[a.jsx("div",{className:"icon",style:{marginLeft:"7px"},children:a.jsx(fa,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e})})]}):null,a.jsx(Aa,{children:a.jsxs(N,{content:"Budget",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(S0,{})}),a.jsx("div",{className:"text",children:a.jsxs("p",{children:[`${_0(o)} `," ",a.jsx("span",{className:"budgetUnit",children:"SAT"})]})})]})})]})]})},Ga=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})``,ba=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-end"})``,ua=c(d).attrs({align:"center",direction:"row",grow:1})` +`,ta="A",ka=0,xa=128,sa=128,ra={g:"LottieFiles AE 3.5.2"},ea=[{ty:0,nm:"M",sr:1,st:0,op:54,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"M",sr:1,st:54,op:108,ip:54,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"2",sr:1,st:108,op:162,ip:108,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"2",sr:1,st:162,op:255,ip:162,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],oa="4.8.0",ma=60,na=216,ca=0,la=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.216,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.216,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:19}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]}],ha={nm:ta,ddd:ka,h:xa,w:sa,meta:ra,layers:ea,v:oa,fr:ma,op:na,ip:ca,assets:la},pa=()=>{const i=x.useRef(null);return x.useEffect(()=>{const t=document.getElementById("lottie-animation");return t&&(i.current=o0.loadAnimation({container:t,animationData:ha,loop:!0,autoplay:!0})),()=>{i.current&&i.current.destroy()}},[]),a.jsx("div",{id:"lottie-animation",style:{width:"2em",height:"2em"}})},da=()=>{const[i,t]=x.useState(!1),[e,n]=x.useState(0),[o,G]=Z(s=>[s.budget,s.setBudget]),{normalizedSchemasByType:u}=m0(s=>s),[m,V,_,M]=P(s=>[s.stats,s.setStats,s.fetchData,s.setAbortRequests]);t0();const{open:C}=n0("sourcesTable"),S=async()=>{try{const s=await c0();s.totalProcessing&&s.totalProcessing>0?(t(!0),n(s.totalProcessing)):t(!1)}catch(s){console.error("Error fetching data:",s),t(!1)}};function T(s){}if(x.useEffect(()=>{m||(async()=>{try{const p=await l0();if(p){const f=h0(p);V(f)}}catch{p0.noop()}})()},[V,m]),x.useEffect(()=>{S()},[]),!m)return null;const g=s=>s.replace(/\b\w/g,p=>p.toUpperCase()),F=s=>{var y;const p=g(s.split("_")[0]),f=p,B=(y=u[p])==null?void 0:y.icon,D=S0[B]||g0;return{name:p,Icon:D,key:s,dataKey:s,mediaType:p,tooltip:f}},j=Object.keys(m).map(s=>F(s));return a.jsxs(Ga,{children:[a.jsx(fa,{children:j.map(({name:s,Icon:p,key:f,mediaType:B,tooltip:D})=>m[f]!==0?a.jsx(ba,{"data-testid":B,onClick:()=>void 0,children:a.jsxs(N,{content:D,margin:"13px",children:[a.jsx("div",{className:"icon",children:a.jsx(p,{})}),a.jsx("div",{className:"text",children:m[f]})]})},s):a.jsx(a.Fragment,{}))}),a.jsxs(ya,{children:[i?a.jsxs(Ea,{"data-testid":"view-content",onClick:C,children:[a.jsx("div",{className:"icon",style:{marginLeft:"7px"},children:a.jsx(pa,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e})})]}):null,a.jsx(ua,{children:a.jsxs(N,{content:"Budget",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(V0,{})}),a.jsx("div",{className:"text",children:a.jsxs("p",{children:[`${v0(o)} `," ",a.jsx("span",{className:"budgetUnit",children:"SAT"})]})})]})})]})]})},fa=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})``,ya=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-end"})``,Ga=c(d).attrs({align:"center",direction:"row",grow:1})` justify-content: between; -`,Ea=c(d).attrs({align:"center",direction:"row",justify:"flex-start"})` +`,ba=c(d).attrs({align:"center",direction:"row",justify:"flex-start"})` color: ${r.white}; background: ${r.BG1}; padding: 6px 10px 6px 8px; @@ -189,7 +189,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, .text { } -`,Aa=c(d).attrs({align:"center",direction:"row"})` +`,ua=c(d).attrs({align:"center",direction:"row"})` display: flex; height: 2.5rem; padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; @@ -229,7 +229,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, align-items: center; justify-content: center; } -`,Ba=c(d).attrs({align:"center",direction:"row"})` +`,Ea=c(d).attrs({align:"center",direction:"row"})` margin-right: 10px; display: flex; height: 28px; @@ -263,7 +263,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, align-items: center; justify-content: center; } -`,Da=()=>{const i=a0(m=>m.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:e}=i0(),{abortFetchData:n,resetGraph:o}=P(m=>m),G=f0();if(!i)return null;const u=()=>{e(null),n(),o(),t(),G("/")};return a.jsxs(Va,{children:[a.jsxs(Sa,{onClick:u,children:[a.jsx(a.Fragment,{children:i.title&&a.jsx(L,{className:"title",color:"white",children:i.title})}),a.jsx(L,{className:"subtitle",children:"Second Brain"})]}),a.jsx(ya,{}),a.jsx(Z0,{})]})},Va=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,Aa=()=>{const i=a0(m=>m.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:e}=i0(),{abortFetchData:n,resetGraph:o}=P(m=>m),G=f0();if(!i)return null;const u=()=>{e(null),n(),o(),t(),G("/")};return a.jsxs(Ba,{children:[a.jsxs(Da,{onClick:u,children:[a.jsx(a.Fragment,{children:i.title&&a.jsx(L,{className:"title",color:"white",children:i.title})}),a.jsx(L,{className:"subtitle",children:"Second Brain"})]}),a.jsx(da,{}),a.jsx(K0,{})]})},Ba=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -272,7 +272,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, transition: opacity 1s; z-index: 99; padding: 20px 23px; -`,Sa=c.div` +`,Da=c.div` ${d0.smallOnly` display: none; `} @@ -301,7 +301,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, margin-left: 8px; cursor: pointer; } -`,ga=620,Fa=()=>{const i=`(max-width: ${ga}px)`,[t,e]=x.useState(()=>window.matchMedia(i).matches);return x.useEffect(()=>{const n=window.matchMedia(i);e(n.matches);const o=()=>{e(n.matches)};return window.addEventListener("resize",o),()=>n.removeEventListener("change",o)},[i]),t},ja=()=>{const[i,t]=x.useState(!0),e=Fa();x.useEffect(()=>{t(!0)},[e]);const n=()=>{t(!1)};return e&&i?a.jsxs(wa,{align:"center",direction:"column",justify:"center",onClick:n,children:[a.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),a.jsxs(d,{align:"center",direction:"column",justify:"center",children:[a.jsx(z,{children:"Second Brain is currently"}),a.jsx(z,{style:{fontWeight:600},children:"optimized for Desktop."}),a.jsx(z,{children:"Mobile support coming soon."})]}),a.jsx(y0,{color:"secondary",onClick:n,variant:"contained",children:"Got It"})]}):null},wa=c(d)` +`,Va=620,Sa=()=>{const i=`(max-width: ${Va}px)`,[t,e]=x.useState(()=>window.matchMedia(i).matches);return x.useEffect(()=>{const n=window.matchMedia(i);e(n.matches);const o=()=>{e(n.matches)};return window.addEventListener("resize",o),()=>n.removeEventListener("change",o)},[i]),t},ga=()=>{const[i,t]=x.useState(!0),e=Sa();x.useEffect(()=>{t(!0)},[e]);const n=()=>{t(!1)};return e&&i?a.jsxs(Fa,{align:"center",direction:"column",justify:"center",onClick:n,children:[a.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),a.jsxs(d,{align:"center",direction:"column",justify:"center",children:[a.jsx(z,{children:"Second Brain is currently"}),a.jsx(z,{style:{fontWeight:600},children:"optimized for Desktop."}),a.jsx(z,{children:"Mobile support coming soon."})]}),a.jsx(y0,{color:"secondary",onClick:n,variant:"contained",children:"Got It"})]}):null},Fa=c(d)` height: 100vh; width: 100vw; background: rgba(0, 0, 0, 0.75); @@ -320,7 +320,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, font-weight: 400; line-height: 24px; margin: 1px; -`,va=c(G0)` +`,ja=c(G0)` .Toastify__toast { background-color: #49c998ff; width: fit-content; @@ -349,15 +349,15 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, top: 60px; right: 48px; } -`,Pa=c(d)` +`,wa=c(d)` height: 100%; width: 100%; background-color: ${r.black}; -`,_a=c(d)` +`,va=c(d)` position: absolute; bottom: 8px; left: 8px; color: ${r.white}; font-size: 12px; opacity: 0.5; -`,Ma=x.lazy(()=>h(()=>import("./index-4f6b03b7.js"),["assets/index-4f6b03b7.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js"]).then(({MainToolbar:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-cf684ffa.js"),["assets/index-cf684ffa.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-5b1d6c13.js","assets/three.module-9c942ca6.js","assets/index-d6936fc6.js","assets/TextareaAutosize-449c264d.js","assets/index-57a408d8.js","assets/ClipLoader-83efcb6b.js"]).then(({Universe:i})=>({default:i}))),Ta=x.lazy(()=>h(()=>import("./index-abdeac9a.js").then(i=>i.i),["assets/index-abdeac9a.js","assets/index-f2cb870a.js","assets/index-b4d03b7b.css","assets/index-d6936fc6.js","assets/ClipLoader-83efcb6b.js","assets/Skeleton-a2b376e5.js","assets/Stack-a2ecd800.js","assets/isPlainObject-25422081.js","assets/Typography-fe8f2873.js","assets/createSvgIcon-968d1259.js","assets/index-21017702.js","assets/index-57a408d8.js"]).then(({SideBar:i})=>({default:i}))),Ia=()=>{const[i]=b0(),t=i.get("q"),{setBudget:e,setNodeCount:n}=Z(k=>k),o=x.useRef(null),G=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:_,setTranscriptOpen:M,universeQuestionIsOpen:C,setUniverseQuestionIsOpen:S}=a0(k=>k),T=T0(k=>k.setTeachMeAnswer),{fetchData:g,setCategoryFilter:F,setAbortRequests:j,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D}=P(k=>k),{setAiSummaryAnswer:y,getKeyExist:R,aiRefId:I}=i0(k=>k),w=t0(),[O,E]=u0(k=>[k.realtimeGraphFeatureFlag,k.chatInterfaceFeatureFlag]),l=j0(),$=E0({mode:"onChange"}),{setValue:q}=$;x.useEffect(()=>{q("search",t??""),M(!1),w(null),_(!1),V(t??""),T(""),F(null)},[t,F,V,_,w,T,M,q]),x.useEffect(()=>{(async()=>{await g(e,j),u(!0),m?await D0(e):w(null)})()},[m,g,e,j,u,w]);const Q=x.useCallback(()=>{n("INCREMENT")},[n]),U=x.useCallback(k=>{D||(o.current||(o.current={nodes:[],edges:[]}),k.edges&&o.current.edges.push(...k.edges),k.nodes&&o.current.nodes.push(...k.nodes),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,v={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(v)}},3e3))},[s,D]),W=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{answer:k.answer,answerLoading:!1})},[y]),H=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{audio_en:k.audio_EN})},[y]),Y=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{questions:k.relevant_questions.map(b=>b.question),questionsLoading:!1})},[y]),J=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{sources:k.sources.map(b=>b.ref_id),sourcesLoading:!1})},[y]),K=x.useCallback(k=>{k.question&&R(I)&&y(I,{answerLoading:!1,entities:k.entities})},[y,R,I]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",k=>{console.error("Socket connection error:",k)}),l.on("newnode",Q),E&&l.on("extractedentitieshook",K),E&&l.on("askquestionhook",W),E&&l.on("relevantquestionshook",Y),E&&l.on("answersourceshook",J),O&&l.on("new_node_created",U),E&&l.on("answeraudiohook",H)),()=>{l&&l.off()}),[l,Q,U,O,W,E,Y,J,K,H]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(k){console.error(k)}},[f,l]),x.useEffect(()=>{p||E&&S()},[S,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(M0,{}),a.jsx(ja,{}),a.jsx(w0,{hidden:!A0||!0,isRoot:!0}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(Pa,{direction:"row",children:[a.jsxs(B0,{...$,children:[a.jsx(Ma,{}),!C&&a.jsx(Ta,{}),a.jsx(Ca,{}),a.jsx(v0,{}),a.jsx(Da,{}),a.jsxs(_a,{children:["v",I0]}),a.jsx(P0,{})]}),a.jsx(X0,{}),a.jsx(va,{})]})})]})},Na=Object.freeze(Object.defineProperty({__proto__:null,App:Ia},Symbol.toStringTag,{value:"Module"}));export{_0 as f,Na as i}; +`,Pa=x.lazy(()=>h(()=>import("./index-3ee49360.js"),["assets/index-3ee49360.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js"]).then(({MainToolbar:i})=>({default:i}))),_a=x.lazy(()=>h(()=>import("./index-aaff460f.js"),["assets/index-aaff460f.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-3ee44dc3.js","assets/three.module-df70f22b.js","assets/index-195d9df5.js","assets/index-d39d2c64.js","assets/TextareaAutosize-cee09ef8.js","assets/index-046f3837.js","assets/ClipLoader-548a512b.js"]).then(({Universe:i})=>({default:i}))),Ma=x.lazy(()=>h(()=>import("./index-42dc7de8.js").then(i=>i.i),["assets/index-42dc7de8.js","assets/index-794e801a.js","assets/index-b4d03b7b.css","assets/index-d39d2c64.js","assets/ClipLoader-548a512b.js","assets/Skeleton-8352c4ee.js","assets/Stack-0bfda087.js","assets/isPlainObject-11606a25.js","assets/Typography-4a916cc9.js","assets/createSvgIcon-72fbec8f.js","assets/index-cf1b42c2.js","assets/index-195d9df5.js","assets/index-046f3837.js"]).then(({SideBar:i})=>({default:i}))),Ca=()=>{const[i]=b0(),t=i.get("q"),{setBudget:e,setNodeCount:n}=Z(k=>k),o=x.useRef(null),G=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:_,setTranscriptOpen:M,universeQuestionIsOpen:C,setUniverseQuestionIsOpen:S}=a0(k=>k),T=M0(k=>k.setTeachMeAnswer),{fetchData:g,setCategoryFilter:F,setAbortRequests:j,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D}=P(k=>k),{setAiSummaryAnswer:y,getKeyExist:R,aiRefId:I}=i0(k=>k),w=t0(),[O,E]=u0(k=>[k.realtimeGraphFeatureFlag,k.chatInterfaceFeatureFlag]),l=F0(),$=E0({mode:"onChange"}),{setValue:q}=$;x.useEffect(()=>{q("search",t??""),M(!1),w(null),_(!1),V(t??""),T(""),F(null)},[t,F,V,_,w,T,M,q]),x.useEffect(()=>{(async()=>{await g(e,j),u(!0),m?await B0(e):w(null)})()},[m,g,e,j,u,w]);const Q=x.useCallback(()=>{n("INCREMENT")},[n]),U=x.useCallback(k=>{D||(o.current||(o.current={nodes:[],edges:[]}),k.edges&&o.current.edges.push(...k.edges),k.nodes&&o.current.nodes.push(...k.nodes),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,v={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(v)}},3e3))},[s,D]),W=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{answer:k.answer,answerLoading:!1})},[y]),H=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{audio_en:k.audio_EN})},[y]),Y=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{questions:k.relevant_questions.map(b=>b.question),questionsLoading:!1})},[y]),J=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{sources:k.sources.map(b=>b.ref_id),sourcesLoading:!1})},[y]),K=x.useCallback(k=>{k.question&&R(I)&&y(I,{answerLoading:!1,entities:k.entities})},[y,R,I]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",k=>{console.error("Socket connection error:",k)}),l.on("newnode",Q),E&&l.on("extractedentitieshook",K),E&&l.on("askquestionhook",W),E&&l.on("relevantquestionshook",Y),E&&l.on("answersourceshook",J),O&&l.on("new_node_created",U),E&&l.on("answeraudiohook",H)),()=>{l&&l.off()}),[l,Q,U,O,W,E,Y,J,K,H]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(k){console.error(k)}},[f,l]),x.useEffect(()=>{p||E&&S()},[S,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(P0,{}),a.jsx(ga,{}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(wa,{direction:"row",children:[a.jsxs(A0,{...$,children:[a.jsx(Pa,{}),!C&&a.jsx(Ma,{}),a.jsx(_a,{}),a.jsx(j0,{}),a.jsx(Aa,{}),a.jsxs(va,{children:["v",C0]}),a.jsx(w0,{})]}),a.jsx(J0,{}),a.jsx(ja,{})]})})]})},za=Object.freeze(Object.defineProperty({__proto__:null,App:Ca},Symbol.toStringTag,{value:"Module"}));export{v0 as f,za as i}; diff --git a/build/assets/index-d39d2c64.js b/build/assets/index-d39d2c64.js new file mode 100644 index 000000000..5c362ec49 --- /dev/null +++ b/build/assets/index-d39d2c64.js @@ -0,0 +1,211 @@ +import{G as w3,R as $1,H as o1,J as Z1,K as W2,L as N1,M as R1,O as f1,x as b,P as A1,r as L,S as O1,j as r,U as d1,V as U1,X as v3,Y as y1,Z as p1,$ as j2,a0 as k2,a1 as _3,a2 as y2,a3 as G2,c as X2,u as G1,s as D,a as U,F as O,B as Y2,C as a2,a4 as j3,a5 as k3,k as K2,b as y3,d as L3,T as r1,a6 as H3,I as M3}from"./index-794e801a.js";function V3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const b3=e=>{const[t,n,i]=e.split(":"),s=parseInt(t,10),o=parseInt(n,10),l=parseInt(i,10);return s*3600+o*60+l};function L2(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function Z3(e,t=166){let n;function i(...s){const o=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function l1(e){return e&&e.ownerDocument||document}function T1(e){return l1(e).defaultView||window}function E3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const S3=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},H2=S3,M2={disabled:!1};var I3=function(t){return t.scrollTop},E1="unmounted",c1="exited",h1="entering",k1="entered",s2="exiting",a1=function(e){w3(t,e);function t(i,s){var o;o=e.call(this,i,s)||this;var l=s,C=l&&!l.isMounting?i.enter:i.appear,a;return o.appearStatus=null,i.in?C?(a=c1,o.appearStatus=h1):a=k1:i.unmountOnExit||i.mountOnEnter?a=E1:a=c1,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var l=s.in;return l&&o.status===E1?{status:c1}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var o=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==h1&&l!==k1&&(o=h1):(l===h1||l===k1)&&(o=s2)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,o,l,C;return o=l=C=s,s!=null&&typeof s!="number"&&(o=s.exit,l=s.enter,C=s.appear!==void 0?s.appear:l),{exit:o,enter:l,appear:C}},n.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===h1){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:$1.findDOMNode(this);l&&I3(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c1&&this.setState({status:E1})},n.performEnter=function(s){var o=this,l=this.props.enter,C=this.context?this.context.isMounting:s,a=this.props.nodeRef?[C]:[$1.findDOMNode(this),C],h=a[0],c=a[1],d=this.getTimeouts(),p=C?d.appear:d.enter;if(!s&&!l||M2.disabled){this.safeSetState({status:k1},function(){o.props.onEntered(h)});return}this.props.onEnter(h,c),this.safeSetState({status:h1},function(){o.props.onEntering(h,c),o.onTransitionEnd(p,function(){o.safeSetState({status:k1},function(){o.props.onEntered(h,c)})})})},n.performExit=function(){var s=this,o=this.props.exit,l=this.getTimeouts(),C=this.props.nodeRef?void 0:$1.findDOMNode(this);if(!o||M2.disabled){this.safeSetState({status:c1},function(){s.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:s2},function(){s.props.onExiting(C),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:c1},function(){s.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},n.setNextCallback=function(s){var o=this,l=!0;return this.nextCallback=function(C){l&&(l=!1,o.nextCallback=null,s(C))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:$1.findDOMNode(this),C=s==null&&!this.props.addEndListener;if(!l||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=a[0],c=a[1];this.props.addEndListener(h,c)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===E1)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var C=o1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z1.createElement(W2.Provider,{value:null},typeof l=="function"?l(s,C):Z1.cloneElement(Z1.Children.only(l),C))},t}(Z1.Component);a1.contextType=W2;a1.propTypes={};function j1(){}a1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:j1,onEntering:j1,onEntered:j1,onExit:j1,onExiting:j1,onExited:j1};a1.UNMOUNTED=E1;a1.EXITED=c1;a1.ENTERING=h1;a1.ENTERED=k1;a1.EXITING=s2;const Q2=a1,J2=e=>e.scrollTop;function F1(e,t){var n,i;const{timeout:s,easing:o,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof s=="number"?s:s[t.mode]||0,easing:(i=l.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:l.transitionDelay}}function P3(e){return N1("MuiPaper",e)}R1("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const T3=["className","component","elevation","square","variant"],B3=e=>{const{square:t,elevation:n,variant:i,classes:s}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return U1(o,P3,s)},N3=f1("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 b({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"&&b({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${A1("#fff",H2(t.elevation))}, ${A1("#fff",H2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),R3=L.forwardRef(function(t,n){const i=O1({props:t,name:"MuiPaper"}),{className:s,component:o="div",elevation:l=1,square:C=!1,variant:a="elevation"}=i,h=o1(i,T3),c=b({},i,{component:o,elevation:l,square:C,variant:a}),d=B3(c);return r.jsx(N3,b({as:o,ownerState:c,className:d1(d.root,s),ref:n},h))}),O3=R3;function U3(e){return N1("MuiIconButton",e)}const $3=R1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),z3=$3,A3=["edge","children","className","color","disabled","disableFocusRipple","size"],F3=e=>{const{classes:t,disabled:n,color:i,edge:s,size:o}=e,l={root:["root",n&&"disabled",i!=="default"&&`color${y1(i)}`,s&&`edge${y1(s)}`,`size${y1(o)}`]};return U1(l,U3,t)},D3=f1(v3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${y1(n.color)}`],n.edge&&t[`edge${y1(n.edge)}`],t[`size${y1(n.size)}`]]}})(({theme:e,ownerState:t})=>b({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const i=(n=(e.vars||e).palette)==null?void 0:n[t.color];return b({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&b({color:i==null?void 0:i.main},!t.disableRipple&&{"&:hover":b({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${z3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),q3=L.forwardRef(function(t,n){const i=O1({props:t,name:"MuiIconButton"}),{edge:s=!1,children:o,className:l,color:C="default",disabled:a=!1,disableFocusRipple:h=!1,size:c="medium"}=i,d=o1(i,A3),p=b({},i,{edge:s,color:C,disabled:a,disableFocusRipple:h,size:c}),x=F3(p);return r.jsx(D3,b({className:d1(x.root,l),centerRipple:!0,focusRipple:!h,disabled:a,ref:n,ownerState:p},d,{children:o}))}),e3=q3;function t3(e){return typeof e=="string"}function W3(e,t,n){return e===void 0||t3(e)?t:b({},t,{ownerState:b({},t.ownerState,n)})}function n3(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 G3(e,t,n){return typeof e=="function"?e(t,n):e}function r3(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 X3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:s,className:o}=e;if(!t){const x=V2(n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),f=b({},n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),_=b({},n,s,i);return x.length>0&&(_.className=x),Object.keys(f).length>0&&(_.style=f),{props:_,internalRef:void 0}}const l=n3(b({},s,i)),C=b2(i),a=b2(s),h=t(l),c=V2(h==null?void 0:h.className,n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),d=b({},h==null?void 0:h.style,n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),p=b({},h,n,a,C);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:h.ref}}const Y3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function D1(e){var t;const{elementType:n,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:o=!1}=e,l=o1(e,Y3),C=o?{}:G3(i,s),{props:a,internalRef:h}=X3(b({},l,{externalSlotProps:C})),c=p1(h,C==null?void 0:C.ref,(t=e.additionalProps)==null?void 0:t.ref);return W3(n,b({},a,{ref:c}),s)}const K3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Q3(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 J3(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 e5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J3(e))}function t5(e){const t=[],n=[];return Array.from(e.querySelectorAll(K3)).forEach((i,s)=>{const o=Q3(i);o===-1||!e5(i)||(o===0?t.push(i):n.push({documentOrder:s,tabIndex:o,node:i}))}),n.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(t)}function n5(){return!0}function r5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:o=t5,isEnabled:l=n5,open:C}=e,a=L.useRef(!1),h=L.useRef(null),c=L.useRef(null),d=L.useRef(null),p=L.useRef(null),x=L.useRef(!1),f=L.useRef(null),_=p1(t.ref,f),w=L.useRef(null);L.useEffect(()=>{!C||!f.current||(x.current=!n)},[n,C]),L.useEffect(()=>{if(!C||!f.current)return;const g=l1(f.current);return f.current.contains(g.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),x.current&&f.current.focus()),()=>{s||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[C]),L.useEffect(()=>{if(!C||!f.current)return;const g=l1(f.current),v=y=>{w.current=y,!(i||!l()||y.key!=="Tab")&&g.activeElement===f.current&&y.shiftKey&&(a.current=!0,c.current&&c.current.focus())},m=()=>{const y=f.current;if(y===null)return;if(!g.hasFocus()||!l()||a.current){a.current=!1;return}if(y.contains(g.activeElement)||i&&g.activeElement!==h.current&&g.activeElement!==c.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!x.current)return;let H=[];if((g.activeElement===h.current||g.activeElement===c.current)&&(H=o(f.current)),H.length>0){var M,S;const P=!!((M=w.current)!=null&&M.shiftKey&&((S=w.current)==null?void 0:S.key)==="Tab"),V=H[0],$=H[H.length-1];typeof V!="string"&&typeof $!="string"&&(P?$.focus():V.focus())}else y.focus()};g.addEventListener("focusin",m),g.addEventListener("keydown",v,!0);const k=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(k),g.removeEventListener("focusin",m),g.removeEventListener("keydown",v,!0)}},[n,i,s,l,C,o]);const u=g=>{d.current===null&&(d.current=g.relatedTarget),x.current=!0,p.current=g.target;const v=t.props.onFocus;v&&v(g)},j=g=>{d.current===null&&(d.current=g.relatedTarget),x.current=!0};return r.jsxs(L.Fragment,{children:[r.jsx("div",{tabIndex:C?0:-1,onFocus:j,ref:h,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:_,onFocus:u}),r.jsx("div",{tabIndex:C?0:-1,onFocus:j,ref:c,"data-testid":"sentinelEnd"})]})}function i5(e){return typeof e=="function"?e():e}const s5=L.forwardRef(function(t,n){const{children:i,container:s,disablePortal:o=!1}=t,[l,C]=L.useState(null),a=p1(L.isValidElement(i)?i.ref:null,n);if(j2(()=>{o||C(i5(s)||document.body)},[s,o]),j2(()=>{if(l&&!o)return k2(n,l),()=>{k2(n,null)}},[n,l,o]),o){if(L.isValidElement(i)){const h={ref:a};return L.cloneElement(i,h)}return r.jsx(L.Fragment,{children:i})}return r.jsx(L.Fragment,{children:l&&_3.createPortal(i,l)})});function o5(e){const t=l1(e);return t.body===e?T1(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function P1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z2(e){return parseInt(T1(e).getComputedStyle(e).paddingRight,10)||0}function l5(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 E2(e,t,n,i,s){const o=[t,n,...i];[].forEach.call(e.children,l=>{const C=o.indexOf(l)===-1,a=!l5(l);C&&a&&P1(l,s)})}function Q1(e,t){let n=-1;return e.some((i,s)=>t(i)?(n=s,!0):!1),n}function C5(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(o5(i)){const l=E3(l1(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Z2(i)+l}px`;const C=l1(i).querySelectorAll(".mui-fixed");[].forEach.call(C,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Z2(a)+l}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=l1(i).body;else{const l=i.parentElement,C=T1(i);o=(l==null?void 0:l.nodeName)==="HTML"&&C.getComputedStyle(l).overflowY==="scroll"?l:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:l,property:C})=>{o?l.style.setProperty(C,o):l.style.removeProperty(C)})}}function a5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class c5{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&&P1(t.modalRef,!1);const s=a5(n);E2(n,t.mount,t.modalRef,s,!0);const o=Q1(this.containers,l=>l.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),i)}mount(t,n){const i=Q1(this.containers,o=>o.modals.indexOf(t)!==-1),s=this.containers[i];s.restore||(s.restore=C5(s,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const s=Q1(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[s];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&P1(t.modalRef,n),E2(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&P1(l.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function h5(e){return typeof e=="function"?e():e}function d5(e){return e?e.props.hasOwnProperty("in"):!1}const u5=new c5;function f5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:s=u5,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:C,children:a,onClose:h,open:c,rootRef:d}=e,p=L.useRef({}),x=L.useRef(null),f=L.useRef(null),_=p1(f,d),[w,u]=L.useState(!c),j=d5(a);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const v=()=>l1(x.current),m=()=>(p.current.modalRef=f.current,p.current.mount=x.current,p.current),k=()=>{s.mount(m(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},y=y2(()=>{const E=h5(t)||v().body;s.add(m(),E),f.current&&k()}),H=L.useCallback(()=>s.isTopModal(m()),[s]),M=y2(E=>{x.current=E,E&&(c&&H()?k():f.current&&P1(f.current,g))}),S=L.useCallback(()=>{s.remove(m(),g)},[g,s]);L.useEffect(()=>()=>{S()},[S]),L.useEffect(()=>{c?y():(!j||!o)&&S()},[c,S,j,o,y]);const P=E=>I=>{var q;(q=E.onKeyDown)==null||q.call(E,I),!(I.key!=="Escape"||I.which===229||!H())&&(n||(I.stopPropagation(),h&&h(I,"escapeKeyDown")))},V=E=>I=>{var q;(q=E.onClick)==null||q.call(E,I),I.target===I.currentTarget&&h&&h(I,"backdropClick")};return{getRootProps:(E={})=>{const I=n3(e);delete I.onTransitionEnter,delete I.onTransitionExited;const q=b({},I,E);return b({role:"presentation"},q,{onKeyDown:P(q),ref:_})},getBackdropProps:(E={})=>{const I=E;return b({"aria-hidden":!0},I,{onClick:V(I),open:c})},getTransitionProps:()=>{const E=()=>{u(!1),l&&l()},I=()=>{u(!0),C&&C(),o&&S()};return{onEnter:L2(E,a==null?void 0:a.props.onEnter),onExited:L2(I,a==null?void 0:a.props.onExited)}},rootRef:_,portalRef:M,isTopModal:H,exited:w,hasTransition:j}}const p5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],x5={entering:{opacity:1},entered:{opacity:1}},g5=L.forwardRef(function(t,n){const i=G2(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:C,easing:a,in:h,onEnter:c,onEntered:d,onEntering:p,onExit:x,onExited:f,onExiting:_,style:w,timeout:u=s,TransitionComponent:j=Q2}=t,g=o1(t,p5),v=L.useRef(null),m=p1(v,C.ref,n),k=T=>Z=>{if(T){const E=v.current;Z===void 0?T(E):T(E,Z)}},y=k(p),H=k((T,Z)=>{J2(T);const E=F1({style:w,timeout:u,easing:a},{mode:"enter"});T.style.webkitTransition=i.transitions.create("opacity",E),T.style.transition=i.transitions.create("opacity",E),c&&c(T,Z)}),M=k(d),S=k(_),P=k(T=>{const Z=F1({style:w,timeout:u,easing:a},{mode:"exit"});T.style.webkitTransition=i.transitions.create("opacity",Z),T.style.transition=i.transitions.create("opacity",Z),x&&x(T)}),V=k(f),$=T=>{o&&o(v.current,T)};return r.jsx(j,b({appear:l,in:h,nodeRef:v,onEnter:H,onEntered:M,onEntering:y,onExit:P,onExited:V,onExiting:S,addEndListener:$,timeout:u},g,{children:(T,Z)=>L.cloneElement(C,b({style:b({opacity:0,visibility:T==="exited"&&!h?"hidden":void 0},x5[T],w,C.props.style),ref:m},Z))}))}),m5=g5;function w5(e){return N1("MuiBackdrop",e)}R1("MuiBackdrop",["root","invisible"]);const v5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_5=e=>{const{classes:t,invisible:n}=e;return U1({root:["root",n&&"invisible"]},w5,t)},j5=f1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>b({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"})),k5=L.forwardRef(function(t,n){var i,s,o;const l=O1({props:t,name:"MuiBackdrop"}),{children:C,className:a,component:h="div",components:c={},componentsProps:d={},invisible:p=!1,open:x,slotProps:f={},slots:_={},TransitionComponent:w=m5,transitionDuration:u}=l,j=o1(l,v5),g=b({},l,{component:h,invisible:p}),v=_5(g),m=(i=f.root)!=null?i:d.root;return r.jsx(w,b({in:x,timeout:u},j,{children:r.jsx(j5,b({"aria-hidden":!0},m,{as:(s=(o=_.root)!=null?o:c.Root)!=null?s:h,className:d1(v.root,a,m==null?void 0:m.className),ownerState:b({},g,m==null?void 0:m.ownerState),classes:v,ref:n,children:C}))}))}),y5=k5;function L5(e){return N1("MuiModal",e)}R1("MuiModal",["root","hidden","backdrop"]);const H5=["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"],M5=e=>{const{open:t,exited:n,classes:i}=e;return U1({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},L5,i)},V5=f1("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})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),b5=f1(y5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Z5=L.forwardRef(function(t,n){var i,s,o,l,C,a;const h=O1({name:"MuiModal",props:t}),{BackdropComponent:c=b5,BackdropProps:d,className:p,closeAfterTransition:x=!1,children:f,container:_,component:w,components:u={},componentsProps:j={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:m=!1,disablePortal:k=!1,disableRestoreFocus:y=!1,disableScrollLock:H=!1,hideBackdrop:M=!1,keepMounted:S=!1,onBackdropClick:P,open:V,slotProps:$,slots:T}=h,Z=o1(h,H5),E=b({},h,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:m,disablePortal:k,disableRestoreFocus:y,disableScrollLock:H,hideBackdrop:M,keepMounted:S}),{getRootProps:I,getBackdropProps:q,getTransitionProps:R,portalRef:Y,isTopModal:z,exited:A,hasTransition:t1}=f5(b({},E,{rootRef:n})),G=b({},E,{exited:A}),F=M5(G),g1={};if(f.props.tabIndex===void 0&&(g1.tabIndex="-1"),t1){const{onEnter:B,onExited:W}=R();g1.onEnter=B,g1.onExited=W}const m1=(i=(s=T==null?void 0:T.root)!=null?s:u.Root)!=null?i:V5,H1=(o=(l=T==null?void 0:T.backdrop)!=null?l:u.Backdrop)!=null?o:c,M1=(C=$==null?void 0:$.root)!=null?C:j.root,w1=(a=$==null?void 0:$.backdrop)!=null?a:j.backdrop,Y1=D1({elementType:m1,externalSlotProps:M1,externalForwardedProps:Z,getSlotProps:I,additionalProps:{ref:n,as:w},ownerState:G,className:d1(p,M1==null?void 0:M1.className,F==null?void 0:F.root,!G.open&&G.exited&&(F==null?void 0:F.hidden))}),K1=D1({elementType:H1,externalSlotProps:w1,additionalProps:d,getSlotProps:B=>q(b({},B,{onClick:W=>{P&&P(W),B!=null&&B.onClick&&B.onClick(W)}})),className:d1(w1==null?void 0:w1.className,d==null?void 0:d.className,F==null?void 0:F.backdrop),ownerState:G});return!S&&!V&&(!t1||A)?null:r.jsx(s5,{ref:Y,container:_,disablePortal:k,children:r.jsxs(m1,b({},Y1,{children:[!M&&c?r.jsx(H1,b({},K1)):null,r.jsx(r5,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:y,isEnabled:z,open:V,children:L.cloneElement(f,g1)})]}))})}),E5=Z5,S5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function o2(e){return`scale(${e}, ${e**2})`}const I5={entering:{opacity:1,transform:o2(1)},entered:{opacity:1,transform:"none"}},J1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),i3=L.forwardRef(function(t,n){const{addEndListener:i,appear:s=!0,children:o,easing:l,in:C,onEnter:a,onEntered:h,onEntering:c,onExit:d,onExited:p,onExiting:x,style:f,timeout:_="auto",TransitionComponent:w=Q2}=t,u=o1(t,S5),j=L.useRef(),g=L.useRef(),v=G2(),m=L.useRef(null),k=p1(m,o.ref,n),y=Z=>E=>{if(Z){const I=m.current;E===void 0?Z(I):Z(I,E)}},H=y(c),M=y((Z,E)=>{J2(Z);const{duration:I,delay:q,easing:R}=F1({style:f,timeout:_,easing:l},{mode:"enter"});let Y;_==="auto"?(Y=v.transitions.getAutoHeightDuration(Z.clientHeight),g.current=Y):Y=I,Z.style.transition=[v.transitions.create("opacity",{duration:Y,delay:q}),v.transitions.create("transform",{duration:J1?Y:Y*.666,delay:q,easing:R})].join(","),a&&a(Z,E)}),S=y(h),P=y(x),V=y(Z=>{const{duration:E,delay:I,easing:q}=F1({style:f,timeout:_,easing:l},{mode:"exit"});let R;_==="auto"?(R=v.transitions.getAutoHeightDuration(Z.clientHeight),g.current=R):R=E,Z.style.transition=[v.transitions.create("opacity",{duration:R,delay:I}),v.transitions.create("transform",{duration:J1?R:R*.666,delay:J1?I:I||R*.333,easing:q})].join(","),Z.style.opacity=0,Z.style.transform=o2(.75),d&&d(Z)}),$=y(p),T=Z=>{_==="auto"&&(j.current=setTimeout(Z,g.current||0)),i&&i(m.current,Z)};return L.useEffect(()=>()=>{clearTimeout(j.current)},[]),r.jsx(w,b({appear:s,in:C,nodeRef:m,onEnter:M,onEntered:S,onEntering:H,onExit:V,onExited:$,onExiting:P,addEndListener:T,timeout:_==="auto"?null:_},u,{children:(Z,E)=>L.cloneElement(o,b({style:b({opacity:0,transform:o2(.75),visibility:Z==="exited"&&!C?"hidden":void 0},I5[Z],f,o.props.style),ref:k},E))}))});i3.muiSupportAuto=!0;const P5=i3;function T5(e){return N1("MuiPopover",e)}R1("MuiPopover",["root","paper"]);const B5=["onEntering"],N5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],R5=["slotProps"];function S2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function I2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function P2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function e2(e){return typeof e=="function"?e():e}const O5=e=>{const{classes:t}=e;return U1({root:["root"],paper:["paper"]},T5,t)},U5=f1(E5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$5=f1(O3,{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}),z5=L.forwardRef(function(t,n){var i,s,o;const l=O1({props:t,name:"MuiPopover"}),{action:C,anchorEl:a,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:x,container:f,elevation:_=8,marginThreshold:w=16,open:u,PaperProps:j={},slots:g,slotProps:v,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:k=P5,transitionDuration:y="auto",TransitionProps:{onEntering:H}={},disableScrollLock:M=!1}=l,S=o1(l.TransitionProps,B5),P=o1(l,N5),V=(i=v==null?void 0:v.paper)!=null?i:j,$=L.useRef(),T=p1($,V.ref),Z=b({},l,{anchorOrigin:h,anchorReference:d,elevation:_,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:m,TransitionComponent:k,transitionDuration:y,TransitionProps:S}),E=O5(Z),I=L.useCallback(()=>{if(d==="anchorPosition")return c;const B=e2(a),n1=(B&&B.nodeType===1?B:l1($.current).body).getBoundingClientRect();return{top:n1.top+S2(n1,h.vertical),left:n1.left+I2(n1,h.horizontal)}},[a,h.horizontal,h.vertical,c,d]),q=L.useCallback(B=>({vertical:S2(B,m.vertical),horizontal:I2(B,m.horizontal)}),[m.horizontal,m.vertical]),R=L.useCallback(B=>{const W={width:B.offsetWidth,height:B.offsetHeight},n1=q(W);if(d==="none")return{top:null,left:null,transformOrigin:P2(n1)};const x2=I();let v1=x2.top-n1.vertical,_1=x2.left-n1.horizontal;const g2=v1+W.height,m2=_1+W.width,w2=T1(e2(a)),v2=w2.innerHeight-w,_2=w2.innerWidth-w;if(w!==null&&v1v2){const s1=g2-v2;v1-=s1,n1.vertical+=s1}if(w!==null&&_1_2){const s1=m2-_2;_1-=s1,n1.horizontal+=s1}return{top:`${Math.round(v1)}px`,left:`${Math.round(_1)}px`,transformOrigin:P2(n1)}},[a,d,I,q,w]),[Y,z]=L.useState(u),A=L.useCallback(()=>{const B=$.current;if(!B)return;const W=R(B);W.top!==null&&(B.style.top=W.top),W.left!==null&&(B.style.left=W.left),B.style.transformOrigin=W.transformOrigin,z(!0)},[R]);L.useEffect(()=>(M&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[a,M,A]);const t1=(B,W)=>{H&&H(B,W),A()},G=()=>{z(!1)};L.useEffect(()=>{u&&A()}),L.useImperativeHandle(C,()=>u?{updatePosition:()=>{A()}}:null,[u,A]),L.useEffect(()=>{if(!u)return;const B=Z3(()=>{A()}),W=T1(a);return W.addEventListener("resize",B),()=>{B.clear(),W.removeEventListener("resize",B)}},[a,u,A]);let F=y;y==="auto"&&!k.muiSupportAuto&&(F=void 0);const g1=f||(a?l1(e2(a)).body:void 0),m1=(s=g==null?void 0:g.root)!=null?s:U5,H1=(o=g==null?void 0:g.paper)!=null?o:$5,M1=D1({elementType:H1,externalSlotProps:b({},V,{style:Y?V.style:b({},V.style,{opacity:0})}),additionalProps:{elevation:_,ref:T},ownerState:Z,className:d1(E.paper,V==null?void 0:V.className)}),w1=D1({elementType:m1,externalSlotProps:(v==null?void 0:v.root)||{},externalForwardedProps:P,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:g1,open:u},ownerState:Z,className:d1(E.root,x)}),{slotProps:Y1}=w1,K1=o1(w1,R5);return r.jsx(m1,b({},K1,!t3(m1)&&{slotProps:Y1,disableScrollLock:M},{children:r.jsx(k,b({appear:!0,in:u,onEntering:t1,onExited:G,timeout:F},S,{children:r.jsx(H1,b({},M1,{children:p}))}))}))}),z7=z5;function A5(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i{const i=e(n);return A5(t.current,i)?t.current:t.current=i}}const q5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"bubble_chart",children:[r.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_42)",children:r.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),W5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"communities",children:[r.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_39)",children:r.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),G5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"grain",children:[r.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_45)",children:r.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),X5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"public",children:[r.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_36)",children:r.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function T2(e,t,n){var i,s=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var l,C=i.length,a,h=0,c=0,d=0;for(l=0;l=(a=(l+C)/2))?l=a:C=a,i=s,!(s=s[d=+c]))return i[d]=o,e;if(h=+e._x.call(null,s.data),t===h)return o.next=s,i?i[d]=o:e._root=o,e;do i=i?i[d]=new Array(2):e._root=new Array(2),(c=t>=(a=(l+C)/2))?l=a:C=a;while((d=+c)==(p=+(h>=a)));return i[p]=s,i[d]=o,e}function K5(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let i=1/0,s=-1/0;for(let o=0,l;os&&(s=l));if(i>s)return this;this.cover(i).cover(s);for(let o=0;oe||e>=n;)switch(l=+(el||(o=h.x1)=d))&&(h=C[C.length-1],C[C.length-1]=C[C.length-1-c],C[C.length-1-c]=h)}else{var p=Math.abs(e-+this._x.call(null,a.data));p=(h=(l+C)/2))?l=h:C=h,t=n,!(n=n[d=+c]))return this;if(!n.length)break;t[d+1&1]&&(i=t,p=d)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[d]=o:delete t[d],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(i?i[p]=n:this._root=n),this):(this._root=o,this)}function r0(e){for(var t=0,n=e.length;t=(d=(C+h)/2))?C=d:h=d,(w=n>=(p=(a+c)/2))?a=p:c=p,s=o,!(o=o[u=w<<1|_]))return s[u]=l,e;if(x=+e._x.call(null,o.data),f=+e._y.call(null,o.data),t===x&&n===f)return l.next=o,s?s[u]=l:e._root=l,e;do s=s?s[u]=new Array(4):e._root=new Array(4),(_=t>=(d=(C+h)/2))?C=d:h=d,(w=n>=(p=(a+c)/2))?a=p:c=p;while((u=w<<1|_)===(j=(f>=p)<<1|x>=d));return s[j]=o,s[u]=l,e}function h0(e){var t,n,i=e.length,s,o,l=new Array(i),C=new Array(i),a=1/0,h=1/0,c=-1/0,d=-1/0;for(n=0;nc&&(c=s),od&&(d=o));if(a>c||h>d)return this;for(this.cover(a,h).cover(c,d),n=0;ne||e>=s||i>t||t>=o;)switch(h=(tc||(C=f.y0)>d||(a=f.x1)=u)<<1|e>=w)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-_],p[p.length-1-_]=f)}else{var j=e-+this._x.call(null,x.data),g=t-+this._y.call(null,x.data),v=j*j+g*g;if(v=(p=(l+a)/2))?l=p:a=p,(_=d>=(x=(C+h)/2))?C=x:h=x,t=n,!(n=n[w=_<<1|f]))return this;if(!n.length)break;(t[w+1&3]||t[w+2&3]||t[w+3&3])&&(i=t,u=w)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[u]=n:this._root=n),this):(this._root=o,this)}function g0(e){for(var t=0,n=e.length;t=(f=(a+d)/2))?a=f:d=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(k=i>=(w=(c+x)/2))?c=w:x=w,o=l,!(l=l[y=k<<2|m<<1|v]))return o[y]=C,e;if(u=+e._x.call(null,l.data),j=+e._y.call(null,l.data),g=+e._z.call(null,l.data),t===u&&n===j&&i===g)return C.next=l,o?o[y]=C:e._root=C,e;do o=o?o[y]=new Array(8):e._root=new Array(8),(v=t>=(f=(a+d)/2))?a=f:d=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(k=i>=(w=(c+x)/2))?c=w:x=w;while((y=k<<2|m<<1|v)===(H=(g>=w)<<2|(j>=_)<<1|u>=f));return o[H]=l,o[y]=C,e}function M0(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),i=new Float64Array(t),s=new Float64Array(t);let o=1/0,l=1/0,C=1/0,a=-1/0,h=-1/0,c=-1/0;for(let d=0,p,x,f,_;da&&(a=x),fh&&(h=f),_c&&(c=_));if(o>a||l>h||C>c)return this;this.cover(o,l,C).cover(a,h,c);for(let d=0;de||e>=l||s>t||t>=C||o>n||n>=a;)switch(p=(nf||(h=g.y0)>_||(c=g.z0)>w||(d=g.x1)=y)<<2|(t>=k)<<1|e>=m)&&(g=u[u.length-1],u[u.length-1]=u[u.length-1-v],u[u.length-1-v]=g)}else{var H=e-+this._x.call(null,j.data),M=t-+this._y.call(null,j.data),S=n-+this._z.call(null,j.data),P=H*H+M*M+S*S;if(P=(_=(l+h)/2))?l=_:h=_,(g=x>=(w=(C+c)/2))?C=w:c=w,(v=f>=(u=(a+d)/2))?a=u:d=u,t=n,!(n=n[m=v<<2|g<<1|j]))return this;if(!n.length)break;(t[m+1&7]||t[m+2&7]||t[m+3&7]||t[m+4&7]||t[m+5&7]||t[m+6&7]||t[m+7&7])&&(i=t,k=m)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[m]=o:delete t[m],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[k]=n:this._root=n),this):(this._root=o,this)}function I0(e){for(var t=0,n=e.length;t1&&(_=x.y+x.vy),n>2&&(w=x.z+x.vz),p.visit(v);function v(m,k,y,H,M,S,P){var V=[k,y,H,M,S,P],$=V[0],T=V[1],Z=V[2],E=V[n],I=V[n+1],q=V[n+2],R=m.data,Y=m.r,z=u+Y;if(R){if(R.index>x.index){var A=f-R.x-R.vx,t1=n>1?_-R.y-R.vy:0,G=n>2?w-R.z-R.vz:0,F=A*A+t1*t1+G*G;F1&&t1===0&&(t1=i1(s),F+=t1*t1),n>2&&G===0&&(G=i1(s),F+=G*G),F=(z-(F=Math.sqrt(F)))/F*o,x.vx+=(A*=F)*(z=(Y*=Y)/(j+Y)),n>1&&(x.vy+=(t1*=F)*z),n>2&&(x.vz+=(G*=F)*z),R.vx-=A*(z=1-z),n>1&&(R.vy-=t1*z),n>2&&(R.vz-=G*z))}return}return $>f+z||E1&&(T>_+z||I<_-z)||n>2&&(Z>w+z||qc.r&&(c.r=c[d].r)}function h(){if(t){var c,d=t.length,p;for(i=new Array(d),c=0;ctypeof p=="function")||Math.random,n=d.find(p=>[1,2,3].includes(p))||2,h()},C.iterations=function(c){return arguments.length?(l=+c,C):l},C.strength=function(c){return arguments.length?(o=+c,C):o},C.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Q(+c),h(),C):e},C}function D0(e){return e.index}function U2(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function q0(e){var t=D0,n=p,i,s=Q(30),o,l,C,a,h,c,d=1;e==null&&(e=[]);function p(u){return 1/Math.min(a[u.source.index],a[u.target.index])}function x(u){for(var j=0,g=e.length;j1&&(M=y.y+y.vy-k.y-k.vy||i1(c)),C>2&&(S=y.z+y.vz-k.z-k.vz||i1(c)),P=Math.sqrt(H*H+M*M+S*S),P=(P-o[v])/P*u*i[v],H*=P,M*=P,S*=P,y.vx-=H*(V=h[v]),C>1&&(y.vy-=M*V),C>2&&(y.vz-=S*V),k.vx+=H*(V=1-V),C>1&&(k.vy+=M*V),C>2&&(k.vz+=S*V)}function f(){if(l){var u,j=l.length,g=e.length,v=new Map(l.map((k,y)=>[t(k,y,l),k])),m;for(u=0,a=new Array(j);utypeof g=="function")||Math.random,C=j.find(g=>[1,2,3].includes(g))||2,f()},x.links=function(u){return arguments.length?(e=u,f(),x):e},x.id=function(u){return arguments.length?(t=u,x):t},x.iterations=function(u){return arguments.length?(d=+u,x):d},x.strength=function(u){return arguments.length?(n=typeof u=="function"?u:Q(+u),_(),x):n},x.distance=function(u){return arguments.length?(s=typeof u=="function"?u:Q(+u),w(),x):s},x}var W0={value:()=>{}};function C3(){for(var e=0,t=arguments.length,n={},i;e=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}z1.prototype=C3.prototype={constructor:z1,on:function(e,t){var n=this._,i=G0(e+"",n),s,o=-1,l=i.length;if(arguments.length<2){for(;++o0)for(var n=new Array(s),i=0,s,o;i=0&&e._call.call(void 0,t),e=e._next;--L1}function z2(){u1=(W1=B1.now())+X1,L1=S1=0;try{K0()}finally{L1=0,J0(),u1=0}}function Q0(){var e=B1.now(),t=e-W1;t>a3&&(X1-=t,W1=e)}function J0(){for(var e,t=q1,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:q1=n);I1=e,C2(i)}function C2(e){if(!L1){S1&&(S1=clearTimeout(S1));var t=e-u1;t>24?(e<1/0&&(S1=setTimeout(z2,e-B1.now()-X1)),V1&&(V1=clearInterval(V1))):(V1||(W1=B1.now(),V1=setInterval(Q0,a3)),L1=1,c3(z2))}}const e6=1664525,t6=1013904223,A2=4294967296;function n6(){let e=1;return()=>(e=(e6*e+t6)%A2)/A2}var F2=3;function r2(e){return e.x}function D2(e){return e.y}function r6(e){return e.z}var i6=10,s6=Math.PI*(3-Math.sqrt(5)),o6=Math.PI*20/(9+Math.sqrt(221));function l6(e,t){t=t||2;var n=Math.min(F2,Math.max(1,Math.round(t))),i,s=1,o=.001,l=1-Math.pow(o,1/300),C=0,a=.6,h=new Map,c=d3(x),d=C3("tick","end"),p=n6();e==null&&(e=[]);function x(){f(),d.call("tick",i),s1&&(v.fy==null?v.y+=v.vy*=a:(v.y=v.fy,v.vy=0)),n>2&&(v.fz==null?v.z+=v.vz*=a:(v.z=v.fz,v.vz=0));return i}function _(){for(var u=0,j=e.length,g;u1&&isNaN(g.y)||n>2&&isNaN(g.z)){var v=i6*(n>2?Math.cbrt(.5+u):n>1?Math.sqrt(.5+u):u),m=u*s6,k=u*o6;n===1?g.x=v:n===2?(g.x=v*Math.cos(m),g.y=v*Math.sin(m)):(g.x=v*Math.sin(m)*Math.cos(k),g.y=v*Math.cos(m),g.z=v*Math.sin(m)*Math.sin(k))}(isNaN(g.vx)||n>1&&isNaN(g.vy)||n>2&&isNaN(g.vz))&&(g.vx=0,n>1&&(g.vy=0),n>2&&(g.vz=0))}}function w(u){return u.initialize&&u.initialize(e,p,n),u}return _(),i={tick:f,restart:function(){return c.restart(x),i},stop:function(){return c.stop(),i},numDimensions:function(u){return arguments.length?(n=Math.min(F2,Math.max(1,Math.round(u))),h.forEach(w),i):n},nodes:function(u){return arguments.length?(e=u,_(),h.forEach(w),i):e},alpha:function(u){return arguments.length?(s=+u,i):s},alphaMin:function(u){return arguments.length?(o=+u,i):o},alphaDecay:function(u){return arguments.length?(l=+u,i):+l},alphaTarget:function(u){return arguments.length?(C=+u,i):C},velocityDecay:function(u){return arguments.length?(a=1-u,i):1-a},randomSource:function(u){return arguments.length?(p=u,h.forEach(w),i):p},force:function(u,j){return arguments.length>1?(j==null?h.delete(u):h.set(u,w(j)),i):h.get(u)},find:function(){var u=Array.prototype.slice.call(arguments),j=u.shift()||0,g=(n>1?u.shift():null)||0,v=(n>2?u.shift():null)||0,m=u.shift()||1/0,k=0,y=e.length,H,M,S,P,V,$;for(m*=m,k=0;k1?(d.on(u,j),i):d.on(u)}}}function C6(){var e,t,n,i,s,o=Q(-30),l,C=1,a=1/0,h=.81;function c(f){var _,w=e.length,u=(t===1?c2(e,r2):t===2?d2(e,r2,D2):t===3?f2(e,r2,D2,r6):null).visitAfter(p);for(s=f,_=0;_1&&(f.y=v/j),t>2&&(f.z=m/j)}else{w=f,w.x=w.data.x,t>1&&(w.y=w.data.y),t>2&&(w.z=w.data.z);do _+=l[w.data.index];while(w=w.next)}f.value=_}function x(f,_,w,u,j){if(!f.value)return!0;var g=[w,u,j][t-1],v=f.x-n.x,m=t>1?f.y-n.y:0,k=t>2?f.z-n.z:0,y=g-_,H=v*v+m*m+k*k;if(y*y/h1&&m===0&&(m=i1(i),H+=m*m),t>2&&k===0&&(k=i1(i),H+=k*k),H1&&(n.vy+=m*f.value*s/H),t>2&&(n.vz+=k*f.value*s/H)),!0;if(f.length||H>=a)return;(f.data!==n||f.next)&&(v===0&&(v=i1(i),H+=v*v),t>1&&m===0&&(m=i1(i),H+=m*m),t>2&&k===0&&(k=i1(i),H+=k*k),H1&&(n.vy+=m*y),t>2&&(n.vz+=k*y));while(f=f.next)}return c.initialize=function(f,..._){e=f,i=_.find(w=>typeof w=="function")||Math.random,t=_.find(w=>[1,2,3].includes(w))||2,d()},c.strength=function(f){return arguments.length?(o=typeof f=="function"?f:Q(+f),d(),c):o},c.distanceMin=function(f){return arguments.length?(C=f*f,c):Math.sqrt(C)},c.distanceMax=function(f){return arguments.length?(a=f*f,c):Math.sqrt(a)},c.theta=function(f){return arguments.length?(h=f*f,c):Math.sqrt(h)},c}function q2(e,t,n,i){var s,o,l=Q(.1),C,a;typeof e!="function"&&(e=Q(+e)),t==null&&(t=0),n==null&&(n=0),i==null&&(i=0);function h(d){for(var p=0,x=s.length;p1&&(f.vy+=w*g),o>2&&(f.vz+=u*g)}}function c(){if(s){var d,p=s.length;for(C=new Array(p),a=new Array(p),d=0;d[1,2,3].includes(x))||2,c()},h.strength=function(d){return arguments.length?(l=typeof d=="function"?d:Q(+d),c(),h):l},h.radius=function(d){return arguments.length?(e=typeof d=="function"?d:Q(+d),c(),h):e},h.x=function(d){return arguments.length?(t=+d,h):t},h.y=function(d){return arguments.length?(n=+d,h):n},h.z=function(d){return arguments.length?(i=+d,h):i},h}function a6(e){var t=Q(.1),n,i,s;typeof e!="function"&&(e=Q(e==null?0:+e));function o(C){for(var a=0,h=n.length,c;a{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},h6={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:"sphere",hoveredNode:null,selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:c6,isHovering:!1},x1=X2()((e,t)=>({...h6,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setGraphStyle:n=>e({graphStyle:"sphere"}),setHoveredNode:n=>{e({hoveredNode:n})},setActiveEdge:n=>{e({activeEdge:n})},setSelectedNode:n=>{const{selectedNode:i,simulation:s}=t();if((i==null?void 0:i.ref_id)!==(n==null?void 0:n.ref_id)){const o=s.nodes().find(l=>l.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:o,disableCameraRotation:!0})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const i=t().nearbyNodeIds;(n.length!==i.length||n[0]!==i[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,i,s)=>{const{simulation:o,simulationHelpers:l}=t();o.stop();const C=structuredClone(n),a=structuredClone(i);o.stop();const h=s?[]:o.nodes(),c=s?[]:o.force("link").links();h.push(...C),c.push(...a);try{o.nodes(h),o.force("link").links([]).links(c),l.simulationRestart()}catch(d){console.error(d)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...i2}))).force("y",null).force("radial",q2(200,0,0,0).strength(.1)).force("center",T2().strength(1)).force("collide",n2().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...i2}))).force("y",null).force("charge",C6().strength(-20)).force("center",T2().strength(1)).force("collide",n2().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:i}=G1.getState();n.stop().nodes(n.nodes().map(s=>({...s,...i2}))).force("radial",q2(200,0,0,0).strength(.1)).force("collide",n2().radius(()=>250).strength(1).iterations(1)).force("y",a6().y(s=>{const o=i.indexOf(s.node_type),l=Math.floor(o/2)*400;return o%2===0?l:-l}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:i}=t();n==="split"&&i.addSplitForce(),n==="sphere"&&i.addRadialForce(),n==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,i)=>{const s=structuredClone(n),o=structuredClone(i),l=l6([]).numDimensions(3).stop().nodes(s).force("link",q0().links(o).id(C=>C.ref_id));e({simulation:l})}})),u3=()=>x1(e=>e.selectedNode),A7=()=>x1(e=>e.hoveredNode),d6=()=>x1(e=>e.setSelectedNode),F7=()=>{const e=x1(s=>s.selectedNode);if(!e)return[];const{dataInitial:t}=G1.getState();return((t==null?void 0:t.links)||[]).reduce((s,o)=>(o.source===(e==null?void 0:e.ref_id)&&s.push(o.target),o.target===(e==null?void 0:e.ref_id)&&s.push(o.source),s),[])},u6=()=>(x1(D5(e=>[e.graphStyle,e.setGraphStyle])),null);D(O).attrs({direction:"row",align:"center",justify:"space-between"})` + padding: 6px 6px 6px 11px; + background: ${U.BG1}; + border-radius: 200px; + .icon { + color: ${U.GRAY6}; + font-size: 20px; + cursor: pointer; + + &:hover { + color: ${U.GRAY3}; + } + + &:active { + color: ${U.white}; + } + + &.active { + color: ${U.white}; + } + } + + .icon + .icon { + margin-left: 20px; + } +`;const f3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"center",children:[r.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),r.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),f6=()=>{const[e,t]=x1(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return r.jsx(p6,{href:"",onClick:()=>t(!e),size:"medium",startIcon:r.jsx(f3,{})})},p6=D(Y2)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + filter: brightness(0.65); + } + } +`,p3=D.div` + position: relative; + display: inline-flex; + align-items: center; +`,x6=D.div` + visibility: hidden; + width: auto; + background-color: ${({backgroundColor:e})=>e||"white"}; + color: ${({color:e})=>e||"black"}; + text-align: ${({textAlign:e})=>e||"center"}; + min-width: ${({minWidth:e})=>e||"auto"}; + border-radius: ${({borderRadius:e})=>e||"4px"}; + padding: ${({padding:e})=>e||"5px 8px"}; + position: absolute; + z-index: 1; + ${({position:e})=>{switch(e){case"top":return"bottom: 100%; left: 50%; transform: translateX(-50%);";case"left":return"right: calc(100% + 6px); top: 50%; transform: translateY(-50%);";default:return"top: 100%; left: 50%; transform: translateX(-50%);"}}} + margin-top: ${({margin:e})=>e||"0px"}; + opacity: 0; + transition: opacity 0.3s; + white-space: ${({whiteSpace:e})=>e||"nowrap"}; + overflow: hidden; + text-overflow: ellipsis; + font-size: ${({fontSize:e})=>e||"12px"}; + font-weight: ${({fontWeight:e})=>e||"600"}; + + ${p3}:hover & { + visibility: visible; + opacity: 1; + } +`,g6=({content:e,children:t,margin:n,backgroundColor:i,color:s,padding:o,fontSize:l,fontWeight:C,borderRadius:a,minWidth:h,whiteSpace:c,position:d,textAlign:p})=>r.jsxs(p3,{children:[t,r.jsx(x6,{backgroundColor:i,borderRadius:a,color:s,fontSize:l,fontWeight:C,margin:n,minWidth:h,padding:o,position:d,textAlign:p,whiteSpace:c,children:e})]}),m6=()=>{const{resetData:e}=G1(t=>t);return r.jsx(g6,{content:"Clear Graph",fontSize:"13px",position:"left",children:r.jsx(w6,{href:"",onClick:()=>e(),size:"medium",startIcon:r.jsx(a2,{})})})},w6=D(Y2)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + color: #fff; + filter: brightness(0.65); + } + } +`,x3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Pause Normal",children:r.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),g3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Play & Pause",children:r.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),v6={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},m3=D.div` + background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${v6[t]||"generic"}_placeholder_img.png')`}; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + width: ${({size:e=45,width:t})=>t||e}px; + height: ${({size:e=45,height:t})=>t||e}px; + border-radius: ${({rounded:e})=>e?"50%":"2px"}; +`,b1={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playerRef:null},_6=X2()(j3((e,t)=>({...b1,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setPlayerRef:n=>e({playerRef:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:i}=t();i&&e({playingNode:{...i,link:n}})},setPlayingNode:n=>{n||e({...b1});const i=t().playingNode;(i==null?void 0:i.ref_id)!==(n==null?void 0:n.ref_id)&&e({...b1,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:b1.duration,hasError:b1.hasError})}))),j6=()=>{var v,m,k,y,H;const e=L.useRef(null),[t,n]=L.useState(0),i=u3(),s=d6(),[o,l]=K2(M=>[M.sidebarIsOpen,M.setSidebarOpen]),[C,a,h,c,d,p]=_6(M=>[M.isPlaying,M.setIsPlaying,M.playingTime,M.playingNode,M.miniPlayerIsVisible,M.setMiniPlayerIsVisible]),[x,f]=(v=c==null?void 0:c.properties)!=null&&v.timestamp?c.properties.timestamp.split("-").map(M=>b3(M)):[0,0],_=(h-x)/(f-x)*100;L.useEffect(()=>{var P,V;const M=((P=e.current)==null?void 0:P.offsetWidth)||0,S=((V=e.current)==null?void 0:V.scrollWidth)||0;n(S-M)},[]);const w=M=>{p(!1),M.stopPropagation()},u=()=>{s(c),l(!0)},j=o&&(i==null?void 0:i.ref_id)!==(c==null?void 0:c.ref_id)||c&&!o,g=((m=window.location)==null?void 0:m.hostname)==="graphmindset.sphinx.chat";return d&&c&&j&&!g?r.jsxs(k6,{onClick:u,children:[r.jsxs(y6,{children:[r.jsx(m3,{src:((k=c==null?void 0:c.properties)==null?void 0:k.image_url)||"",type:c.node_type}),r.jsxs(L6,{children:[r.jsxs(Z6,{ref:e,children:[r.jsx(b6,{className:"title",scrollValue:t,children:(y=c==null?void 0:c.properties)==null?void 0:y.episode_title}),r.jsx("div",{className:"subtitle",children:(H=c==null?void 0:c.properties)==null?void 0:H.show_title})]}),r.jsx(M6,{"data-testid":"play-pause-button",onClick:M=>{a(!C),M.stopPropagation()},size:"small",children:C?r.jsx(x3,{"data-testid":"pause-icon"}):r.jsx(g3,{"data-testid":"play-icon"})})]}),r.jsx(H6,{onClick:M=>w(M),children:r.jsx(a2,{})})]}),r.jsx(V6,{value:_,variant:"determinate"})]}):null},k6=D(O).attrs({direction:"column",align:"stretch",justify:"space-between"})` + padding: 8px; + background: ${U.BG1}; + border-radius: 6px; + width: 320px; + height: 72px; + margin-top: 16px; + cursor: pointer; + z-index: 0; +`,y6=D(O).attrs({direction:"row",align:"center",justify:"flex-start"})``,L6=D(O).attrs({direction:"row",align:"center",justify:"space-between"})` + flex: 1; + color: ${U.white}; + margin-left: 11px; + + .title { + font-size: 13px; + margin-bottom: 2px; + font-weight: 500; + } + + .subtitle { + font-size: 11px; + color: ${U.GRAY6}; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } +`,H6=D(e3)` + padding: 8px; + color: ${U.GRAY6}; + z-index: 100000; +`,M6=D(e3)` + && { + font-size: 36px; + padding: 2px; + margin-left: 8px; + overflow: hidden; + z-index: 100000; + } +`,V6=D(k3)` + && { + flex-shrink: 0; + height: 2px; + background-color: ${U.white}; + color: blue; + + .MuiLinearProgress-bar { + background: rgb(65, 90, 127); + } + } +`,b6=D.div` + white-space: nowrap; + overflow: hidden; + width: max-content; + animation: scrollText 12s linear infinite; + + @keyframes scrollText { + 0%, + 15% { + transform: translateX(0); + } + + 60%, + 75% { + transform: translateX(${e=>-e.scrollValue}px); + } + + 100% { + transform: translateX(0); + } + } + color: #fff; +`,Z6=D(O)` + overflow: hidden; + flex: 1; +`,E6=()=>{const e=u3(),t=G1(s=>s.isFetching),n=K2(s=>s.universeQuestionIsOpen),{isAdmin:i}=y3(s=>s);return r.jsxs(S6,{align:"flex-end",id:"actions-toolbar",children:[r.jsxs(I6,{children:[!t&&!n&&i&&r.jsx(m6,{}),!t&&!n&&r.jsx(f6,{})]}),r.jsx(O,{align:"center",direction:"row",mt:16,children:!t&&!n&&r.jsx(u6,{})}),r.jsx(j6,{},e==null?void 0:e.ref_id)]})},S6=D(O)` + position: absolute; + right: 20px; + bottom: 20px; + pointer-events: all; +`,I6=D.div` + display: flex; + flex-direction: column; + gap: 4px; +`,P6=({type:e})=>{var C,a;let t;const[n]=L3(h=>[h.normalizedSchemasByType]),i=e,s=(C=n[e])==null?void 0:C.primary_color,o=(a=n[e])==null?void 0:a.icon,l=o?`svg-icons/${o}.svg`:null;switch(i){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:l??"video_badge.svg",color:s??U.CLIP};break;case"show":t={iconStart:l??"show_badge.svg",color:s??U.SHOW};break;case"tweet":t={iconStart:l??"twitter_badge.svg",color:s??U.TWEET};break;case"episode":t={iconStart:l??"audio_badge.svg",color:s??U.EPISODE};break;case"document":t={iconStart:l??"notes_badge.svg",color:s??U.TEXT};break;case(o??"organization"):t={iconStart:l??"organization_badge.svg",color:s??U.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:l??"person_badge.svg",color:s??U.PERSON};break;case"event":t={iconStart:l??"event_badge.svg",color:s??U.EVENT};break;default:t={iconStart:l??"thing_badge.svg",color:s??U.THING};break}return r.jsx(T6,{...t,label:e})},T6=({iconStart:e,color:t,label:n})=>r.jsxs(B6,{color:t,children:[r.jsx("img",{alt:n,className:"badge__img",src:e}),r.jsx("div",{className:"badge__label",children:n})]}),B6=D(O).attrs({direction:"row"})` + cursor: pointer; + background: ${({color:e})=>e}; + border-radius: 3px; + overflow: hidden; + justify-content: center; + align-items: center; + padding: 0 4px; + gap: 2px; + + .badge__img { + width: 10px; + height: 10px; + object-fit: contain; + } + + .badge__label { + color: ${U.white}; + font-family: Barlow; + font-size: 8px; + font-style: normal; + font-weight: 800; + line-height: 14px; + text-transform: uppercase; + line-height: 14px; + letter-spacing: 0.48px; + padding: 0 4px; + } +`,N6=({twitterHandle:e})=>r.jsx(r.Fragment,{children:r.jsx(O,{direction:"row",children:r.jsx(O,{align:"flex-start",pb:12,children:r.jsxs(r1,{children:["Tweet by @",e]})})})}),R6=D(O)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:U.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:U.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),O6=D(O)` + width: 22.5%; +`,U6=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:i,description:s,label:o,text:l,type:C,name:a,twitter_handle:h,image_url:c,guests:d}=e,p=d&&d.length>0,x=p&&typeof d[0]=="object";let f=c;return t==="guest"&&!c&&(f="person_placeholder2.png"),C==="twitter_space"&&(f="twitter_placeholder.png"),t==="topic"?null:r.jsx(R6,{borderRadius:8,px:24,py:16,children:t==="tweet"?r.jsx(N6,{twitterHandle:h}):r.jsxs(r.Fragment,{children:[r.jsxs(O,{direction:"row",children:[f&&r.jsx(O6,{}),r.jsx(O,{align:"flex-start",pb:12,children:r.jsx(P6,{type:t})})]}),r.jsxs(O,{direction:"row",children:[f&&r.jsx(O,{pr:12,children:r.jsx(m3,{src:f,type:"person"})}),r.jsxs("div",{children:[(a||o)&&r.jsx(O,{direction:"column",children:a?r.jsx(r1,{children:a}):r.jsxs(r.Fragment,{children:[r.jsx(r1,{children:o}),l&&r.jsx(O,{pt:4,children:r.jsxs(r1,{color:"primaryText1",kind:"tiny",children:["@",l]})})]})}),n&&r.jsx(r1,{color:"primaryText1",kind:"tiny",children:n}),i&&r.jsx(O,{pt:4,children:r.jsx(r1,{color:"primaryText1",kind:"tiny",children:i})}),s&&r.jsx(O,{pt:12,children:r.jsx(r1,{as:"div",kind:"regularBold",children:V3(s)})}),h&&r.jsx(O,{pt:4,children:r.jsxs(r1,{color:"primaryText1",kind:"tiny",children:["@",h]})}),d&&d.length>0&&r.jsxs(O,{pt:12,children:[r.jsx(r1,{color:"primaryText1",children:"People"}),r.jsx(O,{pt:4,children:r.jsx(r1,{color:"primaryText1",kind:"tiny",children:p&&r.jsxs(O,{pt:12,children:[r.jsx(r1,{children:"Guests:"}),r.jsx(r1,{children:x?d.map(_=>`@${_==null?void 0:_.twitter_handle}`).join(", "):d.join(", ")})]})})})]})]})]})]})})},D7=()=>{const[e,t]=x1(a=>[a.hoveredNode,a.isHovering]),[n,i]=L.useState(!1),[s,o]=L.useState(!1);L.useEffect(()=>{let a=null;return t||s?i(!0):a=setTimeout(()=>i(!1),300),()=>{a&&clearTimeout(a)}},[t,s]);const l=L.useCallback(()=>{o(!0)},[]),C=L.useCallback(()=>{o(!1)},[]);return r.jsxs($6,{children:[e&&n&&r.jsx(z6,{onMouseEnter:l,onMouseLeave:C,children:r.jsx(U6,{node:e})}),r.jsx(E6,{})]})},$6=D("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",paddingRight:"0",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),z6=D.div` + position: absolute; + top: 65px; + right: 55px; + z-index: 100; +`,q7=()=>{const e=L.useContext(H3);return e==null?void 0:e.socket},A6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),F6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Nodes",children:[r.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_141)",children:r.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),D6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),q6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_25)",children:r.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),W6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"add_link",children:[r.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2659_52)",children:r.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),G6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_27)",children:r.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),X6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),Y6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),K6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),Q6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21694)",children:r.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),J6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"arrow_forward",children:[r.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8980_24763)",children:r.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),e9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),t9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),n9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Audio",children:[r.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_147)",children:r.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),r9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_45)",children:r.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),i9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),s9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"browse_gallery",children:[r.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1360_27257)",children:r.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),o9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21901)",children:r.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),l9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),C9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),a9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),c9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),h9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),d9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"keyboard_arrow_left",children:[r.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1428_267)",children:r.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),u9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"chevron_right",children:[r.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1247_21809)",children:r.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),f9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),p9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),r.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),x9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),g9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),m9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_4256)",children:r.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),w9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22054)",children:r.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),v9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),r.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),_9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"content_copy",children:[r.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1489_75628)",children:r.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),j9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_27)",children:r.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),k9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:r.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8954_27793)",children:r.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),r.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),y9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[r.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask1_2777_4506)",children:r.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),L9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"delete",children:[r.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),H9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),r.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),r.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),M9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22108)",children:r.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),V9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),b9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2638_2680)",children:r.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),Z9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Type=Edit, Size=20x20",children:r.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),E9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),r.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),S9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),I9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Episode",children:[r.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),P9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_31)",children:r.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),T9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4160_9271)",children:r.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),B9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"captive_portal",children:[r.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[r.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),r.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),N9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),R9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),O9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"filter_alt_off",children:[r.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_23288)",children:r.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),U9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22315)",children:r.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),$9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),z9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_23)",children:r.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),A9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3130_18463)",children:r.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),F9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22375)",children:r.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),D9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),q9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22441)",children:r.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),W9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22444)",children:r.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),G9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),X9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Y9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),K9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_19)",children:r.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),Q9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22519)",children:r.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),J9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Icons 20x20",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),e7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),t7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),n7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_49)",children:r.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),r7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_mute",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),r.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),i7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),s7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"notes",children:[r.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1473_73722)",children:r.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),o7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),l7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),C7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_2772)",children:r.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),a7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22741)",children:r.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),c7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_3741)",children:r.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),h7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:r.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),d7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{opacity:"0.4",children:[r.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13105)",children:r.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),u7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13106)",children:r.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),f7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22801)",children:r.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),p7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:r.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5099_7163)",children:r.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),x7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22828)",children:r.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),g7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22840)",children:r.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),m7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"schedule",children:[r.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4051_4016)",children:r.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),w7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_35)",children:r.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),v7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),_7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),j7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Normal",children:r.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),k7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"sensors",children:[r.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_161)",children:r.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),y7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_28)",children:r.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),L7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_29)",children:r.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),H7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"shield_person",children:[r.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_22988)",children:r.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),M7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),V7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"brand_awareness",children:[r.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3696_4540)",children:r.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),b7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),Z7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_26)",children:r.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),E7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"stacks",children:[r.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8417_33308)",children:r.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),S7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9529_33)",children:r.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),I7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),r.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),r.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),P7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22378)",children:r.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),T7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5577_416)",children:r.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),B7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Twitter",children:[r.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_167)",children:r.jsx("g",{id:"X",children:r.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),N7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Video",children:[r.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_153)",children:r.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),R7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),O7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),U7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_up",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1483_75386)",children:r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),W7={AddCircleIcon:D6,AddContentIcon:q6,AddLinkIcon:W6,AddSourceIcon:G6,AiPauseIcon:X6,AiPlayIcon:Y6,AiSummaryIcon:K6,AndroidIcon:Q6,ArrowBackIcon:J6,ArrowForwardIcon:e9,ArrowRight:t9,AudioIcon:n9,BitcoinIcon:r9,BoostIcon:i9,BrowseGalleryIcon:s9,BubbleChartIcon:q5,BudgetIcon:A6,BuildIcon:o9,CalendarIcon:l9,CameraCenterIcon:f3,CancelIcon:C9,CheckIcon:a9,CheckedIcon:c9,ChevronDownIcon:h9,ChevronLeftIcon:d9,ChevronRightIcon:u9,ChevronUpIcon:f9,ChipIcon:p9,ClearIcon:a2,CloseIcon:x9,ColorPickerIcon:g9,CommunitiesIcon:W5,CompassIcon:m9,ConstructionIcon:w9,ContentIcon:v9,CopyIcon:_9,CorporationIcon:j9,CreateEdgeIcon:k9,DefaultShowIcon:y9,DeleteIcon:L9,DeleteNodeIcon:H9,DesignServicesIcon:M9,DocumentIcon:V9,DownloadIcon:b9,EditIcon:Z9,EditNodeIcon:E9,EditTopicIcon:S9,EpisodeIcon:I9,EventIcon:P9,ExitFullScreen:T9,ExploreIcon:B9,FamilyHistoryIcon:N9,FeedbackIcon:R9,FilterOffIcon:O9,FingerprintIcon:U9,FlipIcon:$9,FortIcon:z9,FullScreenIcon:A9,FunctionIcon:F9,GlobeIcon:D9,GrainIcon:G5,HandymanIcon:q9,HardwareIcon:W9,HashTag:G9,HashtagIcon:X9,HelpIcon:Y9,HomeIcon:K9,InfoIcon:M3,JoystickIcon:Q9,LinkIcon:J9,MenuIcon:e7,MergeIcon:t7,MoneyIcon:n7,MuteVolumeIcon:r7,NodeCircleIcon:i7,NodesIcon:F6,NotesIcon:s7,OrganizationIcon:o7,PauseIcon:x3,PersonAdd:l7,PersonIcon:C7,PhoneIcon:a7,PlaceIcon:c7,PlayIcon:g3,PlusIcon:h7,PropertyHide:d7,PropertyShow:u7,PublicIcon:X5,QrCodeIcon:f7,ReloadIcon:p7,RobotIcon:x7,SaveIcon:g7,ScheduleIcon:m7,SchoolIcon:w7,SearchFilterCloseIcon:v7,SearchFilterIcon:_7,SearchIcon:j7,SensorsIcon:k7,SentimentDataIcon:y7,SettingsIcon:L7,ShieldPersonIcon:H7,SortFilterIcon:M7,SoundIcon:V7,SourcesIcon:b7,SourcesTableIcon:Z7,StackIcon:E7,StorageIcon:S7,SucessFeedBackIcon:I7,SumFunctionIcon:P7,ThreeDotsIcons:T7,TwitterIcon:B7,VideoIcon:N7,VisibilityOff:R7,VisibilityOn:O7,VolumeIcon:U7};export{j7 as $,E6 as A,A6 as B,W5 as C,L9 as D,B9 as E,R9 as F,b3 as G,Y9 as H,W7 as I,l1 as J,n3 as K,T1 as L,e7 as M,F6 as N,D7 as O,z7 as P,Q2 as Q,x7 as R,Z7 as S,g6 as T,Z3 as U,J2 as V,F1 as W,t3 as X,D1 as Y,P5 as Z,W3 as _,q7 as a,E7 as a0,i9 as a1,J9 as a2,D9 as a3,X9 as a4,b7 as a5,f9 as a6,h9 as a7,V3 as a8,K6 as a9,t9 as aA,u7 as aB,d7 as aC,T7 as aD,O7 as aE,R7 as aF,M7 as aG,S9 as aH,E9 as aI,H9 as aJ,C6 as aK,T2 as aL,N9 as aM,k9 as aN,I7 as aO,E3 as aP,$5 as aQ,s5 as aR,V7 as aS,q5 as aT,X6 as aa,Y6 as ab,J6 as ac,a9 as ad,s9 as ae,b9 as af,p7 as ag,y7 as ah,G9 as ai,v7 as aj,_7 as ak,s7 as al,_9 as am,m7 as an,r7 as ao,U7 as ap,A9 as aq,T9 as ar,x9 as as,d9 as at,u9 as au,v9 as av,O9 as aw,O3 as ax,i7 as ay,$9 as az,m3 as b,_6 as c,x3 as d,g3 as e,e3 as f,P6 as g,h7 as h,x1 as i,G6 as j,q6 as k,L7 as l,e9 as m,u3 as n,D5 as o,F7 as p,l6 as q,q0 as r,n2 as s,A7 as t,d6 as u,t7 as v,D6 as w,V9 as x,w9 as y,Z9 as z}; diff --git a/build/assets/index-2be8dff4.js b/build/assets/index-d3eb8088.js similarity index 73% rename from build/assets/index-2be8dff4.js rename to build/assets/index-d3eb8088.js index 3eebea299..a017d1d63 100644 --- a/build/assets/index-2be8dff4.js +++ b/build/assets/index-d3eb8088.js @@ -1,4 +1,4 @@ -import{r as p,i as T,j as e,F as x,C as I,bd as _,bp as L,s as n,T as C,e as A,t as E,aY as F,w as B,a as M,bs as N,B as k}from"./index-f2cb870a.js";import{aE as O,aF as z,aG as D,p as Y}from"./index-d6936fc6.js";import{u as w}from"./index-a583ad56.js";import{S as P,A as R,I as X}from"./constants-fc83fb70.js";import{A as H,T as W}from"./index-d8ea0c8b.js";import{C as G}from"./ClipLoader-83efcb6b.js";import"./Stack-a2ecd800.js";import"./createSvgIcon-968d1259.js";import"./TextareaAutosize-449c264d.js";const U=({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:R,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 T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(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(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},$=({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(q,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(C,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(O,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(z,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),q=n(C)` +import{r as p,i as T,j as e,F as x,C as I,bd as _,bp as L,s as n,T as v,e as A,t as B,aY as E,v as F,a as M,bs as N,B as k}from"./index-794e801a.js";import{ay as z,az as O,aA as D,n as Y}from"./index-d39d2c64.js";import{u as w}from"./index-a03166b8.js";import{S as P,A as R,I as X}from"./constants-f6ae9f1c.js";import{A as H,T as W}from"./index-f6ae5354.js";import{C as U}from"./ClipLoader-548a512b.js";import"./Stack-0bfda087.js";import"./createSvgIcon-72fbec8f.js";import"./TextareaAutosize-cee09ef8.js";const $=({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:R,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(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(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},q=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx($,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(z,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(O,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -87,7 +87,7 @@ import{r as p,i as T,j as e,F as x,C as I,bd as _,bp as L,s as n,T as C,e as A,t transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,ge=()=>{const{close:s}=A("mergeToNode"),[a,d,c]=w(l=>[l.data,l.ids,l.total]),u=E({mode:"onChange"}),[h,m]=p.useState(!1),[f,j]=p.useState(!1),[r,b]=p.useState(null),[t,S]=p.useState(),o=Y();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},g=async()=>{if(!(!r||!a)){m(!0);try{await N({from:t==null?void 0:t.ref_id,to:r==null?void 0:r.ref_id}),t!=null&&t.ref_id&&(a[t==null?void 0:t.ref_id]={...a[t==null?void 0:t.ref_id],edgeList:[X],edgeCount:a[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==r.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{m(!1)}}};return e.jsx(F,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(B,{...u,children:[e.jsx($,{from:t,isSwapped:f,onSelect:b,selectedToNode:r,setIsSwapped:()=>j(!f)}),e.jsxs(ae,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!r,onClick:g,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(re,{children:e.jsx(G,{color:M.BLUE_PRESS_STATE,size:12})})]})]})})},ae=n(k)` +`,ge=()=>{const{close:s}=A("mergeToNode"),[a,d,c]=w(l=>[l.data,l.ids,l.total]),u=B({mode:"onChange"}),[h,m]=p.useState(!1),[f,j]=p.useState(!1),[r,b]=p.useState(null),[t,S]=p.useState(),o=Y();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},g=async()=>{if(!(!r||!a)){m(!0);try{await N({from:t==null?void 0:t.ref_id,to:r==null?void 0:r.ref_id}),t!=null&&t.ref_id&&(a[t==null?void 0:t.ref_id]={...a[t==null?void 0:t.ref_id],edgeList:[X],edgeCount:a[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==r.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{m(!1)}}};return e.jsx(E,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(F,{...u,children:[e.jsx(q,{from:t,isSwapped:f,onSelect:b,selectedToNode:r,setIsSwapped:()=>j(!f)}),e.jsxs(ae,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!r,onClick:g,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(re,{children:e.jsx(U,{color:M.BLUE_PRESS_STATE,size:12})})]})]})})},ae=n(k)` width: 293px !important; margin: 0 0 10px auto !important; `,re=n.span` diff --git a/build/assets/index-d6936fc6.js b/build/assets/index-d6936fc6.js deleted file mode 100644 index de78915a5..000000000 --- a/build/assets/index-d6936fc6.js +++ /dev/null @@ -1,264 +0,0 @@ -import{H as Ui,J as c3,R as Ve,K as N1,L as b,M as Wi,O as bt,P as _t,S as Se,y as V,U as Wt,r as p,V as Et,j as u,X as _e,Y as $t,Z as u3,$ as Ne,a0 as je,a1 as qr,a2 as Xr,a3 as hn,a4 as Jr,a5 as Ki,a6 as d3,c as Gi,u as pn,s as c1,a as s1,F as n1,B as Yi,C as yr,a7 as f3,a8 as h3,k as qi,b as p3,d as C3,T as R1,a9 as g3,I as m3}from"./index-f2cb870a.js";function v3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const x3=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};var Xi={exports:{}},w3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y3=w3,b3=y3;function Ji(){}function Qi(){}Qi.resetWarningCache=Ji;var _3=function(){function e(r,o,i,s,a,l){if(l!==b3){var c=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 c.name="Invariant Violation",c}}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:Qi,resetWarningCache:Ji};return n.PropTypes=n,n};Xi.exports=_3();var E3=Xi.exports;const Q=Ui(E3);function Qr(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function $3(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Y1(e){return e&&e.ownerDocument||document}function Ct(e){return Y1(e).defaultView||window}function k3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const S3=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},eo=S3,to={disabled:!1};var j3=function(t){return t.scrollTop},at="unmounted",ve="exited",xe="entering",Ae="entered",Kn="exiting",ae=function(e){c3(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=ve,i.appearStatus=xe):l=Ae:r.unmountOnExit||r.mountOnEnter?l=at:l=ve,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===at?{status:ve}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==xe&&s!==Ae&&(i=xe):(s===xe||s===Ae)&&(i=Kn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ve.findDOMNode(this);s&&j3(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ve&&this.setState({status:at})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ve.findDOMNode(this),a],c=l[0],d=l[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!o&&!s||to.disabled){this.safeSetState({status:Ae},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:xe},function(){i.props.onEntering(c,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Ae},function(){i.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ve.findDOMNode(this);if(!i||to.disabled){this.safeSetState({status:ve},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Kn},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ve},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ve.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===at)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=N1(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(Wi.Provider,{value:null},typeof s=="function"?s(o,a):b.cloneElement(b.Children.only(s),a))},t}(b.Component);ae.contextType=Wi;ae.propTypes={};function Pe(){}ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pe,onEntering:Pe,onEntered:Pe,onExit:Pe,onExiting:Pe,onExited:Pe};ae.UNMOUNTED=at;ae.EXITED=ve;ae.ENTERING=xe;ae.ENTERED=Ae;ae.EXITING=Kn;const e0=ae,t0=e=>e.scrollTop;function Kt(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function L3(e){return bt("MuiPaper",e)}_t("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 M3=["className","component","elevation","square","variant"],O3=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $t(i,L3,o)},R3=Se("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 V({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"&&V({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Wt("#fff",eo(t.elevation))}, ${Wt("#fff",eo(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),P3=p.forwardRef(function(t,n){const r=Et({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=N1(r,M3),d=V({},r,{component:i,elevation:s,square:a,variant:l}),f=O3(d);return u.jsx(R3,V({as:i,ownerState:d,className:_e(f.root,o),ref:n},c))}),T3=P3;function H3(e){return bt("MuiIconButton",e)}const I3=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),A3=I3,V3=["edge","children","className","color","disabled","disableFocusRipple","size"],D3=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`]};return $t(s,H3,t)},N3=Se(u3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(({theme:e,ownerState:t})=>V({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})`:Wt(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 r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return V({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&V({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":V({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(r.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)},{[`&.${A3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),B3=p.forwardRef(function(t,n){const r=Et({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=N1(r,V3),h=V({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:d}),g=D3(h);return u.jsx(N3,V({className:_e(g.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:h},f,{children:i}))}),n0=B3;function r0(e){return typeof e=="string"}function z3(e,t,n){return e===void 0||r0(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}function o0(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Z3(e,t,n){return typeof e=="function"?e(t,n):e}function i0(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;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function F3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=no(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),C=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=V({},n,o,r);return g.length>0&&(v.className=g),Object.keys(C).length>0&&(v.style=C),{props:v,internalRef:void 0}}const s=o0(V({},o,r)),a=ro(r),l=ro(o),c=t(s),d=no(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=V({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=V({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const U3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=N1(e,U3),a=i?{}:Z3(r,o),{props:l,internalRef:c}=F3(V({},s,{externalSlotProps:a})),d=je(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return z3(n,V({},l,{ref:d}),o)}const W3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function K3(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 G3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Y3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||G3(e))}function q3(e){const t=[],n=[];return Array.from(e.querySelectorAll(W3)).forEach((r,o)=>{const i=K3(r);i===-1||!Y3(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function X3(){return!0}function J3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=q3,isEnabled:s=X3,open:a}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),g=p.useRef(!1),C=p.useRef(null),v=je(t.ref,C),x=p.useRef(null);p.useEffect(()=>{!a||!C.current||(g.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!C.current)return;const y=Y1(C.current);return C.current.contains(y.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),g.current&&C.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!C.current)return;const y=Y1(C.current),_=k=>{x.current=k,!(r||!s()||k.key!=="Tab")&&y.activeElement===C.current&&k.shiftKey&&(l.current=!0,d.current&&d.current.focus())},E=()=>{const k=C.current;if(k===null)return;if(!y.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(y.activeElement)||r&&y.activeElement!==c.current&&y.activeElement!==d.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let S=[];if((y.activeElement===c.current||y.activeElement===d.current)&&(S=i(C.current)),S.length>0){var L,O;const M=!!((L=x.current)!=null&&L.shiftKey&&((O=x.current)==null?void 0:O.key)==="Tab"),j=S[0],D=S[S.length-1];typeof j!="string"&&typeof D!="string"&&(M?D.focus():j.focus())}else k.focus()};y.addEventListener("focusin",E),y.addEventListener("keydown",_,!0);const $=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval($),y.removeEventListener("focusin",E),y.removeEventListener("keydown",_,!0)}},[n,r,o,s,a,i]);const m=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0,h.current=y.target;const _=t.props.onFocus;_&&_(y)},w=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:m}),u.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function Q3(e){return typeof e=="function"?e():e}const e5=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=je(p.isValidElement(r)?r.ref:null,n);if(qr(()=>{i||a(Q3(o)||document.body)},[o,i]),qr(()=>{if(s&&!i)return Xr(n,s),()=>{Xr(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:s&&hn.createPortal(r,s)})});function t5(e){const t=Y1(e);return t.body===e?Ct(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oo(e){return parseInt(Ct(e).getComputedStyle(e).paddingRight,10)||0}function n5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function io(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!n5(s);a&&l&&dt(s,o)})}function Mn(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function r5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(t5(r)){const s=k3(Y1(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${oo(r)+s}px`;const a=Y1(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${oo(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Y1(r).body;else{const s=r.parentElement,a=Ct(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function o5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class i5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&dt(t.modalRef,!1);const o=o5(n);io(n,t.mount,t.modalRef,o,!0);const i=Mn(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Mn(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=r5(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Mn(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&dt(t.modalRef,n),io(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&dt(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function s5(e){return typeof e=="function"?e():e}function a5(e){return e?e.props.hasOwnProperty("in"):!1}const l5=new i5;function c5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=l5,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),g=p.useRef(null),C=p.useRef(null),v=je(C,f),[x,m]=p.useState(!d),w=a5(l);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const _=()=>Y1(g.current),E=()=>(h.current.modalRef=C.current,h.current.mount=g.current,h.current),$=()=>{o.mount(E(),{disableScrollLock:r}),C.current&&(C.current.scrollTop=0)},k=Jr(()=>{const R=s5(t)||_().body;o.add(E(),R),C.current&&$()}),S=p.useCallback(()=>o.isTopModal(E()),[o]),L=Jr(R=>{g.current=R,R&&(d&&S()?$():C.current&&dt(C.current,y))}),O=p.useCallback(()=>{o.remove(E(),y)},[y,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{d?k():(!w||!i)&&O()},[d,O,w,i,k]);const M=R=>I=>{var Z;(Z=R.onKeyDown)==null||Z.call(R,I),!(I.key!=="Escape"||I.which===229||!S())&&(n||(I.stopPropagation(),c&&c(I,"escapeKeyDown")))},j=R=>I=>{var Z;(Z=R.onClick)==null||Z.call(R,I),I.target===I.currentTarget&&c&&c(I,"backdropClick")};return{getRootProps:(R={})=>{const I=o0(e);delete I.onTransitionEnter,delete I.onTransitionExited;const Z=V({},I,R);return V({role:"presentation"},Z,{onKeyDown:M(Z),ref:v})},getBackdropProps:(R={})=>{const I=R;return V({"aria-hidden":!0},I,{onClick:j(I),open:d})},getTransitionProps:()=>{const R=()=>{m(!1),s&&s()},I=()=>{m(!0),a&&a(),i&&O()};return{onEnter:Qr(R,l==null?void 0:l.props.onEnter),onExited:Qr(I,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:L,isTopModal:S,exited:x,hasTransition:w}}const u5=["top","right","bottom","left"],he=Math.min,M1=Math.max,Yt=Math.round,It=Math.floor,pe=e=>({x:e,y:e}),d5={left:"right",right:"left",bottom:"top",top:"bottom"},f5={start:"end",end:"start"};function Gn(e,t,n){return M1(e,he(t,n))}function re(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function br(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}function Ge(e){return["top","bottom"].includes(oe(e))?"y":"x"}function Er(e){return br(Ge(e))}function h5(e,t,n){n===void 0&&(n=!1);const r=Ke(e),o=Er(e),i=_r(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=qt(s)),[s,qt(s)]}function p5(e){const t=qt(e);return[Yn(e),t,Yn(t)]}function Yn(e){return e.replace(/start|end/g,t=>f5[t])}function C5(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function g5(e,t,n,r){const o=Ke(e);let i=C5(oe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Yn)))),i}function qt(e){return e.replace(/left|right|bottom|top/g,t=>d5[t])}function m5(e){return{top:0,right:0,bottom:0,left:0,...e}}function s0(e){return typeof e!="number"?m5(e):{top:e,right:e,bottom:e,left:e}}function Xt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function so(e,t,n){let{reference:r,floating:o}=e;const i=Ge(t),s=Er(t),a=_r(s),l=oe(t),c=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ke(t)){case"start":g[s]-=h*(n&&c?-1:1);break;case"end":g[s]+=h*(n&&c?-1:1);break}return g}const v5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=so(c,r,l),h=r,g={},C=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=re(e,t)||{};if(c==null)return{};const f=s0(d),h={x:n,y:r},g=Er(o),C=_r(g),v=await s.getDimensions(c),x=g==="y",m=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[g]-h[g]-i.floating[C],E=h[g]-i.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=$?$[y]:0;(!k||!await(s.isElement==null?void 0:s.isElement($)))&&(k=a.floating[y]||i.floating[C]);const S=_/2-E/2,L=k/2-v[C]/2-1,O=he(f[m],L),M=he(f[w],L),j=O,D=k-v[C]-M,T=k/2-v[C]/2+S,P=Gn(j,T,D),R=!l.arrow&&Ke(o)!=null&&T!=P&&i.reference[C]/2-(Tj<=0)){var L,O;const j=(((L=i.flip)==null?void 0:L.index)||0)+1,D=E[j];if(D)return{data:{index:j,overflows:S},reset:{placement:D}};let T=(O=S.filter(P=>P.overflows[0]<=0).sort((P,R)=>P.overflows[1]-R.overflows[1])[0])==null?void 0:O.placement;if(!T)switch(g){case"bestFit":{var M;const P=(M=S.map(R=>[R.placement,R.overflows.filter(I=>I>0).reduce((I,Z)=>I+Z,0)]).sort((R,I)=>R[1]-I[1])[0])==null?void 0:M[0];P&&(T=P);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function lo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function co(e){return u5.some(t=>e[t]>=0)}const w5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=re(e,t);switch(r){case"referenceHidden":{const i=await gt(t,{...o,elementContext:"reference"}),s=lo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:co(s)}}}case"escaped":{const i=await gt(t,{...o,altBoundary:!0}),s=lo(i,n.floating);return{data:{escapedOffsets:s,escaped:co(s)}}}default:return{}}}}};async function y5(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=oe(n),a=Ke(n),l=Ge(n)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,f=re(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof C=="number"&&(g=a==="end"?C*-1:C),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const b5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await y5(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},_5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:m,y:w}=x;return{x:m,y:w}}},...l}=re(e,t),c={x:n,y:r},d=await gt(t,l),f=Ge(oe(o)),h=br(f);let g=c[h],C=c[f];if(i){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=g+d[x],y=g-d[m];g=Gn(w,g,y)}if(s){const x=f==="y"?"top":"left",m=f==="y"?"bottom":"right",w=C+d[x],y=C-d[m];C=Gn(w,C,y)}const v=a.fn({...t,[h]:g,[f]:C});return{...v,data:{x:v.x-n,y:v.y-r}}}}},E5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=re(e,t),d={x:n,y:r},f=Ge(o),h=br(f);let g=d[h],C=d[f];const v=re(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=h==="y"?"height":"width",_=i.reference[h]-i.floating[y]+x.mainAxis,E=i.reference[h]+i.reference[y]-x.mainAxis;g<_?g=_:g>E&&(g=E)}if(c){var m,w;const y=h==="y"?"width":"height",_=["top","left"].includes(oe(o)),E=i.reference[f]-i.floating[y]+(_&&((m=s.offset)==null?void 0:m[f])||0)+(_?0:x.crossAxis),$=i.reference[f]+i.reference[y]+(_?0:((w=s.offset)==null?void 0:w[f])||0)-(_?x.crossAxis:0);C$&&(C=$)}return{[h]:g,[f]:C}}}},$5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=re(e,t),l=await gt(t,a),c=oe(n),d=Ke(n),f=Ge(n)==="y",{width:h,height:g}=r.floating;let C,v;c==="top"||c==="bottom"?(C=c,v=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=c,C=d==="end"?"top":"bottom");const x=g-l[C],m=h-l[v],w=!t.middlewareData.shift;let y=x,_=m;if(f){const $=h-l.left-l.right;_=d||w?he(m,$):$}else{const $=g-l.top-l.bottom;y=d||w?he(x,$):$}if(w&&!d){const $=M1(l.left,0),k=M1(l.right,0),S=M1(l.top,0),L=M1(l.bottom,0);f?_=h-2*($!==0||k!==0?$+k:M1(l.left,l.right)):y=g-2*(S!==0||L!==0?S+L:M1(l.top,l.bottom))}await s({...t,availableWidth:_,availableHeight:y});const E=await o.getDimensions(i.floating);return h!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ce(e){return a0(e)?(e.nodeName||"").toLowerCase():"#document"}function O1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(a0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a0(e){return e instanceof Node||e instanceof O1(e).Node}function ie(e){return e instanceof Element||e instanceof O1(e).Element}function q1(e){return e instanceof HTMLElement||e instanceof O1(e).HTMLElement}function uo(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O1(e).ShadowRoot}function kt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=I1(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function k5(e){return["table","td","th"].includes(Ce(e))}function $r(e){const t=kr(),n=I1(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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function S5(e){let t=Ze(e);for(;q1(t)&&!Cn(t);){if($r(t))return t;t=Ze(t)}return null}function kr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cn(e){return["html","body","#document"].includes(Ce(e))}function I1(e){return O1(e).getComputedStyle(e)}function gn(e){return ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ze(e){if(Ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uo(e)&&e.host||le(e);return uo(t)?t.host:t}function l0(e){const t=Ze(e);return Cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:q1(t)&&kt(t)?t:l0(t)}function mt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=l0(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=O1(o);return i?t.concat(s,s.visualViewport||[],kt(o)?o:[],s.frameElement&&n?mt(s.frameElement):[]):t.concat(o,mt(o,[],n))}function c0(e){const t=I1(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=q1(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Yt(n)!==i||Yt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Sr(e){return ie(e)?e:e.contextElement}function Be(e){const t=Sr(e);if(!q1(t))return pe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=c0(t);let s=(i?Yt(n.width):n.width)/r,a=(i?Yt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const j5=pe(0);function u0(e){const t=O1(e);return!kr()||!t.visualViewport?j5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O1(e)?!1:t}function Ee(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Sr(e);let s=pe(1);t&&(r?ie(r)&&(s=Be(r)):s=Be(e));const a=L5(i,n,r)?u0(i):pe(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const h=O1(i),g=r&&ie(r)?O1(r):r;let C=h.frameElement;for(;C&&r&&g!==h;){const v=Be(C),x=C.getBoundingClientRect(),m=I1(C),w=x.left+(C.clientLeft+parseFloat(m.paddingLeft))*v.x,y=x.top+(C.clientTop+parseFloat(m.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,f*=v.y,l+=w,c+=y,C=O1(C).frameElement}}return Xt({width:d,height:f,x:l,y:c})}function M5(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=q1(n),i=le(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=pe(1);const l=pe(0);if((o||!o&&r!=="fixed")&&((Ce(n)!=="body"||kt(i))&&(s=gn(n)),q1(n))){const c=Ee(n);a=Be(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function O5(e){return Array.from(e.getClientRects())}function d0(e){return Ee(le(e)).left+gn(e).scrollLeft}function R5(e){const t=le(e),n=gn(e),r=e.ownerDocument.body,o=M1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=M1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+d0(e);const a=-n.scrollTop;return I1(r).direction==="rtl"&&(s+=M1(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function P5(e,t){const n=O1(e),r=le(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=kr();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function T5(e,t){const n=Ee(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=q1(e)?Be(e):pe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function fo(e,t,n){let r;if(t==="viewport")r=P5(e,n);else if(t==="document")r=R5(le(e));else if(ie(t))r=T5(t,n);else{const o=u0(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Xt(r)}function f0(e,t){const n=Ze(e);return n===t||!ie(n)||Cn(n)?!1:I1(n).position==="fixed"||f0(n,t)}function H5(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(a=>ie(a)&&Ce(a)!=="body"),o=null;const i=I1(e).position==="fixed";let s=i?Ze(e):e;for(;ie(s)&&!Cn(s);){const a=I1(s),l=$r(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||kt(s)&&!l&&f0(e,s))?r=r.filter(d=>d!==s):o=a,s=Ze(s)}return t.set(e,r),r}function I5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?H5(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,d)=>{const f=fo(t,d,o);return c.top=M1(f.top,c.top),c.right=he(f.right,c.right),c.bottom=he(f.bottom,c.bottom),c.left=M1(f.left,c.left),c},fo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function A5(e){return c0(e)}function V5(e,t,n){const r=q1(t),o=le(t),i=n==="fixed",s=Ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=pe(0);if(r||!r&&!i)if((Ce(t)!=="body"||kt(o))&&(a=gn(t)),r){const c=Ee(t,!0,i,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=d0(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ho(e,t){return!q1(e)||I1(e).position==="fixed"?null:t?t(e):e.offsetParent}function h0(e,t){const n=O1(e);if(!q1(e))return n;let r=ho(e,t);for(;r&&k5(r)&&I1(r).position==="static";)r=ho(r,t);return r&&(Ce(r)==="html"||Ce(r)==="body"&&I1(r).position==="static"&&!$r(r))?n:r||S5(e)||n}const D5=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||h0,i=this.getDimensions;return{reference:V5(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function N5(e){return I1(e).direction==="rtl"}const B5={convertOffsetParentRelativeRectToViewportRelativeRect:M5,getDocumentElement:le,getClippingRect:I5,getOffsetParent:h0,getElementRects:D5,getClientRects:O5,getDimensions:A5,getScale:Be,isElement:ie,isRTL:N5};function z5(e,t){let n=null,r;const o=le(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const g=It(d),C=It(o.clientWidth-(c+f)),v=It(o.clientHeight-(d+h)),x=It(c),w={rootMargin:-g+"px "+-C+"px "+-v+"px "+-x+"px",threshold:M1(0,he(1,l))||1};let y=!0;function _(E){const $=E[0].intersectionRatio;if($!==l){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return s(!0),i}function Z5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Sr(e),d=o||i?[...c?mt(c):[],...mt(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=c&&a?z5(c,n):null;let h=-1,g=null;s&&(g=new ResizeObserver(m=>{let[w]=m;w&&w.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let C,v=l?Ee(e):null;l&&x();function x(){const m=Ee(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,C=requestAnimationFrame(x)}return n(),()=>{d.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(C)}}const F5=(e,t,n)=>{const r=new Map,o={platform:B5,...n},i={...o.platform,_c:r};return v5(e,t,{...o,platform:i})},U5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ao({element:r.current,padding:o}).fn(n):{}:r?ao({element:r,padding:o}).fn(n):{}}}};var Zt=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Jt(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Jt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function p0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function po(e,t){const n=p0(e);return Math.round(t*n)/n}function Co(e){const t=p.useRef(e);return Zt(()=>{t.current=e}),t}function W5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=p.useState(r);Jt(h,r)||g(r);const[C,v]=p.useState(null),[x,m]=p.useState(null),w=p.useCallback(R=>{R!=$.current&&($.current=R,v(R))},[v]),y=p.useCallback(R=>{R!==k.current&&(k.current=R,m(R))},[m]),_=i||C,E=s||x,$=p.useRef(null),k=p.useRef(null),S=p.useRef(d),L=Co(l),O=Co(o),M=p.useCallback(()=>{if(!$.current||!k.current)return;const R={placement:t,strategy:n,middleware:h};O.current&&(R.platform=O.current),F5($.current,k.current,R).then(I=>{const Z={...I,isPositioned:!0};j.current&&!Jt(S.current,Z)&&(S.current=Z,hn.flushSync(()=>{f(Z)}))})},[h,t,n,O]);Zt(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[c]);const j=p.useRef(!1);Zt(()=>(j.current=!0,()=>{j.current=!1}),[]),Zt(()=>{if(_&&($.current=_),E&&(k.current=E),_&&E){if(L.current)return L.current(_,E,M);M()}},[_,E,M,L]);const D=p.useMemo(()=>({reference:$,floating:k,setReference:w,setFloating:y}),[w,y]),T=p.useMemo(()=>({reference:_,floating:E}),[_,E]),P=p.useMemo(()=>{const R={position:n,left:0,top:0};if(!T.floating)return R;const I=po(T.floating,d.x),Z=po(T.floating,d.y);return a?{...R,transform:"translate("+I+"px, "+Z+"px)",...p0(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:Z}},[n,a,T.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:M,refs:D,elements:T,floatingStyles:P}),[d,M,D,T,P])}const K5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],G5={entering:{opacity:1},entered:{opacity:1}},Y5=p.forwardRef(function(t,n){const r=Ki(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:g,onExited:C,onExiting:v,style:x,timeout:m=o,TransitionComponent:w=e0}=t,y=N1(t,K5),_=p.useRef(null),E=je(_,a.ref,n),$=T=>P=>{if(T){const R=_.current;P===void 0?T(R):T(R,P)}},k=$(h),S=$((T,P)=>{t0(T);const R=Kt({style:x,timeout:m,easing:l},{mode:"enter"});T.style.webkitTransition=r.transitions.create("opacity",R),T.style.transition=r.transitions.create("opacity",R),d&&d(T,P)}),L=$(f),O=$(v),M=$(T=>{const P=Kt({style:x,timeout:m,easing:l},{mode:"exit"});T.style.webkitTransition=r.transitions.create("opacity",P),T.style.transition=r.transitions.create("opacity",P),g&&g(T)}),j=$(C),D=T=>{i&&i(_.current,T)};return u.jsx(w,V({appear:s,in:c,nodeRef:_,onEnter:S,onEntered:L,onEntering:k,onExit:M,onExited:j,onExiting:O,addEndListener:D,timeout:m},y,{children:(T,P)=>p.cloneElement(a,V({style:V({opacity:0,visibility:T==="exited"&&!c?"hidden":void 0},G5[T],x,a.props.style),ref:E},P))}))}),q5=Y5;function X5(e){return bt("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const J5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Q5=e=>{const{classes:t,invisible:n}=e;return $t({root:["root",n&&"invisible"]},X5,t)},es=Se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>V({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"})),ts=p.forwardRef(function(t,n){var r,o,i;const s=Et({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:d={},componentsProps:f={},invisible:h=!1,open:g,slotProps:C={},slots:v={},TransitionComponent:x=q5,transitionDuration:m}=s,w=N1(s,J5),y=V({},s,{component:c,invisible:h}),_=Q5(y),E=(r=C.root)!=null?r:f.root;return u.jsx(x,V({in:g,timeout:m},w,{children:u.jsx(es,V({"aria-hidden":!0},E,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:c,className:_e(_.root,l,E==null?void 0:E.className),ownerState:V({},y,E==null?void 0:E.ownerState),classes:_,ref:n,children:a}))}))}),ns=ts;function rs(e){return bt("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const os=["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"],is=e=>{const{open:t,exited:n,classes:r}=e;return $t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rs,r)},ss=Se("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})=>V({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),as=Se(ns,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ls=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Et({name:"MuiModal",props:t}),{BackdropComponent:d=as,BackdropProps:f,className:h,closeAfterTransition:g=!1,children:C,container:v,component:x,components:m={},componentsProps:w={},disableAutoFocus:y=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:E=!1,disablePortal:$=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:L=!1,keepMounted:O=!1,onBackdropClick:M,open:j,slotProps:D,slots:T}=c,P=N1(c,os),R=V({},c,{closeAfterTransition:g,disableAutoFocus:y,disableEnforceFocus:_,disableEscapeKeyDown:E,disablePortal:$,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:L,keepMounted:O}),{getRootProps:I,getBackdropProps:Z,getTransitionProps:F,portalRef:e1,isTopModal:W,exited:X,hasTransition:u1}=c5(V({},R,{rootRef:n})),l1=V({},R,{exited:X}),K=is(l1),d1={};if(C.props.tabIndex===void 0&&(d1.tabIndex="-1"),u1){const{onEnter:U,onExited:J}=F();d1.onEnter=U,d1.onExited=J}const _1=(r=(o=T==null?void 0:T.root)!=null?o:m.Root)!=null?r:ss,E1=(i=(s=T==null?void 0:T.backdrop)!=null?s:m.Backdrop)!=null?i:d,L1=(a=D==null?void 0:D.root)!=null?a:w.root,V1=(l=D==null?void 0:D.backdrop)!=null?l:w.backdrop,ue=Gt({elementType:_1,externalSlotProps:L1,externalForwardedProps:P,getSlotProps:I,additionalProps:{ref:n,as:x},ownerState:l1,className:_e(h,L1==null?void 0:L1.className,K==null?void 0:K.root,!l1.open&&l1.exited&&(K==null?void 0:K.hidden))}),de=Gt({elementType:E1,externalSlotProps:V1,additionalProps:f,getSlotProps:U=>Z(V({},U,{onClick:J=>{M&&M(J),U!=null&&U.onClick&&U.onClick(J)}})),className:_e(V1==null?void 0:V1.className,f==null?void 0:f.className,K==null?void 0:K.backdrop),ownerState:l1});return!O&&!j&&(!u1||X)?null:u.jsx(e5,{ref:e1,container:v,disablePortal:$,children:u.jsxs(_1,V({},ue,{children:[!L&&d?u.jsx(E1,V({},de)):null,u.jsx(J3,{disableEnforceFocus:_,disableAutoFocus:y,disableRestoreFocus:k,isEnabled:W,open:j,children:p.cloneElement(C,d1)})]}))})}),cs=ls,us=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qn(e){return`scale(${e}, ${e**2})`}const ds={entering:{opacity:1,transform:qn(1)},entered:{opacity:1,transform:"none"}},On=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),C0=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:g,style:C,timeout:v="auto",TransitionComponent:x=e0}=t,m=N1(t,us),w=p.useRef(),y=p.useRef(),_=Ki(),E=p.useRef(null),$=je(E,i.ref,n),k=P=>R=>{if(P){const I=E.current;R===void 0?P(I):P(I,R)}},S=k(d),L=k((P,R)=>{t0(P);const{duration:I,delay:Z,easing:F}=Kt({style:C,timeout:v,easing:s},{mode:"enter"});let e1;v==="auto"?(e1=_.transitions.getAutoHeightDuration(P.clientHeight),y.current=e1):e1=I,P.style.transition=[_.transitions.create("opacity",{duration:e1,delay:Z}),_.transitions.create("transform",{duration:On?e1:e1*.666,delay:Z,easing:F})].join(","),l&&l(P,R)}),O=k(c),M=k(g),j=k(P=>{const{duration:R,delay:I,easing:Z}=Kt({style:C,timeout:v,easing:s},{mode:"exit"});let F;v==="auto"?(F=_.transitions.getAutoHeightDuration(P.clientHeight),y.current=F):F=R,P.style.transition=[_.transitions.create("opacity",{duration:F,delay:I}),_.transitions.create("transform",{duration:On?F:F*.666,delay:On?I:I||F*.333,easing:Z})].join(","),P.style.opacity=0,P.style.transform=qn(.75),f&&f(P)}),D=k(h),T=P=>{v==="auto"&&(w.current=setTimeout(P,y.current||0)),r&&r(E.current,P)};return p.useEffect(()=>()=>{clearTimeout(w.current)},[]),u.jsx(x,V({appear:o,in:a,nodeRef:E,onEnter:L,onEntered:O,onEntering:S,onExit:j,onExited:D,onExiting:M,addEndListener:T,timeout:v==="auto"?null:v},m,{children:(P,R)=>p.cloneElement(i,V({style:V({opacity:0,transform:qn(.75),visibility:P==="exited"&&!a?"hidden":void 0},ds[P],C,i.props.style),ref:$},R))}))});C0.muiSupportAuto=!0;const fs=C0;function hs(e){return bt("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const ps=["onEntering"],Cs=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gs=["slotProps"];function go(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function mo(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function vo(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Rn(e){return typeof e=="function"?e():e}const ms=e=>{const{classes:t}=e;return $t({root:["root"],paper:["paper"]},hs,t)},vs=Se(cs,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xs=Se(T3,{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}),ws=p.forwardRef(function(t,n){var r,o,i;const s=Et({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:g,container:C,elevation:v=8,marginThreshold:x=16,open:m,PaperProps:w={},slots:y,slotProps:_,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:$=fs,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:L=!1}=s,O=N1(s.TransitionProps,ps),M=N1(s,Cs),j=(r=_==null?void 0:_.paper)!=null?r:w,D=p.useRef(),T=je(D,j.ref),P=V({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:j,transformOrigin:E,TransitionComponent:$,transitionDuration:k,TransitionProps:O}),R=ms(P),I=p.useCallback(()=>{if(f==="anchorPosition")return d;const U=Rn(l),t1=(U&&U.nodeType===1?U:Y1(D.current).body).getBoundingClientRect();return{top:t1.top+go(t1,c.vertical),left:t1.left+mo(t1,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),Z=p.useCallback(U=>({vertical:go(U,E.vertical),horizontal:mo(U,E.horizontal)}),[E.horizontal,E.vertical]),F=p.useCallback(U=>{const J={width:U.offsetWidth,height:U.offsetHeight},t1=Z(J);if(f==="none")return{top:null,left:null,transformOrigin:vo(t1)};const F1=I();let U1=F1.top-t1.vertical,W1=F1.left-t1.horizontal;const Oe=U1+J.height,me=W1+J.width,K1=Ct(Rn(l)),Tt=K1.innerHeight-x,H=K1.innerWidth-x;if(x!==null&&U1Tt){const N=Oe-Tt;U1-=N,t1.vertical+=N}if(x!==null&&W1H){const N=me-H;W1-=N,t1.horizontal+=N}return{top:`${Math.round(U1)}px`,left:`${Math.round(W1)}px`,transformOrigin:vo(t1)}},[l,f,I,Z,x]),[e1,W]=p.useState(m),X=p.useCallback(()=>{const U=D.current;if(!U)return;const J=F(U);J.top!==null&&(U.style.top=J.top),J.left!==null&&(U.style.left=J.left),U.style.transformOrigin=J.transformOrigin,W(!0)},[F]);p.useEffect(()=>(L&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,L,X]);const u1=(U,J)=>{S&&S(U,J),X()},l1=()=>{W(!1)};p.useEffect(()=>{m&&X()}),p.useImperativeHandle(a,()=>m?{updatePosition:()=>{X()}}:null,[m,X]),p.useEffect(()=>{if(!m)return;const U=$3(()=>{X()}),J=Ct(l);return J.addEventListener("resize",U),()=>{U.clear(),J.removeEventListener("resize",U)}},[l,m,X]);let K=k;k==="auto"&&!$.muiSupportAuto&&(K=void 0);const d1=C||(l?Y1(Rn(l)).body:void 0),_1=(o=y==null?void 0:y.root)!=null?o:vs,E1=(i=y==null?void 0:y.paper)!=null?i:xs,L1=Gt({elementType:E1,externalSlotProps:V({},j,{style:e1?j.style:V({},j.style,{opacity:0})}),additionalProps:{elevation:v,ref:T},ownerState:P,className:_e(R.paper,j==null?void 0:j.className)}),V1=Gt({elementType:_1,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:d1,open:m},ownerState:P,className:_e(R.root,g)}),{slotProps:ue}=V1,de=N1(V1,gs);return u.jsx(_1,V({},de,!r0(_1)&&{slotProps:ue,disableScrollLock:L},{children:u.jsx($,V({appear:!0,in:m,onEntering:u1,onExited:l1,timeout:K},O,{children:u.jsx(E1,V({},L1,{children:h}))}))}))}),vh=ws;function ys(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function g0(...e){return t=>e.forEach(n=>ys(n,t))}function Ye(...e){return p.useCallback(g0(...e),e)}const m0=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),i=o.find(bs);if(i){const s=i.props.children,a=o.map(l=>l===i?p.Children.count(s)>1?p.Children.only(null):p.isValidElement(s)?s.props.children:null:l);return p.createElement(Xn,V({},r,{ref:t}),p.isValidElement(s)?p.cloneElement(s,void 0,a):null)}return p.createElement(Xn,V({},r,{ref:t}),n)});m0.displayName="Slot";const Xn=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{..._s(r,n.props),ref:t?g0(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});Xn.displayName="SlotClone";const v0=({children:e})=>p.createElement(p.Fragment,null,e);function bs(e){return p.isValidElement(e)&&e.type===v0}function _s(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Es=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Le=Es.reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?m0:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,V({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $s(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}const ks=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ve.createPortal(p.createElement(Le.div,V({},o,{ref:t})),r):null}),Ss=ks;var xo=Object.prototype.hasOwnProperty;function vt(e,t){var n,r;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((r=e.length)===t.length)for(;r--&&vt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(xo.call(e,n)&&++r&&!xo.call(t,n)||!(n in t)||!vt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function St(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 r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),X1=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};X1.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new mn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};X1.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new js(n,t.simple,t.async)),this};X1.prototype._clone=function(){return new X1(this.chain.slice(),this.nextRuleModifiers.slice())};X1.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};X1.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new jr(r,t,o))}}),n};X1.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new jr(n,t,r)}})};X1.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){y0(t,n.chain.slice(),r,o)})};function y0(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){y0(e,t,n,r)},function(i){r(new jr(o,e,i))})}else n(e)}var wo=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function Ls(e,t){return t===void 0&&(t=!1),{simple:function(n){return wo(n,t)||e.check(n)===void 0},async:function(n){return wo(n,t)||e.testAsync(n)}}}function S1(){return typeof Proxy<"u"?b0(new X1):Jn(new X1)}var xt={};S1.extend=function(e){Object.assign(xt,e)};S1.clearCustomRules=function(){xt={}};function b0(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=b0(e._clone());if(r in Qt)return o._applyModifier(Qt[r],r);if(r in xt)return o._applyRule(xt[r],r);if(r in Qn)return o._applyRule(Qn[r],r)}})}function Jn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var c=Jn(i._clone()),d=c._applyRule(o[s],s).apply(void 0,a);return d}}),i},n=t(Qn,e),r=t(xt,n);return Object.keys(Qt).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Jn(r._clone());return i._applyModifier(Qt[o],o)}})}),r}var Qt={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 At(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(At(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&&At(t).every(e)}},async:function(e){return function(t){return Promise.all(At(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return yo(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(r){return yo(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function yo(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function At(e){return typeof e=="string"?e.split(""):e}var Qn={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||Ms;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Te("string")},boolean:function(){return Te("boolean")},undefined:function(){return Te("undefined")},null:function(){return Te("null")},array:function(){return Te("array")},object:function(){return Te("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 Os(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:Ls};function Te(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function Ms(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Os(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var G="colors",m1="sizes",A="space",Rs={gap:A,gridGap:A,columnGap:A,gridColumnGap:A,rowGap:A,gridRowGap:A,inset:A,insetBlock:A,insetBlockEnd:A,insetBlockStart:A,insetInline:A,insetInlineEnd:A,insetInlineStart:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockEnd:A,marginBlockStart:A,marginInline:A,marginInlineEnd:A,marginInlineStart:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockEnd:A,paddingBlockStart:A,paddingInline:A,paddingInlineEnd:A,paddingInlineStart:A,top:A,right:A,bottom:A,left:A,scrollMargin:A,scrollMarginTop:A,scrollMarginRight:A,scrollMarginBottom:A,scrollMarginLeft:A,scrollMarginX:A,scrollMarginY:A,scrollMarginBlock:A,scrollMarginBlockEnd:A,scrollMarginBlockStart:A,scrollMarginInline:A,scrollMarginInlineEnd:A,scrollMarginInlineStart:A,scrollPadding:A,scrollPaddingTop:A,scrollPaddingRight:A,scrollPaddingBottom:A,scrollPaddingLeft:A,scrollPaddingX:A,scrollPaddingY:A,scrollPaddingBlock:A,scrollPaddingBlockEnd:A,scrollPaddingBlockStart:A,scrollPaddingInline:A,scrollPaddingInlineEnd:A,scrollPaddingInlineStart:A,fontSize:"fontSizes",background:G,backgroundColor:G,backgroundImage:G,borderImage:G,border:G,borderBlock:G,borderBlockEnd:G,borderBlockStart:G,borderBottom:G,borderBottomColor:G,borderColor:G,borderInline:G,borderInlineEnd:G,borderInlineStart:G,borderLeft:G,borderLeftColor:G,borderRight:G,borderRightColor:G,borderTop:G,borderTopColor:G,caretColor:G,color:G,columnRuleColor:G,fill:G,outline:G,outlineColor:G,stroke:G,textDecorationColor:G,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:m1,minBlockSize:m1,maxBlockSize:m1,inlineSize:m1,minInlineSize:m1,maxInlineSize:m1,width:m1,minWidth:m1,maxWidth:m1,height:m1,minHeight:m1,maxHeight:m1,flexBasis:m1,gridTemplateColumns:m1,gridTemplateRows:m1,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"},Ps=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,qe=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ps))(t);return o in e?e[o]:e[o]=n(t,...r)}},ye=Symbol.for("sxs.internal"),Lr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),bo=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ts}=Object.prototype,er=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Hs=/\s+(?![^()]*\))/,He=e=>t=>e(...typeof t=="string"?String(t).split(Hs):[t]),_o={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:He((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:He((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:He((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:He((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:He((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:He((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Pn=/([\d.]+)([^]*)/,Is=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,As=(e,t)=>e in Vs&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${er(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${er(e)}:${r}fit-content`)+i):String(t),Vs={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},se=e=>e?e+"-":"",_0=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?se(t)+(a.includes("$")?"":se(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),Ds=/\s*,\s*(?![^()]*\))/,Ns=Object.prototype.toString,De=(e,t,n,r,o)=>{let i,s,a;const l=(c,d,f)=>{let h,g;const C=v=>{for(h in v){const w=h.charCodeAt(0)===64,y=w&&Array.isArray(v[h])?v[h]:[v[h]];for(g of y){const _=/[A-Z]/.test(m=h)?m:m.replace(/-[^]/g,$=>$[1].toUpperCase()),E=typeof g=="object"&&g&&g.toString===Ns&&(!r.utils[_]||!d.length);if(_ in r.utils&&!E){const $=r.utils[_];if($!==s){s=$,C($(g)),s=null;continue}}else if(_ in _o){const $=_o[_];if($!==a){a=$,C($(g)),a=null;continue}}if(w&&(x=h.slice(1)in r.media?"@media "+r.media[h.slice(1)]:h,h=x.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,($,k,S,L,O,M)=>{const j=Pn.test(k),D=.0625*(j?-1:1),[T,P]=j?[L,k]:[k,L];return"("+(S[0]==="="?"":S[0]===">"===j?"max-":"min-")+T+":"+(S[0]!=="="&&S.length===1?P.replace(Pn,(R,I,Z)=>Number(I)+D*(S===">"?1:-1)+Z):P)+(O?") and ("+(O[0]===">"?"min-":"max-")+T+":"+(O.length===1?M.replace(Pn,(R,I,Z)=>Number(I)+D*(O===">"?-1:1)+Z):M):"")+")"})),E){const $=w?f.concat(h):[...f],k=w?[...d]:Is(d,h.split(Ds));i!==void 0&&o(Eo(...i)),i=void 0,l(g,k,$)}else i===void 0&&(i=[[],d,f]),h=w||h.charCodeAt(0)!==36?h:`--${se(r.prefix)}${h.slice(1).replace(/\$/g,"-")}`,g=E?g:typeof g=="number"?g&&_ in Bs?String(g)+"px":String(g):_0(As(_,g??""),r.prefix,r.themeMap[_]),i[0].push(`${w?`${h} `:`${er(h)}:`}${g}`)}}var x,m};C(c),i!==void 0&&o(Eo(...i)),i=void 0};l(e,t,n)},Eo=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Bs={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},$o=e=>String.fromCharCode(e+(e>25?39:97)),be=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=$o(n%52)+r;return $o(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),lt=["themed","global","styled","onevar","resonevar","allvar","inline"],zs=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Zs=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let l="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(l=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const c in t.rules)if(t.rules[c].group===i)return`--sxs{--sxs:${[...t.rules[c].cache].join(" ")}}${a}`;return i.cssRules.length?`${l}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const c in a)delete a[c]}const o=Object(e).styleSheets||[];for(const a of o)if(zs(a)){for(let l=0,c=a.cssRules;c[l];++l){const d=Object(c[l]);if(d.type!==1)continue;const f=Object(c[l+1]);if(f.type!==4)continue;++l;const{cssText:h}=d;if(!h.startsWith("--sxs"))continue;const g=h.slice(14,-3).trim().split(/\s+/),C=lt[g[0]];C&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[C]={group:f,index:l,cache:new Set(g)})}if(t)break}if(!t){const a=(l,c)=>({type:c,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,a(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:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=lt.length-1;a>=0;--a){const l=lt[a];if(!s[l]){const c=lt[a+1],d=s[c]?s[c].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${a}}`,d),s[l]={group:i.cssRules[d+1],index:d,cache:new Set([a])}}Fs(s[l])}};return r(),t},Fs=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},nt=Symbol(),Us=qe(),ko=(e,t)=>Us(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[ye]){r.type==null&&(r.type=o[ye].type);for(const i of o[ye].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(Ws(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),Ks(e,r,t)}),Ws=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${se(o.prefix)}c-${be(r)}`,s=[],a=[],l=Object.create(null),c=[];for(const h in n)l[h]=String(n[h]);if(typeof e=="object"&&e)for(const h in e){d=l,f=h,Ts.call(d,f)||(l[h]="undefined");const g=e[h];for(const C in g){const v={[h]:String(C)};String(C)==="undefined"&&c.push(h);const x=g[C],m=[v,x,!bo(x)];s.push(m)}}var d,f;if(typeof t=="object"&&t)for(const h of t){let{css:g,...C}=h;g=typeof g=="object"&&g||{};for(const x in C)C[x]=String(C[x]);const v=[C,g,!bo(g)];a.push(v)}return[i,r,s,a,l,c]},Ks=(e,t,n)=>{const[r,o,i,s]=Gs(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function h(){for(let g=0;gh.rules[g]={apply:C=>h[nt].push([g,C])}),h})(n):null,l=(a||n).rules,c=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||Ys;const{css:h,...g}=f,C={};for(const m in i)if(delete g[m],m in f){let w=f[m];typeof w=="object"&&w?C[m]={"@initial":i[m],...w}:(w=String(w),C[m]=w!=="undefined"||s.has(m)?w:i[m])}else C[m]=i[m];const v=new Set([...o]);for(const[m,w,y,_]of t.composers){n.rules.styled.cache.has(m)||(n.rules.styled.cache.add(m),De(w,[`.${m}`],[],e,k=>{l.styled.apply(k)}));const E=So(y,C,e.media),$=So(_,C,e.media,!0);for(const k of E)if(k!==void 0)for(const[S,L,O]of k){const M=`${m}-${be(L)}-${S}`;v.add(M);const j=(O?n.rules.resonevar:n.rules.onevar).cache,D=O?l.resonevar:l.onevar;j.has(M)||(j.add(M),De(L,[`.${M}`],[],e,T=>{D.apply(T)}))}for(const k of $)if(k!==void 0)for(const[S,L]of k){const O=`${m}-${be(L)}-${S}`;v.add(O),n.rules.allvar.cache.has(O)||(n.rules.allvar.cache.add(O),De(L,[`.${O}`],[],e,M=>{l.allvar.apply(M)}))}}if(typeof h=="object"&&h){const m=`${r}-i${be(h)}-css`;v.add(m),n.rules.inline.cache.has(m)||(n.rules.inline.cache.add(m),De(h,[`.${m}`],[],e,w=>{l.inline.apply(w)}))}for(const m of String(f.className||"").trim().split(/\s+/))m&&v.add(m);const x=g.className=[...v].join(" ");return{type:t.type,className:x,selector:c,props:g,toString:()=>x,deferredInjector:a}};return Lr(d,{className:r,selector:c,[ye]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},Gs=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const l in s){const c=s[l];(r[l]===void 0||c!=="undefined"||a.includes(c))&&(r[l]=c)}}return[t,n,r,new Set(o)]},So=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let l,c=0,d=!1;for(l in i){const f=i[l];let h=t[l];if(h!==f){if(typeof h!="object"||!h)continue e;{let g,C,v=0;for(const x in h){if(f===String(h[x])){if(x!=="@initial"){const m=x.slice(1);(C=C||[]).push(m in n?n[m]:x.replace(/^@media ?/,"")),d=!0}c+=v,g=!0}++v}if(C&&C.length&&(s={["@media "+C.join(", ")]:s}),!g)continue e}}}(o[c]=o[c]||[]).push([r?"cv":`${l}-${i[l]}`,s,d])}return o},Ys={},qs=qe(),Xs=(e,t)=>qs(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=be(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}De(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Lr(r,{toString:r})}),Js=qe(),Qs=(e,t)=>Js(e,()=>n=>{const r=`${se(e.prefix)}k-${be(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];De(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return Lr(o,{get name(){return o()},toString:o})}),e6=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+se(this.prefix)+se(this.scale)+this.token}toString(){return this.computedValue}},t6=qe(),n6=(e,t)=>t6(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${se(e.prefix)}t-${be(r)}`}`,i={},s=[];for(const l in r){i[l]={};for(const c in r[l]){const d=`--${se(e.prefix)}${l}-${c}`,f=_0(String(r[l][c]),e.prefix,l);i[l][c]=new e6(c,f,l,e.prefix),s.push(`${d}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(l)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),r6=qe(),jo,o6=qe(),E0=e=>{const t=(n=>{let r=!1;const o=r6(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},l=typeof i.root=="object"?i.root||null:globalThis.document||null,c=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:a,theme:c,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...Rs},utils:typeof i.utils=="object"&&i.utils||{}},f=Zs(l),h={css:ko(d,f),globalCss:Xs(d,f),keyframes:Qs(d,f),createTheme:n6(d,f),reset(){f.reset(),h.theme.toString()},theme:{},sheet:f,config:d,prefix:s,getCssText:f.toString,toString:f.toString};return String(h.theme=h.createTheme(c)),h});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>o6(n,()=>{const o=ko(n,r);return(...i)=>{const s=o(...i),a=s[ye].type,l=b.forwardRef((c,d)=>{const f=c&&c.as||a,{props:h,deferredInjector:g}=s(c);return delete h.as,h.ref=d,g?b.createElement(b.Fragment,null,b.createElement(f,h),b.createElement(g,null)):b.createElement(f,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[ye]=s[ye],l}}))(t),t},i6=()=>jo||(jo=E0()),xh=(...e)=>i6().styled(...e);function s6(e,t,n){return Math.max(t,Math.min(e,n))}const p1={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 Lo(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Mo(e,t,n,r=.15){return r===0?s6(e,t,n):en?+Lo(e-n,n-t,r)+n:e}function a6(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[Mo(t,i,s,r),Mo(n,a,l,o)]}function l6(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c6(e){var t=l6(e,"string");return typeof t=="symbol"?t:String(t)}function k1(e,t,n){return t=c6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function i1(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function m6(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function S0(e){return vn(e)?m6(e)[0]:e}function v6(e){return g6(e).map(t=>t.identifier)}function Tn(e){const t=S0(e);return vn(e)?t.identifier:t.pointerId}function Po(e){const t=S0(e);return[t.clientX,t.clientY]}function x6(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function en(e,...t){return typeof e=="function"?e(...t):e}function w6(){}function y6(...e){return e.length===0?w6:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function To(e,t){return Object.assign({},t,e||{})}const b6=32;class _6{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,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:r,args:o}=this;n[r]=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=o,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,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?en(r.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:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,x6(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const $=n._delta.map(Math.abs);p1.addTo(n._distance,$)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[l,c]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(a)>=c&&f[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=l&&Math.sign(s)*l),d[1]===!1&&(d[1]=Math.abs(a)>=c&&Math.sign(a)*c)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const h=[0,0];if(r.hasCustomTransform){const[$,k]=f;h[0]=d[0]!==!1?$-d[0]:0,h[1]=d[1]!==!1?k-d[1]:0}else h[0]=d[0]!==!1?s-d[0]:0,h[1]=d[1]!==!1?a-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(h);const g=n.offset,C=n._active&&!n._blocked||n.active;C&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=en(r.bounds,n)),this.setup&&this.setup()),n.movement=h,this.computeOffset()));const[v,x]=n.offset,[[m,w],[y,_]]=n._bounds;n.overflow=[vw?1:0,x_?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?r.rubberband||[0,0]:[0,0];if(n.offset=a6(n._bounds,n.offset,E),n.delta=p1.sub(n.offset,g),this.computeMovement(),C&&(!n.last||i>b6)){n.delta=p1.sub(n.offset,g);const $=n.delta.map(Math.abs);p1.addTo(n.distance,$),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[$[0]/i,$[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(i1(i1(i1({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function E6([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class $6 extends _6{constructor(...t){super(...t),k1(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=p1.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=p1.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[k0(t)]:r.axisThreshold;n.axis=E6(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.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 k6=e=>e,Ho=.15,j0={enabled(e=!0){return e},eventOptions(e,t,n){return i1(i1({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ho,Ho];case!1:return[0,0];default:return p1.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return p1.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||k6},threshold(e){return p1.toVector(e,0)}},S6=0,jt=i1(i1({},j0),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=S6){return e},bounds(e={}){if(typeof e=="function")return i=>jt.bounds(e(i));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:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Io={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 j6 extends $6{constructor(...t){super(...t),k1(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(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=jt.bounds(o)}}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,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Tn(t),r._pointerActive=!0,this.computeValues(Po(t)),this.computeInitial(),n.preventScrollAxis&&k0(t)!=="mouse"?(r._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,r=this.config;if(!n._pointerActive)return;const o=Tn(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=Po(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=p1.sub(i,n._values),this.computeValues(i)),p1.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.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,r=this.config;if(!n._active||!n._pointerActive)return;const o=Tn(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[c,d]=n._movement,[f,h]=r.swipe.velocity,[g,C]=r.swipe.distance,v=r.swipe.duration;if(n.elapsedTimef&&Math.abs(c)>g&&(n.swipe[0]=Math.sign(a)),m>h&&Math.abs(d)>C&&(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,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"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,L6(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=Io[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,p1.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Io&&(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 L6(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Lt=typeof window<"u"&&window.document&&window.document.createElement;function L0(){return Lt&&"ontouchstart"in window}function M6(){return L0()||Lt&&window.navigator.maxTouchPoints>1}function O6(){return Lt&&"onpointerdown"in window}function R6(){return Lt&&"exitPointerLock"in window.document}function P6(){try{return"constructor"in GestureEvent}catch{return!1}}const P1={isBrowser:Lt,gesture:P6(),touch:L0(),touchscreen:M6(),pointer:O6(),pointerLock:R6()},T6=250,H6=180,I6=.5,A6=50,V6=250,D6=10,Ao={mouse:0,touch:0,pen:8},N6=i1(i1({},jt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&P1.pointerLock,P1.touch&&n?"touch":this.pointerLock?"mouse":P1.pointer&&!o?"pointer":P1.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?T6:void 0,!(!P1.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=p1.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=I6,distance:t=A6,duration:n=V6}={}){return{velocity:this.transform(p1.toVector(e)),distance:this.transform(p1.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return H6;case!1:return 0;default:return e}},axisThreshold(e){return e?i1(i1({},Ao),e):Ao},keyboardDisplacement(e=D6){return e}});i1(i1({},j0),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!P1.touch&&P1.gesture)return"gesture";if(P1.touch&&r)return"touch";if(P1.touchscreen){if(P1.pointer)return"pointer";if(P1.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=To(en(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=To(en(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",p1.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});i1(i1({},jt),{},{mouseOnly:(e=!0)=>e});i1(i1({},jt),{},{mouseOnly:(e=!0)=>e});const M0=new Map,tr=new Map;function B6(e){M0.set(e.key,e.engine),tr.set(e.key,e.resolver)}const z6={key:"drag",engine:j6,resolver:N6};function Z6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function F6(e,t){if(e==null)return{};var n=Z6(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const U6={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}},W6=["target","eventOptions","window","enabled","transform"];function Ft(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Ft(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function K6(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:l}=r,c=F6(r,W6);if(n.shared=Ft({target:o,eventOptions:i,window:s,enabled:a,transform:l},U6),t){const d=tr.get(t);n[t]=Ft(i1({shared:n.shared},c),d)}else for(const d in c){const f=tr.get(d);f&&(n[d]=Ft(i1({shared:n.shared},c[d]),f))}return n}class O0{constructor(t,n){k1(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=C6(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=i1(i1({},l),i);t.addEventListener(a,o,c);const d=()=>{t.removeEventListener(a,o,c),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class G6{constructor(){k1(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}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 Y6{constructor(t){k1(this,"gestures",new Set),k1(this,"_targetEventStore",new O0(this)),k1(this,"gestureEventStores",{}),k1(this,"gestureTimeoutStores",{}),k1(this,"handlers",{}),k1(this,"config",{}),k1(this,"pointerIds",new Set),k1(this,"touchIds",new Set),k1(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),q6(this,t)}setEventIds(t){if(vn(t))return this.touchIds=new Set(v6(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=K6(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,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],l=Vo(r,a.eventOptions,!!o);if(a.enabled){const c=M0.get(s);new c(this,t,s).bind(l)}}const i=Vo(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](i1(i1({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=y6(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:l}=p6(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:l})}}}}function Ie(e,t){e.gestures.add(t),e.gestureEventStores[t]=new O0(e,t),e.gestureTimeoutStores[t]=new G6}function q6(e,t){t.drag&&Ie(e,"drag"),t.wheel&&Ie(e,"wheel"),t.scroll&&Ie(e,"scroll"),t.move&&Ie(e,"move"),t.pinch&&Ie(e,"pinch"),t.hover&&Ie(e,"hover")}const Vo=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,c;const d=(l=s.capture)!==null&&l!==void 0?l:t.capture,f=(c=s.passive)!==null&&c!==void 0?c:t.passive;let h=a?r:f6(r,o,d);n&&f&&(h+="Passive"),e[h]=e[h]||[],e[h].push(i)};function X6(e,t={},n,r){const o=b.useMemo(()=>new Y6(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),b.useEffect(o.effect.bind(o)),b.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function J6(e,t){return B6(z6),X6({drag:e},t||{},"drag")}function Q1(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function R0(e,t=[]){let n=[];function r(i,s){const a=p.createContext(s),l=n.length;n=[...n,s];function c(f){const{scope:h,children:g,...C}=f,v=(h==null?void 0:h[e][l])||a,x=p.useMemo(()=>C,Object.values(C));return p.createElement(v.Provider,{value:x},g)}function d(f,h){const g=(h==null?void 0:h[e][l])||a,C=p.useContext(g);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(s=>p.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Q6(o,...t)]}function Q6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Xe(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function e9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const nr="dismissableLayer.update",t9="dismissableLayer.pointerDownOutside",n9="dismissableLayer.focusOutside";let Do;const r9=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),o9=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=e,d=p.useContext(r9),[f,h]=p.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,C]=p.useState({}),v=Ye(t,S=>h(S)),x=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(m),y=f?x.indexOf(f):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,E=y>=w,$=i9(S=>{const L=S.target,O=[...d.branches].some(M=>M.contains(L));!E||O||(i==null||i(S),a==null||a(S),S.defaultPrevented||l==null||l())},g),k=s9(S=>{const L=S.target;[...d.branches].some(M=>M.contains(L))||(s==null||s(S),a==null||a(S),S.defaultPrevented||l==null||l())},g);return e9(S=>{y===d.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},g),p.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Do=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),No(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Do)}},[f,g,r,d]),p.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),No())},[f,d]),p.useEffect(()=>{const S=()=>C({});return document.addEventListener(nr,S),()=>document.removeEventListener(nr,S)},[]),p.createElement(Le.div,V({},c,{ref:v,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:Q1(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Q1(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Q1(e.onPointerDownCapture,$.onPointerDownCapture)}))});function i9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){P0(t9,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function s9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e),r=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!r.current&&P0(n9,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function No(){const e=new CustomEvent(nr);document.dispatchEvent(e)}function P0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$s(o,i):o.dispatchEvent(i)}const Fe=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},a9=d3["useId".toString()]||(()=>{});let l9=0;function c9(e){const[t,n]=p.useState(a9());return Fe(()=>{e||n(r=>r??String(l9++))},[e]),e||(t?`radix-${t}`:"")}const u9=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.createElement(Le.svg,V({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))}),d9=u9;function f9(e){const[t,n]=p.useState(void 0);return Fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const T0="Popper",[H0,I0]=R0(T0),[h9,A0]=H0(T0),p9=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return p.createElement(h9,{scope:t,anchor:r,onAnchorChange:o},n)},C9="PopperAnchor",g9=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=A0(C9,n),s=p.useRef(null),a=Ye(t,s);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:p.createElement(Le.div,V({},o,{ref:a}))}),V0="PopperContent",[m9,v9]=H0(V0),x9=p.forwardRef((e,t)=>{var n,r,o,i,s,a,l,c;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:g="center",alignOffset:C=0,arrowPadding:v=0,avoidCollisions:x=!0,collisionBoundary:m=[],collisionPadding:w=0,sticky:y="partial",hideWhenDetached:_=!1,updatePositionStrategy:E="optimized",onPlaced:$,...k}=e,S=A0(V0,d),[L,O]=p.useState(null),M=Ye(t,t1=>O(t1)),[j,D]=p.useState(null),T=f9(j),P=(n=T==null?void 0:T.width)!==null&&n!==void 0?n:0,R=(r=T==null?void 0:T.height)!==null&&r!==void 0?r:0,I=f+(g!=="center"?"-"+g:""),Z=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},F=Array.isArray(m)?m:[m],e1=F.length>0,W={padding:Z,boundary:F.filter(_9),altBoundary:e1},{refs:X,floatingStyles:u1,placement:l1,isPositioned:K,middlewareData:d1}=W5({strategy:"fixed",placement:I,whileElementsMounted:(...t1)=>Z5(...t1,{animationFrame:E==="always"}),elements:{reference:S.anchor},middleware:[b5({mainAxis:h+R,alignmentAxis:C}),x&&_5({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?E5():void 0,...W}),x&&x5({...W}),$5({...W,apply:({elements:t1,rects:F1,availableWidth:U1,availableHeight:W1})=>{const{width:Oe,height:me}=F1.reference,K1=t1.floating.style;K1.setProperty("--radix-popper-available-width",`${U1}px`),K1.setProperty("--radix-popper-available-height",`${W1}px`),K1.setProperty("--radix-popper-anchor-width",`${Oe}px`),K1.setProperty("--radix-popper-anchor-height",`${me}px`)}}),j&&U5({element:j,padding:v}),E9({arrowWidth:P,arrowHeight:R}),_&&w5({strategy:"referenceHidden",...W})]}),[_1,E1]=D0(l1),L1=Xe($);Fe(()=>{K&&(L1==null||L1())},[K,L1]);const V1=(o=d1.arrow)===null||o===void 0?void 0:o.x,ue=(i=d1.arrow)===null||i===void 0?void 0:i.y,de=((s=d1.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[U,J]=p.useState();return Fe(()=>{L&&J(window.getComputedStyle(L).zIndex)},[L]),p.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...u1,transform:K?u1.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(a=d1.transformOrigin)===null||a===void 0?void 0:a.x,(l=d1.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},p.createElement(m9,{scope:d,placedSide:_1,onArrowChange:D,arrowX:V1,arrowY:ue,shouldHideArrow:de},p.createElement(Le.div,V({"data-side":_1,"data-align":E1},k,{ref:M,style:{...k.style,animation:K?void 0:"none",opacity:(c=d1.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),w9="PopperArrow",y9={top:"bottom",right:"left",bottom:"top",left:"right"},b9=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=v9(w9,r),s=y9[i.placedSide];return p.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},p.createElement(d9,V({},o,{ref:n,style:{...o.style,display:"block"}})))});function _9(e){return e!==null}const E9=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:l,middlewareData:c}=t,f=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[C,v]=D0(a),x={start:"0%",center:"50%",end:"100%"}[v],m=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,w=((i=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let y="",_="";return C==="bottom"?(y=f?x:`${m}px`,_=`${-g}px`):C==="top"?(y=f?x:`${m}px`,_=`${l.floating.height+g}px`):C==="right"?(y=`${-g}px`,_=f?x:`${w}px`):C==="left"&&(y=`${l.floating.width+g}px`,_=f?x:`${w}px`),{data:{x:y,y:_}}}});function D0(e){const[t,n="center"]=e.split("-");return[t,n]}const $9=p9,k9=g9,S9=x9,j9=b9;function L9(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const N0=e=>{const{present:t,children:n}=e,r=M9(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=Ye(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:i}):null};N0.displayName="Presence";function M9(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),i=p.useRef("none"),s=e?"mounted":"unmounted",[a,l]=L9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Vt(r.current);i.current=a==="mounted"?c:"none"},[a]),Fe(()=>{const c=r.current,d=o.current;if(d!==e){const h=i.current,g=Vt(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Fe(()=>{if(t){const c=f=>{const g=Vt(r.current).includes(f.animationName);f.target===t&&g&&hn.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Vt(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function O9({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=R9({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Xe(n),l=p.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[i,e,o,a]);return[s,l]}function R9({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),i=Xe(t);return p.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const P9=p.forwardRef((e,t)=>p.createElement(Le.span,V({},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}}))),T9=P9,[xn,wh]=R0("Tooltip",[I0]),wn=I0(),H9="TooltipProvider",rr="tooltip.open",[yh,Mr]=xn(H9),Or="Tooltip",[I9,yn]=xn(Or),A9=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Mr(Or,e.__scopeTooltip),c=wn(t),[d,f]=p.useState(null),h=c9(),g=p.useRef(0),C=s??l.disableHoverableContent,v=a??l.delayDuration,x=p.useRef(!1),[m=!1,w]=O9({prop:r,defaultProp:o,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(rr))):l.onClose(),i==null||i(k)}}),y=p.useMemo(()=>m?x.current?"delayed-open":"instant-open":"closed",[m]),_=p.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,w(!0)},[w]),E=p.useCallback(()=>{window.clearTimeout(g.current),w(!1)},[w]),$=p.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,w(!0)},v)},[v,w]);return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),p.createElement($9,c,p.createElement(I9,{scope:t,contentId:h,open:m,stateAttribute:y,trigger:d,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayed?$():_()},[l.isOpenDelayed,$,_]),onTriggerLeave:p.useCallback(()=>{C?E():window.clearTimeout(g.current)},[E,C]),onOpen:_,onClose:E,disableHoverableContent:C},n))},Bo="TooltipTrigger",V9=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yn(Bo,n),i=Mr(Bo,n),s=wn(n),a=p.useRef(null),l=Ye(t,a,o.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.createElement(k9,V({asChild:!0},s),p.createElement(Le.button,V({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Q1(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q1(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q1(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Q1(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:Q1(e.onBlur,o.onClose),onClick:Q1(e.onClick,o.onClose)})))}),D9="TooltipPortal",[bh,N9]=xn(D9,{forceMount:void 0}),wt="TooltipContent",B9=p.forwardRef((e,t)=>{const n=N9(wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=yn(wt,e.__scopeTooltip);return p.createElement(N0,{present:r||s.open},s.disableHoverableContent?p.createElement(B0,V({side:o},i,{ref:t})):p.createElement(z9,V({side:o},i,{ref:t})))}),z9=p.forwardRef((e,t)=>{const n=yn(wt,e.__scopeTooltip),r=Mr(wt,e.__scopeTooltip),o=p.useRef(null),i=Ye(t,o),[s,a]=p.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:f}=r,h=p.useCallback(()=>{a(null),f(!1)},[f]),g=p.useCallback((C,v)=>{const x=C.currentTarget,m={x:C.clientX,y:C.clientY},w=K9(m,x.getBoundingClientRect()),y=G9(m,w),_=Y9(v.getBoundingClientRect()),E=X9([...y,..._]);a(E),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&d){const C=x=>g(x,d),v=x=>g(x,l);return l.addEventListener("pointerleave",C),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",v)}}},[l,d,g,h]),p.useEffect(()=>{if(s){const C=v=>{const x=v.target,m={x:v.clientX,y:v.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!q9(m,s);w?h():y&&(h(),c())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[l,d,s,c,h]),p.createElement(B0,V({},e,{ref:i}))}),[Z9,F9]=xn(Or,{isInside:!1}),B0=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=yn(wt,n),c=wn(n),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(rr,d),()=>document.removeEventListener(rr,d)),[d]),p.useEffect(()=>{if(l.trigger){const f=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.createElement(o9,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},p.createElement(S9,V({"data-state":l.stateAttribute},c,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(v0,null,r),p.createElement(Z9,{scope:n,isInside:!0},p.createElement(T9,{id:l.contentId,role:"tooltip"},o||r))))}),U9="TooltipArrow",W9=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=wn(n);return F9(U9,n).isInside?null:p.createElement(j9,V({},o,r,{ref:t}))});function K9(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function G9(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Y9(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function q9(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(c-a)*(r-l)/(d-l)+a&&(o=!o)}return o}function X9(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),J9(t)}function J9(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}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 Q9=A9,e7=V9,t7=B9,n7=W9;function r7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Y(e,t){if(e==null)return{};var n=r7(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let o1;(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"})(o1||(o1={}));const o7={[o1.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[o1.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[o1.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[o1.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.`],[o1.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[o1.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[o1.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[o1.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[o1.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[o1.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[o1.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function z0(e,t,...n){const[r,...o]=o7[t](...n);console[e]("LEVA: "+r,...o)}const ee=z0.bind(null,"warn"),i7=z0.bind(null,"log"),s7=["value"],a7=["schema"],l7=["value"],Z0=[],$e={};function zo(e){let{value:t}=e,n=Y(e,s7);for(let r of Z0){const o=r(t,n);if(o)return o}}function ce(e,t){let{schema:n}=t,r=Y(t,a7);if(e in $e){ee(o1.ALREADY_REGISTERED_TYPE,e);return}Z0.push((o,i)=>n(o,i)&&e),$e[e]=r}function Hn(e,t,n,r){const{normalize:o}=$e[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=Y(t,l7);return{value:i,settings:s}}function c7(e,t,n,r,o,i){const{sanitize:s}=$e[e];return s?s(t,n,r,o,i):t}function Zo(e,t,n){const{format:r}=$e[e];return r?r(t,n):t}function u7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=fe(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},f7=Math.log(10);function Uo(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)/f7)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const tn=(e,t,n)=>n===t?0:(ge(e,t,n)-t)/(n-t),nn=(e,t,n)=>e*(n-t)+t,h7=()=>"_"+Math.random().toString(36).substr(2,9),Wo=/\(([0-9+\-*/^ .]+)\)/,Ko=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Go=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Yo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,qo=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Xo=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function fe(e){if(isNaN(Number(e)))if(Wo.test(e)){const t=e.replace(Wo,(n,r)=>String(fe(r)));return fe(t)}else if(Ko.test(e)){const t=e.replace(Ko,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return fe(t)}else if(Go.test(e)){const t=e.replace(Go,(n,r,o)=>String(Number(r)*Number(o)));return fe(t)}else if(Yo.test(e)){const t=e.replace(Yo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return fe(t)}else if(qo.test(e)){const t=e.replace(qo,(n,r,o)=>String(Number(r)+Number(o)));return fe(t)}else if(Xo.test(e)){const t=e.replace(Xo,(n,r,o)=>String(Number(r)-Number(o)));return fe(t)}else return Number(e);return Number(e)}function p7(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function C7(e,t){const n=z({},e);return t.forEach(r=>r in e&&delete n[r]),n}function g7(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function F0(e){return Object.prototype.toString.call(e)==="[object Object]"}const m7=e=>F0(e)&&Object.keys(e).length===0;let B1;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(B1||(B1={}));let z1;(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"})(z1||(z1={}));const v7=["type","__customInput"],x7=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],w7=["type"];function U0(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:z({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:$}=e,k=Y(e,v7);return U0($,t,k,E)}const{render:s,label:a,optional:l,order:c=0,disabled:d,hint:f,onChange:h,onEditStart:g,onEditEnd:C,transient:v}=e,x=Y(e,x7),m=z({render:s,key:t,label:a??t,hint:f,transient:v??!!h,onEditStart:g,onEditEnd:C,disabled:d,optional:l,order:c},n);let{type:w}=x,y=Y(x,w7);if(w=r??w,w in B1)return{type:w,input:y,options:m};let _;return r&&F0(y)&&"value"in y?_=y.value:_=m7(y)?void 0:y,{type:w,input:_,options:z(z({},m),{},{onChange:h,optional:(o=m.optional)!==null&&o!==void 0?o:!1,disabled:(i=m.disabled)!==null&&i!==void 0?i:!1})}}function y7(e,t,n,r){const o=U0(e,t),{type:i,input:s,options:a}=o;if(i)return i in B1?o:{type:i,input:Hn(i,s,n,r),options:a};let l=zo(s);return l?{type:l,input:Hn(l,s,n,r),options:a}:(l=zo({value:s}),l?{type:l,input:Hn(l,{value:s},n,r),options:a}:!1)}function Jo(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=W0({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const b7=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function W0({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=c7(e,s,n,t,o,i)}catch(l){throw new b7(`The value \`${r}\` did not result in a correct value.`,t,l)}return vt(a,t)?t:a}const K0=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},G0=e=>e.shiftKey?5:e.altKey?1/5:1;function _7(e,t){const n=console.error;console.error=()=>{},Ve.render(e,t),console.error=n}const E7=["value"],$7=["min","max"],k7=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},Y0=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=ge(o,t,n);return r?i+r:i},S7=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},q0=e=>{let{value:t}=e,n=Y(e,E7);const{min:r=-1/0,max:o=1/0}=n,i=Y(n,$7);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=ge(s,r,o);let l=n.step;l||(Number.isFinite(r)?Number.isFinite(o)?l=+(Math.abs(o-r)/100).toPrecision(1):l=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(l=+(Math.abs(o-s)/100).toPrecision(1)));const c=l?Uo(l)*10:Uo(s);l=l||c/10;const d=Math.round(ge(Math.log10(1/c),0,2));return{value:a?s+a:s,settings:z({initialValue:s,step:l,pad:d,min:r,max:o,suffix:a},i)}},X0=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var J0=Object.freeze({__proto__:null,schema:k7,sanitize:Y0,format:S7,normalize:q0,sanitizeStep:X0});function a1(){return a1=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 Dt(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const rt={$inputStyle:()=>e=>Dt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Dt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Dt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Dt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:B,css:_h,createTheme:L7,globalCss:M7,keyframes:Eh}=E0({prefix:"leva",theme:n2(),utils:z(z({},rt),{},{$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":rt.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":rt.$focusStyle()(e)}),$hover:e=>({"&:hover":rt.$hoverStyle()(e)}),$active:e=>({"&:active":rt.$activeStyle()(e)})})}),O7=M7({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function R7(e){const t=n2();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=L7(t);return{theme:t,className:n.className}}function te(e,t){const{theme:n}=p.useContext(Rr);if(!(e in n)||!(t in n[e]))return ee(o1.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const r2=B("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),o2=B("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${r2}`]:{paddingLeft:0}}),P7=B(o2,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),T7=B("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),H7=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],I7=["onUpdate"];function Pr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:l="text",rows:c=0}=e,d=Y(e,H7);const{id:f,emitOnEditStart:h,emitOnEditEnd:g,disabled:C}=C1(),v=a||f,x=p.useRef(null),m=c>0,w=m?"textarea":"input",y=p.useCallback($=>k=>{const S=k.currentTarget.value;$(S)},[]);b.useEffect(()=>{const $=x.current,k=y(S=>{r(S),g()});return $==null||$.addEventListener("blur",k),()=>$==null?void 0:$.removeEventListener("blur",k)},[y,r,g]);const _=p.useCallback($=>{$.key==="Enter"&&y(r)($)},[y,r]),E=Object.assign({as:w},m?{rows:c}:{},d);return b.createElement(T7,{textArea:m},t&&typeof t=="string"?b.createElement(o2,null,t):t,b.createElement(r2,a1({levaType:s,ref:x,id:v,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:y(o),onFocus:()=>h(),onKeyPress:_,onKeyDown:i,disabled:C},E)))}function A7(e){let{onUpdate:t}=e,n=Y(e,I7);const r=p.useCallback(i=>t(d7(i)),[t]),o=p.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(l=>parseFloat(l)+s*a)}},[t]);return b.createElement(Pr,a1({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const rn=B("div",{}),or=B("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"}}]}),V7=B("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 + ${or}::after`]:{opacity:.6},[`${rn}:hover > & + ${or}::after`]:{opacity:.6},[`${rn}:hover > & > svg`]:{opacity:1}}),i2=B("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"},[`> ${rn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),s2=B("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${i2} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),a2=B(s2,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),D7=B("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"}}}}),N7=B("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"}}),ir=B("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),B7=B("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${ir}`]:{pointerEvents:"auto"}}}}}),l2=B("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),z7=B("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Z7=B(n7,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=p.useContext(Rr);return b.createElement(Ss,{className:t},e)}const F7=["align"];function U7(){const{id:e,disable:t,disabled:n}=C1();return b.createElement(b.Fragment,null,b.createElement(N7,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),b.createElement("label",{htmlFor:e+"__disable"}))}function W7(e){const{id:t,optional:n,hint:r}=C1(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return b.createElement(b.Fragment,null,n&&b.createElement(U7,null),r!==void 0?b.createElement(Q9,null,b.createElement(e7,{asChild:!0},b.createElement(ir,a1({},o,e))),b.createElement(t7,{side:"top",sideOffset:2},b.createElement(z7,null,r,b.createElement(Z7,null)))):b.createElement(ir,a1({},o,i,e)))}function Z1(e){let{align:t}=e,n=Y(e,F7);const{value:r,label:o,key:i,disabled:s}=C1(),{hideCopyButton:a}=j7(),l=!a&&i!==void 0,[c,d]=p.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),d(!0)}catch{ee(o1.CLIPBOARD_ERROR,{[i]:r})}};return b.createElement(D7,{align:t,onPointerLeave:()=>d(!1)},b.createElement(W7,n),l&&!s&&b.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},c?b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),b.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"})):b.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),b.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 K7=["toggled"],G7=B("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Hr(e){let{toggled:t}=e,n=Y(e,K7);return b.createElement(G7,a1({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),b.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 Y7=["input"];function A1(e){let{input:t}=e,n=Y(e,Y7);return t?b.createElement(a2,n):b.createElement(s2,n)}function c2({value:e,type:t,settings:n,setValue:r}){const[o,i]=p.useState(Zo(t,e,n)),s=p.useRef(e),a=p.useRef(n);a.current=n;const l=p.useCallback(d=>i(Zo(t,d,a.current)),[t]),c=p.useCallback(d=>{try{r(d)}catch(f){const{type:h,previousValue:g}=f;if(h!=="LEVA_ERROR")throw f;l(g)}},[l,r]);return p.useEffect(()=>{vt(e,s.current)||l(e),s.current=e},[e,l]),{displayValue:o,onChange:i,onUpdate:c}}function Ot(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=C1();return J6(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function q7(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!1);return p.useEffect(()=>{const o=K0(()=>{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",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),p.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function u2(){const e=p.useRef(null),t=p.useRef({x:0,y:0}),n=p.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const X7=["__refCount"],In=(e,t)=>{if(!e[t])return null;const n=e[t];return Y(n,X7)};function J7(e){const t=Mt(),[n,r]=p.useState(In(t.getData(),e)),o=p.useCallback(c=>t.setValueAtPath(e,c,!0),[e,t]),i=p.useCallback(c=>t.setSettingsAtPath(e,c),[e,t]),s=p.useCallback(c=>t.disableInputAtPath(e,c),[e,t]),a=p.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=p.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return p.useEffect(()=>{r(In(t.getData(),e));const c=t.useStore.subscribe(d=>In(d.data,e),r,{equalityFn:St});return()=>c()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:l}]}const Q7=B("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),d2=B("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),sr=B("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)))"}}}}),f2=B("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),h2=B("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function e4({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=p.useRef(null),a=p.useRef(null),l=p.useRef(0),c=te("sizes","scrubberWidth"),d=Ot(({event:h,first:g,xy:[C],movement:[v],memo:x})=>{if(g){const{width:w,left:y}=s.current.getBoundingClientRect();l.current=w-parseFloat(c),x=(h==null?void 0:h.target)===a.current?e:nn((C-y)/w,t,n)}const m=x+nn(v/l.current,0,n-t);return r(X0(m,{step:o,initialValue:i})),x}),f=tn(e,t,n);return b.createElement(f2,a1({ref:s},d()),b.createElement(d2,null,b.createElement(h2,{style:{left:0,right:`${(1-f)*100}%`}})),b.createElement(sr,{ref:a,style:{left:`calc(${f} * (100% - ${c}))`}}))}const t4=b.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=p.useState(!1),s=Ot(({active:a,delta:[l],event:c,memo:d=0})=>(i(a),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*G0(c)),d=0),d));return b.createElement(P7,a1({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function p2({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&b.createElement(t4,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return b.createElement(A7,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function n4(){const e=C1(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,l=a!==1/0&&s!==-1/0;return b.createElement(A1,{input:!0},b.createElement(Z1,null,t),b.createElement(Q7,{hasRange:l},l&&b.createElement(e4,a1({value:parseFloat(n),onDrag:r},o)),b.createElement(p2,a1({},e,{id:i,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:r4}=J0,o4=Y(J0,["sanitizeStep"]);var i4=z({component:n4},o4);const s4=(e,t)=>S1().schema({options:S1().passesAnyOf(S1().object(),S1().array())}).test(t),a4=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},l4=(e,{values:t})=>t.indexOf(e),c4=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var u4=Object.freeze({__proto__:null,schema:s4,sanitize:a4,format:l4,normalize:c4});const d4=B("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),ar=B("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),f4=B("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${ar}:focus + &`]:{$focusStyle:""},[`${ar}:hover + &`]:{$hoverStyle:""}});function h4({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,l=p.useRef();return t===a[e]&&(l.current=s[e]),b.createElement(d4,null,b.createElement(ar,{id:r,value:e,onChange:c=>n(a[Number(c.currentTarget.value)]),disabled:i},s.map((c,d)=>b.createElement("option",{key:c,value:d},c))),b.createElement(f4,null,l.current),b.createElement(Hr,{toggled:!0}))}function p4(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(h4,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var C4=z({component:p4},u4);const g4=e=>S1().string().test(e),m4=e=>{if(typeof e!="string")throw Error("Invalid string");return e},v4=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var x4=Object.freeze({__proto__:null,schema:g4,sanitize:m4,normalize:v4});const w4=["displayValue","onUpdate","onChange","editable"],y4=B("div",{whiteSpace:"pre-wrap"});function b4(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=Y(e,w4);return o?b.createElement(Pr,a1({value:t,onUpdate:n,onChange:r},i)):b.createElement(y4,null,t)}function _4(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(b4,a1({displayValue:n,onUpdate:r,onChange:o},t)))}var E4=z({component:_4},x4);const $4=e=>S1().boolean().test(e),k4=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var S4=Object.freeze({__proto__:null,schema:$4,sanitize:k4});const j4=B("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 L4({value:e,onUpdate:t,id:n,disabled:r}){return b.createElement(j4,null,b.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),b.createElement("label",{htmlFor:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},b.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function M4(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(L4,{value:t,onUpdate:n,id:o,disabled:r}))}var O4=z({component:M4},S4);const R4=["locked"];function P4({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=p.useRef(e[n]);s.current=e[n];const a=p.useCallback(c=>o({[n]:W0({type:"NUMBER",value:s.current,settings:r},c)}),[o,r,n]),l=c2({type:"NUMBER",value:e[n],settings:r,setValue:a});return b.createElement(p2,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:r,innerLabelTrim:i})}const T4=B("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function H4(e){let{locked:t}=e,n=Y(e,R4);return b.createElement("svg",a1({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?b.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"}):b.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 Ir({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=C1(),{lock:s,locked:a}=n;return b.createElement(T4,{withLock:s},s&&b.createElement(H4,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((l,c)=>b.createElement(P4,{id:c===0?o:`${o}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:r})))}const C2=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=q0(z({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:l}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(l))&&(n[i].step=r,n[i].pad=o)}return n},I4=["lock"],A4=["value"];function V4(e){const t=S1().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function D4(e){return Array.isArray(e)?"array":"object"}function ft(e,t,n){return D4(e)===t?e:t==="array"?Object.values(e):g7(e,n)}const N4=(e,t,n)=>{const r=ft(e,"object",t.keys);for(let s in r)r[s]=Y0(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=ft(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],l=r[a],c=s[a],d=c!==0?l/c:1;for(let f in s)f===a?i[a]=l:i[f]=s[f]*d}else i=z(z({},s),r)}return ft(i,t.format,t.keys)},B4=(e,t)=>ft(e,"object",t.keys),z4=e=>!!e&&("step"in e||"min"in e||"max"in e);function Z4(e,t,n=[]){const{lock:r=!1}=t,o=Y(t,I4),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=ft(e,"object",s),l=z4(o)?s.reduce((d,f)=>Object.assign(d,{[f]:o}),{}):o,c=C2(a,l);return{value:i==="array"?e:a,settings:z(z({},c),{},{format:i,keys:s,lock:r,locked:!1})}}function g2(e){return{schema:V4(e.length),normalize:t=>{let{value:n}=t,r=Y(t,A4);return Z4(n,r,e)},format:(t,n)=>B4(t,n),sanitize:(t,n,r)=>N4(t,n,r)}}var F4={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},H1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},m2=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Qo=function(e){return{r:H1(e.r,0,255),g:H1(e.g,0,255),b:H1(e.b,0,255),a:H1(e.a)}},An=function(e){return{r:f1(e.r),g:f1(e.g),b:f1(e.b),a:f1(e.a,3)}},U4=/^#([0-9a-f]{3,8})$/i,Nt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},v2=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},x2=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},ei=function(e){return{h:m2(e.h),s:H1(e.s,0,100),l:H1(e.l,0,100),a:H1(e.a)}},ti=function(e){return{h:f1(e.h),s:f1(e.s),l:f1(e.l),a:f1(e.a,3)}},ni=function(e){return x2((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},ht=function(e){return{h:(t=v2(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},W4=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,K4=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,G4=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Y4=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lr={string:[[function(e){var t=U4.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=G4.exec(e)||Y4.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Qo({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=W4.exec(e)||K4.exec(e);if(!t)return null;var n,r,o=ei({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(F4[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return ni(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return J1(t)&&J1(n)&&J1(r)?Qo({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!J1(t)||!J1(n)||!J1(r))return null;var s=ei({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return ni(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!J1(t)||!J1(n)||!J1(r))return null;var s=function(a){return{h:m2(a.h),s:H1(a.s,0,100),v:H1(a.v,0,100),a:H1(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return x2(s)},"hsv"]]},ri=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=An(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Nt(f1(255*i)):"","#"+Nt(n)+Nt(r)+Nt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return An(this.rgba)},e.prototype.toRgbString=function(){return t=An(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return ti(ht(this.rgba))},e.prototype.toHslString=function(){return t=ti(ht(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=v2(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 v1({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),v1(Vn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),v1(Vn(this.rgba,-t))},e.prototype.grayscale=function(){return v1(Vn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),v1(oi(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),v1(oi(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"?v1({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=ht(this.rgba);return typeof t=="number"?v1({h:t,s:n.s,l:n.l,a:n.a}):f1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===v1(t).toHex()},e}(),v1=function(e){return e instanceof cr?e:new cr(e)},ii=[],X4=function(e){e.forEach(function(t){ii.indexOf(t)<0&&(t(cr,lr),ii.push(t))})};function J4(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"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=r[this.toHex()];if(c)return c;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,h="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var C in n){var v=(a=d,l=i[C],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));v=0||(o[n]=e[n]);return o}function ur(e){var t=p.useRef(e),n=p.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Ue=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:x.buttons>0)&&o.current?i(si(o.current,x,a.current)):v(!1)},C=function(){return v(!1)};function v(x){var m=l.current,w=dr(o.current),y=x?w.addEventListener:w.removeEventListener;y(m?"touchmove":"mousemove",g),y(m?"touchend":"mouseup",C)}return[function(x){var m=x.nativeEvent,w=o.current;if(w&&(ai(m),!function(_,E){return E&&!pt(_)}(m,l.current)&&w)){if(pt(m)){l.current=!0;var y=m.changedTouches||[];y.length&&(a.current=y[0].identifier)}w.focus(),i(si(w,m,a.current)),v(!0)}},function(x){var m=x.which||x.keyCode;m<37||m>40||(x.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},v]},[s,i]),d=c[0],f=c[1],h=c[2];return p.useEffect(function(){return h},[h]),b.createElement("div",Je({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Rt=function(e){return e.filter(Boolean).join(" ")},Dr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Rt(["react-colorful__pointer",e.className]);return b.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},b.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},w1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},y2=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:w1(e.h),s:w1(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:w1(o/2),a:w1(r,2)}},fr=function(e){var t=y2(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Nn=function(e){var t=y2(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},b2=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:w1(255*[r,a,s,s,l,r][c]),g:w1(255*[l,r,r,a,s,s][c]),b:w1(255*[s,s,l,r,r,a][c]),a:w1(o,2)}},_2=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:w1(60*(a<0?a+6:a)),s:w1(i?s/i*100:0),v:w1(i/255*100),a:o}},E2=b.memo(function(e){var t=e.hue,n=e.onChange,r=Rt(["react-colorful__hue",e.className]);return b.createElement("div",{className:r},b.createElement(Vr,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Ue(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":w1(t),"aria-valuemax":"360","aria-valuemin":"0"},b.createElement(Dr,{className:"react-colorful__hue-pointer",left:t/360,color:fr({h:t,s:100,v:100,a:1})})))}),$2=b.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:fr({h:t.h,s:100,v:100,a:1})};return b.createElement("div",{className:"react-colorful__saturation",style:r},b.createElement(Vr,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Ue(t.s+100*o.left,0,100),v:Ue(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+w1(t.s)+"%, Brightness "+w1(t.v)+"%"},b.createElement(Dr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:fr(t)})))}),Nr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function k2(e,t,n){var r=ur(n),o=p.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=p.useRef({color:t,hsva:i});p.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),p.useEffect(function(){var c;Nr(i,a.current.hsva)||e.equal(c=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:c},r(c))},[i,e,r]);var l=p.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[i,l]}var Q4=typeof window<"u"?p.useLayoutEffect:p.useEffect,e8=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},li=new Map,S2=function(e){Q4(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!li.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}`,li.set(t,n);var r=e8();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},t8=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ar(e,["className","colorModel","color","onChange"]),a=p.useRef(null);S2(a);var l=k2(n,o,i),c=l[0],d=l[1],f=Rt(["react-colorful",t]);return b.createElement("div",Je({},s,{ref:a,className:f}),b.createElement($2,{hsva:c,onChange:d}),b.createElement(E2,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},n8=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Nn(Object.assign({},n,{a:0}))+", "+Nn(Object.assign({},n,{a:1}))+")"},i=Rt(["react-colorful__alpha",t]),s=w1(100*n.a);return b.createElement("div",{className:i},b.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),b.createElement(Vr,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:Ue(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},b.createElement(Dr,{className:"react-colorful__alpha-pointer",left:n.a,color:Nn(n)})))},r8=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ar(e,["className","colorModel","color","onChange"]),a=p.useRef(null);S2(a);var l=k2(n,o,i),c=l[0],d=l[1],f=Rt(["react-colorful",t]);return b.createElement("div",Je({},s,{ref:a,className:f}),b.createElement($2,{hsva:c,onChange:d}),b.createElement(E2,{hue:c.h,onChange:d}),b.createElement(n8,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},o8={defaultColor:{r:0,g:0,b:0,a:1},toHsva:_2,fromHsva:b2,equal:Nr},i8=function(e){return b.createElement(r8,Je({},e,{colorModel:o8}))},s8={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return _2({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=b2(e)).r,g:t.g,b:t.b};var t},equal:Nr},a8=function(e){return b.createElement(t8,Je({},e,{colorModel:s8}))};function $h(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Qe(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(d){try{c(r.next(d))}catch(f){s(f)}}function l(d){try{c(r.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):o(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function et(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function c8(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function d8(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=u8.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var f8=[".DS_Store","Thumbs.db"];function h8(e){return Qe(this,void 0,void 0,function(){return et(this,function(t){return on(e)&&p8(e)?[2,v8(e.dataTransfer,e.type)]:C8(e)?[2,g8(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,m8(e)]:[2,[]]})})}function p8(e){return on(e.dataTransfer)}function C8(e){return on(e)&&on(e.target)}function on(e){return typeof e=="object"&&e!==null}function g8(e){return hr(e.target.files).map(function(t){return Pt(t)})}function m8(e){return Qe(this,void 0,void 0,function(){var t;return et(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Pt(r)})]}})})}function v8(e,t){return Qe(this,void 0,void 0,function(){var n,r;return et(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=hr(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(x8))]):[3,2];case 1:return r=o.sent(),[2,ci(j2(r))];case 2:return[2,ci(hr(e.files).map(function(i){return Pt(i)}))]}})})}function ci(e){return e.filter(function(t){return f8.indexOf(t.name)===-1})}function hr(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Ci(n)];if(e.sizen)return[!1,Ci(n)]}return[!0,null]}function ot(e){return e!=null}function P8(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var l=O2(a,n),c=hi(l,1),d=c[0],f=R2(a,r,o),h=hi(f,1),g=h[0];return d&&g})}function sn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Bt(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 mi(e){e.preventDefault()}function T8(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function H8(e){return e.indexOf("Edge/")!==-1}function I8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return T8(e)||H8(e)}function G1(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.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 J8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Br=p.forwardRef(function(e,t){var n=e.children,r=an(e,B8),o=H2(r),i=o.open,s=an(o,z8);return p.useImperativeHandle(t,function(){return{open:i}},[i]),b.createElement(p.Fragment,null,n(r1(r1({},s),{},{open:i})))});Br.displayName="Dropzone";var T2={disabled:!1,getFilesFromEvent:h8,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Br.defaultProps=T2;Br.propTypes={children:Q.func,accept:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),multiple:Q.bool,preventDropOnDocument:Q.bool,noClick:Q.bool,noKeyboard:Q.bool,noDrag:Q.bool,noDragEventsBubbling:Q.bool,minSize:Q.number,maxSize:Q.number,maxFiles:Q.number,disabled:Q.bool,getFilesFromEvent:Q.func,onFileDialogCancel:Q.func,onFileDialogOpen:Q.func,useFsAccessApi:Q.bool,onDragEnter:Q.func,onDragLeave:Q.func,onDragOver:Q.func,onDrop:Q.func,onDropAccepted:Q.func,onDropRejected:Q.func,validator:Q.func};var gr={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function H2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r1(r1({},T2),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,g=t.onDropAccepted,C=t.onDropRejected,v=t.onFileDialogCancel,x=t.onFileDialogOpen,m=t.useFsAccessApi,w=t.preventDropOnDocument,y=t.noClick,_=t.noKeyboard,E=t.noDrag,$=t.noDragEventsBubbling,k=t.validator,S=p.useMemo(function(){return typeof x=="function"?x:xi},[x]),L=p.useMemo(function(){return typeof v=="function"?v:xi},[v]),O=p.useRef(null),M=p.useRef(null),j=p.useReducer(Q8,gr),D=Bn(j,2),T=D[0],P=D[1],R=T.isFocused,I=T.isFileDialogActive,Z=T.draggedFiles,F=p.useRef(typeof window<"u"&&window.isSecureContext&&m&&A8()),e1=function(){!F.current&&I&&setTimeout(function(){if(M.current){var N=M.current.files;N.length||(P({type:"closeDialog"}),L())}},300)};p.useEffect(function(){return window.addEventListener("focus",e1,!1),function(){window.removeEventListener("focus",e1,!1)}},[M,I,L,F]);var W=p.useRef([]),X=function(N){O.current&&O.current.contains(N.target)||(N.preventDefault(),W.current=[])};p.useEffect(function(){return w&&(document.addEventListener("dragover",mi,!1),document.addEventListener("drop",X,!1)),function(){w&&(document.removeEventListener("dragover",mi),document.removeEventListener("drop",X))}},[O,w]);var u1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H),W.current=[].concat(U8(W.current),[H.target]),Bt(H)&&Promise.resolve(o(H)).then(function(N){sn(H)&&!$||(P({draggedFiles:N,isDragActive:!0,type:"setDraggedFiles"}),c&&c(H))})},[o,c,$]),l1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H);var N=Bt(H);if(N&&H.dataTransfer)try{H.dataTransfer.dropEffect="copy"}catch{}return N&&f&&f(H),!1},[f,$]),K=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H);var N=W.current.filter(function($1){return O.current&&O.current.contains($1)}),h1=N.indexOf(H.target);h1!==-1&&N.splice(h1,1),W.current=N,!(N.length>0)&&(P({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Bt(H)&&d&&d(H))},[O,d,$]),d1=p.useCallback(function(H,N){var h1=[],$1=[];H.forEach(function(D1){var tt=O2(D1,n),Re=Bn(tt,2),_n=Re[0],En=Re[1],$n=R2(D1,s,i),Ht=Bn($n,2),kn=Ht[0],Sn=Ht[1],jn=k?k(D1):null;if(_n&&kn&&!jn)h1.push(D1);else{var Ln=[En,Sn];jn&&(Ln=Ln.concat(jn)),$1.push({file:D1,errors:Ln.filter(function(l3){return l3})})}}),(!a&&h1.length>1||a&&l>=1&&h1.length>l)&&(h1.forEach(function(D1){$1.push({file:D1,errors:[R8]})}),h1.splice(0)),P({acceptedFiles:h1,fileRejections:$1,type:"setFiles"}),h&&h(h1,$1,N),$1.length>0&&C&&C($1,N),h1.length>0&&g&&g(h1,N)},[P,a,n,s,i,l,h,g,C,k]),_1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H),W.current=[],Bt(H)&&Promise.resolve(o(H)).then(function(N){sn(H)&&!$||d1(N,H)}),P({type:"reset"})},[o,d1,$]),E1=p.useCallback(function(){if(F.current){P({type:"openDialog"}),S();var H={multiple:a,types:V8(n)};window.showOpenFilePicker(H).then(function(N){return o(N)}).then(function(N){d1(N,null),P({type:"closeDialog"})}).catch(function(N){D8(N)?(L(N),P({type:"closeDialog"})):N8(N)&&(F.current=!1,M.current&&(M.current.value=null,M.current.click()))});return}M.current&&(P({type:"openDialog"}),S(),M.current.value=null,M.current.click())},[P,S,L,m,d1,n,a]),L1=p.useCallback(function(H){!O.current||!O.current.isEqualNode(H.target)||(H.key===" "||H.key==="Enter"||H.keyCode===32||H.keyCode===13)&&(H.preventDefault(),E1())},[O,E1]),V1=p.useCallback(function(){P({type:"focus"})},[]),ue=p.useCallback(function(){P({type:"blur"})},[]),de=p.useCallback(function(){y||(I8()?setTimeout(E1,0):E1())},[y,E1]),U=function(N){return r?null:N},J=function(N){return _?null:U(N)},t1=function(N){return E?null:U(N)},F1=function(N){$&&N.stopPropagation()},U1=p.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=H.refKey,h1=N===void 0?"ref":N,$1=H.role,D1=H.onKeyDown,tt=H.onFocus,Re=H.onBlur,_n=H.onClick,En=H.onDragEnter,$n=H.onDragOver,Ht=H.onDragLeave,kn=H.onDrop,Sn=an(H,Z8);return r1(r1(Cr({onKeyDown:J(G1(D1,L1)),onFocus:J(G1(tt,V1)),onBlur:J(G1(Re,ue)),onClick:U(G1(_n,de)),onDragEnter:t1(G1(En,u1)),onDragOver:t1(G1($n,l1)),onDragLeave:t1(G1(Ht,K)),onDrop:t1(G1(kn,_1)),role:typeof $1=="string"&&$1!==""?$1:"button"},h1,O),!r&&!_?{tabIndex:0}:{}),Sn)}},[O,L1,V1,ue,de,u1,l1,K,_1,_,E,r]),W1=p.useCallback(function(H){H.stopPropagation()},[]),Oe=p.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=H.refKey,h1=N===void 0?"ref":N,$1=H.onChange,D1=H.onClick,tt=an(H,F8),Re=Cr({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:U(G1($1,_1)),onClick:U(G1(D1,W1)),tabIndex:-1},h1,M);return r1(r1({},Re),tt)}},[M,n,a,_1,r]),me=Z.length,K1=me>0&&P8({files:Z,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:l}),Tt=me>0&&!K1;return r1(r1({},T),{},{isDragAccept:K1,isDragReject:Tt,isFocused:R&&!r,getRootProps:U1,getInputProps:Oe,rootRef:O,inputRef:M,open:U(E1)})}function Q8(e,t){switch(t.type){case"focus":return r1(r1({},e),{},{isFocused:!0});case"blur":return r1(r1({},e),{},{isFocused:!1});case"openDialog":return r1(r1({},gr),{},{isFileDialogActive:!0});case"closeDialog":return r1(r1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return r1(r1({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return r1(r1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return r1({},gr);default:return e}}function xi(){}function ea(e){let t;const n=new Set,r=(c,d)=>{const f=typeof c=="function"?c(t):c;if(f!==t){const h=t;t=d?f:Object.assign({},t,f),n.forEach(g=>g(t,h))}},o=()=>t,i=(c,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=d(t);function g(){const C=d(t);if(!f(h,C)){const v=h;c(h=C,v)}}return n.add(g),()=>n.delete(g)},l={setState:r,getState:o,subscribe:(c,d,f)=>d||f?i(c,d,f):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,l),l}const ta=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),wi=ta?p.useEffect:p.useLayoutEffect;function na(e){const t=typeof e=="function"?ea(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=p.useReducer(x=>x+1,0),s=t.getState(),a=p.useRef(s),l=p.useRef(r),c=p.useRef(o),d=p.useRef(!1),f=p.useRef();f.current===void 0&&(f.current=r(s));let h,g=!1;(a.current!==s||l.current!==r||c.current!==o||d.current)&&(h=r(s),g=!o(f.current,h)),wi(()=>{g&&(f.current=h),a.current=s,l.current=r,c.current=o,d.current=!1});const C=p.useRef(s);wi(()=>{const x=()=>{try{const w=t.getState(),y=l.current(w);c.current(f.current,y)||(a.current=w,f.current=y,i())}catch{d.current=!0,i()}},m=t.subscribe(x);return t.getState()!==C.current&&x(),m},[]);const v=g?h:f.current;return p.useDebugValue(v),v};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const ra=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,l)=>{let c=s;if(a){const d=(l==null?void 0:l.equalityFn)||Object.is;let f=s(r.getState());c=h=>{const g=s(h);if(!d(f,g)){const C=f;a(f=g,C)}},l!=null&&l.fireImmediately&&a(f,f)}return o(c)},e(t,n,r)};/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var oa=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var ia=oa;function yi(e){return ia(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var I2=function(t){var n,r;return!(yi(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,yi(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! - * is-extendable - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var sa=I2,zr=function(t){return sa(t)||typeof t=="function"||Array.isArray(t)};/*! - * for-in - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var aa=function(t,n,r){for(var o in t)if(n.call(r,t[o],o,t)===!1)break},la=zr,ca=aa;function A2(e,t){for(var n=arguments.length,r=0;++r - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */var ha=function(e,t,n,r,o){if(!pa(e)||!t)return e;if(t=zt(t),n&&(t+="."+zt(n)),r&&(t+="."+zt(r)),o&&(t+="."+zt(o)),t in e)return e[t];for(var i=t.split("."),s=i.length,a=-1;e&&++a - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var Ca=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");bi(e)||(e={});for(var t=1;t - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var _a=va,Ea=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var r=_a({sep:"."},t),o=r.quotes||['"',"'","`"],i;r.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:r.brackets&&(i=r.brackets);var s=[],a=[],l=[""],c=r.sep,d=e.length,f=-1,h;function g(){if(i&&a.length)return i[a[a.length-1]]}for(;++f - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var Sa=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},_i=Sa,ja=function(t){_i(t)||(t={});for(var n=arguments.length,r=1;r - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var Oa=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! - * set-value - * - * Copyright (c) 2014-2015, 2017, Jon Schlinkert. - * Released under the MIT License. - */var Ra=Ea,Pa=ja,Ei=I2,$i=Oa,Ta=function(e,t,n){if(!$i(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=Ra(t,{sep:".",brackets:!0}).filter(Ha),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function Da(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function Na(e,t){return Object.entries(p7(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function Ba(e,t){const n=p.useRef();return(t?vt:St)(e,n.current)||(n.current=e),n.current}function V2(e,t){return p.useMemo(e,Ba(t,!0))}function za(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!0);return p.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),p.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const Za=e=>{const[t,n]=p.useState(e.getVisiblePaths());return p.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:St});return()=>r()},[e]),t};function Fa(e,t,n){return e.useStore(o=>{const i=z(z({},n),o.data);return Na(i,t)},St)}function D2(e=3){const t=p.useRef(null),n=p.useRef(null),[r,o]=p.useState(!1),i=p.useCallback(()=>o(!0),[]),s=p.useCallback(()=>o(!1),[]);return p.useLayoutEffect(()=>{if(r){const{bottom:a,top:l,left:c}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=a+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=c+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-l+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}X4([J4]);const Ua={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};S1.extend({color:()=>e=>v1(e).isValid()});const Wa=e=>S1().color().test(e);function N2(e,{format:t,hasAlpha:n,isString:r}){const o=Ua[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?C7(i,["a"]):i}const B2=(e,t)=>{const n=v1(e);if(!n.isValid())throw Error("Invalid color");return N2(n,t)},Ka=(e,t)=>N2(v1(e),z(z({},t),{},{isString:!0,format:"hex"})),Ga=({value:e})=>{const t=q4(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:B2(e,o),settings:o}};var Ya=Object.freeze({__proto__:null,schema:Wa,sanitize:B2,format:Ka,normalize:Ga});const qa=B("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Xa=B("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Ja=B("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function ji(e,t){return t!=="rgb"?v1(e).toRgb():e}function Qa({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=C1(),{format:s,hasAlpha:a}=n,{popinRef:l,wrapperRef:c,shown:d,show:f,hide:h}=D2(),g=p.useRef(0),[C,v]=p.useState(()=>ji(e,s)),x=a?i8:a8,m=()=>{v(ji(e,s)),f(),o()},w=()=>{h(),i(),window.clearTimeout(g.current)},y=()=>{g.current=window.setTimeout(w,500)};return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),b.createElement(b.Fragment,null,b.createElement(qa,{ref:l,active:d,onClick:()=>m(),style:{color:t}}),d&&b.createElement(Tr,null,b.createElement(l2,{onPointerUp:w}),b.createElement(Ja,{ref:c,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:_=>_.buttons===0&&y()},b.createElement(x,{color:C,onChange:r}))))}function el(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,n),b.createElement(Xa,null,b.createElement(Qa,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),b.createElement(Pr,{value:t,onChange:r,onUpdate:o})))}var tl=z({component:el},Ya);function nl(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(Ir,{value:t,settings:r,onUpdate:n}))}var rl=z({component:nl},g2(["x","y","z"]));const ol=B("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),il=B("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function sl({value:e,settings:t,onUpdate:n}){const r=p.useRef(),o=p.useRef(0),i=p.useRef(0),s=p.useRef(1),[a,l]=p.useState(!1),[c,d]=p.useState(!1),[f,h]=u2(),g=p.useRef(null),C=p.useRef(null);p.useLayoutEffect(()=>{if(a){const{top:j,left:D,width:T,height:P}=g.current.getBoundingClientRect();C.current.style.left=D+T/2+"px",C.current.style.top=j+P/2+"px"}},[a]);const{keys:[v,x],joystick:m}=t,w=m==="invertY"?1:-1,{[v]:{step:y},[x]:{step:_}}=t,E=te("sizes","joystickWidth"),$=te("sizes","joystickHeight"),k=parseFloat(E)*.8/2,S=parseFloat($)*.8/2,L=p.useCallback(()=>{r.current||(d(!0),o.current&&h({x:o.current*k}),i.current&&h({y:i.current*-S}),r.current=window.setInterval(()=>{n(j=>{const D=y*o.current*s.current,T=w*_*i.current*s.current;return Array.isArray(j)?{[v]:j[0]+D,[x]:j[1]+T}:{[v]:j[v]+D,[x]:j[x]+T}})},16))},[k,S,n,h,y,_,v,x,w]),O=p.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);p.useEffect(()=>{function j(D){s.current=G0(D)}return window.addEventListener("keydown",j),window.addEventListener("keyup",j),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",j),window.removeEventListener("keyup",j)}},[]);const M=Ot(({first:j,active:D,delta:[T,P],movement:[R,I]})=>{j&&l(!0);const Z=ge(R,-k,k),F=ge(I,-S,S);o.current=Math.abs(R)>Math.abs(Z)?Math.sign(R-Z):0,i.current=Math.abs(I)>Math.abs(F)?Math.sign(F-I):0;let e1=e[v],W=e[x];D?(o.current||(e1+=T*y*s.current,h({x:Z})),i.current||(W-=w*P*_*s.current,h({y:F})),o.current||i.current?L():O(),n({[v]:e1,[x]:W})):(l(!1),o.current=0,i.current=0,h({x:0,y:0}),O())});return b.createElement(ol,a1({ref:g},M()),a&&b.createElement(Tr,null,b.createElement(il,{ref:C,isOutOfBounds:c},b.createElement("div",null),b.createElement("span",{ref:f}))))}const al=B("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function ll(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(al,{withJoystick:!!r.joystick},r.joystick&&b.createElement(sl,{value:t,settings:r,onUpdate:n}),b.createElement(Ir,{value:t,settings:r,onUpdate:n})))}const cl=["joystick"],z2=g2(["x","y"]),ul=e=>{let{joystick:t=!0}=e,n=Y(e,cl);const{value:r,settings:o}=z2.normalize(n);return{value:r,settings:z(z({},o),{},{joystick:t})}};var dl=z(z({component:ll},z2),{},{normalize:ul});const fl=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},hl=(e,t)=>typeof t=="object"&&"image"in t,pl=({image:e})=>({value:e});var Cl=Object.freeze({__proto__:null,sanitize:fl,schema:hl,normalize:pl});const gl=B("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),ml=B("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),vl=B("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),xl=B("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),wl=B("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),yl=B("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function bl(){const{label:e,value:t,onUpdate:n,disabled:r}=C1(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:l}=D2(),c=p.useCallback(C=>{C.length&&n(C[0])},[n]),d=p.useCallback(C=>{C.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:h,isDragAccept:g}=H2({maxFiles:1,accept:"image/*",onDrop:c,disabled:r});return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(gl,null,b.createElement(vl,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:l,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&b.createElement(Tr,null,b.createElement(l2,{onPointerUp:l,style:{cursor:"pointer"}}),b.createElement(xl,{ref:i,style:{backgroundImage:`url(${t})`}})),b.createElement(ml,f({isDragAccept:g}),b.createElement("input",h()),b.createElement(wl,null,g?"drop image":"click or drop")),b.createElement(yl,{onClick:d,disabled:!t})))}var _l=z({component:bl},Cl);const Li=S1().number(),El=(e,t)=>S1().array().length(2).every.number().test(e)&&S1().schema({min:Li,max:Li}).test(t),ln=e=>({min:e[0],max:e[1]}),Z2=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?ln(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=z(z({},i),o);return[ge(Number(s),t,Math.max(t,a)),ge(Number(a),Math.min(n,s),n)]},$l=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=C2(ln(e),{min:r,max:r}),i=[t,n],s=z(z({},o),{},{bounds:i});return{value:Z2(ln(e),s,e),settings:s}};var kl=Object.freeze({__proto__:null,schema:El,format:ln,sanitize:Z2,normalize:$l});const Sl=["value","bounds","onDrag"],jl=["bounds"],Ll=B("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Ml(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=Y(e,Sl);const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(0),d=te("sizes","scrubberWidth"),f=Ot(({event:C,first:v,xy:[x],movement:[m],memo:w={}})=>{if(v){const{width:_,left:E}=s.current.getBoundingClientRect();c.current=_-parseFloat(d);const $=(C==null?void 0:C.target)===a.current||(C==null?void 0:C.target)===l.current;w.pos=nn((x-E)/_,n,r);const k=Math.abs(w.pos-t.min)-Math.abs(w.pos-t.max);w.key=k<0||k===0&&w.pos<=t.min?"min":"max",$&&(w.pos=t[w.key])}const y=w.pos+nn(m/c.current,0,r-n);return o({[w.key]:r4(y,i[w.key])}),w}),h=`calc(${tn(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,g=`calc(${1-tn(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return b.createElement(f2,a1({ref:s},f()),b.createElement(d2,null,b.createElement(h2,{style:{left:h,right:g}})),b.createElement(sr,{position:"left",ref:a,style:{left:h}}),b.createElement(sr,{position:"right",ref:l,style:{right:g}}))}function Ol(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1(),o=Y(r,jl);return b.createElement(b.Fragment,null,b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(Ll,null,b.createElement(Ml,a1({value:t},r,{onDrag:n})),b.createElement(Ir,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var Rl=z({component:Ol},kl);const Pl=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Tl=["type","value"],Hl=["onChange","transient","onEditStart","onEditEnd"],Il=function(){const t=na(ra(()=>({data:{}}))),n=Pl();this.storeId=h7(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),l=[];Object.entries(r).forEach(([d,f])=>{f.render&&a.some(h=>h.indexOf(d)===0)&&!f.render(this.get)&&l.push(d+".")});const c=[];return o.forEach(d=>{d in s&&s[d].__refCount>0&&l.every(f=>d.indexOf(f)===-1)&&(!s[d].render||s[d].render(this.get))&&c.push(d)}),c},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const l=a.data;return s.forEach(c=>{if(c in l){const d=l[c];d.__refCount--,d.__refCount===0&&d.type in B1&&delete l[c]}}),{data:l}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(l=>{const c=l.data;return Object.entries(s).forEach(([d,f])=>{let h=c[d];if(h){const{type:g,value:C}=f,v=Y(f,Tl);g!==h.type?ee(o1.INPUT_TYPE_OVERRIDE,g):((h.__refCount===0||a)&&Object.assign(h,v),h.__refCount++)}else c[d]=z(z({},f),{},{__refCount:1})}),{data:c}})},this.setValueAtPath=(s,a,l)=>{t.setState(c=>{const d=c.data;return Jo(d[s],a,s,this,l),{data:d}})},this.setSettingsAtPath=(s,a)=>{t.setState(l=>{const c=l.data;return c[s].settings=z(z({},c[s].settings),a),{data:c}})},this.disableInputAtPath=(s,a)=>{t.setState(l=>{const c=l.data;return c[s].disabled=a,{data:c}})},this.set=(s,a)=>{t.setState(l=>{const c=l.data;return Object.entries(s).forEach(([d,f])=>{try{Jo(c[d],f,void 0,void 0,a)}catch{}}),{data:c}})},this.getInput=s=>{try{return this.getData()[s]}catch{ee(o1.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,z(z({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,z(z({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const l=`onEditStart:${s}`;return n.on(l,a),()=>n.off(l,a)},this.subscribeToEditEnd=(s,a)=>{const l=`onEditEnd:${s}`;return n.on(l,a),()=>n.off(l,a)};const i=(s,a,l)=>{const c={};return Object.entries(s).forEach(([d,f])=>{if(d==="")return ee(o1.EMPTY_KEY);let h=Zr(a,d);if(f.type===B1.FOLDER){const g=i(f.schema,h,l);Object.assign(c,g),h in r||(r[h]=f.settings)}else if(d in l)ee(o1.DUPLICATE_KEYS,d,h,l[d].path);else{const g=y7(f,d,h,c);if(g){const{type:C,options:v,input:x}=g,{onChange:m,transient:w,onEditStart:y,onEditEnd:_}=v,E=Y(v,Hl);c[h]=z(z(z({type:C},E),x),{},{fromPanel:!0}),l[d]={path:h,onChange:m,transient:w,onEditStart:y,onEditEnd:_}}else ee(o1.UNKNOWN_INPUT,h,f)}}),c};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},F2=new Il,Al={collapsed:!1};function Vl(e,t){return{type:B1.FOLDER,schema:e,settings:z(z({},Al),t)}}const Mi=e=>"__levaInput"in e,Dl=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=Da(o);(!r||i.toLowerCase().indexOf(r)>-1)&&Va(n,s,{[i]:{__levaInput:!0,path:o}})}),n},Nl=["type","label","path","valueKey","value","settings","setValue","disabled"];function Bl(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:l}=e,c=Y(e,Nl);const{displayValue:d,onChange:f,onUpdate:h}=c2({type:t,value:i,settings:s,setValue:a}),g=$e[t].component;return g?b.createElement(Q0.Provider,{value:z({key:o,path:r,id:""+r,label:n,displayValue:d,value:i,onChange:f,onUpdate:h,settings:s,setValue:a,disabled:l},c)},b.createElement(B7,{disabled:l},b.createElement(g,null))):(ee(o1.NO_COMPONENT_FOR_TYPE,t,r),null)}const zl=B("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function Zl({onClick:e,settings:t,label:n}){const r=Mt();return b.createElement(A1,null,b.createElement(zl,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const Fl=B("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),Ul=B("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),Wl=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function Kl(e){const{label:t,opts:n}=Wl(e),r=Mt();return b.createElement(A1,{input:!!t},t&&b.createElement(Z1,null,t),b.createElement(Fl,null,Object.entries(n).map(([o,i])=>b.createElement(Ul,{key:o,onClick:()=>i(r.get)},o))))}const Gl=B("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),U2=100;function Yl(e,t){e.push(t),e.length>U2&&e.shift()}const ql=p.forwardRef(function({initialValue:e},t){const n=te("colors","highlight3"),r=te("colors","elevation2"),o=te("colors","highlight1"),[i,s]=p.useMemo(()=>[v1(o).alpha(.4).toRgbString(),v1(o).alpha(.1).toRgbString()],[o]),a=p.useRef([e]),l=p.useRef(e),c=p.useRef(e),d=p.useRef(),f=p.useCallback((C,v)=>{if(!C)return;const{width:x,height:m}=C,w=new Path2D,y=x/U2,_=m*.05;for(let k=0;k({frame:C=>{(l.current===void 0||Cc.current)&&(c.current=C),Yl(a.current,C),d.current=requestAnimationFrame(()=>f(h.current,g.current))}}),[h,g,f]),p.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),b.createElement(Gl,{ref:h})}),Oi=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),Xl=p.forwardRef(function({initialValue:e},t){const[n,r]=p.useState(Oi(e));return p.useImperativeHandle(t,()=>({frame:o=>r(Oi(o))}),[]),b.createElement("div",null,n)});function Ri(e){return typeof e=="function"?e():e.current}function Jl({label:e,objectOrFn:t,settings:n}){const r=p.useRef(),o=p.useRef(Ri(t));return p.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(Ri(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),b.createElement(A1,{input:!0},b.createElement(Z1,{align:"top"},e),n.graph?b.createElement(ql,{ref:r,initialValue:o.current}):b.createElement(Xl,{ref:r,initialValue:o.current}))}const Ql=["type","label","key"],ec={[B1.BUTTON]:Zl,[B1.BUTTON_GROUP]:Kl,[B1.MONITOR]:Jl},tc=b.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=J7(e);if(!t)return null;const{type:l,label:c,key:d}=t,f=Y(t,Ql);if(l in B1){const h=ec[l];return b.createElement(h,a1({label:c,path:e},f))}return l in $e?b.createElement(Bl,a1({key:i+e,type:l,label:c,storeId:i,path:e,valueKey:d,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(i7(o1.UNSUPPORTED_INPUT,l,e),null)});function nc({toggle:e,toggled:t,name:n}){return b.createElement(V7,{onClick:()=>e()},b.createElement(Hr,{toggled:t}),b.createElement("div",null,n))}const rc=({name:e,path:t,tree:n})=>{const r=Mt(),o=Zr(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,l]=p.useState(!i),c=p.useRef(null),d=te("colors","folderWidgetColor"),f=te("colors","folderTextColor");return p.useLayoutEffect(()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",s||d),c.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,d,f]),b.createElement(rn,{ref:c},b.createElement(nc,{name:e,toggled:a,toggle:()=>l(h=>!h)}),b.createElement(W2,{parent:o,tree:n,toggled:a}))},W2=b.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=za(i),l=Mt(),c=([f,h])=>{var g;return(Mi(h)?(g=l.getInput(h.path))===null||g===void 0?void 0:g.order:l.getFolderSettings(Zr(r,f)).order)||0},d=Object.entries(o).sort((f,h)=>c(f)-c(h));return b.createElement(or,{ref:s,isRoot:e,fill:t,flat:n},b.createElement(i2,{ref:a,isRoot:e,toggled:i},d.map(([f,h])=>Mi(h)?b.createElement(tc,{key:h.path,valueKey:h.valueKey,path:h.path}):b.createElement(rc,{key:f,name:f,path:r,tree:h}))))}),oc=B("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${a2}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),K2=40,cn=B("i",{$flexCenter:"",width:K2,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),ic=B("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),sc=B("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${cn}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),ac=B("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),lc=B("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:K2}}}}),cc=b.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=p.useState(""),i=p.useMemo(()=>K0(e,250),[e]),s=()=>{e(""),o("")},a=l=>{const c=l.currentTarget.value;t(!0),o(c)};return p.useEffect(()=>{i(r)},[r,i]),b.createElement(b.Fragment,null,b.createElement(ac,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:a}),b.createElement(cn,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function uc({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:l,from:c}){const[d,f]=p.useState(!1),h=p.useRef(null);p.useEffect(()=>{var C,v;d?(C=h.current)===null||C===void 0||C.focus():(v=h.current)===null||v===void 0||v.blur()},[d]);const g=Ot(({offset:[C,v],first:x,last:m})=>{t({x:C,y:v}),x&&n({x:C,y:v}),m&&r({x:C,y:v})},{filterTaps:!0,from:({offset:[C,v]})=>[(c==null?void 0:c.x)||C,(c==null?void 0:c.y)||v]});return p.useEffect(()=>{const C=v=>{v.key==="L"&&v.shiftKey&&v.metaKey&&f(x=>!x)};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[]),b.createElement(b.Fragment,null,b.createElement(ic,{mode:a?"drag":void 0},b.createElement(cn,{active:!i,onClick:()=>o()},b.createElement(Hr,{toggled:i,width:12,height:8})),b.createElement(lc,a1({},a?g():{},{drag:a,filterEnabled:l}),s===void 0&&a?b.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},b.createElement("circle",{cx:"2",cy:"2",r:"2"}),b.createElement("circle",{cx:"14",cy:"2",r:"2"}),b.createElement("circle",{cx:"26",cy:"2",r:"2"}),b.createElement("circle",{cx:"2",cy:"12",r:"2"}),b.createElement("circle",{cx:"14",cy:"12",r:"2"}),b.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),l&&b.createElement(cn,{active:d,onClick:()=>f(C=>!C)},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),b.createElement(sc,{toggled:d},b.createElement(cc,{ref:h,setFilter:e,toggle:o})))}const dc=["store","hidden","theme","collapsed"];function fc(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=Y(e,dc);const s=V2(()=>R7(r),[r]),[a,l]=p.useState(!o),c=typeof o=="object"?!o.collapsed:a,d=p.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:l,[o]);return!t||n?null:b.createElement(Rr.Provider,{value:s},b.createElement(hc,a1({store:t},i,{toggled:c,setToggle:d,rootClass:s.className})))}const hc=b.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:l,setToggle:c})=>{var d,f;const h=Za(e),[g,C]=p.useState(""),v=p.useMemo(()=>Dl(h,g),[h,g]),[x,m]=u2(),w=o||h.length>0,y=typeof s=="object"&&s.title||void 0,_=typeof s=="object"&&(d=s.drag)!==null&&d!==void 0?d:!0,E=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,$=typeof s=="object"&&s.position||void 0,k=typeof s=="object"&&s.onDrag||void 0,S=typeof s=="object"&&s.onDragStart||void 0,L=typeof s=="object"&&s.onDragEnd||void 0;return b.useEffect(()=>{m({x:$==null?void 0:$.x,y:$==null?void 0:$.y})},[$,m]),O7(),b.createElement(t2.Provider,{value:{hideCopyButton:a}},b.createElement(oc,{ref:x,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:w?"block":"none"}},s&&b.createElement(uc,{onDrag:O=>{m(O),k==null||k(O)},onDragStart:O=>S==null?void 0:S(O),onDragEnd:O=>L==null?void 0:L(O),setFilter:C,toggle:O=>c(M=>O??!M),toggled:l,title:y,drag:_,filterEnabled:E,from:$}),w&&b.createElement(e2.Provider,{value:e},b.createElement(W2,{isRoot:!0,fill:n,flat:r,tree:v,toggled:l}))))}),pc=["isRoot"];let un=!1,we=null;function Cc(e){let{isRoot:t=!1}=e,n=Y(e,pc);return p.useEffect(()=>(un=!0,!t&&we&&(we.remove(),we=null),()=>{t||(un=!1)}),[t]),b.createElement(fc,a1({store:F2},n))}function gc(e){p.useEffect(()=>{e&&!un&&(we||(we=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(we),_7(b.createElement(Cc,{isRoot:!0}),we))),un=!0)},[e])}function mc(e,t,n,r,o){let i,s,a,l,c;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?c=n:n&&("store"in n?(l=n,c=r):(a=n,Array.isArray(r)?c=r:(l=r,c=o)))):(i=e,Array.isArray(t)?c=t:(l=t,c=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:l,deps:c||[]}}function kh(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:l,deps:c}=mc(e,t,n,r,o),d=typeof s=="function",f=p.useRef(!1),h=p.useRef(!0),g=V2(()=>{f.current=!0;const M=typeof s=="function"?s():s;return i?{[i]:Vl(M,a)}:M},c),C=!(l!=null&&l.store);gc(C);const[v]=p.useState(()=>(l==null?void 0:l.store)||F2),[x,m]=p.useMemo(()=>v.getDataFromSchema(g),[v,g]),[w,y,_,E,$]=p.useMemo(()=>{const M=[],j=[],D={},T={},P={};return Object.values(m).forEach(({path:R,onChange:I,onEditStart:Z,onEditEnd:F,transient:e1})=>{M.push(R),I?(D[R]=I,e1||j.push(R)):j.push(R),Z&&(T[R]=Z),F&&(P[R]=F)}),[M,j,D,T,P]},[m]),k=p.useMemo(()=>v.orderPaths(w),[w,v]),S=Fa(v,y,x),L=p.useCallback(M=>{const j=Object.entries(M).reduce((D,[T,P])=>Object.assign(D,{[m[T].path]:P}),{});v.set(j,!1)},[v,m]),O=p.useCallback(M=>v.get(m[M].path),[v,m]);return p.useEffect(()=>{const M=!h.current&&f.current;return v.addData(x,M),h.current=!1,f.current=!1,()=>v.disposePaths(k)},[v,k,x]),p.useEffect(()=>{const M=[];return Object.entries(_).forEach(([j,D])=>{D(v.get(j),j,z({initial:!0,get:v.get},v.getInput(j)));const T=v.useStore.subscribe(P=>{const R=P.data[j];return[R.disabled?void 0:R.value,R]},([P,R])=>D(P,j,z({initial:!1,get:v.get},R)),{equalityFn:St});M.push(T)}),()=>M.forEach(j=>j())},[v,_]),p.useEffect(()=>{const M=[];return Object.entries(E).forEach(([j,D])=>M.push(v.subscribeToEditStart(j,D))),Object.entries($).forEach(([j,D])=>M.push(v.subscribeToEditEnd(j,D))),()=>M.forEach(j=>j())},[E,$,v]),d?[S,L,O]:S}ce(z1.SELECT,C4);ce(z1.IMAGE,_l);ce(z1.NUMBER,i4);ce(z1.COLOR,tl);ce(z1.STRING,E4);ce(z1.BOOLEAN,O4);ce(z1.INTERVAL,Rl);ce(z1.VECTOR3D,rl);ce(z1.VECTOR2D,dl);function vc(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return vc(t.current,r)?t.current:t.current=r}}const yc=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"bubble_chart",children:[u.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_42)",children:u.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),bc=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"communities",children:[u.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_39)",children:u.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),_c=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"grain",children:[u.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_45)",children:u.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),Ec=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"public",children:[u.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_36)",children:u.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function Pi(e,t,n){var r,o=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function i(){var s,a=r.length,l,c=0,d=0,f=0;for(s=0;s=(l=(s+a)/2))?s=l:a=l,r=o,!(o=o[f=+d]))return r[f]=i,e;if(c=+e._x.call(null,o.data),t===c)return i.next=o,r?r[f]=i:e._root=i,e;do r=r?r[f]=new Array(2):e._root=new Array(2),(d=t>=(l=(s+a)/2))?s=l:a=l;while((f=+d)==(h=+(c>=l)));return r[h]=o,r[f]=i,e}function kc(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let r=1/0,o=-1/0;for(let i=0,s;io&&(o=s));if(r>o)return this;this.cover(r).cover(o);for(let i=0;ie||e>=n;)switch(s=+(es||(i=c.x1)=f))&&(c=a[a.length-1],a[a.length-1]=a[a.length-1-d],a[a.length-1-d]=c)}else{var h=Math.abs(e-+this._x.call(null,l.data));h=(c=(s+a)/2))?s=c:a=c,t=n,!(n=n[f=+d]))return this;if(!n.length)break;t[f+1&1]&&(r=t,h=f)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[f]=i:delete t[f],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(r?r[h]=n:this._root=n),this):(this._root=i,this)}function Rc(e){for(var t=0,n=e.length;t=(f=(a+c)/2))?a=f:c=f,(x=n>=(h=(l+d)/2))?l=h:d=h,o=i,!(i=i[m=x<<1|v]))return o[m]=s,e;if(g=+e._x.call(null,i.data),C=+e._y.call(null,i.data),t===g&&n===C)return s.next=i,o?o[m]=s:e._root=s,e;do o=o?o[m]=new Array(4):e._root=new Array(4),(v=t>=(f=(a+c)/2))?a=f:c=f,(x=n>=(h=(l+d)/2))?l=h:d=h;while((m=x<<1|v)===(w=(C>=h)<<1|g>=f));return o[w]=i,o[m]=s,e}function Nc(e){var t,n,r=e.length,o,i,s=new Array(r),a=new Array(r),l=1/0,c=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=o),if&&(f=i));if(l>d||c>f)return this;for(this.cover(l,c).cover(d,f),n=0;ne||e>=o||r>t||t>=i;)switch(c=(td||(a=C.y0)>f||(l=C.x1)=m)<<1|e>=x)&&(C=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=C)}else{var w=e-+this._x.call(null,g.data),y=t-+this._y.call(null,g.data),_=w*w+y*y;if(_=(h=(s+l)/2))?s=h:l=h,(v=f>=(g=(a+c)/2))?a=g:c=g,t=n,!(n=n[x=v<<1|C]))return this;if(!n.length)break;(t[x+1&3]||t[x+2&3]||t[x+3&3])&&(r=t,m=x)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[x]=i:delete t[x],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[m]=n:this._root=n),this):(this._root=i,this)}function Wc(e){for(var t=0,n=e.length;t=(C=(l+f)/2))?l=C:f=C,(E=n>=(v=(c+h)/2))?c=v:h=v,($=r>=(x=(d+g)/2))?d=x:g=x,i=s,!(s=s[k=$<<2|E<<1|_]))return i[k]=a,e;if(m=+e._x.call(null,s.data),w=+e._y.call(null,s.data),y=+e._z.call(null,s.data),t===m&&n===w&&r===y)return a.next=s,i?i[k]=a:e._root=a,e;do i=i?i[k]=new Array(8):e._root=new Array(8),(_=t>=(C=(l+f)/2))?l=C:f=C,(E=n>=(v=(c+h)/2))?c=v:h=v,($=r>=(x=(d+g)/2))?d=x:g=x;while((k=$<<2|E<<1|_)===(S=(y>=x)<<2|(w>=v)<<1|m>=C));return i[S]=s,i[k]=a,e}function nu(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),r=new Float64Array(t),o=new Float64Array(t);let i=1/0,s=1/0,a=1/0,l=-1/0,c=-1/0,d=-1/0;for(let f=0,h,g,C,v;fl&&(l=g),Cc&&(c=C),vd&&(d=v));if(i>l||s>c||a>d)return this;this.cover(i,s,a).cover(l,c,d);for(let f=0;fe||e>=s||o>t||t>=a||i>n||n>=l;)switch(h=(nC||(c=y.y0)>v||(d=y.z0)>x||(f=y.x1)=k)<<2|(t>=$)<<1|e>=E)&&(y=m[m.length-1],m[m.length-1]=m[m.length-1-_],m[m.length-1-_]=y)}else{var S=e-+this._x.call(null,w.data),L=t-+this._y.call(null,w.data),O=n-+this._z.call(null,w.data),M=S*S+L*L+O*O;if(M=(v=(s+c)/2))?s=v:c=v,(y=g>=(x=(a+d)/2))?a=x:d=x,(_=C>=(m=(l+f)/2))?l=m:f=m,t=n,!(n=n[E=_<<2|y<<1|w]))return this;if(!n.length)break;(t[E+1&7]||t[E+2&7]||t[E+3&7]||t[E+4&7]||t[E+5&7]||t[E+6&7]||t[E+7&7])&&(r=t,$=E)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[E]=i:delete t[E],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[$]=n:this._root=n),this):(this._root=i,this)}function lu(e){for(var t=0,n=e.length;t1&&(v=g.y+g.vy),n>2&&(x=g.z+g.vz),h.visit(_);function _(E,$,k,S,L,O,M){var j=[$,k,S,L,O,M],D=j[0],T=j[1],P=j[2],R=j[n],I=j[n+1],Z=j[n+2],F=E.data,e1=E.r,W=m+e1;if(F){if(F.index>g.index){var X=C-F.x-F.vx,u1=n>1?v-F.y-F.vy:0,l1=n>2?x-F.z-F.vz:0,K=X*X+u1*u1+l1*l1;K1&&u1===0&&(u1=T1(o),K+=u1*u1),n>2&&l1===0&&(l1=T1(o),K+=l1*l1),K=(W-(K=Math.sqrt(K)))/K*i,g.vx+=(X*=K)*(W=(e1*=e1)/(w+e1)),n>1&&(g.vy+=(u1*=K)*W),n>2&&(g.vz+=(l1*=K)*W),F.vx-=X*(W=1-W),n>1&&(F.vy-=u1*W),n>2&&(F.vz-=l1*W))}return}return D>C+W||R1&&(T>v+W||I2&&(P>x+W||Zd.r&&(d.r=d[f].r)}function c(){if(t){var d,f=t.length,h;for(r=new Array(f),d=0;dtypeof h=="function")||Math.random,n=f.find(h=>[1,2,3].includes(h))||2,c()},a.iterations=function(d){return arguments.length?(s=+d,a):s},a.strength=function(d){return arguments.length?(i=+d,a):i},a.radius=function(d){return arguments.length?(e=typeof d=="function"?d:y1(+d),c(),a):e},a}function wu(e){return e.index}function Vi(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function yu(e){var t=wu,n=h,r,o=y1(30),i,s,a,l,c,d,f=1;e==null&&(e=[]);function h(m){return 1/Math.min(l[m.source.index],l[m.target.index])}function g(m){for(var w=0,y=e.length;w1&&(L=k.y+k.vy-$.y-$.vy||T1(d)),a>2&&(O=k.z+k.vz-$.z-$.vz||T1(d)),M=Math.sqrt(S*S+L*L+O*O),M=(M-i[_])/M*m*r[_],S*=M,L*=M,O*=M,k.vx-=S*(j=c[_]),a>1&&(k.vy-=L*j),a>2&&(k.vz-=O*j),$.vx+=S*(j=1-j),a>1&&($.vy+=L*j),a>2&&($.vz+=O*j)}function C(){if(s){var m,w=s.length,y=e.length,_=new Map(s.map(($,k)=>[t($,k,s),$])),E;for(m=0,l=new Array(w);mtypeof y=="function")||Math.random,a=w.find(y=>[1,2,3].includes(y))||2,C()},g.links=function(m){return arguments.length?(e=m,C(),g):e},g.id=function(m){return arguments.length?(t=m,g):t},g.iterations=function(m){return arguments.length?(f=+m,g):f},g.strength=function(m){return arguments.length?(n=typeof m=="function"?m:y1(+m),v(),g):n},g.distance=function(m){return arguments.length?(o=typeof m=="function"?m:y1(+m),x(),g):o},g}var bu={value:()=>{}};function X2(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ut.prototype=X2.prototype={constructor:Ut,on:function(e,t){var n=this._,r=_u(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i0)for(var n=new Array(o),r=0,o,i;r=0&&e._call.call(void 0,t),e=e._next;--We}function Ni(){ke=(fn=yt.now())+bn,We=ct=0;try{ku()}finally{We=0,ju(),ke=0}}function Su(){var e=yt.now(),t=e-fn;t>J2&&(bn-=t,fn=e)}function ju(){for(var e,t=dn,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:dn=n);ut=e,wr(r)}function wr(e){if(!We){ct&&(ct=clearTimeout(ct));var t=e-ke;t>24?(e<1/0&&(ct=setTimeout(Ni,e-yt.now()-bn)),it&&(it=clearInterval(it))):(it||(fn=yt.now(),it=setInterval(Su,J2)),We=1,Q2(Ni))}}const Lu=1664525,Mu=1013904223,Bi=4294967296;function Ou(){let e=1;return()=>(e=(Lu*e+Mu)%Bi)/Bi}var zi=3;function Un(e){return e.x}function Zi(e){return e.y}function Ru(e){return e.z}var Pu=10,Tu=Math.PI*(3-Math.sqrt(5)),Hu=Math.PI*20/(9+Math.sqrt(221));function Iu(e,t){t=t||2;var n=Math.min(zi,Math.max(1,Math.round(t))),r,o=1,i=.001,s=1-Math.pow(i,1/300),a=0,l=.6,c=new Map,d=t3(g),f=X2("tick","end"),h=Ou();e==null&&(e=[]);function g(){C(),f.call("tick",r),o1&&(_.fy==null?_.y+=_.vy*=l:(_.y=_.fy,_.vy=0)),n>2&&(_.fz==null?_.z+=_.vz*=l:(_.z=_.fz,_.vz=0));return r}function v(){for(var m=0,w=e.length,y;m1&&isNaN(y.y)||n>2&&isNaN(y.z)){var _=Pu*(n>2?Math.cbrt(.5+m):n>1?Math.sqrt(.5+m):m),E=m*Tu,$=m*Hu;n===1?y.x=_:n===2?(y.x=_*Math.cos(E),y.y=_*Math.sin(E)):(y.x=_*Math.sin(E)*Math.cos($),y.y=_*Math.cos(E),y.z=_*Math.sin(E)*Math.sin($))}(isNaN(y.vx)||n>1&&isNaN(y.vy)||n>2&&isNaN(y.vz))&&(y.vx=0,n>1&&(y.vy=0),n>2&&(y.vz=0))}}function x(m){return m.initialize&&m.initialize(e,h,n),m}return v(),r={tick:C,restart:function(){return d.restart(g),r},stop:function(){return d.stop(),r},numDimensions:function(m){return arguments.length?(n=Math.min(zi,Math.max(1,Math.round(m))),c.forEach(x),r):n},nodes:function(m){return arguments.length?(e=m,v(),c.forEach(x),r):e},alpha:function(m){return arguments.length?(o=+m,r):o},alphaMin:function(m){return arguments.length?(i=+m,r):i},alphaDecay:function(m){return arguments.length?(s=+m,r):+s},alphaTarget:function(m){return arguments.length?(a=+m,r):a},velocityDecay:function(m){return arguments.length?(l=1-m,r):1-l},randomSource:function(m){return arguments.length?(h=m,c.forEach(x),r):h},force:function(m,w){return arguments.length>1?(w==null?c.delete(m):c.set(m,x(w)),r):c.get(m)},find:function(){var m=Array.prototype.slice.call(arguments),w=m.shift()||0,y=(n>1?m.shift():null)||0,_=(n>2?m.shift():null)||0,E=m.shift()||1/0,$=0,k=e.length,S,L,O,M,j,D;for(E*=E,$=0;$1?(f.on(m,w),r):f.on(m)}}}function Au(){var e,t,n,r,o,i=y1(-30),s,a=1,l=1/0,c=.81;function d(C){var v,x=e.length,m=(t===1?Fr(e,Un):t===2?Wr(e,Un,Zi):t===3?Gr(e,Un,Zi,Ru):null).visitAfter(h);for(o=C,v=0;v1&&(C.y=_/w),t>2&&(C.z=E/w)}else{x=C,x.x=x.data.x,t>1&&(x.y=x.data.y),t>2&&(x.z=x.data.z);do v+=s[x.data.index];while(x=x.next)}C.value=v}function g(C,v,x,m,w){if(!C.value)return!0;var y=[x,m,w][t-1],_=C.x-n.x,E=t>1?C.y-n.y:0,$=t>2?C.z-n.z:0,k=y-v,S=_*_+E*E+$*$;if(k*k/c1&&E===0&&(E=T1(r),S+=E*E),t>2&&$===0&&($=T1(r),S+=$*$),S1&&(n.vy+=E*C.value*o/S),t>2&&(n.vz+=$*C.value*o/S)),!0;if(C.length||S>=l)return;(C.data!==n||C.next)&&(_===0&&(_=T1(r),S+=_*_),t>1&&E===0&&(E=T1(r),S+=E*E),t>2&&$===0&&($=T1(r),S+=$*$),S1&&(n.vy+=E*k),t>2&&(n.vz+=$*k));while(C=C.next)}return d.initialize=function(C,...v){e=C,r=v.find(x=>typeof x=="function")||Math.random,t=v.find(x=>[1,2,3].includes(x))||2,f()},d.strength=function(C){return arguments.length?(i=typeof C=="function"?C:y1(+C),f(),d):i},d.distanceMin=function(C){return arguments.length?(a=C*C,d):Math.sqrt(a)},d.distanceMax=function(C){return arguments.length?(l=C*C,d):Math.sqrt(l)},d.theta=function(C){return arguments.length?(c=C*C,d):Math.sqrt(c)},d}function Fi(e,t,n,r){var o,i,s=y1(.1),a,l;typeof e!="function"&&(e=y1(+e)),t==null&&(t=0),n==null&&(n=0),r==null&&(r=0);function c(f){for(var h=0,g=o.length;h1&&(C.vy+=x*y),i>2&&(C.vz+=m*y)}}function d(){if(o){var f,h=o.length;for(a=new Array(h),l=new Array(h),f=0;f[1,2,3].includes(g))||2,d()},c.strength=function(f){return arguments.length?(s=typeof f=="function"?f:y1(+f),d(),c):s},c.radius=function(f){return arguments.length?(e=typeof f=="function"?f:y1(+f),d(),c):e},c.x=function(f){return arguments.length?(t=+f,c):t},c.y=function(f){return arguments.length?(n=+f,c):n},c.z=function(f){return arguments.length?(r=+f,c):r},c}function Vu(e){var t=y1(.1),n,r,o;typeof e!="function"&&(e=y1(e==null?0:+e));function i(a){for(var l=0,c=n.length,d;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},Nu={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:"sphere",hoveredNode:null,selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:Du,isHovering:!1},Me=Gi()((e,t)=>({...Nu,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setGraphStyle:n=>e({graphStyle:"sphere"}),setHoveredNode:n=>{e({hoveredNode:n})},setActiveEdge:n=>{e({activeEdge:n})},setSelectedNode:n=>{const{selectedNode:r,simulation:o}=t();if((r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)){const i=o.nodes().find(s=>s.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:i,disableCameraRotation:!0})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const r=t().nearbyNodeIds;(n.length!==r.length||n[0]!==r[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,r,o)=>{const i=structuredClone(n),s=structuredClone(r),{simulation:a,simulationHelpers:l}=t();a.stop();const c=o?[]:a.nodes().map(f=>({...f,fx:f.x,fy:f.y,fz:f.z})),d=o?[]:a.force("link").links();c.push(...i),d.push(...s);try{a.nodes(c);const f=d.filter(h=>{const{target:g,source:C}=h,v=a.nodes(),x=(g==null?void 0:g.ref_id)||g,m=(C==null?void 0:C.ref_id)||C;return v.some(w=>w.ref_id===x)&&v.some(w=>w.ref_id===m)});a.force("link").links([]).links(f),l.simulationRestart()}catch(f){console.error(f)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...Wn}))).force("y",null).force("radial",Fi(200,0,0,0).strength(.1)).force("center",Pi().strength(1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...Wn}))).force("y",null).force("charge",Au().strength(-20)).force("center",Pi().strength(1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:r}=pn.getState();n.stop().nodes(n.nodes().map(o=>({...o,...Wn}))).force("radial",Fi(200,0,0,0).strength(.1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1)).force("y",Vu().y(o=>{const i=r.indexOf(o.node_type),s=Math.floor(i/2)*400;return i%2===0?s:-s}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:r}=t();n==="split"&&r.addSplitForce(),n==="sphere"&&r.addRadialForce(),n==="force"&&r.addDefaultForce(),r.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,r)=>{const o=structuredClone(n),i=structuredClone(r),s=Iu([]).numDimensions(3).stop().nodes(o).force("link",yu().links(i).id(a=>a.ref_id));e({simulation:s})}})),n3=()=>Me(e=>e.selectedNode),Sh=()=>Me(e=>e.hoveredNode),Bu=()=>Me(e=>e.setSelectedNode),jh=()=>{const e=Me(o=>o.selectedNode);if(!e)return[];const{dataInitial:t}=pn.getState();return((t==null?void 0:t.links)||[]).reduce((o,i)=>(i.source===(e==null?void 0:e.ref_id)&&o.push(i.target),i.target===(e==null?void 0:e.ref_id)&&o.push(i.source),o),[])},zu=()=>(Me(wc(e=>[e.graphStyle,e.setGraphStyle])),null);c1(n1).attrs({direction:"row",align:"center",justify:"space-between"})` - padding: 6px 6px 6px 11px; - background: ${s1.BG1}; - border-radius: 200px; - .icon { - color: ${s1.GRAY6}; - font-size: 20px; - cursor: pointer; - - &:hover { - color: ${s1.GRAY3}; - } - - &:active { - color: ${s1.white}; - } - - &.active { - color: ${s1.white}; - } - } - - .icon + .icon { - margin-left: 20px; - } -`;const r3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"center",children:[u.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),u.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),Zu=()=>{const[e,t]=Me(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return u.jsx(Fu,{href:"",onClick:()=>t(!e),size:"medium",startIcon:u.jsx(r3,{})})},Fu=c1(Yi)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - filter: brightness(0.65); - } - } -`,o3=c1.div` - position: relative; - display: inline-flex; - align-items: center; -`,Uu=c1.div` - visibility: hidden; - width: auto; - background-color: ${({backgroundColor:e})=>e||"white"}; - color: ${({color:e})=>e||"black"}; - text-align: ${({textAlign:e})=>e||"center"}; - min-width: ${({minWidth:e})=>e||"auto"}; - border-radius: ${({borderRadius:e})=>e||"4px"}; - padding: ${({padding:e})=>e||"5px 8px"}; - position: absolute; - z-index: 1; - ${({position:e})=>{switch(e){case"top":return"bottom: 100%; left: 50%; transform: translateX(-50%);";case"left":return"right: calc(100% + 6px); top: 50%; transform: translateY(-50%);";default:return"top: 100%; left: 50%; transform: translateX(-50%);"}}} - margin-top: ${({margin:e})=>e||"0px"}; - opacity: 0; - transition: opacity 0.3s; - white-space: ${({whiteSpace:e})=>e||"nowrap"}; - overflow: hidden; - text-overflow: ellipsis; - font-size: ${({fontSize:e})=>e||"12px"}; - font-weight: ${({fontWeight:e})=>e||"600"}; - - ${o3}:hover & { - visibility: visible; - opacity: 1; - } -`,Wu=({content:e,children:t,margin:n,backgroundColor:r,color:o,padding:i,fontSize:s,fontWeight:a,borderRadius:l,minWidth:c,whiteSpace:d,position:f,textAlign:h})=>u.jsxs(o3,{children:[t,u.jsx(Uu,{backgroundColor:r,borderRadius:l,color:o,fontSize:s,fontWeight:a,margin:n,minWidth:c,padding:i,position:f,textAlign:h,whiteSpace:d,children:e})]}),Ku=()=>{const{resetData:e}=pn(t=>t);return u.jsx(Wu,{content:"Clear Graph",fontSize:"13px",position:"left",children:u.jsx(Gu,{href:"",onClick:()=>e(),size:"medium",startIcon:u.jsx(yr,{})})})},Gu=c1(Yi)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - color: #fff; - filter: brightness(0.65); - } - } -`,i3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Pause Normal",children:u.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),s3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Play & Pause",children:u.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),Yu={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},a3=c1.div` - background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${Yu[t]||"generic"}_placeholder_img.png')`}; - background-size: cover; - background-position: center; - background-repeat: no-repeat; - width: ${({size:e=45,width:t})=>t||e}px; - height: ${({size:e=45,height:t})=>t||e}px; - border-radius: ${({rounded:e})=>e?"50%":"2px"}; -`,st={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playerRef:null},qu=Gi()(f3((e,t)=>({...st,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setPlayerRef:n=>e({playerRef:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({...st});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({...st,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:st.duration,hasError:st.hasError})}))),Xu=()=>{var _,E,$,k,S;const e=p.useRef(null),[t,n]=p.useState(0),r=n3(),o=Bu(),[i,s]=qi(L=>[L.sidebarIsOpen,L.setSidebarOpen]),[a,l,c,d,f,h]=qu(L=>[L.isPlaying,L.setIsPlaying,L.playingTime,L.playingNode,L.miniPlayerIsVisible,L.setMiniPlayerIsVisible]),[g,C]=(_=d==null?void 0:d.properties)!=null&&_.timestamp?d.properties.timestamp.split("-").map(L=>x3(L)):[0,0],v=(c-g)/(C-g)*100;p.useEffect(()=>{var M,j;const L=((M=e.current)==null?void 0:M.offsetWidth)||0,O=((j=e.current)==null?void 0:j.scrollWidth)||0;n(O-L)},[]);const x=L=>{h(!1),L.stopPropagation()},m=()=>{o(d),s(!0)},w=i&&(r==null?void 0:r.ref_id)!==(d==null?void 0:d.ref_id)||d&&!i,y=((E=window.location)==null?void 0:E.hostname)==="graphmindset.sphinx.chat";return f&&d&&w&&!y?u.jsxs(Ju,{onClick:m,children:[u.jsxs(Qu,{children:[u.jsx(a3,{src:(($=d==null?void 0:d.properties)==null?void 0:$.image_url)||"",type:d.node_type}),u.jsxs(ed,{children:[u.jsxs(id,{ref:e,children:[u.jsx(od,{className:"title",scrollValue:t,children:(k=d==null?void 0:d.properties)==null?void 0:k.episode_title}),u.jsx("div",{className:"subtitle",children:(S=d==null?void 0:d.properties)==null?void 0:S.show_title})]}),u.jsx(nd,{"data-testid":"play-pause-button",onClick:L=>{l(!a),L.stopPropagation()},size:"small",children:a?u.jsx(i3,{"data-testid":"pause-icon"}):u.jsx(s3,{"data-testid":"play-icon"})})]}),u.jsx(td,{onClick:L=>x(L),children:u.jsx(yr,{})})]}),u.jsx(rd,{value:v,variant:"determinate"})]}):null},Ju=c1(n1).attrs({direction:"column",align:"stretch",justify:"space-between"})` - padding: 8px; - background: ${s1.BG1}; - border-radius: 6px; - width: 320px; - height: 72px; - margin-top: 16px; - cursor: pointer; - z-index: 0; -`,Qu=c1(n1).attrs({direction:"row",align:"center",justify:"flex-start"})``,ed=c1(n1).attrs({direction:"row",align:"center",justify:"space-between"})` - flex: 1; - color: ${s1.white}; - margin-left: 11px; - - .title { - font-size: 13px; - margin-bottom: 2px; - font-weight: 500; - } - - .subtitle { - font-size: 11px; - color: ${s1.GRAY6}; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } -`,td=c1(n0)` - padding: 8px; - color: ${s1.GRAY6}; - z-index: 100000; -`,nd=c1(n0)` - && { - font-size: 36px; - padding: 2px; - margin-left: 8px; - overflow: hidden; - z-index: 100000; - } -`,rd=c1(h3)` - && { - flex-shrink: 0; - height: 2px; - background-color: ${s1.white}; - color: blue; - - .MuiLinearProgress-bar { - background: rgb(65, 90, 127); - } - } -`,od=c1.div` - white-space: nowrap; - overflow: hidden; - width: max-content; - animation: scrollText 12s linear infinite; - - @keyframes scrollText { - 0%, - 15% { - transform: translateX(0); - } - - 60%, - 75% { - transform: translateX(${e=>-e.scrollValue}px); - } - - 100% { - transform: translateX(0); - } - } - color: #fff; -`,id=c1(n1)` - overflow: hidden; - flex: 1; -`,sd=()=>{const e=n3(),t=pn(o=>o.isFetching),n=qi(o=>o.universeQuestionIsOpen),{isAdmin:r}=p3(o=>o);return u.jsxs(ad,{align:"flex-end",id:"actions-toolbar",children:[u.jsxs(ld,{children:[!t&&!n&&r&&u.jsx(Ku,{}),!t&&!n&&u.jsx(Zu,{})]}),u.jsx(n1,{align:"center",direction:"row",mt:16,children:!t&&!n&&u.jsx(zu,{})}),u.jsx(Xu,{},e==null?void 0:e.ref_id)]})},ad=c1(n1)` - position: absolute; - right: 20px; - bottom: 20px; - pointer-events: all; -`,ld=c1.div` - display: flex; - flex-direction: column; - gap: 4px; -`,cd=({type:e})=>{var a,l;let t;const[n]=C3(c=>[c.normalizedSchemasByType]),r=e,o=(a=n[e])==null?void 0:a.primary_color,i=(l=n[e])==null?void 0:l.icon,s=i?`svg-icons/${i}.svg`:null;switch(r){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:s??"video_badge.svg",color:o??s1.CLIP};break;case"show":t={iconStart:s??"show_badge.svg",color:o??s1.SHOW};break;case"tweet":t={iconStart:s??"twitter_badge.svg",color:o??s1.TWEET};break;case"episode":t={iconStart:s??"audio_badge.svg",color:o??s1.EPISODE};break;case"document":t={iconStart:s??"notes_badge.svg",color:o??s1.TEXT};break;case(i??"organization"):t={iconStart:s??"organization_badge.svg",color:o??s1.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:s??"person_badge.svg",color:o??s1.PERSON};break;case"event":t={iconStart:s??"event_badge.svg",color:o??s1.EVENT};break;default:t={iconStart:s??"thing_badge.svg",color:o??s1.THING};break}return u.jsx(ud,{...t,label:e})},ud=({iconStart:e,color:t,label:n})=>u.jsxs(dd,{color:t,children:[u.jsx("img",{alt:n,className:"badge__img",src:e}),u.jsx("div",{className:"badge__label",children:n})]}),dd=c1(n1).attrs({direction:"row"})` - cursor: pointer; - background: ${({color:e})=>e}; - border-radius: 3px; - overflow: hidden; - justify-content: center; - align-items: center; - padding: 0 4px; - gap: 2px; - - .badge__img { - width: 10px; - height: 10px; - object-fit: contain; - } - - .badge__label { - color: ${s1.white}; - font-family: Barlow; - font-size: 8px; - font-style: normal; - font-weight: 800; - line-height: 14px; - text-transform: uppercase; - line-height: 14px; - letter-spacing: 0.48px; - padding: 0 4px; - } -`,fd=({twitterHandle:e})=>u.jsx(u.Fragment,{children:u.jsx(n1,{direction:"row",children:u.jsx(n1,{align:"flex-start",pb:12,children:u.jsxs(R1,{children:["Tweet by @",e]})})})}),hd=c1(n1)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:s1.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:s1.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),pd=c1(n1)` - width: 22.5%; -`,Cd=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:o,label:i,text:s,type:a,name:l,twitter_handle:c,image_url:d,guests:f}=e,h=f&&f.length>0,g=h&&typeof f[0]=="object";let C=d;return t==="guest"&&!d&&(C="person_placeholder2.png"),a==="twitter_space"&&(C="twitter_placeholder.png"),t==="topic"?null:u.jsx(hd,{borderRadius:8,px:24,py:16,children:t==="tweet"?u.jsx(fd,{twitterHandle:c}):u.jsxs(u.Fragment,{children:[u.jsxs(n1,{direction:"row",children:[C&&u.jsx(pd,{}),u.jsx(n1,{align:"flex-start",pb:12,children:u.jsx(cd,{type:t})})]}),u.jsxs(n1,{direction:"row",children:[C&&u.jsx(n1,{pr:12,children:u.jsx(a3,{src:C,type:"person"})}),u.jsxs("div",{children:[(l||i)&&u.jsx(n1,{direction:"column",children:l?u.jsx(R1,{children:l}):u.jsxs(u.Fragment,{children:[u.jsx(R1,{children:i}),s&&u.jsx(n1,{pt:4,children:u.jsxs(R1,{color:"primaryText1",kind:"tiny",children:["@",s]})})]})}),n&&u.jsx(R1,{color:"primaryText1",kind:"tiny",children:n}),r&&u.jsx(n1,{pt:4,children:u.jsx(R1,{color:"primaryText1",kind:"tiny",children:r})}),o&&u.jsx(n1,{pt:12,children:u.jsx(R1,{as:"div",kind:"regularBold",children:v3(o)})}),c&&u.jsx(n1,{pt:4,children:u.jsxs(R1,{color:"primaryText1",kind:"tiny",children:["@",c]})}),f&&f.length>0&&u.jsxs(n1,{pt:12,children:[u.jsx(R1,{color:"primaryText1",children:"People"}),u.jsx(n1,{pt:4,children:u.jsx(R1,{color:"primaryText1",kind:"tiny",children:h&&u.jsxs(n1,{pt:12,children:[u.jsx(R1,{children:"Guests:"}),u.jsx(R1,{children:g?f.map(v=>`@${v==null?void 0:v.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},Lh=()=>{const[e,t]=Me(l=>[l.hoveredNode,l.isHovering]),[n,r]=p.useState(!1),[o,i]=p.useState(!1);p.useEffect(()=>{let l=null;return t||o?r(!0):l=setTimeout(()=>r(!1),300),()=>{l&&clearTimeout(l)}},[t,o]);const s=p.useCallback(()=>{i(!0)},[]),a=p.useCallback(()=>{i(!1)},[]);return u.jsxs(gd,{children:[e&&n&&u.jsx(md,{onMouseEnter:s,onMouseLeave:a,children:u.jsx(Cd,{node:e})}),u.jsx(sd,{})]})},gd=c1("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",paddingRight:"0",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),md=c1.div` - position: absolute; - top: 65px; - right: 55px; - z-index: 100; -`,Mh=()=>{const e=p.useContext(g3);return e==null?void 0:e.socket},vd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),xd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Nodes",children:[u.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_141)",children:u.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),wd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),yd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_25)",children:u.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),bd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"add_link",children:[u.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2659_52)",children:u.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),_d=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_27)",children:u.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),Ed=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),$d=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),kd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),Sd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21694)",children:u.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),jd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"arrow_forward",children:[u.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8980_24763)",children:u.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),Ld=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),Md=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),Od=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Audio",children:[u.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_147)",children:u.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),Rd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_45)",children:u.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),Pd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),Td=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"browse_gallery",children:[u.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1360_27257)",children:u.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),Hd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21901)",children:u.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Id=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),Ad=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Vd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),Dd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),Nd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),Bd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"keyboard_arrow_left",children:[u.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1428_267)",children:u.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),zd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"chevron_right",children:[u.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1247_21809)",children:u.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),Zd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),Fd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),u.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),Ud=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Wd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),Kd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_4256)",children:u.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),Gd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22054)",children:u.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),Yd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),u.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),qd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"content_copy",children:[u.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1489_75628)",children:u.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),Xd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_27)",children:u.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),Jd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:u.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8954_27793)",children:u.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),u.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),Qd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[u.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask1_2777_4506)",children:u.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),ef=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"delete",children:[u.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{children:u.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),tf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),u.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),u.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),nf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22108)",children:u.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),rf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),of=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2638_2680)",children:u.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),sf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Type=Edit, Size=20x20",children:u.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),af=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),u.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),lf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),cf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Episode",children:[u.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),uf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_31)",children:u.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),df=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4160_9271)",children:u.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),ff=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"captive_portal",children:[u.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[u.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),u.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),hf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),pf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),Cf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"filter_alt_off",children:[u.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1543_23288)",children:u.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),gf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22315)",children:u.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),mf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),vf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_23)",children:u.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),xf=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_3130_18463)",children:u.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),wf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22375)",children:u.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),yf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),bf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22441)",children:u.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),_f=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22444)",children:u.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),Ef=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),$f=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),kf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),Sf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_19)",children:u.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),jf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22519)",children:u.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),Lf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Icons 20x20",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),Mf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),Of=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),Rf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_49)",children:u.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),Pf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_mute",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),u.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Tf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),Hf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"notes",children:[u.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1473_73722)",children:u.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),If=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Af=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),Vf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_2772)",children:u.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),Df=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22741)",children:u.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),Nf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_3741)",children:u.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),Bf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:u.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{children:u.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),zf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{opacity:"0.4",children:[u.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13105)",children:u.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),Zf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13106)",children:u.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),Ff=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22801)",children:u.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),Uf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:u.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5099_7163)",children:u.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),Wf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22828)",children:u.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),Kf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22840)",children:u.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),Gf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"schedule",children:[u.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4051_4016)",children:u.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),Yf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_35)",children:u.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),qf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),Xf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),Jf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Normal",children:u.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),Qf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"sensors",children:[u.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_161)",children:u.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),eh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_28)",children:u.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),th=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_29)",children:u.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),nh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"shield_person",children:[u.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1543_22988)",children:u.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),rh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),oh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"brand_awareness",children:[u.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_3696_4540)",children:u.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),ih=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),sh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_26)",children:u.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),ah=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"stacks",children:[u.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8417_33308)",children:u.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),lh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9529_33)",children:u.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),ch=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),u.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),u.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),uh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22378)",children:u.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),dh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5577_416)",children:u.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),fh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Twitter",children:[u.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_167)",children:u.jsx("g",{id:"X",children:u.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),hh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Video",children:[u.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_153)",children:u.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),ph=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),Ch=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),gh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_up",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1483_75386)",children:u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),Oh={AddCircleIcon:wd,AddContentIcon:yd,AddLinkIcon:bd,AddSourceIcon:_d,AiPauseIcon:Ed,AiPlayIcon:$d,AiSummaryIcon:kd,AndroidIcon:Sd,ArrowBackIcon:jd,ArrowForwardIcon:Ld,ArrowRight:Md,AudioIcon:Od,BitcoinIcon:Rd,BoostIcon:Pd,BrowseGalleryIcon:Td,BubbleChartIcon:yc,BudgetIcon:vd,BuildIcon:Hd,CalendarIcon:Id,CameraCenterIcon:r3,CancelIcon:Ad,CheckIcon:Vd,CheckedIcon:Dd,ChevronDownIcon:Nd,ChevronLeftIcon:Bd,ChevronRightIcon:zd,ChevronUpIcon:Zd,ChipIcon:Fd,ClearIcon:yr,CloseIcon:Ud,ColorPickerIcon:Wd,CommunitiesIcon:bc,CompassIcon:Kd,ConstructionIcon:Gd,ContentIcon:Yd,CopyIcon:qd,CorporationIcon:Xd,CreateEdgeIcon:Jd,DefaultShowIcon:Qd,DeleteIcon:ef,DeleteNodeIcon:tf,DesignServicesIcon:nf,DocumentIcon:rf,DownloadIcon:of,EditIcon:sf,EditNodeIcon:af,EditTopicIcon:lf,EpisodeIcon:cf,EventIcon:uf,ExitFullScreen:df,ExploreIcon:ff,FamilyHistoryIcon:hf,FeedbackIcon:pf,FilterOffIcon:Cf,FingerprintIcon:gf,FlipIcon:mf,FortIcon:vf,FullScreenIcon:xf,FunctionIcon:wf,GlobeIcon:yf,GrainIcon:_c,HandymanIcon:bf,HardwareIcon:_f,HashTag:Ef,HashtagIcon:$f,HelpIcon:kf,HomeIcon:Sf,InfoIcon:m3,JoystickIcon:jf,LinkIcon:Lf,MenuIcon:Mf,MergeIcon:Of,MoneyIcon:Rf,MuteVolumeIcon:Pf,NodeCircleIcon:Tf,NodesIcon:xd,NotesIcon:Hf,OrganizationIcon:If,PauseIcon:i3,PersonAdd:Af,PersonIcon:Vf,PhoneIcon:Df,PlaceIcon:Nf,PlayIcon:s3,PlusIcon:Bf,PropertyHide:zf,PropertyShow:Zf,PublicIcon:Ec,QrCodeIcon:Ff,ReloadIcon:Uf,RobotIcon:Wf,SaveIcon:Kf,ScheduleIcon:Gf,SchoolIcon:Yf,SearchFilterCloseIcon:qf,SearchFilterIcon:Xf,SearchIcon:Jf,SensorsIcon:Qf,SentimentDataIcon:eh,SettingsIcon:th,ShieldPersonIcon:nh,SortFilterIcon:rh,SoundIcon:oh,SourcesIcon:ih,SourcesTableIcon:sh,StackIcon:ah,StorageIcon:lh,SucessFeedBackIcon:ch,SumFunctionIcon:uh,ThreeDotsIcons:dh,TwitterIcon:fh,VideoIcon:hh,VisibilityOff:ph,VisibilityOn:Ch,VolumeIcon:gh};export{Kt as $,sd as A,vd as B,bc as C,ef as D,ff as E,pf as F,Gd as G,kf as H,Oh as I,sf as J,kh as K,Cc as L,Mf as M,xd as N,Lh as O,vh as P,x3 as Q,Wf as R,sh as S,Wu as T,Y1 as U,o0 as V,Ct as W,e0 as X,$3 as Y,t0 as Z,Qe as _,Mh as a,yc as a$,r0 as a0,Gt as a1,fs as a2,z3 as a3,Jf as a4,ah as a5,Pd as a6,Lf as a7,yf as a8,$f as a9,zd as aA,Yd as aB,Cf as aC,T3 as aD,Tf as aE,mf as aF,Md as aG,Zf as aH,zf as aI,dh as aJ,Ch as aK,ph as aL,rh as aM,lf as aN,af as aO,tf as aP,J6 as aQ,Au as aR,Pi as aS,hf as aT,Jd as aU,xh as aV,ch as aW,k3 as aX,xs as aY,e5 as aZ,oh as a_,ih as aa,Zd as ab,Nd as ac,v3 as ad,kd as ae,Ed as af,$d as ag,jd as ah,Vd as ai,Td as aj,of as ak,Uf as al,eh as am,Ef as an,qf as ao,Xf as ap,Hf as aq,qd as ar,Gf as as,E3 as at,Pf as au,gh as av,xf as aw,df as ax,Ud as ay,Bd as az,a3 as b,qu as c,i3 as d,s3 as e,n0 as f,cd as g,Bf as h,Me as i,_d as j,yd as k,th as l,Q as m,Ld as n,$h as o,n3 as p,wc as q,jh as r,Iu as s,yu as t,Bu as u,Fn as v,Sh as w,Of as x,wd as y,rf as z}; diff --git a/build/assets/index-d8ea0c8b.js b/build/assets/index-d8ea0c8b.js deleted file mode 100644 index 16ab06bac..000000000 --- a/build/assets/index-d8ea0c8b.js +++ /dev/null @@ -1,71 +0,0 @@ -import{r as u,j as f,bZ as kt,b_ as Rt,a4 as xo,a2 as Ot,y as a,O as ye,P as $e,S as L,$ as w,V as Pe,K as ae,X as ne,Y as Ie,U as Re,a0 as lo,Z as Uo,b$ as wt,c0 as Lt,a1 as st,c1 as it,bv as ct,bw as dt,aj as Xe,c2 as To,a5 as Mt,am as Ft,s as Tt,a as je,F as At}from"./index-f2cb870a.js";import{a0 as Ho,f as ut,aD as pt,aX as Nt,U as Fo,P as zt,aY as Dt,a1 as Vo,g as Et}from"./index-d6936fc6.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-a2ecd800.js";import{c as zo}from"./createSvgIcon-968d1259.js";import{T as _t}from"./TextareaAutosize-449c264d.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 Jt(e){const{unstable_isActiveElementInListbox:o=Zt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Yt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus: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;J&&J(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=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(""),Q&&Q(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},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 Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,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",J=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(J),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:J},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme: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:J,placeholder:G,readOnly:se,renderSuffix:Q,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:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),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}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${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:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps: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}=Jt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),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&&!J&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,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,Jo,Qo,et;const Je=44,Gn=ct(Zo||(Zo=So` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),Xn=ct(Jo||(Jo=So` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),Yn=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${w(r)}`],svg:["svg"],circle:["circle",`circle${w(t)}`,s&&"circleDisableShrink"]};return Ie(c,Kn,o)},Zn=L("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${w(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&dt(Qo||(Qo=So` - animation: ${0} 1.4s linear infinite; - `),Gn)),Jn=L("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),Qn=L("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${w(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&dt(et||(et=So` - animation: ${0} 1.4s ease-in-out infinite; - `),Xn)),er=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,$=ae(r,qn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=Yn(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Je-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(Zn,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,$,{children:f.jsx(Jn,{className:R.svg,ownerState:v,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(Qn,{className:R.circle,style:M,ownerState:v,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})})}))}),or=er,tr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nr=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},rr=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${we.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${we.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${we.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${we.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${we.disabled}, .${we.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${we.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ar=L(Io,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),mt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:$=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,tr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:$,type:M}),k=nr(i),C={root:{ownerState:O},input:{ownerState:O}},I=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:rr,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:ar;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:I,fullWidth:m,inputComponent:h,multiline:$,ref:t,type:M},P,{classes:k}))});mt.muiName="Input";const ht=mt;function lr(e){return ye("MuiFormHelperText",e)}const sr=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ot=sr;var tt;const ir=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${w(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return Ie(p,lr,o)},dr=L("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${w(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ot.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),ur=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,ir),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=cr(m);return f.jsx(dr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?tt||(tt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),pr=ur;function fr(e){return ye("MuiFormLabel",e)}const br=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=br,gr=["children","className","color","component","disabled","error","filled","focused","required"],mr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${w(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return Ie(b,fr,o)},hr=L("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),vr=L("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),xr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,gr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=mr(m);return f.jsxs(hr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(vr,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Cr=xr,yr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$r=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},yn,o);return a({},o,s)},Ir=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sr=L(Io,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:$="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,yr),k=$r(i),I={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,I):I,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Ir,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Sr;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:$,multiline:v,ref:t,type:P},O,{classes:k}))});vt.muiName="Input";const xt=vt;function Pr(e){return ye("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kr=["disableAnimation","margin","shrink","variant","className"],Rr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${w(r)}`,d],asterisk:[i&&"asterisk"]},p=Ie(b,Pr,o);return a({},o,p)},Or=L(Cr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),wr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,kr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Rr(h);return f.jsx(Or,a({"data-shrink":p,ownerState:h,ref:t,className:ne($.root,d)},i,{classes:$}))}),Lr=wr,Mr=u.createContext({}),Fr=Mr;function Tr(e){return ye("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ar=["children","className","component","dense","disablePadding","subheader"],Nr=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return Ie({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Tr,o)},zr=L("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Dr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Ar),h=u.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),v=Nr($);return f.jsx(Fr.Provider,{value:h,children:f.jsxs(zr,a({as:d,className:ne(v.root,c),ref:t,ownerState:$},m,{children:[p,s]}))})}),Er=Dr,Br=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function nt(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function Ct(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!Ct(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const jr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,$=ae(o,Br),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,I)=>{const E=!v.current.style.width;if(C.clientHeight{const I=v.current,E=C.key,N=Fo(I).activeElement;if(E==="ArrowDown")C.preventDefault(),uo(I,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo(I,N,p,b,nt);else if(E==="Home")C.preventDefault(),uo(I,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo(I,null,p,b,nt);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&Ct(N,F);F.previousKeyMatched&&(de||uo(I,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,I)=>{if(!u.isValidElement(C)){O===I&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=I),O===I&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,I)=>{if(I===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(Er,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},$,{children:k}))}),Wr=jr;function _r(e){return ye("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Ur=["onEntering"],Hr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vr={vertical:"top",horizontal:"right"},Kr={vertical:"top",horizontal:"left"},qr=e=>{const{classes:o}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},_r,o)},Gr=L(zt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Xr=L(Dt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yr=L(Wr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),Zr=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:$,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,I=ae(c.TransitionProps,Ur),E=ae(c,Hr),N=Mt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:I,variant:O}),le=qr(q),de=d&&!p&&$,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},J=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Xr,Q=(s=C.paper)!=null?s:v,re=Vo({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Gr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Vr:Kr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},I),ownerState:q},E,{classes:R,children:f.jsx(Yr,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),Jr=Zr;function Qr(e){return ye("MuiNativeSelect",e)}const ea=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ea,oa=["className","disabled","error","IconComponent","inputRef","variant"],ta=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"]};return Ie(i,Qr,o)},yt=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),na=L("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})(yt),$t=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ra=L("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})($t),aa=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,oa),m=a({},o,{disabled:s,variant:b,error:c}),h=ta(m);return f.jsxs(u.Fragment,{children:[f.jsx(na,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ra,{as:d,ownerState:m,className:h.icon})]})}),la=aa;var rt;const sa=["children","classes","className","label","notched"],ia=L("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ca=L("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function da(e){const{className:o,label:t,notched:r}=e,s=ae(e,sa),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(ia,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(ca,{ownerState:d,children:c?f.jsx("span",{children:t}):rt||(rt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ua=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pa=e=>{const{classes:o}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},In,o);return a({},o,r)},fa=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),ba=L(da,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),ga=L(Io,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),It=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:$,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ua),k=pa(b),C=so(),I=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:I.color||"primary",disabled:I.disabled,error:I.error,focused:I.focused,formControl:C,fullWidth:m,hiddenLabel:I.hiddenLabel,multiline:v,size:I.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:fa,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:ga;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(ba,{ownerState:E,className:k.notchedOutline,label:$!=null&&$!==""&&I.required?i||(i=f.jsxs(u.Fragment,{children:[$," ","*"]})):$,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});It.muiName="Input";const St=It;function ma(e){return ye("MuiSelect",e)}const ha=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ha;var at;const va=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xa=L("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})(yt,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ca=L("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})($t),ya=L("input",{shouldForwardProp:e=>Ft(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lt(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function $a(e){return e==null||typeof e=="string"&&!e.trim()}const Ia=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(i,ma,o)},Sa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:$,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:I,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,va),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),Le=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Z]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),Y=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:Le.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Z(i?null:Y.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:I}}),N(Ze,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:I}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(ft({value:U})||v)&&(T?ce=T(U):Ae=!0);const Ye=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(it(2));B=U.some(X=>lt(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=lt(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},wa=L(xt,Bo)(""),La=L(St,Bo)(""),Ma=L(ht,Bo)(""),Pt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=gt,id:h,input:$,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,ka),de=k?la:Pa,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),J=T.variant||q,G=a({},r,{variant:J,classes:d}),se=Oa(G),Q=ae(se,Ra),re=$||{standard:f.jsx(wa,{ownerState:G}),outlined:f.jsx(La,{label:R,ownerState:G}),filled:f.jsx(Ma,{ownerState:G})}[J],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:J,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(Q,v.classes):Q},$?$.props.inputProps:{})},O&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:J},le))})});Pt.muiName="Select";const Fa=Pt;function Ta(e){return ye("MuiTextField",e)}$e("MuiTextField",["root"]);const Aa=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Na={standard:xt,filled:ht,outlined:St},za=e=>{const{classes:o}=e;return Ie({root:["root"]},Ta,o)},Da=L(jt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ea=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:$,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:I,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Aa),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:J,select:se,variant:A}),Le=za(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=I),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=Ao(M),ee=R&&W?`${W}-helper-text`:void 0,fe=I&&W?`${W}-label`:void 0,We=Na[A],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Da,a({className:ne(Le.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:J,color:b,variant:A,ownerState:Se},ie,{children:[I!=null&&I!==""&&f.jsx(Lr,a({htmlFor:W,id:fe},P,{children:I})),se?f.jsx(Fa,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Z},Q,{children:d})):Z,R&&f.jsx(pr,a({id:ee},$,{children:R}))]}))}),Ba=Ea,ja={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},qa=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[$,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Wt,{flexGrow:1,spacing:1,children:f.jsx(Vn,{...ja,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:$,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(No,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Wa,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(or,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(At,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Et,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Wa=Tt(Ba)` - && { - z-index: 2; - width: 100%; - color: #fff; - font-size: 15px; - box-shadow: none; - border-radius: 6px; - pointer-events: auto; - background-color: ${je.BG2}; - box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1); - padding: 0 8px; - - &:focus, - &:active { - color: ${je.white}; - background-color: ${je.BG2_ACTIVE_INPUT}; - outline: 1px solid ${je.primaryBlue}; - } - - &:hover { - background-color: ${je.BG2_ACTIVE_INPUT}; - box-shadow: 0 0 0 1px ${je.primaryBlue}; - } - - &::placeholder { - font-size: 15px; - text-align: left; - font-weight: 500; - line-height: 16px; - letter-spacing: 0em; - font-family: Barlow; - color: ${je.GRAY7}; - } - - .MuiInput-input.MuiInputBase-input { - padding: 8px; - } - - .MuiInput-root { - padding: 0; - } - } -`;export{qa as A,Do as I,Ba as T}; diff --git a/build/assets/index-f6ae5354.js b/build/assets/index-f6ae5354.js new file mode 100644 index 000000000..40ae4c207 --- /dev/null +++ b/build/assets/index-f6ae5354.js @@ -0,0 +1,71 @@ +import{r as u,j as f,bY as kt,bZ as Rt,a2 as xo,a0 as Ot,x as a,L as ye,M as $e,O as w,Y as L,S as Pe,H as ae,U as ne,V as Ie,P as Re,Z as lo,X as Uo,b_ as Lt,b$ as wt,$ as st,c0 as it,bv as ct,bw as dt,aj as Xe,c1 as To,a3 as Mt,am as Ft,s as Tt,a as je,F as At}from"./index-794e801a.js";import{X as Ho,f as ut,ax as pt,aP as Nt,J as Fo,P as zt,aQ as Dt,Y as Vo,g as Et}from"./index-d39d2c64.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-0bfda087.js";import{c as zo}from"./createSvgIcon-72fbec8f.js";import{T as _t}from"./TextareaAutosize-cee09ef8.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function wo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Jt(e){const{unstable_isActiveElementInListbox:o=Zt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Yt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ze=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{Ot(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;J&&J(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=wo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),we&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:Lo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return Ie(p,an,o)},dn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",J=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(J),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:J},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Lt,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${L(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${L($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,hn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{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:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),Le=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Yo;const Ln=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],wn=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${L(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${L(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=w(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=w(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=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=w(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=w(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=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,Ln),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=Jt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,wn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),Lo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return Lo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Ye(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!J&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,we,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Zo,Jo,Qo,et;const Je=44,Gn=ct(Zo||(Zo=So` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Xn=ct(Jo||(Jo=So` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),Yn=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${L(r)}`],svg:["svg"],circle:["circle",`circle${L(t)}`,s&&"circleDisableShrink"]};return Ie(c,Kn,o)},Zn=w("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${L(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&dt(Qo||(Qo=So` + animation: ${0} 1.4s linear infinite; + `),Gn)),Jn=w("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),Qn=w("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${L(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&dt(et||(et=So` + animation: ${0} 1.4s ease-in-out infinite; + `),Xn)),er=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,$=ae(r,qn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=Yn(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Je-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(Zn,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,$,{children:f.jsx(Jn,{className:R.svg,ownerState:v,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(Qn,{className:R.circle,style:M,ownerState:v,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})})}))}),or=er,tr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nr=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},rr=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${Le.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${Le.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Le.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Le.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Le.disabled}, .${Le.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Le.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ar=w(Io,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),mt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:$=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,tr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:$,type:M}),k=nr(i),C={root:{ownerState:O},input:{ownerState:O}},I=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:rr,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:ar;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:I,fullWidth:m,inputComponent:h,multiline:$,ref:t,type:M},P,{classes:k}))});mt.muiName="Input";const ht=mt;function lr(e){return ye("MuiFormHelperText",e)}const sr=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ot=sr;var tt;const ir=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${L(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return Ie(p,lr,o)},dr=w("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ot.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),ur=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,ir),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=cr(m);return f.jsx(dr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?tt||(tt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),pr=ur;function fr(e){return ye("MuiFormLabel",e)}const br=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=br,gr=["children","className","color","component","disabled","error","filled","focused","required"],mr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${L(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return Ie(b,fr,o)},hr=w("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),vr=w("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),xr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,gr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=mr(m);return f.jsxs(hr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(vr,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Cr=xr,yr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$r=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},yn,o);return a({},o,s)},Ir=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sr=w(Io,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:$="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,yr),k=$r(i),I={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,I):I,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Ir,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Sr;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:$,multiline:v,ref:t,type:P},O,{classes:k}))});vt.muiName="Input";const xt=vt;function Pr(e){return ye("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kr=["disableAnimation","margin","shrink","variant","className"],Rr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${L(r)}`,d],asterisk:[i&&"asterisk"]},p=Ie(b,Pr,o);return a({},o,p)},Or=w(Cr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Lr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,kr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Rr(h);return f.jsx(Or,a({"data-shrink":p,ownerState:h,ref:t,className:ne($.root,d)},i,{classes:$}))}),wr=Lr,Mr=u.createContext({}),Fr=Mr;function Tr(e){return ye("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ar=["children","className","component","dense","disablePadding","subheader"],Nr=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return Ie({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Tr,o)},zr=w("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Dr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Ar),h=u.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),v=Nr($);return f.jsx(Fr.Provider,{value:h,children:f.jsxs(zr,a({as:d,className:ne(v.root,c),ref:t,ownerState:$},m,{children:[p,s]}))})}),Er=Dr,Br=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function nt(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function Ct(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!Ct(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const jr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,$=ae(o,Br),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,I)=>{const E=!v.current.style.width;if(C.clientHeight{const I=v.current,E=C.key,N=Fo(I).activeElement;if(E==="ArrowDown")C.preventDefault(),uo(I,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo(I,N,p,b,nt);else if(E==="Home")C.preventDefault(),uo(I,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo(I,null,p,b,nt);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&Ct(N,F);F.previousKeyMatched&&(de||uo(I,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,I)=>{if(!u.isValidElement(C)){O===I&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=I),O===I&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,I)=>{if(I===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(Er,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},$,{children:k}))}),Wr=jr;function _r(e){return ye("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Ur=["onEntering"],Hr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vr={vertical:"top",horizontal:"right"},Kr={vertical:"top",horizontal:"left"},qr=e=>{const{classes:o}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},_r,o)},Gr=w(zt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Xr=w(Dt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yr=w(Wr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),Zr=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:$,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,I=ae(c.TransitionProps,Ur),E=ae(c,Hr),N=Mt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:I,variant:O}),le=qr(q),de=d&&!p&&$,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},J=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Xr,Q=(s=C.paper)!=null?s:v,re=Vo({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Gr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Vr:Kr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},I),ownerState:q},E,{classes:R,children:f.jsx(Yr,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),Jr=Zr;function Qr(e){return ye("MuiNativeSelect",e)}const ea=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ea,oa=["className","disabled","error","IconComponent","inputRef","variant"],ta=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"]};return Ie(i,Qr,o)},yt=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),na=w("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})(yt),$t=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ra=w("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})($t),aa=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,oa),m=a({},o,{disabled:s,variant:b,error:c}),h=ta(m);return f.jsxs(u.Fragment,{children:[f.jsx(na,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ra,{as:d,ownerState:m,className:h.icon})]})}),la=aa;var rt;const sa=["children","classes","className","label","notched"],ia=w("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ca=w("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function da(e){const{className:o,label:t,notched:r}=e,s=ae(e,sa),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(ia,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(ca,{ownerState:d,children:c?f.jsx("span",{children:t}):rt||(rt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ua=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pa=e=>{const{classes:o}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},In,o);return a({},o,r)},fa=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),ba=w(da,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),ga=w(Io,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),It=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:$,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ua),k=pa(b),C=so(),I=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:I.color||"primary",disabled:I.disabled,error:I.error,focused:I.focused,formControl:C,fullWidth:m,hiddenLabel:I.hiddenLabel,multiline:v,size:I.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:fa,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:ga;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(ba,{ownerState:E,className:k.notchedOutline,label:$!=null&&$!==""&&I.required?i||(i=f.jsxs(u.Fragment,{children:[$," ","*"]})):$,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});It.muiName="Input";const St=It;function ma(e){return ye("MuiSelect",e)}const ha=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ha;var at;const va=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xa=w("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})(yt,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ca=w("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})($t),ya=w("input",{shouldForwardProp:e=>Ft(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lt(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function $a(e){return e==null||typeof e=="string"&&!e.trim()}const Ia=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(i,ma,o)},Sa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:$,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:I,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,va),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),we=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Z]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),Y=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:we.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Z(i?null:Y.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:I}}),N(Ze,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:I}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(ft({value:U})||v)&&(T?ce=T(U):Ae=!0);const Ye=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(it(2));B=U.some(X=>lt(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=lt(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},La=w(xt,Bo)(""),wa=w(St,Bo)(""),Ma=w(ht,Bo)(""),Pt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=gt,id:h,input:$,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,ka),de=k?la:Pa,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),J=T.variant||q,G=a({},r,{variant:J,classes:d}),se=Oa(G),Q=ae(se,Ra),re=$||{standard:f.jsx(La,{ownerState:G}),outlined:f.jsx(wa,{label:R,ownerState:G}),filled:f.jsx(Ma,{ownerState:G})}[J],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:J,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(Q,v.classes):Q},$?$.props.inputProps:{})},O&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:J},le))})});Pt.muiName="Select";const Fa=Pt;function Ta(e){return ye("MuiTextField",e)}$e("MuiTextField",["root"]);const Aa=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Na={standard:xt,filled:ht,outlined:St},za=e=>{const{classes:o}=e;return Ie({root:["root"]},Ta,o)},Da=w(jt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ea=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:$,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:I,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Aa),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:J,select:se,variant:A}),we=za(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=I),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=Ao(M),ee=R&&W?`${W}-helper-text`:void 0,fe=I&&W?`${W}-label`:void 0,We=Na[A],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Da,a({className:ne(we.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:J,color:b,variant:A,ownerState:Se},ie,{children:[I!=null&&I!==""&&f.jsx(wr,a({htmlFor:W,id:fe},P,{children:I})),se?f.jsx(Fa,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Z},Q,{children:d})):Z,R&&f.jsx(pr,a({id:ee},$,{children:R}))]}))}),Ba=Ea,ja={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},qa=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[$,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Wt,{flexGrow:1,spacing:1,children:f.jsx(Vn,{...ja,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:$,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(No,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Wa,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(or,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(At,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Et,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Wa=Tt(Ba)` + && { + z-index: 2; + width: 100%; + color: #fff; + font-size: 15px; + box-shadow: none; + border-radius: 6px; + pointer-events: auto; + background-color: ${je.BG2}; + box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1); + padding: 0 8px; + + &:focus, + &:active { + color: ${je.white}; + background-color: ${je.BG2_ACTIVE_INPUT}; + outline: 1px solid ${je.primaryBlue}; + } + + &:hover { + background-color: ${je.BG2_ACTIVE_INPUT}; + box-shadow: 0 0 0 1px ${je.primaryBlue}; + } + + &::placeholder { + font-size: 15px; + text-align: left; + font-weight: 500; + line-height: 16px; + letter-spacing: 0em; + font-family: Barlow; + color: ${je.GRAY7}; + } + + .MuiInput-input.MuiInputBase-input { + padding: 8px; + } + + .MuiInput-root { + padding: 0; + } + } +`;export{qa as A,Do as I,Ba as T}; diff --git a/build/assets/isPlainObject-11606a25.js b/build/assets/isPlainObject-11606a25.js new file mode 100644 index 000000000..540a25645 --- /dev/null +++ b/build/assets/isPlainObject-11606a25.js @@ -0,0 +1 @@ +import{L as de,M as pe,O as M,X as Ne,x as S,aj as Ge,r as U,H as ge,j as E,U as H,Y as K,V as be,S as Ue,av as z,aw as B,aC as T,bM as he,aA as ve,a9 as X,bN as He,aG as Ke,bO as ze,bP as ye,bQ as Xe,bR as Ye,bS as Ze,aJ as ke,aM as _e,aB as Je,aI as Qe,bT as We,aH as me,bU as je}from"./index-794e801a.js";import{u as Ve,b as $e,f as er,S as rr}from"./Stack-0bfda087.js";import{T as W}from"./Typography-4a916cc9.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 Q=m.target.checked;xe(Q),y&&y(m,Q)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),J=tr(D);return E.jsxs(sr,S({component:"span",className:H(J.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:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Lr=wr,Er=Lr,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Er(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&Ta?new Pa:void 0;for(t.set(e,r),t.set(r,e);++f{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:E}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const Q=m.target.checked;xe(Q),y&&y(m,Q)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),J=tr(D);return L.jsxs(sr,S({component:"span",className:H(J.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&E===void 0?{}:{value:E},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${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(_),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=L.jsx(W,S({component:"span"},E,{className:H(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?L.jsxs(rr,{display:"block",children:[A,L.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Er=wr,Lr=Er,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Lr(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&Ta?new Pa:void 0;for(t.set(e,r),t.set(r,e);++fh||i.y>h)&&(i.x>h&&(s.x=Math.floor(h/H.x),i.x=s.x*H.x,D.mapSize.x=s.x),i.y>h&&(s.y=Math.floor(h/H.y),i.y=s.y*H.y,D.mapSize.y=s.y)),D.map===null){const K=this.type!==Bi?{minFilter:ot,magFilter:ot}:{};D.map=new Ot(i.x,i.y,K),D.map.texture.name=ee.name+".shadowMap",D.camera.updateProjectionMatrix()}o.setRenderTarget(D.map),o.clear();const z=D.getViewportCount();for(let K=0;K0){const Z=P.uuid,ee=b.uuid;let D=c[Z];D===void 0&&(D={},c[Z]=D);let H=D[ee];H===void 0&&(H=P.clone(),D[ee]=H),P=H}return P.visible=b.visible,P.wireframe=b.wireframe,E===Bi?P.side=b.shadowSide!==null?b.shadowSide:b.side:P.side=b.shadowSide!==null?b.shadowSide:u[b.side],P.alphaMap=b.alphaMap,P.alphaTest=b.alphaTest,P.clipShadows=b.clipShadows,P.clippingPlanes=b.clippingPlanes,P.clipIntersection=b.clipIntersection,P.displacementMap=b.displacementMap,P.displacementScale=b.displacementScale,P.displacementBias=b.displacementBias,P.wireframeLinewidth=b.wireframeLinewidth,P.linewidth=b.linewidth,S.isPointLight===!0&&P.isMeshDistanceMaterial===!0&&(P.referencePosition.setFromMatrixPosition(S.matrixWorld),P.nearDistance=L,P.farDistance=y),P}function M(v,b,S,L,y){if(v.visible===!1)return;if(v.layers.test(b.layers)&&(v.isMesh||v.isLine||v.isPoints)&&(v.castShadow||v.receiveShadow&&y===Bi)&&(!v.frustumCulled||n.intersectsObject(v))){v.modelViewMatrix.multiplyMatrices(S.matrixWorldInverse,v.matrixWorld);const I=e.update(v),Z=v.material;if(Array.isArray(Z)){const ee=I.groups;for(let D=0,H=ee.length;D=1):$.indexOf("OpenGL ES")!==-1&&(K=parseFloat(/^OpenGL ES (\d)/.exec($)[1]),z=K>=2);let B=null,V={};const te=o.getParameter(3088),j=o.getParameter(2978),se=new He().fromArray(te),ge=new He().fromArray(j);function Se(R,de,G){const he=new Uint8Array(4),ce=o.createTexture();o.bindTexture(R,ce),o.texParameteri(R,10241,9728),o.texParameteri(R,10240,9728);for(let Ue=0;UeQ||C.height>Q)&&(ie=Q/Math.max(C.width,C.height)),ie<1||w===!0)if(typeof HTMLImageElement<"u"&&C instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&C instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&C instanceof ImageBitmap){const le=w?qr:Math.floor,Te=le(ie*C.width),U=le(ie*C.height);p===void 0&&(p=x(Te,U));const _e=O?x(Te,U):p;return _e.width=Te,_e.height=U,_e.getContext("2d").drawImage(C,0,0,Te,U),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+C.width+"x"+C.height+") to ("+Te+"x"+U+")."),_e}else return"data"in C&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+C.width+"x"+C.height+")."),C;return C}function v(C){return So(C.width)&&So(C.height)}function b(C){return a?!1:C.wrapS!==vt||C.wrapT!==vt||C.minFilter!==ot&&C.minFilter!==it}function S(C,w){return C.generateMipmaps&&w&&C.minFilter!==ot&&C.minFilter!==it}function L(C){o.generateMipmap(C)}function y(C,w,O,Q,ie=!1){if(a===!1)return w;if(C!==null){if(o[C]!==void 0)return o[C];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+C+"'")}let le=w;return w===6403&&(O===5126&&(le=33326),O===5131&&(le=33325),O===5121&&(le=33321)),w===33319&&(O===5126&&(le=33328),O===5131&&(le=33327),O===5121&&(le=33323)),w===6408&&(O===5126&&(le=34836),O===5131&&(le=34842),O===5121&&(le=Q===Je&&ie===!1?35907:32856),O===32819&&(le=32854),O===32820&&(le=32855)),(le===33325||le===33326||le===33327||le===33328||le===34842||le===34836)&&e.get("EXT_color_buffer_float"),le}function E(C,w,O){return S(C,O)===!0||C.isFramebufferTexture&&C.minFilter!==ot&&C.minFilter!==it?Math.log2(Math.max(w.width,w.height))+1:C.mipmaps!==void 0&&C.mipmaps.length>0?C.mipmaps.length:C.isCompressedTexture&&Array.isArray(C.image)?w.mipmaps.length:1}function P(C){return C===ot||C===Gr||C===Hr?9728:9729}function I(C){const w=C.target;w.removeEventListener("dispose",I),ee(w),w.isVideoTexture&&g.delete(w)}function Z(C){const w=C.target;w.removeEventListener("dispose",Z),H(w)}function ee(C){const w=n.get(C);if(w.__webglInit===void 0)return;const O=C.source,Q=m.get(O);if(Q){const ie=Q[w.__cacheKey];ie.usedTimes--,ie.usedTimes===0&&D(C),Object.keys(Q).length===0&&m.delete(O)}n.remove(C)}function D(C){const w=n.get(C);o.deleteTexture(w.__webglTexture);const O=C.source,Q=m.get(O);delete Q[w.__cacheKey],r.memory.textures--}function H(C){const w=C.texture,O=n.get(C),Q=n.get(w);if(Q.__webglTexture!==void 0&&(o.deleteTexture(Q.__webglTexture),r.memory.textures--),C.depthTexture&&C.depthTexture.dispose(),C.isWebGLCubeRenderTarget)for(let ie=0;ie<6;ie++)o.deleteFramebuffer(O.__webglFramebuffer[ie]),O.__webglDepthbuffer&&o.deleteRenderbuffer(O.__webglDepthbuffer[ie]);else{if(o.deleteFramebuffer(O.__webglFramebuffer),O.__webglDepthbuffer&&o.deleteRenderbuffer(O.__webglDepthbuffer),O.__webglMultisampledFramebuffer&&o.deleteFramebuffer(O.__webglMultisampledFramebuffer),O.__webglColorRenderbuffer)for(let ie=0;ie=l&&console.warn("THREE.WebGLTextures: Trying to use "+C+" texture units while this GPU supports only "+l),z+=1,C}function B(C){const w=[];return w.push(C.wrapS),w.push(C.wrapT),w.push(C.magFilter),w.push(C.minFilter),w.push(C.anisotropy),w.push(C.internalFormat),w.push(C.format),w.push(C.type),w.push(C.generateMipmaps),w.push(C.premultiplyAlpha),w.push(C.flipY),w.push(C.unpackAlignment),w.push(C.encoding),w.join()}function V(C,w){const O=n.get(C);if(C.isVideoTexture&&Ze(C),C.isRenderTargetTexture===!1&&C.version>0&&O.__version!==C.version){const Q=C.image;if(Q===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(Q.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Me(O,C,w);return}}t.activeTexture(33984+w),t.bindTexture(3553,O.__webglTexture)}function te(C,w){const O=n.get(C);if(C.version>0&&O.__version!==C.version){Me(O,C,w);return}t.activeTexture(33984+w),t.bindTexture(35866,O.__webglTexture)}function j(C,w){const O=n.get(C);if(C.version>0&&O.__version!==C.version){Me(O,C,w);return}t.activeTexture(33984+w),t.bindTexture(32879,O.__webglTexture)}function se(C,w){const O=n.get(C);if(C.version>0&&O.__version!==C.version){Ae(O,C,w);return}t.activeTexture(33984+w),t.bindTexture(34067,O.__webglTexture)}const ge={[As]:10497,[vt]:33071,[Ts]:33648},Se={[ot]:9728,[Gr]:9984,[Hr]:9986,[it]:9729,[zo]:9985,[hi]:9987};function q(C,w,O){if(O?(o.texParameteri(C,10242,ge[w.wrapS]),o.texParameteri(C,10243,ge[w.wrapT]),(C===32879||C===35866)&&o.texParameteri(C,32882,ge[w.wrapR]),o.texParameteri(C,10240,Se[w.magFilter]),o.texParameteri(C,10241,Se[w.minFilter])):(o.texParameteri(C,10242,33071),o.texParameteri(C,10243,33071),(C===32879||C===35866)&&o.texParameteri(C,32882,33071),(w.wrapS!==vt||w.wrapT!==vt)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),o.texParameteri(C,10240,P(w.magFilter)),o.texParameteri(C,10241,P(w.minFilter)),w.minFilter!==ot&&w.minFilter!==it&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),e.has("EXT_texture_filter_anisotropic")===!0){const Q=e.get("EXT_texture_filter_anisotropic");if(w.type===on&&e.has("OES_texture_float_linear")===!1||a===!1&&w.type===Wi&&e.has("OES_texture_half_float_linear")===!1)return;(w.anisotropy>1||n.get(w).__currentAnisotropy)&&(o.texParameterf(C,Q.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(w.anisotropy,i.getMaxAnisotropy())),n.get(w).__currentAnisotropy=w.anisotropy)}}function De(C,w){let O=!1;C.__webglInit===void 0&&(C.__webglInit=!0,w.addEventListener("dispose",I));const Q=w.source;let ie=m.get(Q);ie===void 0&&(ie={},m.set(Q,ie));const le=B(w);if(le!==C.__cacheKey){ie[le]===void 0&&(ie[le]={texture:o.createTexture(),usedTimes:0},r.memory.textures++,O=!0),ie[le].usedTimes++;const Te=ie[C.__cacheKey];Te!==void 0&&(ie[C.__cacheKey].usedTimes--,Te.usedTimes===0&&D(w)),C.__cacheKey=le,C.__webglTexture=ie[le].texture}return O}function Me(C,w,O){let Q=3553;w.isDataArrayTexture&&(Q=35866),w.isData3DTexture&&(Q=32879);const ie=De(C,w),le=w.source;if(t.activeTexture(33984+O),t.bindTexture(Q,C.__webglTexture),le.version!==le.__currentVersion||ie===!0){o.pixelStorei(37440,w.flipY),o.pixelStorei(37441,w.premultiplyAlpha),o.pixelStorei(3317,w.unpackAlignment),o.pixelStorei(37443,0);const Te=b(w)&&v(w.image)===!1;let U=M(w.image,Te,!1,h);U=Xe(w,U);const _e=v(U)||a,fe=s.convert(w.format,w.encoding);let ve=s.convert(w.type),pe=y(w.internalFormat,fe,ve,w.encoding,w.isVideoTexture);q(Q,w,_e);let Re;const Ve=w.mipmaps,et=a&&w.isVideoTexture!==!0,R=le.__currentVersion===void 0||ie===!0,de=E(w,U,_e);if(w.isDepthTexture)pe=6402,a?w.type===on?pe=36012:w.type===wn?pe=33190:w.type===jn?pe=35056:pe=33189:w.type===on&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),w.format===An&&pe===6402&&w.type!==Bo&&w.type!==wn&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),w.type=wn,ve=s.convert(w.type)),w.format===ii&&pe===6402&&(pe=34041,w.type!==jn&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),w.type=jn,ve=s.convert(w.type))),R&&(et?t.texStorage2D(3553,1,pe,U.width,U.height):t.texImage2D(3553,0,pe,U.width,U.height,0,fe,ve,null));else if(w.isDataTexture)if(Ve.length>0&&_e){et&&R&&t.texStorage2D(3553,de,pe,Ve[0].width,Ve[0].height);for(let G=0,he=Ve.length;G>=1,he>>=1}}else if(Ve.length>0&&_e){et&&R&&t.texStorage2D(3553,de,pe,Ve[0].width,Ve[0].height);for(let G=0,he=Ve.length;G0&&R++,t.texStorage2D(34067,R,Re,U[0].width,U[0].height));for(let G=0;G<6;G++)if(Te){Ve?t.texSubImage2D(34069+G,0,0,0,U[G].width,U[G].height,ve,pe,U[G].data):t.texImage2D(34069+G,0,Re,U[G].width,U[G].height,0,ve,pe,U[G].data);for(let he=0;he0&&ye(C)===!1){const U=le?w:[w];O.__webglMultisampledFramebuffer=o.createFramebuffer(),O.__webglColorRenderbuffer=[],t.bindFramebuffer(36160,O.__webglMultisampledFramebuffer);for(let _e=0;_e0&&ye(C)===!1){const w=C.isWebGLMultipleRenderTargets?C.texture:[C.texture],O=C.width,Q=C.height;let ie=16384;const le=[],Te=C.stencilBuffer?33306:36096,U=n.get(C),_e=C.isWebGLMultipleRenderTargets===!0;if(_e)for(let fe=0;fe0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&w.__useRenderToTexture!==!1}function Ze(C){const w=r.render.frame;g.get(C)!==w&&(g.set(C,w),C.update())}function Xe(C,w){const O=C.encoding,Q=C.format,ie=C.type;return C.isCompressedTexture===!0||C.isVideoTexture===!0||C.format===Wr||O!==Ln&&(O===Je?a===!1?e.has("EXT_sRGB")===!0&&Q===zt?(C.format=Wr,C.minFilter=it,C.generateMipmaps=!1):w=ko.sRGBToLinear(w):(Q!==zt||ie!==Cn)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",O)),w}this.allocateTextureUnit=$,this.resetTextureUnits=K,this.setTexture2D=V,this.setTexture2DArray=te,this.setTexture3D=j,this.setTextureCube=se,this.rebindTextures=ne,this.setupRenderTarget=xe,this.updateRenderTargetMipmap=ae,this.updateMultisampleRenderTarget=Ee,this.setupDepthRenderbuffer=W,this.setupFrameBufferTexture=oe,this.useMultisampledRTT=ye}function Xh(o,e,t){const n=t.isWebGL2;function i(s,r=null){let a;if(s===Cn)return 5121;if(s===mh)return 32819;if(s===gh)return 32820;if(s===dh)return 5120;if(s===fh)return 5122;if(s===Bo)return 5123;if(s===ph)return 5124;if(s===wn)return 5125;if(s===on)return 5126;if(s===Wi)return n?5131:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===xh)return 6406;if(s===zt)return 6408;if(s===vh)return 6409;if(s===yh)return 6410;if(s===An)return 6402;if(s===ii)return 34041;if(s===Mh)return 6403;if(s===_h)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(s===Wr)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===bh)return 36244;if(s===wh)return 33319;if(s===Sh)return 33320;if(s===Ah)return 36249;if(s===Dr||s===Fr||s===Nr||s===zr)if(r===Je)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===Dr)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===Fr)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===Nr)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===zr)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===Dr)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===Fr)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===Nr)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===zr)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===to||s===no||s===io||s===so)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===to)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===no)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===io)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===so)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===Th)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===ro||s===ao)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===ro)return r===Je?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===ao)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===oo||s===lo||s===co||s===ho||s===uo||s===fo||s===po||s===mo||s===go||s===xo||s===_o||s===vo||s===yo||s===Mo)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===oo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===lo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===co)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===ho)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===uo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===fo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===po)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===mo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===go)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===xo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===_o)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===vo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===yo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===Mo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===bo)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===bo)return r===Je?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT}else return null;return s===jn?n?34042:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):o[s]!==void 0?o[s]:null}return{convert:i}}class Yh extends dt{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class ki extends We{constructor(){super(),this.isGroup=!0,this.type="Group"}}const k0={type:"move"};class Ua{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new ki,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new ki,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new A,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new A),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new ki,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new A,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new A),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let i=null,s=null,r=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){r=!0;for(const p of e.hand.values()){const m=t.getJointPose(p,n);if(c.joints[p.jointName]===void 0){const x=new ki;x.matrixAutoUpdate=!1,x.visible=!1,c.joints[p.jointName]=x,c.add(x)}const _=c.joints[p.jointName];m!==null&&(_.matrix.fromArray(m.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.jointRadius=m.radius),_.visible=m!==null}const h=c.joints["index-finger-tip"],u=c.joints["thumb-tip"],d=h.position.distanceTo(u.position),f=.02,g=.005;c.inputState.pinching&&d>f+g?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&d<=f-g&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,n),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,n),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(k0)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=s!==null),c!==null&&(c.visible=r!==null),this}}class Zh extends ct{constructor(e,t,n,i,s,r,a,l,c,h){if(h=h!==void 0?h:An,h!==An&&h!==ii)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");n===void 0&&h===An&&(n=wn),n===void 0&&h===ii&&(n=jn),super(null,i,s,r,a,l,h,n,c),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=a!==void 0?a:ot,this.minFilter=l!==void 0?l:ot,this.flipY=!1,this.generateMipmaps=!1}}class V0 extends un{constructor(e,t){super();const n=this;let i=null,s=1,r=null,a="local-floor",l=null,c=null,h=null,u=null,d=null,f=null;const g=t.getContextAttributes();let p=null,m=null;const _=[],x=[],M=new dt;M.layers.enable(1),M.viewport=new He;const v=new dt;v.layers.enable(2),v.viewport=new He;const b=[M,v],S=new Yh;S.layers.enable(1),S.layers.enable(2);let L=null,y=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(B){let V=_[B];return V===void 0&&(V=new Ua,_[B]=V),V.getTargetRaySpace()},this.getControllerGrip=function(B){let V=_[B];return V===void 0&&(V=new Ua,_[B]=V),V.getGripSpace()},this.getHand=function(B){let V=_[B];return V===void 0&&(V=new Ua,_[B]=V),V.getHandSpace()};function E(B){const V=x.indexOf(B.inputSource);if(V===-1)return;const te=_[V];te!==void 0&&te.dispatchEvent({type:B.type,data:B.inputSource})}function P(){i.removeEventListener("select",E),i.removeEventListener("selectstart",E),i.removeEventListener("selectend",E),i.removeEventListener("squeeze",E),i.removeEventListener("squeezestart",E),i.removeEventListener("squeezeend",E),i.removeEventListener("end",P),i.removeEventListener("inputsourceschange",I);for(let B=0;B<_.length;B++){const V=x[B];V!==null&&(x[B]=null,_[B].disconnect(V))}L=null,y=null,e.setRenderTarget(p),d=null,u=null,h=null,i=null,m=null,$.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(B){s=B,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(B){a=B,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||r},this.setReferenceSpace=function(B){l=B},this.getBaseLayer=function(){return u!==null?u:d},this.getBinding=function(){return h},this.getFrame=function(){return f},this.getSession=function(){return i},this.setSession=async function(B){if(i=B,i!==null){if(p=e.getRenderTarget(),i.addEventListener("select",E),i.addEventListener("selectstart",E),i.addEventListener("selectend",E),i.addEventListener("squeeze",E),i.addEventListener("squeezestart",E),i.addEventListener("squeezeend",E),i.addEventListener("end",P),i.addEventListener("inputsourceschange",I),g.xrCompatible!==!0&&await t.makeXRCompatible(),i.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const V={antialias:i.renderState.layers===void 0?g.antialias:!0,alpha:g.alpha,depth:g.depth,stencil:g.stencil,framebufferScaleFactor:s};d=new XRWebGLLayer(i,t,V),i.updateRenderState({baseLayer:d}),m=new Ot(d.framebufferWidth,d.framebufferHeight,{format:zt,type:Cn,encoding:e.outputEncoding})}else{let V=null,te=null,j=null;g.depth&&(j=g.stencil?35056:33190,V=g.stencil?ii:An,te=g.stencil?jn:wn);const se={colorFormat:32856,depthFormat:j,scaleFactor:s};h=new XRWebGLBinding(i,t),u=h.createProjectionLayer(se),i.updateRenderState({layers:[u]}),m=new Ot(u.textureWidth,u.textureHeight,{format:zt,type:Cn,depthTexture:new Zh(u.textureWidth,u.textureHeight,te,void 0,void 0,void 0,void 0,void 0,void 0,V),stencilBuffer:g.stencil,encoding:e.outputEncoding,samples:g.antialias?4:0});const ge=e.properties.get(m);ge.__ignoreDepthValues=u.ignoreDepthValues}m.isXRRenderTarget=!0,this.setFoveation(1),l=null,r=await i.requestReferenceSpace(a),$.setContext(i),$.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};function I(B){for(let V=0;V=0&&(x[j]=null,_[j].dispatchEvent({type:"disconnected",data:te}))}for(let V=0;V=x.length){x.push(te),j=ge;break}else if(x[ge]===null){x[ge]=te,j=ge;break}if(j===-1)break}const se=_[j];se&&se.dispatchEvent({type:"connected",data:te})}}const Z=new A,ee=new A;function D(B,V,te){Z.setFromMatrixPosition(V.matrixWorld),ee.setFromMatrixPosition(te.matrixWorld);const j=Z.distanceTo(ee),se=V.projectionMatrix.elements,ge=te.projectionMatrix.elements,Se=se[14]/(se[10]-1),q=se[14]/(se[10]+1),De=(se[9]+1)/se[5],Me=(se[9]-1)/se[5],Ae=(se[8]-1)/se[0],oe=(ge[8]+1)/ge[0],ze=Se*Ae,X=Se*oe,W=j/(-Ae+oe),ne=W*-Ae;V.matrixWorld.decompose(B.position,B.quaternion,B.scale),B.translateX(ne),B.translateZ(W),B.matrixWorld.compose(B.position,B.quaternion,B.scale),B.matrixWorldInverse.copy(B.matrixWorld).invert();const xe=Se+W,ae=q+W,Ee=ze-ne,be=X+(j-ne),ye=De*q/ae*xe,Ze=Me*q/ae*xe;B.projectionMatrix.makePerspective(Ee,be,ye,Ze,xe,ae)}function H(B,V){V===null?B.matrixWorld.copy(B.matrix):B.matrixWorld.multiplyMatrices(V.matrixWorld,B.matrix),B.matrixWorldInverse.copy(B.matrixWorld).invert()}this.updateCamera=function(B){if(i===null)return;S.near=v.near=M.near=B.near,S.far=v.far=M.far=B.far,(L!==S.near||y!==S.far)&&(i.updateRenderState({depthNear:S.near,depthFar:S.far}),L=S.near,y=S.far);const V=B.parent,te=S.cameras;H(S,V);for(let se=0;se0&&(p.alphaTest.value=m.alphaTest);const _=e.get(m).envMap;if(_&&(p.envMap.value=_,p.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=m.reflectivity,p.ior.value=m.ior,p.refractionRatio.value=m.refractionRatio),m.lightMap){p.lightMap.value=m.lightMap;const v=o.physicallyCorrectLights!==!0?Math.PI:1;p.lightMapIntensity.value=m.lightMapIntensity*v}m.aoMap&&(p.aoMap.value=m.aoMap,p.aoMapIntensity.value=m.aoMapIntensity);let x;m.map?x=m.map:m.specularMap?x=m.specularMap:m.displacementMap?x=m.displacementMap:m.normalMap?x=m.normalMap:m.bumpMap?x=m.bumpMap:m.roughnessMap?x=m.roughnessMap:m.metalnessMap?x=m.metalnessMap:m.alphaMap?x=m.alphaMap:m.emissiveMap?x=m.emissiveMap:m.clearcoatMap?x=m.clearcoatMap:m.clearcoatNormalMap?x=m.clearcoatNormalMap:m.clearcoatRoughnessMap?x=m.clearcoatRoughnessMap:m.iridescenceMap?x=m.iridescenceMap:m.iridescenceThicknessMap?x=m.iridescenceThicknessMap:m.specularIntensityMap?x=m.specularIntensityMap:m.specularColorMap?x=m.specularColorMap:m.transmissionMap?x=m.transmissionMap:m.thicknessMap?x=m.thicknessMap:m.sheenColorMap?x=m.sheenColorMap:m.sheenRoughnessMap&&(x=m.sheenRoughnessMap),x!==void 0&&(x.isWebGLRenderTarget&&(x=x.texture),x.matrixAutoUpdate===!0&&x.updateMatrix(),p.uvTransform.value.copy(x.matrix));let M;m.aoMap?M=m.aoMap:m.lightMap&&(M=m.lightMap),M!==void 0&&(M.isWebGLRenderTarget&&(M=M.texture),M.matrixAutoUpdate===!0&&M.updateMatrix(),p.uv2Transform.value.copy(M.matrix))}function s(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity}function r(p,m){p.dashSize.value=m.dashSize,p.totalSize.value=m.dashSize+m.gapSize,p.scale.value=m.scale}function a(p,m,_,x){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.size.value=m.size*_,p.scale.value=x*.5,m.map&&(p.map.value=m.map),m.alphaMap&&(p.alphaMap.value=m.alphaMap),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest);let M;m.map?M=m.map:m.alphaMap&&(M=m.alphaMap),M!==void 0&&(M.matrixAutoUpdate===!0&&M.updateMatrix(),p.uvTransform.value.copy(M.matrix))}function l(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.rotation.value=m.rotation,m.map&&(p.map.value=m.map),m.alphaMap&&(p.alphaMap.value=m.alphaMap),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest);let _;m.map?_=m.map:m.alphaMap&&(_=m.alphaMap),_!==void 0&&(_.matrixAutoUpdate===!0&&_.updateMatrix(),p.uvTransform.value.copy(_.matrix))}function c(p,m){p.specular.value.copy(m.specular),p.shininess.value=Math.max(m.shininess,1e-4)}function h(p,m){m.gradientMap&&(p.gradientMap.value=m.gradientMap)}function u(p,m){p.roughness.value=m.roughness,p.metalness.value=m.metalness,m.roughnessMap&&(p.roughnessMap.value=m.roughnessMap),m.metalnessMap&&(p.metalnessMap.value=m.metalnessMap),e.get(m).envMap&&(p.envMapIntensity.value=m.envMapIntensity)}function d(p,m,_){p.ior.value=m.ior,m.sheen>0&&(p.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen),p.sheenRoughness.value=m.sheenRoughness,m.sheenColorMap&&(p.sheenColorMap.value=m.sheenColorMap),m.sheenRoughnessMap&&(p.sheenRoughnessMap.value=m.sheenRoughnessMap)),m.clearcoat>0&&(p.clearcoat.value=m.clearcoat,p.clearcoatRoughness.value=m.clearcoatRoughness,m.clearcoatMap&&(p.clearcoatMap.value=m.clearcoatMap),m.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=m.clearcoatRoughnessMap),m.clearcoatNormalMap&&(p.clearcoatNormalScale.value.copy(m.clearcoatNormalScale),p.clearcoatNormalMap.value=m.clearcoatNormalMap,m.side===Bt&&p.clearcoatNormalScale.value.negate())),m.iridescence>0&&(p.iridescence.value=m.iridescence,p.iridescenceIOR.value=m.iridescenceIOR,p.iridescenceThicknessMinimum.value=m.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=m.iridescenceThicknessRange[1],m.iridescenceMap&&(p.iridescenceMap.value=m.iridescenceMap),m.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=m.iridescenceThicknessMap)),m.transmission>0&&(p.transmission.value=m.transmission,p.transmissionSamplerMap.value=_.texture,p.transmissionSamplerSize.value.set(_.width,_.height),m.transmissionMap&&(p.transmissionMap.value=m.transmissionMap),p.thickness.value=m.thickness,m.thicknessMap&&(p.thicknessMap.value=m.thicknessMap),p.attenuationDistance.value=m.attenuationDistance,p.attenuationColor.value.copy(m.attenuationColor)),p.specularIntensity.value=m.specularIntensity,p.specularColor.value.copy(m.specularColor),m.specularIntensityMap&&(p.specularIntensityMap.value=m.specularIntensityMap),m.specularColorMap&&(p.specularColorMap.value=m.specularColorMap)}function f(p,m){m.matcap&&(p.matcap.value=m.matcap)}function g(p,m){p.referencePosition.value.copy(m.referencePosition),p.nearDistance.value=m.nearDistance,p.farDistance.value=m.farDistance}return{refreshFogUniforms:t,refreshMaterialUniforms:n}}function H0(o,e,t,n){let i={},s={},r=[];const a=t.isWebGL2?o.getParameter(35375):0;function l(x,M){const v=M.program;n.uniformBlockBinding(x,v)}function c(x,M){let v=i[x.id];v===void 0&&(g(x),v=h(x),i[x.id]=v,x.addEventListener("dispose",m));const b=M.program;n.updateUBOMapping(x,b);const S=e.render.frame;s[x.id]!==S&&(d(x),s[x.id]=S)}function h(x){const M=u();x.__bindingPointIndex=M;const v=o.createBuffer(),b=x.__size,S=x.usage;return o.bindBuffer(35345,v),o.bufferData(35345,b,S),o.bindBuffer(35345,null),o.bindBufferBase(35345,M,v),v}function u(){for(let x=0;x0){S=v%b;const I=b-S;S!==0&&I-P.boundary<0&&(v+=b-S,E.__offset=v)}v+=P.storage}return S=v%b,S>0&&(v+=b-S),x.__size=v,x.__cache={},this}function p(x){const M=x.value,v={boundary:0,storage:0};return typeof M=="number"?(v.boundary=4,v.storage=4):M.isVector2?(v.boundary=8,v.storage=8):M.isVector3||M.isColor?(v.boundary=16,v.storage=12):M.isVector4?(v.boundary=16,v.storage=16):M.isMatrix3?(v.boundary=48,v.storage=48):M.isMatrix4?(v.boundary=64,v.storage=64):M.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",M),v}function m(x){const M=x.target;M.removeEventListener("dispose",m);const v=r.indexOf(M.__bindingPointIndex);r.splice(v,1),o.deleteBuffer(i[M.id]),delete i[M.id],delete s[M.id]}function _(){for(const x in i)o.deleteBuffer(i[x]);r=[],i={},s={}}return{bind:l,update:c,dispose:_}}function W0(){const o=Is("canvas");return o.style.display="block",o}function Jh(o={}){this.isWebGLRenderer=!0;const e=o.canvas!==void 0?o.canvas:W0(),t=o.context!==void 0?o.context:null,n=o.depth!==void 0?o.depth:!0,i=o.stencil!==void 0?o.stencil:!0,s=o.antialias!==void 0?o.antialias:!1,r=o.premultipliedAlpha!==void 0?o.premultipliedAlpha:!0,a=o.preserveDrawingBuffer!==void 0?o.preserveDrawingBuffer:!1,l=o.powerPreference!==void 0?o.powerPreference:"default",c=o.failIfMajorPerformanceCaveat!==void 0?o.failIfMajorPerformanceCaveat:!1;let h;t!==null?h=t.getContextAttributes().alpha:h=o.alpha!==void 0?o.alpha:!1;let u=null,d=null;const f=[],g=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=Ln,this.physicallyCorrectLights=!1,this.toneMapping=Yt,this.toneMappingExposure=1,Object.defineProperties(this,{gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}});const p=this;let m=!1,_=0,x=0,M=null,v=-1,b=null;const S=new He,L=new He;let y=null,E=e.width,P=e.height,I=1,Z=null,ee=null;const D=new He(0,0,E,P),H=new He(0,0,E,P);let z=!1;const K=new jr;let $=!1,B=!1,V=null;const te=new Le,j=new J,se=new A,ge={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Se(){return M===null?I:1}let q=t;function De(T,F){for(let k=0;k0?d=g[g.length-1]:d=null,f.pop(),f.length>0?u=f[f.length-1]:u=null};function dn(T,F,k,N){if(T.visible===!1)return;if(T.layers.test(F.layers)){if(T.isGroup)k=T.renderOrder;else if(T.isLOD)T.autoUpdate===!0&&T.update(F);else if(T.isLight)d.pushLight(T),T.castShadow&&d.pushShadow(T);else if(T.isSprite){if(!T.frustumCulled||K.intersectsSprite(T)){N&&se.setFromMatrixPosition(T.matrixWorld).applyMatrix4(te);const Ce=be.update(T),Fe=T.material;Fe.visible&&u.push(T,Ce,Fe,k,se.z,null)}}else if((T.isMesh||T.isLine||T.isPoints)&&(T.isSkinnedMesh&&T.skeleton.frame!==ze.render.frame&&(T.skeleton.update(),T.skeleton.frame=ze.render.frame),!T.frustumCulled||K.intersectsObject(T))){N&&se.setFromMatrixPosition(T.matrixWorld).applyMatrix4(te);const Ce=be.update(T),Fe=T.material;if(Array.isArray(Fe)){const Ie=Ce.groups;for(let qe=0,Be=Ie.length;qe0&&jt(Y,F,k),N&&oe.viewport(S.copy(N)),Y.length>0&&Pt(Y,F,k),we.length>0&&Pt(we,F,k),Ce.length>0&&Pt(Ce,F,k),oe.buffers.depth.setTest(!0),oe.buffers.depth.setMask(!0),oe.buffers.color.setMask(!0),oe.setPolygonOffset(!1)}function jt(T,F,k){const N=Ae.isWebGL2;V===null&&(V=new Ot(1,1,{generateMipmaps:!0,type:Me.has("EXT_color_buffer_half_float")?Wi:Cn,minFilter:hi,samples:N&&s===!0?4:0})),p.getDrawingBufferSize(j),N?V.setSize(j.x,j.y):V.setSize(qr(j.x),qr(j.y));const Y=p.getRenderTarget();p.setRenderTarget(V),p.clear();const we=p.toneMapping;p.toneMapping=Yt,Pt(T,F,k),p.toneMapping=we,W.updateMultisampleRenderTarget(V),W.updateRenderTargetMipmap(V),p.setRenderTarget(Y)}function Pt(T,F,k){const N=F.isScene===!0?F.overrideMaterial:null;for(let Y=0,we=T.length;Y0&&W.useMultisampledRTT(T)===!1?Y=X.get(T).__webglMultisampledFramebuffer:Y=qe,S.copy(T.viewport),L.copy(T.scissor),y=T.scissorTest}else S.copy(D).multiplyScalar(I).floor(),L.copy(H).multiplyScalar(I).floor(),y=z;if(oe.bindFramebuffer(36160,Y)&&Ae.drawBuffers&&N&&oe.drawBuffers(T,Y),oe.viewport(S),oe.scissor(L),oe.setScissorTest(y),we){const Ie=X.get(T.texture);q.framebufferTexture2D(36160,36064,34069+F,Ie.__webglTexture,k)}else if(Ce){const Ie=X.get(T.texture),qe=F||0;q.framebufferTextureLayer(36160,36064,Ie.__webglTexture,k||0,qe)}v=-1},this.readRenderTargetPixels=function(T,F,k,N,Y,we,Ce){if(!(T&&T.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Fe=X.get(T).__webglFramebuffer;if(T.isWebGLCubeRenderTarget&&Ce!==void 0&&(Fe=Fe[Ce]),Fe){oe.bindFramebuffer(36160,Fe);try{const Ie=T.texture,qe=Ie.format,Be=Ie.type;if(qe!==zt&&U.convert(qe)!==q.getParameter(35739)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const ke=Be===Wi&&(Me.has("EXT_color_buffer_half_float")||Ae.isWebGL2&&Me.has("EXT_color_buffer_float"));if(Be!==Cn&&U.convert(Be)!==q.getParameter(35738)&&!(Be===on&&(Ae.isWebGL2||Me.has("OES_texture_float")||Me.has("WEBGL_color_buffer_float")))&&!ke){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}F>=0&&F<=T.width-N&&k>=0&&k<=T.height-Y&&q.readPixels(F,k,N,Y,U.convert(qe),U.convert(Be),we)}finally{const Ie=M!==null?X.get(M).__webglFramebuffer:null;oe.bindFramebuffer(36160,Ie)}}},this.copyFramebufferToTexture=function(T,F,k=0){const N=Math.pow(2,-k),Y=Math.floor(F.image.width*N),we=Math.floor(F.image.height*N);W.setTexture2D(F,0),q.copyTexSubImage2D(3553,k,0,0,T.x,T.y,Y,we),oe.unbindTexture()},this.copyTextureToTexture=function(T,F,k,N=0){const Y=F.image.width,we=F.image.height,Ce=U.convert(k.format),Fe=U.convert(k.type);W.setTexture2D(k,0),q.pixelStorei(37440,k.flipY),q.pixelStorei(37441,k.premultiplyAlpha),q.pixelStorei(3317,k.unpackAlignment),F.isDataTexture?q.texSubImage2D(3553,N,T.x,T.y,Y,we,Ce,Fe,F.image.data):F.isCompressedTexture?q.compressedTexSubImage2D(3553,N,T.x,T.y,F.mipmaps[0].width,F.mipmaps[0].height,Ce,F.mipmaps[0].data):q.texSubImage2D(3553,N,T.x,T.y,Ce,Fe,F.image),N===0&&k.generateMipmaps&&q.generateMipmap(3553),oe.unbindTexture()},this.copyTextureToTexture3D=function(T,F,k,N,Y=0){if(p.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const we=T.max.x-T.min.x+1,Ce=T.max.y-T.min.y+1,Fe=T.max.z-T.min.z+1,Ie=U.convert(N.format),qe=U.convert(N.type);let Be;if(N.isData3DTexture)W.setTexture3D(N,0),Be=32879;else if(N.isDataArrayTexture)W.setTexture2DArray(N,0),Be=35866;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}q.pixelStorei(37440,N.flipY),q.pixelStorei(37441,N.premultiplyAlpha),q.pixelStorei(3317,N.unpackAlignment);const ke=q.getParameter(3314),je=q.getParameter(32878),Nn=q.getParameter(3316),gi=q.getParameter(3315),xi=q.getParameter(32877),qt=k.isCompressedTexture?k.mipmaps[0]:k.image;q.pixelStorei(3314,qt.width),q.pixelStorei(32878,qt.height),q.pixelStorei(3316,T.min.x),q.pixelStorei(3315,T.min.y),q.pixelStorei(32877,T.min.z),k.isDataTexture||k.isData3DTexture?q.texSubImage3D(Be,Y,F.x,F.y,F.z,we,Ce,Fe,Ie,qe,qt.data):k.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),q.compressedTexSubImage3D(Be,Y,F.x,F.y,F.z,we,Ce,Fe,Ie,qt.data)):q.texSubImage3D(Be,Y,F.x,F.y,F.z,we,Ce,Fe,Ie,qe,qt),q.pixelStorei(3314,ke),q.pixelStorei(32878,je),q.pixelStorei(3316,Nn),q.pixelStorei(3315,gi),q.pixelStorei(32877,xi),Y===0&&N.generateMipmaps&&q.generateMipmap(Be),oe.unbindTexture()},this.initTexture=function(T){T.isCubeTexture?W.setTextureCube(T,0):T.isData3DTexture?W.setTexture3D(T,0):T.isDataArrayTexture?W.setTexture2DArray(T,0):W.setTexture2D(T,0),oe.unbindTexture()},this.resetState=function(){_=0,x=0,M=null,oe.reset(),_e.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}class $h extends Jh{}$h.prototype.isWebGL1Renderer=!0;class ta{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new ue(e),this.density=t}clone(){return new ta(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}class na{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new ue(e),this.near=t,this.far=n}clone(){return new na(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}class Kh extends We{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),t}}class ia{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=Ps,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Ct()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,s=this.stride;ie.far||t.push({distance:l,point:ps.clone(),uv:Nt.getUV(ps,dr,gs,fr,Yl,ka,Zl,new J),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function pr(o,e,t,n,i,s){zi.subVectors(o,t).addScalar(.5).multiply(n),i!==void 0?(ms.x=s*zi.x-i*zi.y,ms.y=i*zi.x+s*zi.y):ms.copy(zi),o.copy(e),o.x+=ms.x,o.y+=ms.y,o.applyMatrix4(jh)}const mr=new A,Jl=new A;class eu extends We{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let n=0,i=t.length;n0){let n,i;for(n=1,i=t.length;n0){mr.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(mr);this.getObjectForDistance(i).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){mr.setFromMatrixPosition(e.matrixWorld),Jl.setFromMatrixPosition(this.matrixWorld);const n=mr.distanceTo(Jl)/e.zoom;t[0].object.visible=!0;let i,s;for(i=1,s=t.length;i=t[i].distance;i++)t[i-1].object.visible=!1,t[i].object.visible=!0;for(this._currentLevel=i-1;il)continue;d.applyMatrix4(this.matrixWorld);const y=e.ray.origin.distanceTo(d);ye.far||t.push({distance:y,point:u.clone().applyMatrix4(this.matrixWorld),index:M,face:null,faceIndex:null,object:this})}}else{const _=Math.max(0,r.start),x=Math.min(m.count,r.start+r.count);for(let M=_,v=x-1;Ml)continue;d.applyMatrix4(this.matrixWorld);const S=e.ray.origin.distanceTo(d);Se.far||t.push({distance:S,point:u.clone().applyMatrix4(this.matrixWorld),index:M,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,n=Object.keys(t);if(n.length>0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,r=i.length;s0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,r=i.length;si.far)return;s.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:r})}}class Y0 extends ct{constructor(e,t,n,i,s,r,a,l,c){super(e,t,n,i,s,r,a,l,c),this.isVideoTexture=!0,this.minFilter=r!==void 0?r:it,this.magFilter=s!==void 0?s:it,this.generateMipmaps=!1;const h=this;function u(){h.needsUpdate=!0,e.requestVideoFrameCallback(u)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(u)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class Z0 extends ct{constructor(e,t,n){super({width:e,height:t}),this.isFramebufferTexture=!0,this.format=n,this.magFilter=ot,this.minFilter=ot,this.generateMipmaps=!1,this.needsUpdate=!0}}class ru extends ct{constructor(e,t,n,i,s,r,a,l,c,h,u,d){super(null,r,a,l,c,h,i,s,u,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class J0 extends ct{constructor(e,t,n,i,s,r,a,l,c){super(e,t,n,i,s,r,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class Ht{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,i=this.getPoint(0),s=0;t.push(0);for(let r=1;r<=e;r++)n=this.getPoint(r/e),s+=n.distanceTo(i),t.push(s),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let i=0;const s=n.length;let r;t?r=t:r=e*n[s-1];let a=0,l=s-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=n[i]-r,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,n[i]===r)return i/(s-1);const h=n[i],d=n[i+1]-h,f=(r-h)/d;return(i+f)/(s-1)}getTangent(e,t){let i=e-1e-4,s=e+1e-4;i<0&&(i=0),s>1&&(s=1);const r=this.getPoint(i),a=this.getPoint(s),l=t||(r.isVector2?new J:new A);return l.copy(a).sub(r).normalize(),l}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new A,i=[],s=[],r=[],a=new A,l=new Le;for(let f=0;f<=e;f++){const g=f/e;i[f]=this.getTangentAt(g,new A)}s[0]=new A,r[0]=new A;let c=Number.MAX_VALUE;const h=Math.abs(i[0].x),u=Math.abs(i[0].y),d=Math.abs(i[0].z);h<=c&&(c=h,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),s[0].crossVectors(i[0],a),r[0].crossVectors(i[0],s[0]);for(let f=1;f<=e;f++){if(s[f]=s[f-1].clone(),r[f]=r[f-1].clone(),a.crossVectors(i[f-1],i[f]),a.length()>Number.EPSILON){a.normalize();const g=Math.acos(st(i[f-1].dot(i[f]),-1,1));s[f].applyMatrix4(l.makeRotationAxis(a,g))}r[f].crossVectors(i[f],s[f])}if(t===!0){let f=Math.acos(st(s[0].dot(s[e]),-1,1));f/=e,i[0].dot(a.crossVectors(s[0],s[e]))>0&&(f=-f);for(let g=1;g<=e;g++)s[g].applyMatrix4(l.makeRotationAxis(i[g],f*g)),r[g].crossVectors(i[g],s[g])}return{tangents:i,normals:s,binormals:r}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class ra extends Ht{constructor(e=0,t=0,n=1,i=1,s=0,r=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=s,this.aEndAngle=r,this.aClockwise=a,this.aRotation=l}getPoint(e,t){const n=t||new J,i=Math.PI*2;let s=this.aEndAngle-this.aStartAngle;const r=Math.abs(s)i;)s-=i;s0?0:(Math.floor(Math.abs(a)/s)+1)*s:l===0&&a===s-1&&(a=s-2,l=1);let c,h;this.closed||a>0?c=i[(a-1)%s]:(yr.subVectors(i[0],i[1]).add(i[0]),c=yr);const u=i[a%s],d=i[(a+1)%s];if(this.closed||a+2i.length-2?i.length-1:r+1],u=i[r>i.length-3?i.length-1:r+2];return n.set(hc(a,l.x,c.x,h.x,u.x),hc(a,l.y,c.y,h.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const r=i[s]-n,a=this.curves[s],l=a.getLength(),c=l===0?0:1-r/l;return a.getPointAt(c,t)}s++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,i=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const u=c.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(c);const h=c.getPoint(1);return this.currentPoint.copy(h),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class ai extends Pe{constructor(e=[new J(0,-.5),new J(.5,0),new J(0,.5)],t=12,n=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},t=Math.floor(t),i=st(i,0,Math.PI*2);const s=[],r=[],a=[],l=[],c=[],h=1/t,u=new A,d=new J,f=new A,g=new A,p=new A;let m=0,_=0;for(let x=0;x<=e.length-1;x++)switch(x){case 0:m=e[x+1].x-e[x].x,_=e[x+1].y-e[x].y,f.x=_*1,f.y=-m,f.z=_*0,p.copy(f),f.normalize(),l.push(f.x,f.y,f.z);break;case e.length-1:l.push(p.x,p.y,p.z);break;default:m=e[x+1].x-e[x].x,_=e[x+1].y-e[x].y,f.x=_*1,f.y=-m,f.z=_*0,g.copy(f),f.x+=p.x,f.y+=p.y,f.z+=p.z,f.normalize(),l.push(f.x,f.y,f.z),p.copy(g)}for(let x=0;x<=t;x++){const M=n+x*h*i,v=Math.sin(M),b=Math.cos(M);for(let S=0;S<=e.length-1;S++){u.x=e[S].x*v,u.y=e[S].y,u.z=e[S].x*b,r.push(u.x,u.y,u.z),d.x=x/t,d.y=S/(e.length-1),a.push(d.x,d.y);const L=l[3*S+0]*v,y=l[3*S+1],E=l[3*S+0]*b;c.push(L,y,E)}}for(let x=0;x0&&M(!0),t>0&&M(!1)),this.setIndex(h),this.setAttribute("position",new me(u,3)),this.setAttribute("normal",new me(d,3)),this.setAttribute("uv",new me(f,2));function x(){const v=new A,b=new A;let S=0;const L=(t-e)/n;for(let y=0;y<=s;y++){const E=[],P=y/s,I=P*(t-e)+e;for(let Z=0;Z<=i;Z++){const ee=Z/i,D=ee*l+a,H=Math.sin(D),z=Math.cos(D);b.x=I*H,b.y=-P*n+m,b.z=I*z,u.push(b.x,b.y,b.z),v.set(H,L,z).normalize(),d.push(v.x,v.y,v.z),f.push(ee,1-P),E.push(g++)}p.push(E)}for(let y=0;y.9&&L<.1&&(M<.2&&(r[x+0]+=1),v<.2&&(r[x+2]+=1),b<.2&&(r[x+4]+=1))}}function d(x){s.push(x.x,x.y,x.z)}function f(x,M){const v=x*3;M.x=e[v+0],M.y=e[v+1],M.z=e[v+2]}function g(){const x=new A,M=new A,v=new A,b=new A,S=new J,L=new J,y=new J;for(let E=0,P=0;E80*t){a=c=o[0],l=h=o[1];for(let g=t;gc&&(c=u),d>h&&(h=d);f=Math.max(c-a,h-l),f=f!==0?1/f:0}return Fs(s,r,t,a,l,f),r}};function du(o,e,t,n,i){let s,r;if(i===vx(o,e,t,n)>0)for(s=e;s=e;s-=n)r=uc(s,o[s],o[s+1],r);return r&&oa(r,r.next)&&(zs(r),r=r.next),r}function In(o,e){if(!o)return o;e||(e=o);let t=o,n;do if(n=!1,!t.steiner&&(oa(t,t.next)||$e(t.prev,t,t.next)===0)){if(zs(t),t=e=t.prev,t===t.next)break;n=!0}else t=t.next;while(n||t!==e);return e}function Fs(o,e,t,n,i,s,r){if(!o)return;!r&&s&&fx(o,n,i,s);let a=o,l,c;for(;o.prev!==o.next;){if(l=o.prev,c=o.next,s?rx(o,n,i,s):sx(o)){e.push(l.i/t),e.push(o.i/t),e.push(c.i/t),zs(o),o=c.next,a=c.next;continue}if(o=c,o===a){r?r===1?(o=ax(In(o),e,t),Fs(o,e,t,n,i,s,2)):r===2&&ox(o,e,t,n,i,s):Fs(In(o),e,t,n,i,s,1);break}}}function sx(o){const e=o.prev,t=o,n=o.next;if($e(e,t,n)>=0)return!1;let i=o.next.next;for(;i!==o.prev;){if(Vi(e.x,e.y,t.x,t.y,n.x,n.y,i.x,i.y)&&$e(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function rx(o,e,t,n){const i=o.prev,s=o,r=o.next;if($e(i,s,r)>=0)return!1;const a=i.xs.x?i.x>r.x?i.x:r.x:s.x>r.x?s.x:r.x,h=i.y>s.y?i.y>r.y?i.y:r.y:s.y>r.y?s.y:r.y,u=Co(a,l,e,t,n),d=Co(c,h,e,t,n);let f=o.prevZ,g=o.nextZ;for(;f&&f.z>=u&&g&&g.z<=d;){if(f!==o.prev&&f!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,f.x,f.y)&&$e(f.prev,f,f.next)>=0||(f=f.prevZ,g!==o.prev&&g!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,g.x,g.y)&&$e(g.prev,g,g.next)>=0))return!1;g=g.nextZ}for(;f&&f.z>=u;){if(f!==o.prev&&f!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,f.x,f.y)&&$e(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;g&&g.z<=d;){if(g!==o.prev&&g!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,g.x,g.y)&&$e(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function ax(o,e,t){let n=o;do{const i=n.prev,s=n.next.next;!oa(i,s)&&fu(i,n,n.next,s)&&Ns(i,s)&&Ns(s,i)&&(e.push(i.i/t),e.push(n.i/t),e.push(s.i/t),zs(n),zs(n.next),n=o=s),n=n.next}while(n!==o);return In(n)}function ox(o,e,t,n,i,s){let r=o;do{let a=r.next.next;for(;a!==r.prev;){if(r.i!==a.i&&gx(r,a)){let l=pu(r,a);r=In(r,r.next),l=In(l,l.next),Fs(r,e,t,n,i,s),Fs(l,e,t,n,i,s);return}a=a.next}r=r.next}while(r!==o)}function lx(o,e,t,n){const i=[];let s,r,a,l,c;for(s=0,r=e.length;s=t.next.y&&t.next.y!==t.y){const d=t.x+(i-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(d<=n&&d>s){if(s=d,d===n){if(i===t.y)return t;if(i===t.next.y)return t.next}r=t.x=t.x&&t.x>=l&&n!==t.x&&Vi(ir.x||t.x===r.x&&dx(r,t)))&&(r=t,h=u)),t=t.next;while(t!==a);return r}function dx(o,e){return $e(o.prev,o,e.prev)<0&&$e(e.next,o,o.next)<0}function fx(o,e,t,n){let i=o;do i.z===null&&(i.z=Co(i.x,i.y,e,t,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==o);i.prevZ.nextZ=null,i.prevZ=null,px(i)}function px(o){let e,t,n,i,s,r,a,l,c=1;do{for(t=o,o=null,s=null,r=0;t;){for(r++,n=t,a=0,e=0;e0||l>0&&n;)a!==0&&(l===0||!n||t.z<=n.z)?(i=t,t=t.nextZ,a--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:o=i,i.prevZ=s,s=i;t=n}s.nextZ=null,c*=2}while(r>1);return o}function Co(o,e,t,n,i){return o=32767*(o-t)*i,e=32767*(e-n)*i,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,o|e<<1}function mx(o){let e=o,t=o;do(e.x=0&&(o-r)*(n-a)-(t-r)*(e-a)>=0&&(t-r)*(s-a)-(i-r)*(n-a)>=0}function gx(o,e){return o.next.i!==e.i&&o.prev.i!==e.i&&!xx(o,e)&&(Ns(o,e)&&Ns(e,o)&&_x(o,e)&&($e(o.prev,o,e.prev)||$e(o,e.prev,e))||oa(o,e)&&$e(o.prev,o,o.next)>0&&$e(e.prev,e,e.next)>0)}function $e(o,e,t){return(e.y-o.y)*(t.x-e.x)-(e.x-o.x)*(t.y-e.y)}function oa(o,e){return o.x===e.x&&o.y===e.y}function fu(o,e,t,n){const i=Ar($e(o,e,t)),s=Ar($e(o,e,n)),r=Ar($e(t,n,o)),a=Ar($e(t,n,e));return!!(i!==s&&r!==a||i===0&&Sr(o,t,e)||s===0&&Sr(o,n,e)||r===0&&Sr(t,o,n)||a===0&&Sr(t,e,n))}function Sr(o,e,t){return e.x<=Math.max(o.x,t.x)&&e.x>=Math.min(o.x,t.x)&&e.y<=Math.max(o.y,t.y)&&e.y>=Math.min(o.y,t.y)}function Ar(o){return o>0?1:o<0?-1:0}function xx(o,e){let t=o;do{if(t.i!==o.i&&t.next.i!==o.i&&t.i!==e.i&&t.next.i!==e.i&&fu(t,t.next,o,e))return!0;t=t.next}while(t!==o);return!1}function Ns(o,e){return $e(o.prev,o,o.next)<0?$e(o,e,o.next)>=0&&$e(o,o.prev,e)>=0:$e(o,e,o.prev)<0||$e(o,o.next,e)<0}function _x(o,e){let t=o,n=!1;const i=(o.x+e.x)/2,s=(o.y+e.y)/2;do t.y>s!=t.next.y>s&&t.next.y!==t.y&&i<(t.next.x-t.x)*(s-t.y)/(t.next.y-t.y)+t.x&&(n=!n),t=t.next;while(t!==o);return n}function pu(o,e){const t=new Lo(o.i,o.x,o.y),n=new Lo(e.i,e.x,e.y),i=o.next,s=e.prev;return o.next=e,e.prev=o,t.next=i,i.prev=t,n.next=t,t.prev=n,s.next=n,n.prev=s,n}function uc(o,e,t,n){const i=new Lo(o,e,t);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function zs(o){o.next.prev=o.prev,o.prev.next=o.next,o.prevZ&&(o.prevZ.nextZ=o.nextZ),o.nextZ&&(o.nextZ.prevZ=o.prevZ)}function Lo(o,e,t){this.i=o,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function vx(o,e,t,n){let i=0;for(let s=e,r=t-n;s2&&o[e-1].equals(o[0])&&o.pop()}function fc(o,e){for(let t=0;tNumber.EPSILON){const O=Math.sqrt(C),Q=Math.sqrt(Ze*Ze+Xe*Xe),ie=W.x-ye/O,le=W.y+be/O,Te=ne.x-Xe/Q,U=ne.y+Ze/Q,_e=((Te-ie)*Xe-(U-le)*Ze)/(be*Xe-ye*Ze);xe=ie+be*_e-X.x,ae=le+ye*_e-X.y;const fe=xe*xe+ae*ae;if(fe<=2)return new J(xe,ae);Ee=Math.sqrt(fe/2)}else{let O=!1;be>Number.EPSILON?Ze>Number.EPSILON&&(O=!0):be<-Number.EPSILON?Ze<-Number.EPSILON&&(O=!0):Math.sign(ye)===Math.sign(Xe)&&(O=!0),O?(xe=-ye,ae=be,Ee=Math.sqrt(C)):(xe=be,ae=ye,Ee=Math.sqrt(C/2))}return new J(xe/Ee,ae/Ee)}const B=[];for(let X=0,W=D.length,ne=W-1,xe=X+1;X=0;X--){const W=X/m,ne=f*Math.cos(W*Math.PI/2),xe=g*Math.sin(W*Math.PI/2)+p;for(let ae=0,Ee=D.length;ae=0;){const xe=ne;let ae=ne-1;ae<0&&(ae=X.length-1);for(let Ee=0,be=h+m*2;Ee0)&&f.push(M,v,S),(_!==n-1||l0!=e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class vu extends gt{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new ue(16777215),this.specular=new ue(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ue(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Vs,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class yu extends gt{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new ue(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ue(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class Mu extends gt{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class bu extends gt{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new ue(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ue(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Vs,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class wu extends gt{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new ue(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Su extends bt{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function Ft(o,e,t){return nl(o)?new o.constructor(o.subarray(e,t!==void 0?t:o.length)):o.slice(e,t)}function $n(o,e,t){return!o||!t&&o.constructor===e?o:typeof e.BYTES_PER_ELEMENT=="number"?new e(o):Array.prototype.slice.call(o)}function nl(o){return ArrayBuffer.isView(o)&&!(o instanceof DataView)}function Au(o){function e(i,s){return o[i]-o[s]}const t=o.length,n=new Array(t);for(let i=0;i!==t;++i)n[i]=i;return n.sort(e),n}function Po(o,e,t){const n=o.length,i=new o.constructor(n);for(let s=0,r=0;r!==n;++s){const a=t[s]*e;for(let l=0;l!==e;++l)i[r++]=o[a+l]}return i}function il(o,e,t,n){let i=1,s=o[0];for(;s!==void 0&&s[n]===void 0;)s=o[i++];if(s===void 0)return;let r=s[n];if(r!==void 0)if(Array.isArray(r))do r=s[n],r!==void 0&&(e.push(s.time),t.push.apply(t,r)),s=o[i++];while(s!==void 0);else if(r.toArray!==void 0)do r=s[n],r!==void 0&&(e.push(s.time),r.toArray(t,t.length)),s=o[i++];while(s!==void 0);else do r=s[n],r!==void 0&&(e.push(s.time),t.push(r)),s=o[i++];while(s!==void 0)}function wx(o,e,t,n,i=30){const s=o.clone();s.name=e;const r=[];for(let l=0;l=n)){u.push(c.times[f]);for(let p=0;ps.tracks[l].times[0]&&(a=s.tracks[l].times[0]);for(let l=0;l=a.times[g]){const _=g*u+h,x=_+u-h;p=Ft(a.values,_,x)}else{const _=a.createInterpolant(),x=h,M=u-h;_.evaluate(s),p=Ft(_.resultBuffer,x,M)}l==="quaternion"&&new St().fromArray(p).normalize().conjugate().toArray(p);const m=c.times.length;for(let _=0;_=s)){const a=t[1];e=s)break t}r=n,n=0;break n}break e}for(;n>>1;et;)--r;if(++r,s!==0||r!==i){s>=r&&(r=Math.max(r,1),s=r-1);const a=this.getValueSize();this.times=Ft(n,s,r),this.values=Ft(this.values,s*a,r*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,s=n.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let r=null;for(let a=0;a!==s;a++){const l=n[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(r!==null&&r>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,r),e=!1;break}r=l}if(i!==void 0&&nl(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=Ft(this.times),t=Ft(this.values),n=this.getValueSize(),i=this.getInterpolation()===Br,s=e.length-1;let r=1;for(let a=1;a0){e[r]=e[s];for(let a=s*n,l=r*n,c=0;c!==n;++c)t[l+c]=t[a+c];++r}return r!==e.length?(this.times=Ft(e,0,r),this.values=Ft(t,0,r*n)):(this.times=e,this.values=t),this}clone(){const e=Ft(this.times,0),t=Ft(this.values,0),n=this.constructor,i=new n(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}Wt.prototype.TimeBufferType=Float32Array;Wt.prototype.ValueBufferType=Float32Array;Wt.prototype.DefaultInterpolation=Cs;class pi extends Wt{}pi.prototype.ValueTypeName="bool";pi.prototype.ValueBufferType=Array;pi.prototype.DefaultInterpolation=Es;pi.prototype.InterpolantFactoryMethodLinear=void 0;pi.prototype.InterpolantFactoryMethodSmooth=void 0;class rl extends Wt{}rl.prototype.ValueTypeName="color";class Bs extends Wt{}Bs.prototype.ValueTypeName="number";class Cu extends qs{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const s=this.resultBuffer,r=this.sampleValues,a=this.valueSize,l=(n-t)/(i-t);let c=e*a;for(let h=c+a;c!==h;c+=4)St.slerpFlat(s,0,r,c-a,r,c,l);return s}}class ls extends Wt{InterpolantFactoryMethodLinear(e){return new Cu(this.times,this.values,this.getValueSize(),e)}}ls.prototype.ValueTypeName="quaternion";ls.prototype.DefaultInterpolation=Cs;ls.prototype.InterpolantFactoryMethodSmooth=void 0;class mi extends Wt{}mi.prototype.ValueTypeName="string";mi.prototype.ValueBufferType=Array;mi.prototype.DefaultInterpolation=Es;mi.prototype.InterpolantFactoryMethodLinear=void 0;mi.prototype.InterpolantFactoryMethodSmooth=void 0;class Os extends Wt{}Os.prototype.ValueTypeName="vector";class Us{constructor(e,t=-1,n,i=Zr){this.name=e,this.tracks=n,this.duration=t,this.blendMode=i,this.uuid=Ct(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,i=1/(e.fps||1);for(let r=0,a=n.length;r!==a;++r)t.push(Ex(n[r]).scale(i));const s=new this(e.name,e.duration,t,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,r=n.length;s!==r;++s)t.push(Wt.toJSON(n[s]));return i}static CreateFromMorphTargetSequence(e,t,n,i){const s=t.length,r=[];for(let a=0;a1){const u=h[1];let d=i[u];d||(i[u]=d=[]),d.push(c)}}const r=[];for(const a in i)r.push(this.CreateFromMorphTargetSequence(a,i[a],t,n));return r}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(u,d,f,g,p){if(f.length!==0){const m=[],_=[];il(f,m,_,g),m.length!==0&&p.push(new u(d,m,_))}},i=[],s=e.name||"default",r=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let u=0;u{t&&t(s),this.manager.itemEnd(e)},0),s;if(rn[e]!==void 0){rn[e].push({onLoad:t,onProgress:n,onError:i});return}rn[e]=[],rn[e].push({onLoad:t,onProgress:n,onError:i});const r=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(r).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const h=rn[e],u=c.body.getReader(),d=c.headers.get("Content-Length"),f=d?parseInt(d):0,g=f!==0;let p=0;const m=new ReadableStream({start(_){x();function x(){u.read().then(({done:M,value:v})=>{if(M)_.close();else{p+=v.byteLength;const b=new ProgressEvent("progress",{lengthComputable:g,loaded:p,total:f});for(let S=0,L=h.length;S{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(h=>new DOMParser().parseFromString(h,a));case"json":return c.json();default:if(a===void 0)return c.text();{const u=/charset="?([^;"\s]*)"?/i.exec(a),d=u&&u[1]?u[1].toLowerCase():void 0,f=new TextDecoder(d);return c.arrayBuffer().then(g=>f.decode(g))}}}).then(c=>{ci.add(e,c);const h=rn[e];delete rn[e];for(let u=0,d=h.length;u{const h=rn[e];if(h===void 0)throw this.manager.itemError(e),c;delete rn[e];for(let u=0,d=h.length;u{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Lx extends Lt{constructor(e){super(e)}load(e,t,n,i){const s=this,r=new hn(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials),r.load(e,function(a){try{t(s.parse(JSON.parse(a)))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},n,i)}parse(e){const t=[];for(let n=0;n0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const s in e.uniforms){const r=e.uniforms[s];switch(i.uniforms[s]={},r.type){case"t":i.uniforms[s].value=n(r.value);break;case"c":i.uniforms[s].value=new ue().setHex(r.value);break;case"v2":i.uniforms[s].value=new J().fromArray(r.value);break;case"v3":i.uniforms[s].value=new A().fromArray(r.value);break;case"v4":i.uniforms[s].value=new He().fromArray(r.value);break;case"m3":i.uniforms[s].value=new wt().fromArray(r.value);break;case"m4":i.uniforms[s].value=new Le().fromArray(r.value);break;default:i.uniforms[s].value=r.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.extensions!==void 0)for(const s in e.extensions)i.extensions[s]=e.extensions[s];if(e.shading!==void 0&&(i.flatShading=e.shading===1),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=n(e.map)),e.matcap!==void 0&&(i.matcap=n(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=n(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=n(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=n(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let s=e.normalScale;Array.isArray(s)===!1&&(s=[s,s]),i.normalScale=new J().fromArray(s)}return e.displacementMap!==void 0&&(i.displacementMap=n(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=n(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=n(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=n(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=n(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=n(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=n(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=n(e.envMap)),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=n(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=n(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=n(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=n(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=n(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new J().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=n(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=n(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=n(e.thicknessMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=n(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=n(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const t={ShadowMaterial:gu,SpriteMaterial:Xo,RawShaderMaterial:xu,ShaderMaterial:Jt,PointsMaterial:Zo,MeshPhysicalMaterial:_u,MeshStandardMaterial:tl,MeshPhongMaterial:vu,MeshToonMaterial:yu,MeshNormalMaterial:Mu,MeshLambertMaterial:bu,MeshDepthMaterial:Wo,MeshDistanceMaterial:qo,MeshBasicMaterial:Dn,MeshMatcapMaterial:wu,LineDashedMaterial:Su,LineBasicMaterial:bt,Material:gt};return new t[e]}}class Ro{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let n=0,i=e.length;n0){const l=new al(t);s=new ks(l),s.setCrossOrigin(this.crossOrigin);for(let c=0,h=e.length;c0){i=new ks(this.manager),i.setCrossOrigin(this.crossOrigin);for(let r=0,a=e.length;r"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,r=ci.get(e);if(r!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(r),s.manager.itemEnd(e)},0),r;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(l){ci.add(e,l),t&&t(l),s.manager.itemEnd(e)}).catch(function(l){i&&i(l),s.manager.itemError(e),s.manager.itemEnd(e)}),s.manager.itemStart(e)}}let Tr;const ll={getContext:function(){return Tr===void 0&&(Tr=new(window.AudioContext||window.webkitAudioContext)),Tr},setContext:function(o){Tr=o}};class kx extends Lt{constructor(e){super(e)}load(e,t,n,i){const s=this,r=new hn(this.manager);r.setResponseType("arraybuffer"),r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials),r.load(e,function(a){try{const l=a.slice(0);ll.getContext().decodeAudioData(l,function(h){t(h)})}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},n,i)}}class Vx extends la{constructor(e,t,n=1){super(void 0,n),this.isHemisphereLightProbe=!0;const i=new ue().set(e),s=new ue().set(t),r=new A(i.r,i.g,i.b),a=new A(s.r,s.g,s.b),l=Math.sqrt(Math.PI),c=l*Math.sqrt(.75);this.sh.coefficients[0].copy(r).add(a).multiplyScalar(l),this.sh.coefficients[1].copy(r).sub(a).multiplyScalar(c)}}class Gx extends la{constructor(e,t=1){super(void 0,t),this.isAmbientLightProbe=!0;const n=new ue().set(e);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}const bc=new Le,wc=new Le,Un=new Le;class Hx{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new dt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new dt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,Un.copy(e.projectionMatrix);const i=t.eyeSep/2,s=i*t.near/t.focus,r=t.near*Math.tan(Qn*t.fov*.5)/t.zoom;let a,l;wc.elements[12]=-i,bc.elements[12]=i,a=-r*t.aspect+s,l=r*t.aspect+s,Un.elements[0]=2*t.near/(l-a),Un.elements[8]=(l+a)/(l-a),this.cameraL.projectionMatrix.copy(Un),a=-r*t.aspect-s,l=r*t.aspect-s,Un.elements[0]=2*t.near/(l-a),Un.elements[8]=(l+a)/(l-a),this.cameraR.projectionMatrix.copy(Un)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(wc),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(bc)}}class Uu{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Sc(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=Sc();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function Sc(){return(typeof performance>"u"?Date:performance).now()}const kn=new A,Ac=new St,Wx=new A,Vn=new A;class qx extends We{constructor(){super(),this.type="AudioListener",this.context=ll.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Uu}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(kn,Ac,Wx),Vn.set(0,0,-1).applyQuaternion(Ac),t.positionX){const i=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(kn.x,i),t.positionY.linearRampToValueAtTime(kn.y,i),t.positionZ.linearRampToValueAtTime(kn.z,i),t.forwardX.linearRampToValueAtTime(Vn.x,i),t.forwardY.linearRampToValueAtTime(Vn.y,i),t.forwardZ.linearRampToValueAtTime(Vn.z,i),t.upX.linearRampToValueAtTime(n.x,i),t.upY.linearRampToValueAtTime(n.y,i),t.upZ.linearRampToValueAtTime(n.z,i)}else t.setPosition(kn.x,kn.y,kn.z),t.setOrientation(Vn.x,Vn.y,Vn.z,n.x,n.y,n.z)}}class ku extends We{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,i,this._addIndex*t,1,t);for(let l=t,c=t+t;l!==c;++l)if(n[l]!==n[l+t]){a.setValue(n,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,i=n*this._origIndex;e.getValue(t,i);for(let s=n,r=i;s!==r;++s)t[s]=t[i+s%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let r=0;r!==s;++r)e[t+r]=e[n+r]}_slerp(e,t,n,i){St.slerpFlat(e,t,e,t,e,n,i)}_slerpAdditive(e,t,n,i,s){const r=this._workIndex*s;St.multiplyQuaternionsFlat(e,r,e,t,e,n),St.slerpFlat(e,t,e,t,e,r,i)}_lerp(e,t,n,i,s){const r=1-i;for(let a=0;a!==s;++a){const l=t+a;e[l]=e[l]*r+e[n+a]*i}}_lerpAdditive(e,t,n,i,s){for(let r=0;r!==s;++r){const a=t+r;e[a]=e[a]+e[n+r]*i}}}const cl="\\[\\]\\.:\\/",Jx=new RegExp("["+cl+"]","g"),hl="[^"+cl+"]",$x="[^"+cl.replace("\\.","")+"]",Kx=/((?:WC+[\/:])*)/.source.replace("WC",hl),jx=/(WCOD+)?/.source.replace("WCOD",$x),Qx=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",hl),e_=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",hl),t_=new RegExp("^"+Kx+jx+Qx+e_+"$"),n_=["material","materials","bones"];class i_{constructor(e,t,n){const i=n||Oe.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];i!==void 0&&i.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=n.length;i!==s;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class Oe{constructor(e,t,n){this.path=t,this.parsedPath=n||Oe.parseTrackName(t),this.node=Oe.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new Oe.Composite(e,t,n):new Oe(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Jx,"")}static parseTrackName(e){const t=t_.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=n.nodeName.substring(i+1);n_.indexOf(s)!==-1&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=s)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){const n=function(s){for(let r=0;r=s){const u=s++,d=e[u];t[d.uuid]=h,e[h]=d,t[c]=u,e[u]=l;for(let f=0,g=i;f!==g;++f){const p=n[f],m=p[u],_=p[h];p[h]=m,p[u]=_}}}this.nCachedObjects_=s}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,i=n.length;let s=this.nCachedObjects_,r=e.length;for(let a=0,l=arguments.length;a!==l;++a){const c=arguments[a],h=c.uuid,u=t[h];if(u!==void 0)if(delete t[h],u0&&(t[f.uuid]=u),e[u]=f,e.pop();for(let g=0,p=i;g!==p;++g){const m=n[g];m[u]=m[d],m.pop()}}}this.nCachedObjects_=s}subscribe_(e,t){const n=this._bindingsIndicesByPath;let i=n[e];const s=this._bindings;if(i!==void 0)return s[i];const r=this._paths,a=this._parsedPaths,l=this._objects,c=l.length,h=this.nCachedObjects_,u=new Array(c);i=s.length,n[e]=i,r.push(e),a.push(t),s.push(u);for(let d=h,f=l.length;d!==f;++d){const g=l[d];u[d]=new Oe(g,e,t)}return u}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(n!==void 0){const i=this._paths,s=this._parsedPaths,r=this._bindings,a=r.length-1,l=r[a],c=e[a];t[c]=n,r[n]=l,r.pop(),s[n]=s[a],s.pop(),i[n]=i[a],i.pop()}}}class r_{constructor(e,t,n=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=i;const s=t.tracks,r=s.length,a=new Array(r),l={endingStart:Yn,endingEnd:Yn};for(let c=0;c!==r;++c){const h=s[c].createInterpolant(null);a[c]=h,h.settings=l}this._interpolantSettings=l,this._interpolants=a,this._propertyBindings=new Array(r),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Ch,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const i=this._clip.duration,s=e._clip.duration,r=s/i,a=i/s;e.warp(1,r,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const i=this._mixer,s=i.time,r=this.timeScale;let a=this._timeScaleInterpolant;a===null&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const l=a.parameterPositions,c=a.sampleValues;return l[0]=s,l[1]=s+n,c[0]=e/r,c[1]=t/r,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,i){if(!this.enabled){this._updateWeight(e);return}const s=this._startTime;if(s!==null){const l=(e-s)*n;if(l<0||n===0)return;this._startTime=null,t=n*l}t*=this._updateTimeScale(e);const r=this._updateTime(t),a=this._updateWeight(e);if(a>0){const l=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case Oo:for(let h=0,u=l.length;h!==u;++h)l[h].evaluate(r),c[h].accumulateAdditive(a);break;case Zr:default:for(let h=0,u=l.length;h!==u;++h)l[h].evaluate(r),c[h].accumulate(i,a)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let i=this.time+e,s=this._loopCount;const r=n===Lh;if(e===0)return s===-1?i:r&&(s&1)===1?t-i:i;if(n===Eh){s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(s===-1&&(e>=0?(s=0,this._setEndings(!0,this.repetitions===0,r)):this._setEndings(this.repetitions===0,!0,r)),i>=t||i<0){const a=Math.floor(i/t);i-=t*a,s+=Math.abs(a);const l=this.repetitions-s;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const c=e<0;this._setEndings(c,!c,r)}else this._setEndings(!1,!1,r);this._loopCount=s,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}else this.time=i;if(r&&(s&1)===1)return t-i}return i}_setEndings(e,t,n){const i=this._interpolantSettings;n?(i.endingStart=Zn,i.endingEnd=Zn):(e?i.endingStart=this.zeroSlopeAtStart?Zn:Yn:i.endingStart=Ls,t?i.endingEnd=this.zeroSlopeAtEnd?Zn:Yn:i.endingEnd=Ls)}_scheduleFading(e,t,n){const i=this._mixer,s=i.time;let r=this._weightInterpolant;r===null&&(r=i._lendControlInterpolant(),this._weightInterpolant=r);const a=r.parameterPositions,l=r.sampleValues;return a[0]=s,l[0]=t,a[1]=s+e,l[1]=n,this}}const a_=new Float32Array(1);class o_ extends un{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,i=e._clip.tracks,s=i.length,r=e._propertyBindings,a=e._interpolants,l=n.uuid,c=this._bindingsByRootAndName;let h=c[l];h===void 0&&(h={},c[l]=h);for(let u=0;u!==s;++u){const d=i[u],f=d.name;let g=h[f];if(g!==void 0)++g.referenceCount,r[u]=g;else{if(g=r[u],g!==void 0){g._cacheIndex===null&&(++g.referenceCount,this._addInactiveBinding(g,l,f));continue}const p=t&&t._propertyBindings[u].binding.parsedPath;g=new Vu(Oe.create(n,f,p),d.ValueTypeName,d.getValueSize()),++g.referenceCount,this._addInactiveBinding(g,l,f),r[u]=g}a[u].resultBuffer=g.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const n=(e._localRoot||this._root).uuid,i=e._clip.uuid,s=this._actionsByClip[i];this._bindAction(e,s&&s.knownActions[0]),this._addInactiveAction(e,i,n)}const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const s=t[n];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const s=t[n];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return t!==null&&t=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,i=this.time+=e,s=Math.sign(e),r=this._accuIndex^=1;for(let c=0;c!==n;++c)t[c]._update(i,e,s,r);const a=this._bindings,l=this._nActiveBindings;for(let c=0;c!==l;++c)a[c].apply(r);return this}setTime(e){this.time=0;for(let t=0;tthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return Cc.copy(e).clamp(this.min,this.max).sub(e).length()}intersect(e){return this.min.max(e.min),this.max.min(e.max),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Lc=new A,Er=new A;class g_{constructor(e=new A,t=new A){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){Lc.subVectors(e,this.start),Er.subVectors(this.end,this.start);const n=Er.dot(Er);let s=Er.dot(Lc)/n;return t&&(s=st(s,0,1)),s}closestPointToPoint(e,t,n){const i=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const Pc=new A;class x_ extends We{constructor(e,t){super(),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t;const n=new Pe,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let r=0,a=1,l=32;r.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{Nc.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(Nc,t)}}setLength(e,t=e*.2,n=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}}class P_ extends Kt{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new Pe;i.setAttribute("position",new me(t,3)),i.setAttribute("color",new me(n,3));const s=new bt({vertexColors:!0,toneMapped:!1});super(i,s),this.type="AxesHelper"}setColors(e,t,n){const i=new ue,s=this.geometry.attributes.color.array;return i.set(e),i.toArray(s,0),i.toArray(s,3),i.set(t),i.toArray(s,6),i.toArray(s,9),i.set(n),i.toArray(s,12),i.toArray(s,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class R_{constructor(){this.type="ShapePath",this.color=new ue,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Ds,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,i){return this.currentPath.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,s,r){return this.currentPath.bezierCurveTo(e,t,n,i,s,r),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e,t){function n(x){const M=[];for(let v=0,b=x.length;vNumber.EPSILON){if(I<0&&(y=M[L],P=-P,E=M[S],I=-I),x.yE.y)continue;if(x.y===y.y){if(x.x===y.x)return!0}else{const Z=I*(x.x-y.x)-P*(x.y-y.y);if(Z===0)return!0;if(Z<0)continue;b=!b}}else{if(x.y!==y.y)continue;if(E.x<=x.x&&x.x<=y.x||y.x<=x.x&&x.x<=E.x)return!0}}return b}const s=Zt.isClockWise,r=this.subPaths;if(r.length===0)return[];if(t===!0)return n(r);let a,l,c;const h=[];if(r.length===1)return l=r[0],c=new ti,c.curves=l.curves,h.push(c),h;let u=!s(r[0].getPoints());u=e?!u:u;const d=[],f=[];let g=[],p=0,m;f[p]=void 0,g[p]=[];for(let x=0,M=r.length;x1){let x=!1,M=0;for(let v=0,b=f.length;v0&&x===!1&&(g=d)}let _;for(let x=0,M=f.length;x>-c-14,n[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,i[l]=24,i[l|256]=24):(n[l]=31744,n[l|256]=64512,i[l]=13,i[l|256]=13)}const s=new Uint32Array(2048),r=new Uint32Array(64),a=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,h=0;for(;!(c&8388608);)c<<=1,h-=8388608;c&=-8388609,h+=947912704,s[l]=c|h}for(let l=1024;l<2048;++l)s[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)r[l]=l<<23;r[31]=1199570944,r[32]=2147483648;for(let l=33;l<63;++l)r[l]=2147483648+(l-32<<23);r[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(a[l]=1024);return{floatView:e,uint32View:t,baseTable:n,shiftTable:i,mantissaTable:s,exponentTable:r,offsetTable:a}}function D_(o){Math.abs(o)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),o=st(o,-65504,65504),an.floatView[0]=o;const e=an.uint32View[0],t=e>>23&511;return an.baseTable[t]+((e&8388607)>>an.shiftTable[t])}function F_(o){const e=o>>10;return an.uint32View[0]=an.mantissaTable[an.offsetTable[e]+(o&1023)]+an.exponentTable[e],an.floatView[0]}var N_=Object.freeze({__proto__:null,toHalfFloat:D_,fromHalfFloat:F_});class z_ extends Pe{constructor(){console.error("THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js"),super()}}class B_ extends Pe{constructor(){console.error("THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js"),super()}}function O_(){console.error("THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js")}function U_(){console.error("THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js")}function k_(){console.error("THREE.ImmediateRenderObject has been removed.")}class V_ extends Ot{constructor(e,t,n){console.error('THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.'),super(e,t,n),this.samples=4}}class G_ extends Gs{constructor(e,t,n,i){console.warn("THREE.DataTexture2DArray has been renamed to DataArrayTexture."),super(e,t,n,i)}}class H_ extends Jr{constructor(e,t,n,i){console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."),super(e,t,n,i)}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Xr}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Xr);const W_=Object.freeze(Object.defineProperty({__proto__:null,ACESFilmicToneMapping:hh,AddEquation:qn,AddOperation:ah,AdditiveAnimationBlendMode:Oo,AdditiveBlending:$a,AlphaFormat:xh,AlwaysDepth:Qc,AlwaysStencilFunc:Dh,AmbientLight:Fu,AmbientLightProbe:Gx,AnimationClip:Us,AnimationLoader:Lx,AnimationMixer:o_,AnimationObjectGroup:s_,AnimationUtils:Ax,ArcCurve:au,ArrayCamera:Yh,ArrowHelper:L_,Audio:ku,AudioAnalyser:Zx,AudioContext:ll,AudioListener:qx,AudioLoader:kx,AxesHelper:P_,BackSide:Bt,BasicDepthPacking:Ph,BasicShadowMap:Ku,Bone:Yo,BooleanKeyframeTrack:pi,Box2:m_,Box3:di,Box3Helper:E_,BoxBufferGeometry:cn,BoxGeometry:cn,BoxHelper:T_,BufferAttribute:Ye,BufferGeometry:Pe,BufferGeometryLoader:Ou,ByteType:dh,Cache:ci,Camera:Kr,CameraHelper:A_,CanvasTexture:J0,CapsuleBufferGeometry:Yi,CapsuleGeometry:Yi,CatmullRomCurve3:ou,CineonToneMapping:ch,CircleBufferGeometry:Zi,CircleGeometry:Zi,ClampToEdgeWrapping:vt,Clock:Uu,Color:ue,ColorKeyframeTrack:rl,ColorManagement:Dt,CompressedTexture:ru,CompressedTextureLoader:Px,ConeBufferGeometry:Ji,ConeGeometry:Ji,CubeCamera:Oh,CubeReflectionMapping:Tn,CubeRefractionMapping:En,CubeTexture:Ws,CubeTextureLoader:Rx,CubeUVReflectionMapping:rs,CubicBezierCurve:$o,CubicBezierCurve3:lu,CubicInterpolant:Tu,CullFaceBack:Ja,CullFaceFront:Bc,CullFaceFrontBack:$u,CullFaceNone:zc,Curve:Ht,CurvePath:hu,CustomBlending:kc,CustomToneMapping:uh,CylinderBufferGeometry:Rn,CylinderGeometry:Rn,Cylindrical:p_,Data3DTexture:Jr,DataArrayTexture:Gs,DataTexture:Gi,DataTexture2DArray:G_,DataTexture3D:H_,DataTextureLoader:Ix,DataUtils:N_,DecrementStencilOp:hd,DecrementWrapStencilOp:dd,DefaultLoadingManager:Lu,DepthFormat:An,DepthStencilFormat:ii,DepthTexture:Zh,DirectionalLight:Du,DirectionalLightHelper:S_,DiscreteInterpolant:Eu,DodecahedronBufferGeometry:$i,DodecahedronGeometry:$i,DoubleSide:ni,DstAlphaFactor:Yc,DstColorFactor:Jc,DynamicCopyUsage:Ed,DynamicDrawUsage:Md,DynamicReadUsage:Sd,EdgesGeometry:uu,EllipseCurve:ra,EqualDepth:th,EqualStencilFunc:gd,EquirectangularReflectionMapping:ws,EquirectangularRefractionMapping:Ss,Euler:as,EventDispatcher:un,ExtrudeBufferGeometry:Ki,ExtrudeGeometry:Ki,FileLoader:hn,FlatShading:Uc,Float16BufferAttribute:uf,Float32BufferAttribute:me,Float64BufferAttribute:df,FloatType:on,Fog:na,FogExp2:ta,Font:U_,FontLoader:O_,FramebufferTexture:Z0,FrontSide:Hi,Frustum:jr,GLBufferAttribute:u_,GLSL1:Ld,GLSL3:wo,GreaterDepth:ih,GreaterEqualDepth:nh,GreaterEqualStencilFunc:yd,GreaterStencilFunc:_d,GridHelper:b_,Group:ki,HalfFloatType:Wi,HemisphereLight:Pu,HemisphereLightHelper:M_,HemisphereLightProbe:Vx,IcosahedronBufferGeometry:ji,IcosahedronGeometry:ji,ImageBitmapLoader:Ux,ImageLoader:ks,ImageUtils:ko,ImmediateRenderObject:k_,IncrementStencilOp:cd,IncrementWrapStencilOp:ud,InstancedBufferAttribute:Xi,InstancedBufferGeometry:Bu,InstancedInterleavedBuffer:h_,InstancedMesh:nu,Int16BufferAttribute:cf,Int32BufferAttribute:hf,Int8BufferAttribute:af,IntType:ph,InterleavedBuffer:ia,InterleavedBufferAttribute:ri,Interpolant:qs,InterpolateDiscrete:Es,InterpolateLinear:Cs,InterpolateSmooth:Br,InvertStencilOp:fd,KeepStencilOp:Or,KeyframeTrack:Wt,LOD:eu,LatheBufferGeometry:ai,LatheGeometry:ai,Layers:$r,LessDepth:eh,LessEqualDepth:Vr,LessEqualStencilFunc:xd,LessStencilFunc:md,Light:Fn,LightProbe:la,Line:Pn,Line3:g_,LineBasicMaterial:bt,LineCurve:aa,LineCurve3:cu,LineDashedMaterial:Su,LineLoop:iu,LineSegments:Kt,LinearEncoding:Ln,LinearFilter:it,LinearInterpolant:sl,LinearMipMapLinearFilter:nd,LinearMipMapNearestFilter:td,LinearMipmapLinearFilter:hi,LinearMipmapNearestFilter:zo,LinearSRGBColorSpace:Sn,LinearToneMapping:oh,Loader:Lt,LoaderUtils:Ro,LoadingManager:al,LoopOnce:Eh,LoopPingPong:Lh,LoopRepeat:Ch,LuminanceAlphaFormat:yh,LuminanceFormat:vh,MOUSE:Zu,Material:gt,MaterialLoader:ca,MathUtils:qd,Matrix3:wt,Matrix4:Le,MaxEquation:eo,Mesh:ft,MeshBasicMaterial:Dn,MeshDepthMaterial:Wo,MeshDistanceMaterial:qo,MeshLambertMaterial:bu,MeshMatcapMaterial:wu,MeshNormalMaterial:Mu,MeshPhongMaterial:vu,MeshPhysicalMaterial:_u,MeshStandardMaterial:tl,MeshToonMaterial:yu,MinEquation:Qa,MirroredRepeatWrapping:Ts,MixOperation:rh,MultiplyBlending:ja,MultiplyOperation:Vs,NearestFilter:ot,NearestMipMapLinearFilter:ed,NearestMipMapNearestFilter:Qu,NearestMipmapLinearFilter:Hr,NearestMipmapNearestFilter:Gr,NeverDepth:jc,NeverStencilFunc:pd,NoBlending:ln,NoColorSpace:ad,NoToneMapping:Yt,NormalAnimationBlendMode:Zr,NormalBlending:Kn,NotEqualDepth:sh,NotEqualStencilFunc:vd,NumberKeyframeTrack:Bs,Object3D:We,ObjectLoader:Bx,ObjectSpaceNormalMap:Ih,OctahedronBufferGeometry:oi,OctahedronGeometry:oi,OneFactor:Wc,OneMinusDstAlphaFactor:Zc,OneMinusDstColorFactor:$c,OneMinusSrcAlphaFactor:No,OneMinusSrcColorFactor:Xc,OrthographicCamera:Qr,PCFShadowMap:Do,PCFSoftShadowMap:Oc,PMREMGenerator:Ao,ParametricGeometry:z_,Path:Ds,PerspectiveCamera:dt,Plane:bn,PlaneBufferGeometry:si,PlaneGeometry:si,PlaneHelper:C_,PointLight:Iu,PointLightHelper:v_,Points:su,PointsMaterial:Zo,PolarGridHelper:w_,PolyhedronBufferGeometry:$t,PolyhedronGeometry:$t,PositionalAudio:Yx,PropertyBinding:Oe,PropertyMixer:Vu,QuadraticBezierCurve:Ko,QuadraticBezierCurve3:jo,Quaternion:St,QuaternionKeyframeTrack:ls,QuaternionLinearInterpolant:Cu,REVISION:Xr,RGBADepthPacking:Rh,RGBAFormat:zt,RGBAIntegerFormat:Ah,RGBA_ASTC_10x10_Format:vo,RGBA_ASTC_10x5_Format:go,RGBA_ASTC_10x6_Format:xo,RGBA_ASTC_10x8_Format:_o,RGBA_ASTC_12x10_Format:yo,RGBA_ASTC_12x12_Format:Mo,RGBA_ASTC_4x4_Format:oo,RGBA_ASTC_5x4_Format:lo,RGBA_ASTC_5x5_Format:co,RGBA_ASTC_6x5_Format:ho,RGBA_ASTC_6x6_Format:uo,RGBA_ASTC_8x5_Format:fo,RGBA_ASTC_8x6_Format:po,RGBA_ASTC_8x8_Format:mo,RGBA_BPTC_Format:bo,RGBA_ETC2_EAC_Format:ao,RGBA_PVRTC_2BPPV1_Format:so,RGBA_PVRTC_4BPPV1_Format:io,RGBA_S3TC_DXT1_Format:Fr,RGBA_S3TC_DXT3_Format:Nr,RGBA_S3TC_DXT5_Format:zr,RGBFormat:_h,RGB_ETC1_Format:Th,RGB_ETC2_Format:ro,RGB_PVRTC_2BPPV1_Format:no,RGB_PVRTC_4BPPV1_Format:to,RGB_S3TC_DXT1_Format:Dr,RGFormat:wh,RGIntegerFormat:Sh,RawShaderMaterial:xu,Ray:Hs,Raycaster:d_,RectAreaLight:Nu,RedFormat:Mh,RedIntegerFormat:bh,ReinhardToneMapping:lh,RepeatWrapping:As,ReplaceStencilOp:ld,ReverseSubtractEquation:Gc,RingBufferGeometry:Qi,RingGeometry:Qi,SRGBColorSpace:Xt,Scene:Kh,ShaderChunk:Ne,ShaderLib:Gt,ShaderMaterial:Jt,ShadowMaterial:gu,Shape:ti,ShapeBufferGeometry:es,ShapeGeometry:es,ShapePath:R_,ShapeUtils:Zt,ShortType:fh,Skeleton:sa,SkeletonHelper:__,SkinnedMesh:tu,SmoothShading:ju,Source:Jn,Sphere:fi,SphereBufferGeometry:li,SphereGeometry:li,Spherical:f_,SphericalHarmonics3:zu,SplineCurve:Qo,SpotLight:Ru,SpotLightHelper:x_,Sprite:Qh,SpriteMaterial:Xo,SrcAlphaFactor:Fo,SrcAlphaSaturateFactor:Kc,SrcColorFactor:qc,StaticCopyUsage:Td,StaticDrawUsage:Ps,StaticReadUsage:wd,StereoCamera:Hx,StreamCopyUsage:Cd,StreamDrawUsage:bd,StreamReadUsage:Ad,StringKeyframeTrack:mi,SubtractEquation:Vc,SubtractiveBlending:Ka,TOUCH:Ju,TangentSpaceNormalMap:ui,TetrahedronBufferGeometry:ts,TetrahedronGeometry:ts,TextGeometry:B_,Texture:ct,TextureLoader:Dx,TorusBufferGeometry:ns,TorusGeometry:ns,TorusKnotBufferGeometry:is,TorusKnotGeometry:is,Triangle:Nt,TriangleFanDrawMode:rd,TriangleStripDrawMode:sd,TrianglesDrawMode:id,TubeBufferGeometry:ss,TubeGeometry:ss,UVMapping:Yr,Uint16BufferAttribute:Vo,Uint32BufferAttribute:Go,Uint8BufferAttribute:of,Uint8ClampedBufferAttribute:lf,Uniform:ul,UniformsGroup:c_,UniformsLib:re,UniformsUtils:Bh,UnsignedByteType:Cn,UnsignedInt248Type:jn,UnsignedIntType:wn,UnsignedShort4444Type:mh,UnsignedShort5551Type:gh,UnsignedShortType:Bo,VSMShadowMap:Bi,Vector2:J,Vector3:A,Vector4:He,VectorKeyframeTrack:Os,VideoTexture:Y0,WebGL1Renderer:$h,WebGL3DRenderTarget:Jd,WebGLArrayRenderTarget:Zd,WebGLCubeRenderTarget:Uh,WebGLMultipleRenderTargets:$d,WebGLMultisampleRenderTarget:V_,WebGLRenderTarget:Ot,WebGLRenderer:Jh,WebGLUtils:Xh,WireframeGeometry:mu,WrapAroundEnding:Ls,ZeroCurvatureEnding:Yn,ZeroFactor:Hc,ZeroSlopeEnding:Zn,ZeroStencilOp:od,_SRGBAFormat:Wr,sRGBEncoding:Je},Symbol.toStringTag,{value:"Module"}));export{Kh as $,Zu as A,m_ as B,ue as C,Zh as D,Ki as E,on as F,ki as G,Wi as H,Ju as I,dt as J,f_ as K,it as L,wt as M,jo as N,Qr as O,Ds as P,St as Q,Hs as R,ti as S,Dx as T,$r as U,A as V,Ot as W,ct as X,zt as Y,Cn as Z,d_ as _,Lu as a,Oc as a0,Yt as a1,hh as a2,Jh as a3,Kr as a4,Ku as a5,Do as a6,Bi as a7,Uu as a8,Bu as a9,h_ as aa,ri as ab,mu as ac,Jt as ad,Bh as ae,re as af,Xr as ag,He as ah,g_ as ai,Wo as aj,Rh as ak,qo as al,Ne as am,Hi as an,Bt as ao,Xi as ap,si as aq,Kn as ar,We as as,su as at,jr as b,Lt as c,hn as d,J as e,Zt as f,Pe as g,me as h,R_ as i,ni as j,W_ as k,Md as l,Le as m,gt as n,ft as o,Uh as p,Oh as q,cn as r,qd as s,ns as t,tl as u,Dn as v,di as w,fi as x,bn as y,un as z}; +}`;function B0(o,e,t){let n=new jr;const i=new J,s=new J,r=new He,a=new Wo({depthPacking:Rh}),l=new qo,c={},h=t.maxTextureSize,u={0:Bt,1:Hi,2:ni},d=new Jt({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new J},radius:{value:4}},vertexShader:N0,fragmentShader:z0}),f=d.clone();f.defines.HORIZONTAL_PASS=1;const g=new Pe;g.setAttribute("position",new Ye(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const p=new ft(g,d),m=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Do,this.render=function(v,b,S){if(m.enabled===!1||m.autoUpdate===!1&&m.needsUpdate===!1||v.length===0)return;const L=o.getRenderTarget(),y=o.getActiveCubeFace(),E=o.getActiveMipmapLevel(),P=o.state;P.setBlending(ln),P.buffers.color.setClear(1,1,1,1),P.buffers.depth.setTest(!0),P.setScissorTest(!1);for(let I=0,Z=v.length;Ih||i.y>h)&&(i.x>h&&(s.x=Math.floor(h/H.x),i.x=s.x*H.x,D.mapSize.x=s.x),i.y>h&&(s.y=Math.floor(h/H.y),i.y=s.y*H.y,D.mapSize.y=s.y)),D.map===null){const K=this.type!==Bi?{minFilter:ot,magFilter:ot}:{};D.map=new Ot(i.x,i.y,K),D.map.texture.name=ee.name+".shadowMap",D.camera.updateProjectionMatrix()}o.setRenderTarget(D.map),o.clear();const z=D.getViewportCount();for(let K=0;K0){const Z=P.uuid,ee=b.uuid;let D=c[Z];D===void 0&&(D={},c[Z]=D);let H=D[ee];H===void 0&&(H=P.clone(),D[ee]=H),P=H}return P.visible=b.visible,P.wireframe=b.wireframe,E===Bi?P.side=b.shadowSide!==null?b.shadowSide:b.side:P.side=b.shadowSide!==null?b.shadowSide:u[b.side],P.alphaMap=b.alphaMap,P.alphaTest=b.alphaTest,P.clipShadows=b.clipShadows,P.clippingPlanes=b.clippingPlanes,P.clipIntersection=b.clipIntersection,P.displacementMap=b.displacementMap,P.displacementScale=b.displacementScale,P.displacementBias=b.displacementBias,P.wireframeLinewidth=b.wireframeLinewidth,P.linewidth=b.linewidth,S.isPointLight===!0&&P.isMeshDistanceMaterial===!0&&(P.referencePosition.setFromMatrixPosition(S.matrixWorld),P.nearDistance=L,P.farDistance=y),P}function M(v,b,S,L,y){if(v.visible===!1)return;if(v.layers.test(b.layers)&&(v.isMesh||v.isLine||v.isPoints)&&(v.castShadow||v.receiveShadow&&y===Bi)&&(!v.frustumCulled||n.intersectsObject(v))){v.modelViewMatrix.multiplyMatrices(S.matrixWorldInverse,v.matrixWorld);const I=e.update(v),Z=v.material;if(Array.isArray(Z)){const ee=I.groups;for(let D=0,H=ee.length;D=1):$.indexOf("OpenGL ES")!==-1&&(K=parseFloat(/^OpenGL ES (\d)/.exec($)[1]),z=K>=2);let B=null,V={};const te=o.getParameter(3088),j=o.getParameter(2978),se=new He().fromArray(te),ge=new He().fromArray(j);function Se(R,de,G){const he=new Uint8Array(4),ce=o.createTexture();o.bindTexture(R,ce),o.texParameteri(R,10241,9728),o.texParameteri(R,10240,9728);for(let Ue=0;UeQ||C.height>Q)&&(ie=Q/Math.max(C.width,C.height)),ie<1||w===!0)if(typeof HTMLImageElement<"u"&&C instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&C instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&C instanceof ImageBitmap){const le=w?qr:Math.floor,Te=le(ie*C.width),U=le(ie*C.height);p===void 0&&(p=x(Te,U));const _e=O?x(Te,U):p;return _e.width=Te,_e.height=U,_e.getContext("2d").drawImage(C,0,0,Te,U),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+C.width+"x"+C.height+") to ("+Te+"x"+U+")."),_e}else return"data"in C&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+C.width+"x"+C.height+")."),C;return C}function v(C){return So(C.width)&&So(C.height)}function b(C){return a?!1:C.wrapS!==vt||C.wrapT!==vt||C.minFilter!==ot&&C.minFilter!==it}function S(C,w){return C.generateMipmaps&&w&&C.minFilter!==ot&&C.minFilter!==it}function L(C){o.generateMipmap(C)}function y(C,w,O,Q,ie=!1){if(a===!1)return w;if(C!==null){if(o[C]!==void 0)return o[C];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+C+"'")}let le=w;return w===6403&&(O===5126&&(le=33326),O===5131&&(le=33325),O===5121&&(le=33321)),w===33319&&(O===5126&&(le=33328),O===5131&&(le=33327),O===5121&&(le=33323)),w===6408&&(O===5126&&(le=34836),O===5131&&(le=34842),O===5121&&(le=Q===Je&&ie===!1?35907:32856),O===32819&&(le=32854),O===32820&&(le=32855)),(le===33325||le===33326||le===33327||le===33328||le===34842||le===34836)&&e.get("EXT_color_buffer_float"),le}function E(C,w,O){return S(C,O)===!0||C.isFramebufferTexture&&C.minFilter!==ot&&C.minFilter!==it?Math.log2(Math.max(w.width,w.height))+1:C.mipmaps!==void 0&&C.mipmaps.length>0?C.mipmaps.length:C.isCompressedTexture&&Array.isArray(C.image)?w.mipmaps.length:1}function P(C){return C===ot||C===Gr||C===Hr?9728:9729}function I(C){const w=C.target;w.removeEventListener("dispose",I),ee(w),w.isVideoTexture&&g.delete(w)}function Z(C){const w=C.target;w.removeEventListener("dispose",Z),H(w)}function ee(C){const w=n.get(C);if(w.__webglInit===void 0)return;const O=C.source,Q=m.get(O);if(Q){const ie=Q[w.__cacheKey];ie.usedTimes--,ie.usedTimes===0&&D(C),Object.keys(Q).length===0&&m.delete(O)}n.remove(C)}function D(C){const w=n.get(C);o.deleteTexture(w.__webglTexture);const O=C.source,Q=m.get(O);delete Q[w.__cacheKey],r.memory.textures--}function H(C){const w=C.texture,O=n.get(C),Q=n.get(w);if(Q.__webglTexture!==void 0&&(o.deleteTexture(Q.__webglTexture),r.memory.textures--),C.depthTexture&&C.depthTexture.dispose(),C.isWebGLCubeRenderTarget)for(let ie=0;ie<6;ie++)o.deleteFramebuffer(O.__webglFramebuffer[ie]),O.__webglDepthbuffer&&o.deleteRenderbuffer(O.__webglDepthbuffer[ie]);else{if(o.deleteFramebuffer(O.__webglFramebuffer),O.__webglDepthbuffer&&o.deleteRenderbuffer(O.__webglDepthbuffer),O.__webglMultisampledFramebuffer&&o.deleteFramebuffer(O.__webglMultisampledFramebuffer),O.__webglColorRenderbuffer)for(let ie=0;ie=l&&console.warn("THREE.WebGLTextures: Trying to use "+C+" texture units while this GPU supports only "+l),z+=1,C}function B(C){const w=[];return w.push(C.wrapS),w.push(C.wrapT),w.push(C.magFilter),w.push(C.minFilter),w.push(C.anisotropy),w.push(C.internalFormat),w.push(C.format),w.push(C.type),w.push(C.generateMipmaps),w.push(C.premultiplyAlpha),w.push(C.flipY),w.push(C.unpackAlignment),w.push(C.encoding),w.join()}function V(C,w){const O=n.get(C);if(C.isVideoTexture&&Ze(C),C.isRenderTargetTexture===!1&&C.version>0&&O.__version!==C.version){const Q=C.image;if(Q===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(Q.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Me(O,C,w);return}}t.activeTexture(33984+w),t.bindTexture(3553,O.__webglTexture)}function te(C,w){const O=n.get(C);if(C.version>0&&O.__version!==C.version){Me(O,C,w);return}t.activeTexture(33984+w),t.bindTexture(35866,O.__webglTexture)}function j(C,w){const O=n.get(C);if(C.version>0&&O.__version!==C.version){Me(O,C,w);return}t.activeTexture(33984+w),t.bindTexture(32879,O.__webglTexture)}function se(C,w){const O=n.get(C);if(C.version>0&&O.__version!==C.version){Ae(O,C,w);return}t.activeTexture(33984+w),t.bindTexture(34067,O.__webglTexture)}const ge={[As]:10497,[vt]:33071,[Ts]:33648},Se={[ot]:9728,[Gr]:9984,[Hr]:9986,[it]:9729,[zo]:9985,[hi]:9987};function q(C,w,O){if(O?(o.texParameteri(C,10242,ge[w.wrapS]),o.texParameteri(C,10243,ge[w.wrapT]),(C===32879||C===35866)&&o.texParameteri(C,32882,ge[w.wrapR]),o.texParameteri(C,10240,Se[w.magFilter]),o.texParameteri(C,10241,Se[w.minFilter])):(o.texParameteri(C,10242,33071),o.texParameteri(C,10243,33071),(C===32879||C===35866)&&o.texParameteri(C,32882,33071),(w.wrapS!==vt||w.wrapT!==vt)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),o.texParameteri(C,10240,P(w.magFilter)),o.texParameteri(C,10241,P(w.minFilter)),w.minFilter!==ot&&w.minFilter!==it&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),e.has("EXT_texture_filter_anisotropic")===!0){const Q=e.get("EXT_texture_filter_anisotropic");if(w.type===on&&e.has("OES_texture_float_linear")===!1||a===!1&&w.type===Wi&&e.has("OES_texture_half_float_linear")===!1)return;(w.anisotropy>1||n.get(w).__currentAnisotropy)&&(o.texParameterf(C,Q.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(w.anisotropy,i.getMaxAnisotropy())),n.get(w).__currentAnisotropy=w.anisotropy)}}function De(C,w){let O=!1;C.__webglInit===void 0&&(C.__webglInit=!0,w.addEventListener("dispose",I));const Q=w.source;let ie=m.get(Q);ie===void 0&&(ie={},m.set(Q,ie));const le=B(w);if(le!==C.__cacheKey){ie[le]===void 0&&(ie[le]={texture:o.createTexture(),usedTimes:0},r.memory.textures++,O=!0),ie[le].usedTimes++;const Te=ie[C.__cacheKey];Te!==void 0&&(ie[C.__cacheKey].usedTimes--,Te.usedTimes===0&&D(w)),C.__cacheKey=le,C.__webglTexture=ie[le].texture}return O}function Me(C,w,O){let Q=3553;w.isDataArrayTexture&&(Q=35866),w.isData3DTexture&&(Q=32879);const ie=De(C,w),le=w.source;if(t.activeTexture(33984+O),t.bindTexture(Q,C.__webglTexture),le.version!==le.__currentVersion||ie===!0){o.pixelStorei(37440,w.flipY),o.pixelStorei(37441,w.premultiplyAlpha),o.pixelStorei(3317,w.unpackAlignment),o.pixelStorei(37443,0);const Te=b(w)&&v(w.image)===!1;let U=M(w.image,Te,!1,h);U=Xe(w,U);const _e=v(U)||a,fe=s.convert(w.format,w.encoding);let ve=s.convert(w.type),pe=y(w.internalFormat,fe,ve,w.encoding,w.isVideoTexture);q(Q,w,_e);let Re;const Ve=w.mipmaps,et=a&&w.isVideoTexture!==!0,R=le.__currentVersion===void 0||ie===!0,de=E(w,U,_e);if(w.isDepthTexture)pe=6402,a?w.type===on?pe=36012:w.type===wn?pe=33190:w.type===jn?pe=35056:pe=33189:w.type===on&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),w.format===An&&pe===6402&&w.type!==Bo&&w.type!==wn&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),w.type=wn,ve=s.convert(w.type)),w.format===ii&&pe===6402&&(pe=34041,w.type!==jn&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),w.type=jn,ve=s.convert(w.type))),R&&(et?t.texStorage2D(3553,1,pe,U.width,U.height):t.texImage2D(3553,0,pe,U.width,U.height,0,fe,ve,null));else if(w.isDataTexture)if(Ve.length>0&&_e){et&&R&&t.texStorage2D(3553,de,pe,Ve[0].width,Ve[0].height);for(let G=0,he=Ve.length;G>=1,he>>=1}}else if(Ve.length>0&&_e){et&&R&&t.texStorage2D(3553,de,pe,Ve[0].width,Ve[0].height);for(let G=0,he=Ve.length;G0&&R++,t.texStorage2D(34067,R,Re,U[0].width,U[0].height));for(let G=0;G<6;G++)if(Te){Ve?t.texSubImage2D(34069+G,0,0,0,U[G].width,U[G].height,ve,pe,U[G].data):t.texImage2D(34069+G,0,Re,U[G].width,U[G].height,0,ve,pe,U[G].data);for(let he=0;he0&&ye(C)===!1){const U=le?w:[w];O.__webglMultisampledFramebuffer=o.createFramebuffer(),O.__webglColorRenderbuffer=[],t.bindFramebuffer(36160,O.__webglMultisampledFramebuffer);for(let _e=0;_e0&&ye(C)===!1){const w=C.isWebGLMultipleRenderTargets?C.texture:[C.texture],O=C.width,Q=C.height;let ie=16384;const le=[],Te=C.stencilBuffer?33306:36096,U=n.get(C),_e=C.isWebGLMultipleRenderTargets===!0;if(_e)for(let fe=0;fe0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&w.__useRenderToTexture!==!1}function Ze(C){const w=r.render.frame;g.get(C)!==w&&(g.set(C,w),C.update())}function Xe(C,w){const O=C.encoding,Q=C.format,ie=C.type;return C.isCompressedTexture===!0||C.isVideoTexture===!0||C.format===Wr||O!==Ln&&(O===Je?a===!1?e.has("EXT_sRGB")===!0&&Q===zt?(C.format=Wr,C.minFilter=it,C.generateMipmaps=!1):w=ko.sRGBToLinear(w):(Q!==zt||ie!==Cn)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",O)),w}this.allocateTextureUnit=$,this.resetTextureUnits=K,this.setTexture2D=V,this.setTexture2DArray=te,this.setTexture3D=j,this.setTextureCube=se,this.rebindTextures=ne,this.setupRenderTarget=xe,this.updateRenderTargetMipmap=ae,this.updateMultisampleRenderTarget=Ee,this.setupDepthRenderbuffer=W,this.setupFrameBufferTexture=oe,this.useMultisampledRTT=ye}function Xh(o,e,t){const n=t.isWebGL2;function i(s,r=null){let a;if(s===Cn)return 5121;if(s===mh)return 32819;if(s===gh)return 32820;if(s===dh)return 5120;if(s===fh)return 5122;if(s===Bo)return 5123;if(s===ph)return 5124;if(s===wn)return 5125;if(s===on)return 5126;if(s===Wi)return n?5131:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===xh)return 6406;if(s===zt)return 6408;if(s===vh)return 6409;if(s===yh)return 6410;if(s===An)return 6402;if(s===ii)return 34041;if(s===Mh)return 6403;if(s===_h)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(s===Wr)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===bh)return 36244;if(s===wh)return 33319;if(s===Sh)return 33320;if(s===Ah)return 36249;if(s===Dr||s===Fr||s===Nr||s===zr)if(r===Je)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===Dr)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===Fr)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===Nr)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===zr)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===Dr)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===Fr)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===Nr)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===zr)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===to||s===no||s===io||s===so)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===to)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===no)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===io)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===so)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===Th)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===ro||s===ao)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===ro)return r===Je?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===ao)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===oo||s===lo||s===co||s===ho||s===uo||s===fo||s===po||s===mo||s===go||s===xo||s===_o||s===vo||s===yo||s===Mo)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===oo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===lo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===co)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===ho)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===uo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===fo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===po)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===mo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===go)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===xo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===_o)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===vo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===yo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===Mo)return r===Je?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===bo)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===bo)return r===Je?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT}else return null;return s===jn?n?34042:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):o[s]!==void 0?o[s]:null}return{convert:i}}class Yh extends dt{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class ki extends We{constructor(){super(),this.isGroup=!0,this.type="Group"}}const k0={type:"move"};class Ua{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new ki,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new ki,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new A,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new A),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new ki,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new A,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new A),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let i=null,s=null,r=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){r=!0;for(const p of e.hand.values()){const m=t.getJointPose(p,n);if(c.joints[p.jointName]===void 0){const x=new ki;x.matrixAutoUpdate=!1,x.visible=!1,c.joints[p.jointName]=x,c.add(x)}const _=c.joints[p.jointName];m!==null&&(_.matrix.fromArray(m.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.jointRadius=m.radius),_.visible=m!==null}const h=c.joints["index-finger-tip"],u=c.joints["thumb-tip"],d=h.position.distanceTo(u.position),f=.02,g=.005;c.inputState.pinching&&d>f+g?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&d<=f-g&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,n),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,n),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(k0)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=s!==null),c!==null&&(c.visible=r!==null),this}}class Zh extends ct{constructor(e,t,n,i,s,r,a,l,c,h){if(h=h!==void 0?h:An,h!==An&&h!==ii)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");n===void 0&&h===An&&(n=wn),n===void 0&&h===ii&&(n=jn),super(null,i,s,r,a,l,h,n,c),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=a!==void 0?a:ot,this.minFilter=l!==void 0?l:ot,this.flipY=!1,this.generateMipmaps=!1}}class V0 extends un{constructor(e,t){super();const n=this;let i=null,s=1,r=null,a="local-floor",l=null,c=null,h=null,u=null,d=null,f=null;const g=t.getContextAttributes();let p=null,m=null;const _=[],x=[],M=new dt;M.layers.enable(1),M.viewport=new He;const v=new dt;v.layers.enable(2),v.viewport=new He;const b=[M,v],S=new Yh;S.layers.enable(1),S.layers.enable(2);let L=null,y=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(B){let V=_[B];return V===void 0&&(V=new Ua,_[B]=V),V.getTargetRaySpace()},this.getControllerGrip=function(B){let V=_[B];return V===void 0&&(V=new Ua,_[B]=V),V.getGripSpace()},this.getHand=function(B){let V=_[B];return V===void 0&&(V=new Ua,_[B]=V),V.getHandSpace()};function E(B){const V=x.indexOf(B.inputSource);if(V===-1)return;const te=_[V];te!==void 0&&te.dispatchEvent({type:B.type,data:B.inputSource})}function P(){i.removeEventListener("select",E),i.removeEventListener("selectstart",E),i.removeEventListener("selectend",E),i.removeEventListener("squeeze",E),i.removeEventListener("squeezestart",E),i.removeEventListener("squeezeend",E),i.removeEventListener("end",P),i.removeEventListener("inputsourceschange",I);for(let B=0;B<_.length;B++){const V=x[B];V!==null&&(x[B]=null,_[B].disconnect(V))}L=null,y=null,e.setRenderTarget(p),d=null,u=null,h=null,i=null,m=null,$.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(B){s=B,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(B){a=B,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||r},this.setReferenceSpace=function(B){l=B},this.getBaseLayer=function(){return u!==null?u:d},this.getBinding=function(){return h},this.getFrame=function(){return f},this.getSession=function(){return i},this.setSession=async function(B){if(i=B,i!==null){if(p=e.getRenderTarget(),i.addEventListener("select",E),i.addEventListener("selectstart",E),i.addEventListener("selectend",E),i.addEventListener("squeeze",E),i.addEventListener("squeezestart",E),i.addEventListener("squeezeend",E),i.addEventListener("end",P),i.addEventListener("inputsourceschange",I),g.xrCompatible!==!0&&await t.makeXRCompatible(),i.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const V={antialias:i.renderState.layers===void 0?g.antialias:!0,alpha:g.alpha,depth:g.depth,stencil:g.stencil,framebufferScaleFactor:s};d=new XRWebGLLayer(i,t,V),i.updateRenderState({baseLayer:d}),m=new Ot(d.framebufferWidth,d.framebufferHeight,{format:zt,type:Cn,encoding:e.outputEncoding})}else{let V=null,te=null,j=null;g.depth&&(j=g.stencil?35056:33190,V=g.stencil?ii:An,te=g.stencil?jn:wn);const se={colorFormat:32856,depthFormat:j,scaleFactor:s};h=new XRWebGLBinding(i,t),u=h.createProjectionLayer(se),i.updateRenderState({layers:[u]}),m=new Ot(u.textureWidth,u.textureHeight,{format:zt,type:Cn,depthTexture:new Zh(u.textureWidth,u.textureHeight,te,void 0,void 0,void 0,void 0,void 0,void 0,V),stencilBuffer:g.stencil,encoding:e.outputEncoding,samples:g.antialias?4:0});const ge=e.properties.get(m);ge.__ignoreDepthValues=u.ignoreDepthValues}m.isXRRenderTarget=!0,this.setFoveation(1),l=null,r=await i.requestReferenceSpace(a),$.setContext(i),$.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};function I(B){for(let V=0;V=0&&(x[j]=null,_[j].dispatchEvent({type:"disconnected",data:te}))}for(let V=0;V=x.length){x.push(te),j=ge;break}else if(x[ge]===null){x[ge]=te,j=ge;break}if(j===-1)break}const se=_[j];se&&se.dispatchEvent({type:"connected",data:te})}}const Z=new A,ee=new A;function D(B,V,te){Z.setFromMatrixPosition(V.matrixWorld),ee.setFromMatrixPosition(te.matrixWorld);const j=Z.distanceTo(ee),se=V.projectionMatrix.elements,ge=te.projectionMatrix.elements,Se=se[14]/(se[10]-1),q=se[14]/(se[10]+1),De=(se[9]+1)/se[5],Me=(se[9]-1)/se[5],Ae=(se[8]-1)/se[0],oe=(ge[8]+1)/ge[0],ze=Se*Ae,X=Se*oe,W=j/(-Ae+oe),ne=W*-Ae;V.matrixWorld.decompose(B.position,B.quaternion,B.scale),B.translateX(ne),B.translateZ(W),B.matrixWorld.compose(B.position,B.quaternion,B.scale),B.matrixWorldInverse.copy(B.matrixWorld).invert();const xe=Se+W,ae=q+W,Ee=ze-ne,be=X+(j-ne),ye=De*q/ae*xe,Ze=Me*q/ae*xe;B.projectionMatrix.makePerspective(Ee,be,ye,Ze,xe,ae)}function H(B,V){V===null?B.matrixWorld.copy(B.matrix):B.matrixWorld.multiplyMatrices(V.matrixWorld,B.matrix),B.matrixWorldInverse.copy(B.matrixWorld).invert()}this.updateCamera=function(B){if(i===null)return;S.near=v.near=M.near=B.near,S.far=v.far=M.far=B.far,(L!==S.near||y!==S.far)&&(i.updateRenderState({depthNear:S.near,depthFar:S.far}),L=S.near,y=S.far);const V=B.parent,te=S.cameras;H(S,V);for(let se=0;se0&&(p.alphaTest.value=m.alphaTest);const _=e.get(m).envMap;if(_&&(p.envMap.value=_,p.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=m.reflectivity,p.ior.value=m.ior,p.refractionRatio.value=m.refractionRatio),m.lightMap){p.lightMap.value=m.lightMap;const v=o.physicallyCorrectLights!==!0?Math.PI:1;p.lightMapIntensity.value=m.lightMapIntensity*v}m.aoMap&&(p.aoMap.value=m.aoMap,p.aoMapIntensity.value=m.aoMapIntensity);let x;m.map?x=m.map:m.specularMap?x=m.specularMap:m.displacementMap?x=m.displacementMap:m.normalMap?x=m.normalMap:m.bumpMap?x=m.bumpMap:m.roughnessMap?x=m.roughnessMap:m.metalnessMap?x=m.metalnessMap:m.alphaMap?x=m.alphaMap:m.emissiveMap?x=m.emissiveMap:m.clearcoatMap?x=m.clearcoatMap:m.clearcoatNormalMap?x=m.clearcoatNormalMap:m.clearcoatRoughnessMap?x=m.clearcoatRoughnessMap:m.iridescenceMap?x=m.iridescenceMap:m.iridescenceThicknessMap?x=m.iridescenceThicknessMap:m.specularIntensityMap?x=m.specularIntensityMap:m.specularColorMap?x=m.specularColorMap:m.transmissionMap?x=m.transmissionMap:m.thicknessMap?x=m.thicknessMap:m.sheenColorMap?x=m.sheenColorMap:m.sheenRoughnessMap&&(x=m.sheenRoughnessMap),x!==void 0&&(x.isWebGLRenderTarget&&(x=x.texture),x.matrixAutoUpdate===!0&&x.updateMatrix(),p.uvTransform.value.copy(x.matrix));let M;m.aoMap?M=m.aoMap:m.lightMap&&(M=m.lightMap),M!==void 0&&(M.isWebGLRenderTarget&&(M=M.texture),M.matrixAutoUpdate===!0&&M.updateMatrix(),p.uv2Transform.value.copy(M.matrix))}function s(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity}function r(p,m){p.dashSize.value=m.dashSize,p.totalSize.value=m.dashSize+m.gapSize,p.scale.value=m.scale}function a(p,m,_,x){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.size.value=m.size*_,p.scale.value=x*.5,m.map&&(p.map.value=m.map),m.alphaMap&&(p.alphaMap.value=m.alphaMap),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest);let M;m.map?M=m.map:m.alphaMap&&(M=m.alphaMap),M!==void 0&&(M.matrixAutoUpdate===!0&&M.updateMatrix(),p.uvTransform.value.copy(M.matrix))}function l(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.rotation.value=m.rotation,m.map&&(p.map.value=m.map),m.alphaMap&&(p.alphaMap.value=m.alphaMap),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest);let _;m.map?_=m.map:m.alphaMap&&(_=m.alphaMap),_!==void 0&&(_.matrixAutoUpdate===!0&&_.updateMatrix(),p.uvTransform.value.copy(_.matrix))}function c(p,m){p.specular.value.copy(m.specular),p.shininess.value=Math.max(m.shininess,1e-4)}function h(p,m){m.gradientMap&&(p.gradientMap.value=m.gradientMap)}function u(p,m){p.roughness.value=m.roughness,p.metalness.value=m.metalness,m.roughnessMap&&(p.roughnessMap.value=m.roughnessMap),m.metalnessMap&&(p.metalnessMap.value=m.metalnessMap),e.get(m).envMap&&(p.envMapIntensity.value=m.envMapIntensity)}function d(p,m,_){p.ior.value=m.ior,m.sheen>0&&(p.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen),p.sheenRoughness.value=m.sheenRoughness,m.sheenColorMap&&(p.sheenColorMap.value=m.sheenColorMap),m.sheenRoughnessMap&&(p.sheenRoughnessMap.value=m.sheenRoughnessMap)),m.clearcoat>0&&(p.clearcoat.value=m.clearcoat,p.clearcoatRoughness.value=m.clearcoatRoughness,m.clearcoatMap&&(p.clearcoatMap.value=m.clearcoatMap),m.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=m.clearcoatRoughnessMap),m.clearcoatNormalMap&&(p.clearcoatNormalScale.value.copy(m.clearcoatNormalScale),p.clearcoatNormalMap.value=m.clearcoatNormalMap,m.side===Bt&&p.clearcoatNormalScale.value.negate())),m.iridescence>0&&(p.iridescence.value=m.iridescence,p.iridescenceIOR.value=m.iridescenceIOR,p.iridescenceThicknessMinimum.value=m.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=m.iridescenceThicknessRange[1],m.iridescenceMap&&(p.iridescenceMap.value=m.iridescenceMap),m.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=m.iridescenceThicknessMap)),m.transmission>0&&(p.transmission.value=m.transmission,p.transmissionSamplerMap.value=_.texture,p.transmissionSamplerSize.value.set(_.width,_.height),m.transmissionMap&&(p.transmissionMap.value=m.transmissionMap),p.thickness.value=m.thickness,m.thicknessMap&&(p.thicknessMap.value=m.thicknessMap),p.attenuationDistance.value=m.attenuationDistance,p.attenuationColor.value.copy(m.attenuationColor)),p.specularIntensity.value=m.specularIntensity,p.specularColor.value.copy(m.specularColor),m.specularIntensityMap&&(p.specularIntensityMap.value=m.specularIntensityMap),m.specularColorMap&&(p.specularColorMap.value=m.specularColorMap)}function f(p,m){m.matcap&&(p.matcap.value=m.matcap)}function g(p,m){p.referencePosition.value.copy(m.referencePosition),p.nearDistance.value=m.nearDistance,p.farDistance.value=m.farDistance}return{refreshFogUniforms:t,refreshMaterialUniforms:n}}function H0(o,e,t,n){let i={},s={},r=[];const a=t.isWebGL2?o.getParameter(35375):0;function l(x,M){const v=M.program;n.uniformBlockBinding(x,v)}function c(x,M){let v=i[x.id];v===void 0&&(g(x),v=h(x),i[x.id]=v,x.addEventListener("dispose",m));const b=M.program;n.updateUBOMapping(x,b);const S=e.render.frame;s[x.id]!==S&&(d(x),s[x.id]=S)}function h(x){const M=u();x.__bindingPointIndex=M;const v=o.createBuffer(),b=x.__size,S=x.usage;return o.bindBuffer(35345,v),o.bufferData(35345,b,S),o.bindBuffer(35345,null),o.bindBufferBase(35345,M,v),v}function u(){for(let x=0;x0){S=v%b;const I=b-S;S!==0&&I-P.boundary<0&&(v+=b-S,E.__offset=v)}v+=P.storage}return S=v%b,S>0&&(v+=b-S),x.__size=v,x.__cache={},this}function p(x){const M=x.value,v={boundary:0,storage:0};return typeof M=="number"?(v.boundary=4,v.storage=4):M.isVector2?(v.boundary=8,v.storage=8):M.isVector3||M.isColor?(v.boundary=16,v.storage=12):M.isVector4?(v.boundary=16,v.storage=16):M.isMatrix3?(v.boundary=48,v.storage=48):M.isMatrix4?(v.boundary=64,v.storage=64):M.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",M),v}function m(x){const M=x.target;M.removeEventListener("dispose",m);const v=r.indexOf(M.__bindingPointIndex);r.splice(v,1),o.deleteBuffer(i[M.id]),delete i[M.id],delete s[M.id]}function _(){for(const x in i)o.deleteBuffer(i[x]);r=[],i={},s={}}return{bind:l,update:c,dispose:_}}function W0(){const o=Is("canvas");return o.style.display="block",o}function Jh(o={}){this.isWebGLRenderer=!0;const e=o.canvas!==void 0?o.canvas:W0(),t=o.context!==void 0?o.context:null,n=o.depth!==void 0?o.depth:!0,i=o.stencil!==void 0?o.stencil:!0,s=o.antialias!==void 0?o.antialias:!1,r=o.premultipliedAlpha!==void 0?o.premultipliedAlpha:!0,a=o.preserveDrawingBuffer!==void 0?o.preserveDrawingBuffer:!1,l=o.powerPreference!==void 0?o.powerPreference:"default",c=o.failIfMajorPerformanceCaveat!==void 0?o.failIfMajorPerformanceCaveat:!1;let h;t!==null?h=t.getContextAttributes().alpha:h=o.alpha!==void 0?o.alpha:!1;let u=null,d=null;const f=[],g=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=Ln,this.physicallyCorrectLights=!1,this.toneMapping=Yt,this.toneMappingExposure=1,Object.defineProperties(this,{gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}});const p=this;let m=!1,_=0,x=0,M=null,v=-1,b=null;const S=new He,L=new He;let y=null,E=e.width,P=e.height,I=1,Z=null,ee=null;const D=new He(0,0,E,P),H=new He(0,0,E,P);let z=!1;const K=new jr;let $=!1,B=!1,V=null;const te=new Le,j=new J,se=new A,ge={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Se(){return M===null?I:1}let q=t;function De(T,F){for(let k=0;k0?d=g[g.length-1]:d=null,f.pop(),f.length>0?u=f[f.length-1]:u=null};function dn(T,F,k,N){if(T.visible===!1)return;if(T.layers.test(F.layers)){if(T.isGroup)k=T.renderOrder;else if(T.isLOD)T.autoUpdate===!0&&T.update(F);else if(T.isLight)d.pushLight(T),T.castShadow&&d.pushShadow(T);else if(T.isSprite){if(!T.frustumCulled||K.intersectsSprite(T)){N&&se.setFromMatrixPosition(T.matrixWorld).applyMatrix4(te);const Ce=be.update(T),Fe=T.material;Fe.visible&&u.push(T,Ce,Fe,k,se.z,null)}}else if((T.isMesh||T.isLine||T.isPoints)&&(T.isSkinnedMesh&&T.skeleton.frame!==ze.render.frame&&(T.skeleton.update(),T.skeleton.frame=ze.render.frame),!T.frustumCulled||K.intersectsObject(T))){N&&se.setFromMatrixPosition(T.matrixWorld).applyMatrix4(te);const Ce=be.update(T),Fe=T.material;if(Array.isArray(Fe)){const Ie=Ce.groups;for(let qe=0,Be=Ie.length;qe0&&jt(Y,F,k),N&&oe.viewport(S.copy(N)),Y.length>0&&Pt(Y,F,k),we.length>0&&Pt(we,F,k),Ce.length>0&&Pt(Ce,F,k),oe.buffers.depth.setTest(!0),oe.buffers.depth.setMask(!0),oe.buffers.color.setMask(!0),oe.setPolygonOffset(!1)}function jt(T,F,k){const N=Ae.isWebGL2;V===null&&(V=new Ot(1,1,{generateMipmaps:!0,type:Me.has("EXT_color_buffer_half_float")?Wi:Cn,minFilter:hi,samples:N&&s===!0?4:0})),p.getDrawingBufferSize(j),N?V.setSize(j.x,j.y):V.setSize(qr(j.x),qr(j.y));const Y=p.getRenderTarget();p.setRenderTarget(V),p.clear();const we=p.toneMapping;p.toneMapping=Yt,Pt(T,F,k),p.toneMapping=we,W.updateMultisampleRenderTarget(V),W.updateRenderTargetMipmap(V),p.setRenderTarget(Y)}function Pt(T,F,k){const N=F.isScene===!0?F.overrideMaterial:null;for(let Y=0,we=T.length;Y0&&W.useMultisampledRTT(T)===!1?Y=X.get(T).__webglMultisampledFramebuffer:Y=qe,S.copy(T.viewport),L.copy(T.scissor),y=T.scissorTest}else S.copy(D).multiplyScalar(I).floor(),L.copy(H).multiplyScalar(I).floor(),y=z;if(oe.bindFramebuffer(36160,Y)&&Ae.drawBuffers&&N&&oe.drawBuffers(T,Y),oe.viewport(S),oe.scissor(L),oe.setScissorTest(y),we){const Ie=X.get(T.texture);q.framebufferTexture2D(36160,36064,34069+F,Ie.__webglTexture,k)}else if(Ce){const Ie=X.get(T.texture),qe=F||0;q.framebufferTextureLayer(36160,36064,Ie.__webglTexture,k||0,qe)}v=-1},this.readRenderTargetPixels=function(T,F,k,N,Y,we,Ce){if(!(T&&T.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Fe=X.get(T).__webglFramebuffer;if(T.isWebGLCubeRenderTarget&&Ce!==void 0&&(Fe=Fe[Ce]),Fe){oe.bindFramebuffer(36160,Fe);try{const Ie=T.texture,qe=Ie.format,Be=Ie.type;if(qe!==zt&&U.convert(qe)!==q.getParameter(35739)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const ke=Be===Wi&&(Me.has("EXT_color_buffer_half_float")||Ae.isWebGL2&&Me.has("EXT_color_buffer_float"));if(Be!==Cn&&U.convert(Be)!==q.getParameter(35738)&&!(Be===on&&(Ae.isWebGL2||Me.has("OES_texture_float")||Me.has("WEBGL_color_buffer_float")))&&!ke){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}F>=0&&F<=T.width-N&&k>=0&&k<=T.height-Y&&q.readPixels(F,k,N,Y,U.convert(qe),U.convert(Be),we)}finally{const Ie=M!==null?X.get(M).__webglFramebuffer:null;oe.bindFramebuffer(36160,Ie)}}},this.copyFramebufferToTexture=function(T,F,k=0){const N=Math.pow(2,-k),Y=Math.floor(F.image.width*N),we=Math.floor(F.image.height*N);W.setTexture2D(F,0),q.copyTexSubImage2D(3553,k,0,0,T.x,T.y,Y,we),oe.unbindTexture()},this.copyTextureToTexture=function(T,F,k,N=0){const Y=F.image.width,we=F.image.height,Ce=U.convert(k.format),Fe=U.convert(k.type);W.setTexture2D(k,0),q.pixelStorei(37440,k.flipY),q.pixelStorei(37441,k.premultiplyAlpha),q.pixelStorei(3317,k.unpackAlignment),F.isDataTexture?q.texSubImage2D(3553,N,T.x,T.y,Y,we,Ce,Fe,F.image.data):F.isCompressedTexture?q.compressedTexSubImage2D(3553,N,T.x,T.y,F.mipmaps[0].width,F.mipmaps[0].height,Ce,F.mipmaps[0].data):q.texSubImage2D(3553,N,T.x,T.y,Ce,Fe,F.image),N===0&&k.generateMipmaps&&q.generateMipmap(3553),oe.unbindTexture()},this.copyTextureToTexture3D=function(T,F,k,N,Y=0){if(p.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const we=T.max.x-T.min.x+1,Ce=T.max.y-T.min.y+1,Fe=T.max.z-T.min.z+1,Ie=U.convert(N.format),qe=U.convert(N.type);let Be;if(N.isData3DTexture)W.setTexture3D(N,0),Be=32879;else if(N.isDataArrayTexture)W.setTexture2DArray(N,0),Be=35866;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}q.pixelStorei(37440,N.flipY),q.pixelStorei(37441,N.premultiplyAlpha),q.pixelStorei(3317,N.unpackAlignment);const ke=q.getParameter(3314),je=q.getParameter(32878),Nn=q.getParameter(3316),gi=q.getParameter(3315),xi=q.getParameter(32877),qt=k.isCompressedTexture?k.mipmaps[0]:k.image;q.pixelStorei(3314,qt.width),q.pixelStorei(32878,qt.height),q.pixelStorei(3316,T.min.x),q.pixelStorei(3315,T.min.y),q.pixelStorei(32877,T.min.z),k.isDataTexture||k.isData3DTexture?q.texSubImage3D(Be,Y,F.x,F.y,F.z,we,Ce,Fe,Ie,qe,qt.data):k.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),q.compressedTexSubImage3D(Be,Y,F.x,F.y,F.z,we,Ce,Fe,Ie,qt.data)):q.texSubImage3D(Be,Y,F.x,F.y,F.z,we,Ce,Fe,Ie,qe,qt),q.pixelStorei(3314,ke),q.pixelStorei(32878,je),q.pixelStorei(3316,Nn),q.pixelStorei(3315,gi),q.pixelStorei(32877,xi),Y===0&&N.generateMipmaps&&q.generateMipmap(Be),oe.unbindTexture()},this.initTexture=function(T){T.isCubeTexture?W.setTextureCube(T,0):T.isData3DTexture?W.setTexture3D(T,0):T.isDataArrayTexture?W.setTexture2DArray(T,0):W.setTexture2D(T,0),oe.unbindTexture()},this.resetState=function(){_=0,x=0,M=null,oe.reset(),_e.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}class $h extends Jh{}$h.prototype.isWebGL1Renderer=!0;class ta{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new ue(e),this.density=t}clone(){return new ta(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}class na{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new ue(e),this.near=t,this.far=n}clone(){return new na(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}class Kh extends We{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),t}}class ia{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=Ps,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Ct()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,s=this.stride;ie.far||t.push({distance:l,point:ps.clone(),uv:Nt.getUV(ps,dr,gs,fr,Yl,ka,Zl,new J),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function pr(o,e,t,n,i,s){zi.subVectors(o,t).addScalar(.5).multiply(n),i!==void 0?(ms.x=s*zi.x-i*zi.y,ms.y=i*zi.x+s*zi.y):ms.copy(zi),o.copy(e),o.x+=ms.x,o.y+=ms.y,o.applyMatrix4(jh)}const mr=new A,Jl=new A;class eu extends We{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let n=0,i=t.length;n0){let n,i;for(n=1,i=t.length;n0){mr.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(mr);this.getObjectForDistance(i).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){mr.setFromMatrixPosition(e.matrixWorld),Jl.setFromMatrixPosition(this.matrixWorld);const n=mr.distanceTo(Jl)/e.zoom;t[0].object.visible=!0;let i,s;for(i=1,s=t.length;i=t[i].distance;i++)t[i-1].object.visible=!1,t[i].object.visible=!0;for(this._currentLevel=i-1;il)continue;d.applyMatrix4(this.matrixWorld);const y=e.ray.origin.distanceTo(d);ye.far||t.push({distance:y,point:u.clone().applyMatrix4(this.matrixWorld),index:M,face:null,faceIndex:null,object:this})}}else{const _=Math.max(0,r.start),x=Math.min(m.count,r.start+r.count);for(let M=_,v=x-1;Ml)continue;d.applyMatrix4(this.matrixWorld);const S=e.ray.origin.distanceTo(d);Se.far||t.push({distance:S,point:u.clone().applyMatrix4(this.matrixWorld),index:M,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,n=Object.keys(t);if(n.length>0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,r=i.length;s0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,r=i.length;si.far)return;s.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:r})}}class Y0 extends ct{constructor(e,t,n,i,s,r,a,l,c){super(e,t,n,i,s,r,a,l,c),this.isVideoTexture=!0,this.minFilter=r!==void 0?r:it,this.magFilter=s!==void 0?s:it,this.generateMipmaps=!1;const h=this;function u(){h.needsUpdate=!0,e.requestVideoFrameCallback(u)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(u)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class Z0 extends ct{constructor(e,t,n){super({width:e,height:t}),this.isFramebufferTexture=!0,this.format=n,this.magFilter=ot,this.minFilter=ot,this.generateMipmaps=!1,this.needsUpdate=!0}}class ru extends ct{constructor(e,t,n,i,s,r,a,l,c,h,u,d){super(null,r,a,l,c,h,i,s,u,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class J0 extends ct{constructor(e,t,n,i,s,r,a,l,c){super(e,t,n,i,s,r,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class Ht{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,i=this.getPoint(0),s=0;t.push(0);for(let r=1;r<=e;r++)n=this.getPoint(r/e),s+=n.distanceTo(i),t.push(s),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let i=0;const s=n.length;let r;t?r=t:r=e*n[s-1];let a=0,l=s-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=n[i]-r,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,n[i]===r)return i/(s-1);const h=n[i],d=n[i+1]-h,f=(r-h)/d;return(i+f)/(s-1)}getTangent(e,t){let i=e-1e-4,s=e+1e-4;i<0&&(i=0),s>1&&(s=1);const r=this.getPoint(i),a=this.getPoint(s),l=t||(r.isVector2?new J:new A);return l.copy(a).sub(r).normalize(),l}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new A,i=[],s=[],r=[],a=new A,l=new Le;for(let f=0;f<=e;f++){const g=f/e;i[f]=this.getTangentAt(g,new A)}s[0]=new A,r[0]=new A;let c=Number.MAX_VALUE;const h=Math.abs(i[0].x),u=Math.abs(i[0].y),d=Math.abs(i[0].z);h<=c&&(c=h,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),s[0].crossVectors(i[0],a),r[0].crossVectors(i[0],s[0]);for(let f=1;f<=e;f++){if(s[f]=s[f-1].clone(),r[f]=r[f-1].clone(),a.crossVectors(i[f-1],i[f]),a.length()>Number.EPSILON){a.normalize();const g=Math.acos(st(i[f-1].dot(i[f]),-1,1));s[f].applyMatrix4(l.makeRotationAxis(a,g))}r[f].crossVectors(i[f],s[f])}if(t===!0){let f=Math.acos(st(s[0].dot(s[e]),-1,1));f/=e,i[0].dot(a.crossVectors(s[0],s[e]))>0&&(f=-f);for(let g=1;g<=e;g++)s[g].applyMatrix4(l.makeRotationAxis(i[g],f*g)),r[g].crossVectors(i[g],s[g])}return{tangents:i,normals:s,binormals:r}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class ra extends Ht{constructor(e=0,t=0,n=1,i=1,s=0,r=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=s,this.aEndAngle=r,this.aClockwise=a,this.aRotation=l}getPoint(e,t){const n=t||new J,i=Math.PI*2;let s=this.aEndAngle-this.aStartAngle;const r=Math.abs(s)i;)s-=i;s0?0:(Math.floor(Math.abs(a)/s)+1)*s:l===0&&a===s-1&&(a=s-2,l=1);let c,h;this.closed||a>0?c=i[(a-1)%s]:(yr.subVectors(i[0],i[1]).add(i[0]),c=yr);const u=i[a%s],d=i[(a+1)%s];if(this.closed||a+2i.length-2?i.length-1:r+1],u=i[r>i.length-3?i.length-1:r+2];return n.set(hc(a,l.x,c.x,h.x,u.x),hc(a,l.y,c.y,h.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const r=i[s]-n,a=this.curves[s],l=a.getLength(),c=l===0?0:1-r/l;return a.getPointAt(c,t)}s++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,i=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const u=c.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(c);const h=c.getPoint(1);return this.currentPoint.copy(h),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class ai extends Pe{constructor(e=[new J(0,-.5),new J(.5,0),new J(0,.5)],t=12,n=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},t=Math.floor(t),i=st(i,0,Math.PI*2);const s=[],r=[],a=[],l=[],c=[],h=1/t,u=new A,d=new J,f=new A,g=new A,p=new A;let m=0,_=0;for(let x=0;x<=e.length-1;x++)switch(x){case 0:m=e[x+1].x-e[x].x,_=e[x+1].y-e[x].y,f.x=_*1,f.y=-m,f.z=_*0,p.copy(f),f.normalize(),l.push(f.x,f.y,f.z);break;case e.length-1:l.push(p.x,p.y,p.z);break;default:m=e[x+1].x-e[x].x,_=e[x+1].y-e[x].y,f.x=_*1,f.y=-m,f.z=_*0,g.copy(f),f.x+=p.x,f.y+=p.y,f.z+=p.z,f.normalize(),l.push(f.x,f.y,f.z),p.copy(g)}for(let x=0;x<=t;x++){const M=n+x*h*i,v=Math.sin(M),b=Math.cos(M);for(let S=0;S<=e.length-1;S++){u.x=e[S].x*v,u.y=e[S].y,u.z=e[S].x*b,r.push(u.x,u.y,u.z),d.x=x/t,d.y=S/(e.length-1),a.push(d.x,d.y);const L=l[3*S+0]*v,y=l[3*S+1],E=l[3*S+0]*b;c.push(L,y,E)}}for(let x=0;x0&&M(!0),t>0&&M(!1)),this.setIndex(h),this.setAttribute("position",new me(u,3)),this.setAttribute("normal",new me(d,3)),this.setAttribute("uv",new me(f,2));function x(){const v=new A,b=new A;let S=0;const L=(t-e)/n;for(let y=0;y<=s;y++){const E=[],P=y/s,I=P*(t-e)+e;for(let Z=0;Z<=i;Z++){const ee=Z/i,D=ee*l+a,H=Math.sin(D),z=Math.cos(D);b.x=I*H,b.y=-P*n+m,b.z=I*z,u.push(b.x,b.y,b.z),v.set(H,L,z).normalize(),d.push(v.x,v.y,v.z),f.push(ee,1-P),E.push(g++)}p.push(E)}for(let y=0;y.9&&L<.1&&(M<.2&&(r[x+0]+=1),v<.2&&(r[x+2]+=1),b<.2&&(r[x+4]+=1))}}function d(x){s.push(x.x,x.y,x.z)}function f(x,M){const v=x*3;M.x=e[v+0],M.y=e[v+1],M.z=e[v+2]}function g(){const x=new A,M=new A,v=new A,b=new A,S=new J,L=new J,y=new J;for(let E=0,P=0;E80*t){a=c=o[0],l=h=o[1];for(let g=t;gc&&(c=u),d>h&&(h=d);f=Math.max(c-a,h-l),f=f!==0?1/f:0}return Fs(s,r,t,a,l,f),r}};function du(o,e,t,n,i){let s,r;if(i===vx(o,e,t,n)>0)for(s=e;s=e;s-=n)r=uc(s,o[s],o[s+1],r);return r&&oa(r,r.next)&&(zs(r),r=r.next),r}function In(o,e){if(!o)return o;e||(e=o);let t=o,n;do if(n=!1,!t.steiner&&(oa(t,t.next)||$e(t.prev,t,t.next)===0)){if(zs(t),t=e=t.prev,t===t.next)break;n=!0}else t=t.next;while(n||t!==e);return e}function Fs(o,e,t,n,i,s,r){if(!o)return;!r&&s&&fx(o,n,i,s);let a=o,l,c;for(;o.prev!==o.next;){if(l=o.prev,c=o.next,s?rx(o,n,i,s):sx(o)){e.push(l.i/t),e.push(o.i/t),e.push(c.i/t),zs(o),o=c.next,a=c.next;continue}if(o=c,o===a){r?r===1?(o=ax(In(o),e,t),Fs(o,e,t,n,i,s,2)):r===2&&ox(o,e,t,n,i,s):Fs(In(o),e,t,n,i,s,1);break}}}function sx(o){const e=o.prev,t=o,n=o.next;if($e(e,t,n)>=0)return!1;let i=o.next.next;for(;i!==o.prev;){if(Vi(e.x,e.y,t.x,t.y,n.x,n.y,i.x,i.y)&&$e(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function rx(o,e,t,n){const i=o.prev,s=o,r=o.next;if($e(i,s,r)>=0)return!1;const a=i.xs.x?i.x>r.x?i.x:r.x:s.x>r.x?s.x:r.x,h=i.y>s.y?i.y>r.y?i.y:r.y:s.y>r.y?s.y:r.y,u=Co(a,l,e,t,n),d=Co(c,h,e,t,n);let f=o.prevZ,g=o.nextZ;for(;f&&f.z>=u&&g&&g.z<=d;){if(f!==o.prev&&f!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,f.x,f.y)&&$e(f.prev,f,f.next)>=0||(f=f.prevZ,g!==o.prev&&g!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,g.x,g.y)&&$e(g.prev,g,g.next)>=0))return!1;g=g.nextZ}for(;f&&f.z>=u;){if(f!==o.prev&&f!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,f.x,f.y)&&$e(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;g&&g.z<=d;){if(g!==o.prev&&g!==o.next&&Vi(i.x,i.y,s.x,s.y,r.x,r.y,g.x,g.y)&&$e(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function ax(o,e,t){let n=o;do{const i=n.prev,s=n.next.next;!oa(i,s)&&fu(i,n,n.next,s)&&Ns(i,s)&&Ns(s,i)&&(e.push(i.i/t),e.push(n.i/t),e.push(s.i/t),zs(n),zs(n.next),n=o=s),n=n.next}while(n!==o);return In(n)}function ox(o,e,t,n,i,s){let r=o;do{let a=r.next.next;for(;a!==r.prev;){if(r.i!==a.i&&gx(r,a)){let l=pu(r,a);r=In(r,r.next),l=In(l,l.next),Fs(r,e,t,n,i,s),Fs(l,e,t,n,i,s);return}a=a.next}r=r.next}while(r!==o)}function lx(o,e,t,n){const i=[];let s,r,a,l,c;for(s=0,r=e.length;s=t.next.y&&t.next.y!==t.y){const d=t.x+(i-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(d<=n&&d>s){if(s=d,d===n){if(i===t.y)return t;if(i===t.next.y)return t.next}r=t.x=t.x&&t.x>=l&&n!==t.x&&Vi(ir.x||t.x===r.x&&dx(r,t)))&&(r=t,h=u)),t=t.next;while(t!==a);return r}function dx(o,e){return $e(o.prev,o,e.prev)<0&&$e(e.next,o,o.next)<0}function fx(o,e,t,n){let i=o;do i.z===null&&(i.z=Co(i.x,i.y,e,t,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==o);i.prevZ.nextZ=null,i.prevZ=null,px(i)}function px(o){let e,t,n,i,s,r,a,l,c=1;do{for(t=o,o=null,s=null,r=0;t;){for(r++,n=t,a=0,e=0;e0||l>0&&n;)a!==0&&(l===0||!n||t.z<=n.z)?(i=t,t=t.nextZ,a--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:o=i,i.prevZ=s,s=i;t=n}s.nextZ=null,c*=2}while(r>1);return o}function Co(o,e,t,n,i){return o=32767*(o-t)*i,e=32767*(e-n)*i,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,o|e<<1}function mx(o){let e=o,t=o;do(e.x=0&&(o-r)*(n-a)-(t-r)*(e-a)>=0&&(t-r)*(s-a)-(i-r)*(n-a)>=0}function gx(o,e){return o.next.i!==e.i&&o.prev.i!==e.i&&!xx(o,e)&&(Ns(o,e)&&Ns(e,o)&&_x(o,e)&&($e(o.prev,o,e.prev)||$e(o,e.prev,e))||oa(o,e)&&$e(o.prev,o,o.next)>0&&$e(e.prev,e,e.next)>0)}function $e(o,e,t){return(e.y-o.y)*(t.x-e.x)-(e.x-o.x)*(t.y-e.y)}function oa(o,e){return o.x===e.x&&o.y===e.y}function fu(o,e,t,n){const i=Ar($e(o,e,t)),s=Ar($e(o,e,n)),r=Ar($e(t,n,o)),a=Ar($e(t,n,e));return!!(i!==s&&r!==a||i===0&&Sr(o,t,e)||s===0&&Sr(o,n,e)||r===0&&Sr(t,o,n)||a===0&&Sr(t,e,n))}function Sr(o,e,t){return e.x<=Math.max(o.x,t.x)&&e.x>=Math.min(o.x,t.x)&&e.y<=Math.max(o.y,t.y)&&e.y>=Math.min(o.y,t.y)}function Ar(o){return o>0?1:o<0?-1:0}function xx(o,e){let t=o;do{if(t.i!==o.i&&t.next.i!==o.i&&t.i!==e.i&&t.next.i!==e.i&&fu(t,t.next,o,e))return!0;t=t.next}while(t!==o);return!1}function Ns(o,e){return $e(o.prev,o,o.next)<0?$e(o,e,o.next)>=0&&$e(o,o.prev,e)>=0:$e(o,e,o.prev)<0||$e(o,o.next,e)<0}function _x(o,e){let t=o,n=!1;const i=(o.x+e.x)/2,s=(o.y+e.y)/2;do t.y>s!=t.next.y>s&&t.next.y!==t.y&&i<(t.next.x-t.x)*(s-t.y)/(t.next.y-t.y)+t.x&&(n=!n),t=t.next;while(t!==o);return n}function pu(o,e){const t=new Lo(o.i,o.x,o.y),n=new Lo(e.i,e.x,e.y),i=o.next,s=e.prev;return o.next=e,e.prev=o,t.next=i,i.prev=t,n.next=t,t.prev=n,s.next=n,n.prev=s,n}function uc(o,e,t,n){const i=new Lo(o,e,t);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function zs(o){o.next.prev=o.prev,o.prev.next=o.next,o.prevZ&&(o.prevZ.nextZ=o.nextZ),o.nextZ&&(o.nextZ.prevZ=o.prevZ)}function Lo(o,e,t){this.i=o,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function vx(o,e,t,n){let i=0;for(let s=e,r=t-n;s2&&o[e-1].equals(o[0])&&o.pop()}function fc(o,e){for(let t=0;tNumber.EPSILON){const O=Math.sqrt(C),Q=Math.sqrt(Ze*Ze+Xe*Xe),ie=W.x-ye/O,le=W.y+be/O,Te=ne.x-Xe/Q,U=ne.y+Ze/Q,_e=((Te-ie)*Xe-(U-le)*Ze)/(be*Xe-ye*Ze);xe=ie+be*_e-X.x,ae=le+ye*_e-X.y;const fe=xe*xe+ae*ae;if(fe<=2)return new J(xe,ae);Ee=Math.sqrt(fe/2)}else{let O=!1;be>Number.EPSILON?Ze>Number.EPSILON&&(O=!0):be<-Number.EPSILON?Ze<-Number.EPSILON&&(O=!0):Math.sign(ye)===Math.sign(Xe)&&(O=!0),O?(xe=-ye,ae=be,Ee=Math.sqrt(C)):(xe=be,ae=ye,Ee=Math.sqrt(C/2))}return new J(xe/Ee,ae/Ee)}const B=[];for(let X=0,W=D.length,ne=W-1,xe=X+1;X=0;X--){const W=X/m,ne=f*Math.cos(W*Math.PI/2),xe=g*Math.sin(W*Math.PI/2)+p;for(let ae=0,Ee=D.length;ae=0;){const xe=ne;let ae=ne-1;ae<0&&(ae=X.length-1);for(let Ee=0,be=h+m*2;Ee0)&&f.push(M,v,S),(_!==n-1||l0!=e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class vu extends gt{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new ue(16777215),this.specular=new ue(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ue(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Vs,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class yu extends gt{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new ue(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ue(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class Mu extends gt{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class bu extends gt{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new ue(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ue(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Vs,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class wu extends gt{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new ue(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ui,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Su extends bt{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function Ft(o,e,t){return nl(o)?new o.constructor(o.subarray(e,t!==void 0?t:o.length)):o.slice(e,t)}function $n(o,e,t){return!o||!t&&o.constructor===e?o:typeof e.BYTES_PER_ELEMENT=="number"?new e(o):Array.prototype.slice.call(o)}function nl(o){return ArrayBuffer.isView(o)&&!(o instanceof DataView)}function Au(o){function e(i,s){return o[i]-o[s]}const t=o.length,n=new Array(t);for(let i=0;i!==t;++i)n[i]=i;return n.sort(e),n}function Po(o,e,t){const n=o.length,i=new o.constructor(n);for(let s=0,r=0;r!==n;++s){const a=t[s]*e;for(let l=0;l!==e;++l)i[r++]=o[a+l]}return i}function il(o,e,t,n){let i=1,s=o[0];for(;s!==void 0&&s[n]===void 0;)s=o[i++];if(s===void 0)return;let r=s[n];if(r!==void 0)if(Array.isArray(r))do r=s[n],r!==void 0&&(e.push(s.time),t.push.apply(t,r)),s=o[i++];while(s!==void 0);else if(r.toArray!==void 0)do r=s[n],r!==void 0&&(e.push(s.time),r.toArray(t,t.length)),s=o[i++];while(s!==void 0);else do r=s[n],r!==void 0&&(e.push(s.time),t.push(r)),s=o[i++];while(s!==void 0)}function wx(o,e,t,n,i=30){const s=o.clone();s.name=e;const r=[];for(let l=0;l=n)){u.push(c.times[f]);for(let p=0;ps.tracks[l].times[0]&&(a=s.tracks[l].times[0]);for(let l=0;l=a.times[g]){const _=g*u+h,x=_+u-h;p=Ft(a.values,_,x)}else{const _=a.createInterpolant(),x=h,M=u-h;_.evaluate(s),p=Ft(_.resultBuffer,x,M)}l==="quaternion"&&new St().fromArray(p).normalize().conjugate().toArray(p);const m=c.times.length;for(let _=0;_=s)){const a=t[1];e=s)break t}r=n,n=0;break n}break e}for(;n>>1;et;)--r;if(++r,s!==0||r!==i){s>=r&&(r=Math.max(r,1),s=r-1);const a=this.getValueSize();this.times=Ft(n,s,r),this.values=Ft(this.values,s*a,r*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,s=n.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let r=null;for(let a=0;a!==s;a++){const l=n[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(r!==null&&r>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,r),e=!1;break}r=l}if(i!==void 0&&nl(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=Ft(this.times),t=Ft(this.values),n=this.getValueSize(),i=this.getInterpolation()===Br,s=e.length-1;let r=1;for(let a=1;a0){e[r]=e[s];for(let a=s*n,l=r*n,c=0;c!==n;++c)t[l+c]=t[a+c];++r}return r!==e.length?(this.times=Ft(e,0,r),this.values=Ft(t,0,r*n)):(this.times=e,this.values=t),this}clone(){const e=Ft(this.times,0),t=Ft(this.values,0),n=this.constructor,i=new n(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}Wt.prototype.TimeBufferType=Float32Array;Wt.prototype.ValueBufferType=Float32Array;Wt.prototype.DefaultInterpolation=Cs;class pi extends Wt{}pi.prototype.ValueTypeName="bool";pi.prototype.ValueBufferType=Array;pi.prototype.DefaultInterpolation=Es;pi.prototype.InterpolantFactoryMethodLinear=void 0;pi.prototype.InterpolantFactoryMethodSmooth=void 0;class rl extends Wt{}rl.prototype.ValueTypeName="color";class Bs extends Wt{}Bs.prototype.ValueTypeName="number";class Cu extends qs{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const s=this.resultBuffer,r=this.sampleValues,a=this.valueSize,l=(n-t)/(i-t);let c=e*a;for(let h=c+a;c!==h;c+=4)St.slerpFlat(s,0,r,c-a,r,c,l);return s}}class ls extends Wt{InterpolantFactoryMethodLinear(e){return new Cu(this.times,this.values,this.getValueSize(),e)}}ls.prototype.ValueTypeName="quaternion";ls.prototype.DefaultInterpolation=Cs;ls.prototype.InterpolantFactoryMethodSmooth=void 0;class mi extends Wt{}mi.prototype.ValueTypeName="string";mi.prototype.ValueBufferType=Array;mi.prototype.DefaultInterpolation=Es;mi.prototype.InterpolantFactoryMethodLinear=void 0;mi.prototype.InterpolantFactoryMethodSmooth=void 0;class Os extends Wt{}Os.prototype.ValueTypeName="vector";class Us{constructor(e,t=-1,n,i=Zr){this.name=e,this.tracks=n,this.duration=t,this.blendMode=i,this.uuid=Ct(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,i=1/(e.fps||1);for(let r=0,a=n.length;r!==a;++r)t.push(Ex(n[r]).scale(i));const s=new this(e.name,e.duration,t,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,r=n.length;s!==r;++s)t.push(Wt.toJSON(n[s]));return i}static CreateFromMorphTargetSequence(e,t,n,i){const s=t.length,r=[];for(let a=0;a1){const u=h[1];let d=i[u];d||(i[u]=d=[]),d.push(c)}}const r=[];for(const a in i)r.push(this.CreateFromMorphTargetSequence(a,i[a],t,n));return r}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(u,d,f,g,p){if(f.length!==0){const m=[],_=[];il(f,m,_,g),m.length!==0&&p.push(new u(d,m,_))}},i=[],s=e.name||"default",r=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let u=0;u{t&&t(s),this.manager.itemEnd(e)},0),s;if(rn[e]!==void 0){rn[e].push({onLoad:t,onProgress:n,onError:i});return}rn[e]=[],rn[e].push({onLoad:t,onProgress:n,onError:i});const r=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(r).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const h=rn[e],u=c.body.getReader(),d=c.headers.get("Content-Length"),f=d?parseInt(d):0,g=f!==0;let p=0;const m=new ReadableStream({start(_){x();function x(){u.read().then(({done:M,value:v})=>{if(M)_.close();else{p+=v.byteLength;const b=new ProgressEvent("progress",{lengthComputable:g,loaded:p,total:f});for(let S=0,L=h.length;S{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(h=>new DOMParser().parseFromString(h,a));case"json":return c.json();default:if(a===void 0)return c.text();{const u=/charset="?([^;"\s]*)"?/i.exec(a),d=u&&u[1]?u[1].toLowerCase():void 0,f=new TextDecoder(d);return c.arrayBuffer().then(g=>f.decode(g))}}}).then(c=>{ci.add(e,c);const h=rn[e];delete rn[e];for(let u=0,d=h.length;u{const h=rn[e];if(h===void 0)throw this.manager.itemError(e),c;delete rn[e];for(let u=0,d=h.length;u{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Lx extends Lt{constructor(e){super(e)}load(e,t,n,i){const s=this,r=new hn(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials),r.load(e,function(a){try{t(s.parse(JSON.parse(a)))}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},n,i)}parse(e){const t=[];for(let n=0;n0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const s in e.uniforms){const r=e.uniforms[s];switch(i.uniforms[s]={},r.type){case"t":i.uniforms[s].value=n(r.value);break;case"c":i.uniforms[s].value=new ue().setHex(r.value);break;case"v2":i.uniforms[s].value=new J().fromArray(r.value);break;case"v3":i.uniforms[s].value=new A().fromArray(r.value);break;case"v4":i.uniforms[s].value=new He().fromArray(r.value);break;case"m3":i.uniforms[s].value=new wt().fromArray(r.value);break;case"m4":i.uniforms[s].value=new Le().fromArray(r.value);break;default:i.uniforms[s].value=r.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.extensions!==void 0)for(const s in e.extensions)i.extensions[s]=e.extensions[s];if(e.shading!==void 0&&(i.flatShading=e.shading===1),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=n(e.map)),e.matcap!==void 0&&(i.matcap=n(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=n(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=n(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=n(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let s=e.normalScale;Array.isArray(s)===!1&&(s=[s,s]),i.normalScale=new J().fromArray(s)}return e.displacementMap!==void 0&&(i.displacementMap=n(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=n(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=n(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=n(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=n(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=n(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=n(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=n(e.envMap)),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=n(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=n(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=n(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=n(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=n(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new J().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=n(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=n(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=n(e.thicknessMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=n(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=n(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const t={ShadowMaterial:gu,SpriteMaterial:Xo,RawShaderMaterial:xu,ShaderMaterial:Jt,PointsMaterial:Zo,MeshPhysicalMaterial:_u,MeshStandardMaterial:tl,MeshPhongMaterial:vu,MeshToonMaterial:yu,MeshNormalMaterial:Mu,MeshLambertMaterial:bu,MeshDepthMaterial:Wo,MeshDistanceMaterial:qo,MeshBasicMaterial:Dn,MeshMatcapMaterial:wu,LineDashedMaterial:Su,LineBasicMaterial:bt,Material:gt};return new t[e]}}class Ro{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let n=0,i=e.length;n0){const l=new al(t);s=new ks(l),s.setCrossOrigin(this.crossOrigin);for(let c=0,h=e.length;c0){i=new ks(this.manager),i.setCrossOrigin(this.crossOrigin);for(let r=0,a=e.length;r"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,r=ci.get(e);if(r!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(r),s.manager.itemEnd(e)},0),r;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(l){ci.add(e,l),t&&t(l),s.manager.itemEnd(e)}).catch(function(l){i&&i(l),s.manager.itemError(e),s.manager.itemEnd(e)}),s.manager.itemStart(e)}}let Tr;const ll={getContext:function(){return Tr===void 0&&(Tr=new(window.AudioContext||window.webkitAudioContext)),Tr},setContext:function(o){Tr=o}};class kx extends Lt{constructor(e){super(e)}load(e,t,n,i){const s=this,r=new hn(this.manager);r.setResponseType("arraybuffer"),r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials),r.load(e,function(a){try{const l=a.slice(0);ll.getContext().decodeAudioData(l,function(h){t(h)})}catch(l){i?i(l):console.error(l),s.manager.itemError(e)}},n,i)}}class Vx extends la{constructor(e,t,n=1){super(void 0,n),this.isHemisphereLightProbe=!0;const i=new ue().set(e),s=new ue().set(t),r=new A(i.r,i.g,i.b),a=new A(s.r,s.g,s.b),l=Math.sqrt(Math.PI),c=l*Math.sqrt(.75);this.sh.coefficients[0].copy(r).add(a).multiplyScalar(l),this.sh.coefficients[1].copy(r).sub(a).multiplyScalar(c)}}class Gx extends la{constructor(e,t=1){super(void 0,t),this.isAmbientLightProbe=!0;const n=new ue().set(e);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}const bc=new Le,wc=new Le,Un=new Le;class Hx{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new dt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new dt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,Un.copy(e.projectionMatrix);const i=t.eyeSep/2,s=i*t.near/t.focus,r=t.near*Math.tan(Qn*t.fov*.5)/t.zoom;let a,l;wc.elements[12]=-i,bc.elements[12]=i,a=-r*t.aspect+s,l=r*t.aspect+s,Un.elements[0]=2*t.near/(l-a),Un.elements[8]=(l+a)/(l-a),this.cameraL.projectionMatrix.copy(Un),a=-r*t.aspect-s,l=r*t.aspect-s,Un.elements[0]=2*t.near/(l-a),Un.elements[8]=(l+a)/(l-a),this.cameraR.projectionMatrix.copy(Un)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(wc),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(bc)}}class Uu{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Sc(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=Sc();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function Sc(){return(typeof performance>"u"?Date:performance).now()}const kn=new A,Ac=new St,Wx=new A,Vn=new A;class qx extends We{constructor(){super(),this.type="AudioListener",this.context=ll.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Uu}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(kn,Ac,Wx),Vn.set(0,0,-1).applyQuaternion(Ac),t.positionX){const i=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(kn.x,i),t.positionY.linearRampToValueAtTime(kn.y,i),t.positionZ.linearRampToValueAtTime(kn.z,i),t.forwardX.linearRampToValueAtTime(Vn.x,i),t.forwardY.linearRampToValueAtTime(Vn.y,i),t.forwardZ.linearRampToValueAtTime(Vn.z,i),t.upX.linearRampToValueAtTime(n.x,i),t.upY.linearRampToValueAtTime(n.y,i),t.upZ.linearRampToValueAtTime(n.z,i)}else t.setPosition(kn.x,kn.y,kn.z),t.setOrientation(Vn.x,Vn.y,Vn.z,n.x,n.y,n.z)}}class ku extends We{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,i,this._addIndex*t,1,t);for(let l=t,c=t+t;l!==c;++l)if(n[l]!==n[l+t]){a.setValue(n,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,i=n*this._origIndex;e.getValue(t,i);for(let s=n,r=i;s!==r;++s)t[s]=t[i+s%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let r=0;r!==s;++r)e[t+r]=e[n+r]}_slerp(e,t,n,i){St.slerpFlat(e,t,e,t,e,n,i)}_slerpAdditive(e,t,n,i,s){const r=this._workIndex*s;St.multiplyQuaternionsFlat(e,r,e,t,e,n),St.slerpFlat(e,t,e,t,e,r,i)}_lerp(e,t,n,i,s){const r=1-i;for(let a=0;a!==s;++a){const l=t+a;e[l]=e[l]*r+e[n+a]*i}}_lerpAdditive(e,t,n,i,s){for(let r=0;r!==s;++r){const a=t+r;e[a]=e[a]+e[n+r]*i}}}const cl="\\[\\]\\.:\\/",Jx=new RegExp("["+cl+"]","g"),hl="[^"+cl+"]",$x="[^"+cl.replace("\\.","")+"]",Kx=/((?:WC+[\/:])*)/.source.replace("WC",hl),jx=/(WCOD+)?/.source.replace("WCOD",$x),Qx=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",hl),e_=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",hl),t_=new RegExp("^"+Kx+jx+Qx+e_+"$"),n_=["material","materials","bones"];class i_{constructor(e,t,n){const i=n||Oe.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];i!==void 0&&i.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=n.length;i!==s;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class Oe{constructor(e,t,n){this.path=t,this.parsedPath=n||Oe.parseTrackName(t),this.node=Oe.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new Oe.Composite(e,t,n):new Oe(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Jx,"")}static parseTrackName(e){const t=t_.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=n.nodeName.substring(i+1);n_.indexOf(s)!==-1&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=s)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){const n=function(s){for(let r=0;r=s){const u=s++,d=e[u];t[d.uuid]=h,e[h]=d,t[c]=u,e[u]=l;for(let f=0,g=i;f!==g;++f){const p=n[f],m=p[u],_=p[h];p[h]=m,p[u]=_}}}this.nCachedObjects_=s}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,i=n.length;let s=this.nCachedObjects_,r=e.length;for(let a=0,l=arguments.length;a!==l;++a){const c=arguments[a],h=c.uuid,u=t[h];if(u!==void 0)if(delete t[h],u0&&(t[f.uuid]=u),e[u]=f,e.pop();for(let g=0,p=i;g!==p;++g){const m=n[g];m[u]=m[d],m.pop()}}}this.nCachedObjects_=s}subscribe_(e,t){const n=this._bindingsIndicesByPath;let i=n[e];const s=this._bindings;if(i!==void 0)return s[i];const r=this._paths,a=this._parsedPaths,l=this._objects,c=l.length,h=this.nCachedObjects_,u=new Array(c);i=s.length,n[e]=i,r.push(e),a.push(t),s.push(u);for(let d=h,f=l.length;d!==f;++d){const g=l[d];u[d]=new Oe(g,e,t)}return u}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(n!==void 0){const i=this._paths,s=this._parsedPaths,r=this._bindings,a=r.length-1,l=r[a],c=e[a];t[c]=n,r[n]=l,r.pop(),s[n]=s[a],s.pop(),i[n]=i[a],i.pop()}}}class r_{constructor(e,t,n=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=i;const s=t.tracks,r=s.length,a=new Array(r),l={endingStart:Yn,endingEnd:Yn};for(let c=0;c!==r;++c){const h=s[c].createInterpolant(null);a[c]=h,h.settings=l}this._interpolantSettings=l,this._interpolants=a,this._propertyBindings=new Array(r),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Ch,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const i=this._clip.duration,s=e._clip.duration,r=s/i,a=i/s;e.warp(1,r,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const i=this._mixer,s=i.time,r=this.timeScale;let a=this._timeScaleInterpolant;a===null&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const l=a.parameterPositions,c=a.sampleValues;return l[0]=s,l[1]=s+n,c[0]=e/r,c[1]=t/r,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,i){if(!this.enabled){this._updateWeight(e);return}const s=this._startTime;if(s!==null){const l=(e-s)*n;if(l<0||n===0)return;this._startTime=null,t=n*l}t*=this._updateTimeScale(e);const r=this._updateTime(t),a=this._updateWeight(e);if(a>0){const l=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case Oo:for(let h=0,u=l.length;h!==u;++h)l[h].evaluate(r),c[h].accumulateAdditive(a);break;case Zr:default:for(let h=0,u=l.length;h!==u;++h)l[h].evaluate(r),c[h].accumulate(i,a)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let i=this.time+e,s=this._loopCount;const r=n===Lh;if(e===0)return s===-1?i:r&&(s&1)===1?t-i:i;if(n===Eh){s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(s===-1&&(e>=0?(s=0,this._setEndings(!0,this.repetitions===0,r)):this._setEndings(this.repetitions===0,!0,r)),i>=t||i<0){const a=Math.floor(i/t);i-=t*a,s+=Math.abs(a);const l=this.repetitions-s;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const c=e<0;this._setEndings(c,!c,r)}else this._setEndings(!1,!1,r);this._loopCount=s,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}else this.time=i;if(r&&(s&1)===1)return t-i}return i}_setEndings(e,t,n){const i=this._interpolantSettings;n?(i.endingStart=Zn,i.endingEnd=Zn):(e?i.endingStart=this.zeroSlopeAtStart?Zn:Yn:i.endingStart=Ls,t?i.endingEnd=this.zeroSlopeAtEnd?Zn:Yn:i.endingEnd=Ls)}_scheduleFading(e,t,n){const i=this._mixer,s=i.time;let r=this._weightInterpolant;r===null&&(r=i._lendControlInterpolant(),this._weightInterpolant=r);const a=r.parameterPositions,l=r.sampleValues;return a[0]=s,l[0]=t,a[1]=s+e,l[1]=n,this}}const a_=new Float32Array(1);class o_ extends un{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,i=e._clip.tracks,s=i.length,r=e._propertyBindings,a=e._interpolants,l=n.uuid,c=this._bindingsByRootAndName;let h=c[l];h===void 0&&(h={},c[l]=h);for(let u=0;u!==s;++u){const d=i[u],f=d.name;let g=h[f];if(g!==void 0)++g.referenceCount,r[u]=g;else{if(g=r[u],g!==void 0){g._cacheIndex===null&&(++g.referenceCount,this._addInactiveBinding(g,l,f));continue}const p=t&&t._propertyBindings[u].binding.parsedPath;g=new Vu(Oe.create(n,f,p),d.ValueTypeName,d.getValueSize()),++g.referenceCount,this._addInactiveBinding(g,l,f),r[u]=g}a[u].resultBuffer=g.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const n=(e._localRoot||this._root).uuid,i=e._clip.uuid,s=this._actionsByClip[i];this._bindAction(e,s&&s.knownActions[0]),this._addInactiveAction(e,i,n)}const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const s=t[n];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const s=t[n];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return t!==null&&t=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,i=this.time+=e,s=Math.sign(e),r=this._accuIndex^=1;for(let c=0;c!==n;++c)t[c]._update(i,e,s,r);const a=this._bindings,l=this._nActiveBindings;for(let c=0;c!==l;++c)a[c].apply(r);return this}setTime(e){this.time=0;for(let t=0;tthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return Cc.copy(e).clamp(this.min,this.max).sub(e).length()}intersect(e){return this.min.max(e.min),this.max.min(e.max),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Lc=new A,Er=new A;class g_{constructor(e=new A,t=new A){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){Lc.subVectors(e,this.start),Er.subVectors(this.end,this.start);const n=Er.dot(Er);let s=Er.dot(Lc)/n;return t&&(s=st(s,0,1)),s}closestPointToPoint(e,t,n){const i=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const Pc=new A;class x_ extends We{constructor(e,t){super(),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t;const n=new Pe,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let r=0,a=1,l=32;r.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{Nc.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(Nc,t)}}setLength(e,t=e*.2,n=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}}class P_ extends Kt{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new Pe;i.setAttribute("position",new me(t,3)),i.setAttribute("color",new me(n,3));const s=new bt({vertexColors:!0,toneMapped:!1});super(i,s),this.type="AxesHelper"}setColors(e,t,n){const i=new ue,s=this.geometry.attributes.color.array;return i.set(e),i.toArray(s,0),i.toArray(s,3),i.set(t),i.toArray(s,6),i.toArray(s,9),i.set(n),i.toArray(s,12),i.toArray(s,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class R_{constructor(){this.type="ShapePath",this.color=new ue,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Ds,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,i){return this.currentPath.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,s,r){return this.currentPath.bezierCurveTo(e,t,n,i,s,r),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e,t){function n(x){const M=[];for(let v=0,b=x.length;vNumber.EPSILON){if(I<0&&(y=M[L],P=-P,E=M[S],I=-I),x.yE.y)continue;if(x.y===y.y){if(x.x===y.x)return!0}else{const Z=I*(x.x-y.x)-P*(x.y-y.y);if(Z===0)return!0;if(Z<0)continue;b=!b}}else{if(x.y!==y.y)continue;if(E.x<=x.x&&x.x<=y.x||y.x<=x.x&&x.x<=E.x)return!0}}return b}const s=Zt.isClockWise,r=this.subPaths;if(r.length===0)return[];if(t===!0)return n(r);let a,l,c;const h=[];if(r.length===1)return l=r[0],c=new ti,c.curves=l.curves,h.push(c),h;let u=!s(r[0].getPoints());u=e?!u:u;const d=[],f=[];let g=[],p=0,m;f[p]=void 0,g[p]=[];for(let x=0,M=r.length;x1){let x=!1,M=0;for(let v=0,b=f.length;v0&&x===!1&&(g=d)}let _;for(let x=0,M=f.length;x>-c-14,n[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,i[l]=24,i[l|256]=24):(n[l]=31744,n[l|256]=64512,i[l]=13,i[l|256]=13)}const s=new Uint32Array(2048),r=new Uint32Array(64),a=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,h=0;for(;!(c&8388608);)c<<=1,h-=8388608;c&=-8388609,h+=947912704,s[l]=c|h}for(let l=1024;l<2048;++l)s[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)r[l]=l<<23;r[31]=1199570944,r[32]=2147483648;for(let l=33;l<63;++l)r[l]=2147483648+(l-32<<23);r[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(a[l]=1024);return{floatView:e,uint32View:t,baseTable:n,shiftTable:i,mantissaTable:s,exponentTable:r,offsetTable:a}}function D_(o){Math.abs(o)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),o=st(o,-65504,65504),an.floatView[0]=o;const e=an.uint32View[0],t=e>>23&511;return an.baseTable[t]+((e&8388607)>>an.shiftTable[t])}function F_(o){const e=o>>10;return an.uint32View[0]=an.mantissaTable[an.offsetTable[e]+(o&1023)]+an.exponentTable[e],an.floatView[0]}var N_=Object.freeze({__proto__:null,toHalfFloat:D_,fromHalfFloat:F_});class z_ extends Pe{constructor(){console.error("THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js"),super()}}class B_ extends Pe{constructor(){console.error("THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js"),super()}}function O_(){console.error("THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js")}function U_(){console.error("THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js")}function k_(){console.error("THREE.ImmediateRenderObject has been removed.")}class V_ extends Ot{constructor(e,t,n){console.error('THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.'),super(e,t,n),this.samples=4}}class G_ extends Gs{constructor(e,t,n,i){console.warn("THREE.DataTexture2DArray has been renamed to DataArrayTexture."),super(e,t,n,i)}}class H_ extends Jr{constructor(e,t,n,i){console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."),super(e,t,n,i)}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Xr}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Xr);const W_=Object.freeze(Object.defineProperty({__proto__:null,ACESFilmicToneMapping:hh,AddEquation:qn,AddOperation:ah,AdditiveAnimationBlendMode:Oo,AdditiveBlending:$a,AlphaFormat:xh,AlwaysDepth:Qc,AlwaysStencilFunc:Dh,AmbientLight:Fu,AmbientLightProbe:Gx,AnimationClip:Us,AnimationLoader:Lx,AnimationMixer:o_,AnimationObjectGroup:s_,AnimationUtils:Ax,ArcCurve:au,ArrayCamera:Yh,ArrowHelper:L_,Audio:ku,AudioAnalyser:Zx,AudioContext:ll,AudioListener:qx,AudioLoader:kx,AxesHelper:P_,BackSide:Bt,BasicDepthPacking:Ph,BasicShadowMap:Ku,Bone:Yo,BooleanKeyframeTrack:pi,Box2:m_,Box3:di,Box3Helper:E_,BoxBufferGeometry:cn,BoxGeometry:cn,BoxHelper:T_,BufferAttribute:Ye,BufferGeometry:Pe,BufferGeometryLoader:Ou,ByteType:dh,Cache:ci,Camera:Kr,CameraHelper:A_,CanvasTexture:J0,CapsuleBufferGeometry:Yi,CapsuleGeometry:Yi,CatmullRomCurve3:ou,CineonToneMapping:ch,CircleBufferGeometry:Zi,CircleGeometry:Zi,ClampToEdgeWrapping:vt,Clock:Uu,Color:ue,ColorKeyframeTrack:rl,ColorManagement:Dt,CompressedTexture:ru,CompressedTextureLoader:Px,ConeBufferGeometry:Ji,ConeGeometry:Ji,CubeCamera:Oh,CubeReflectionMapping:Tn,CubeRefractionMapping:En,CubeTexture:Ws,CubeTextureLoader:Rx,CubeUVReflectionMapping:rs,CubicBezierCurve:$o,CubicBezierCurve3:lu,CubicInterpolant:Tu,CullFaceBack:Ja,CullFaceFront:Bc,CullFaceFrontBack:$u,CullFaceNone:zc,Curve:Ht,CurvePath:hu,CustomBlending:kc,CustomToneMapping:uh,CylinderBufferGeometry:Rn,CylinderGeometry:Rn,Cylindrical:p_,Data3DTexture:Jr,DataArrayTexture:Gs,DataTexture:Gi,DataTexture2DArray:G_,DataTexture3D:H_,DataTextureLoader:Ix,DataUtils:N_,DecrementStencilOp:hd,DecrementWrapStencilOp:dd,DefaultLoadingManager:Lu,DepthFormat:An,DepthStencilFormat:ii,DepthTexture:Zh,DirectionalLight:Du,DirectionalLightHelper:S_,DiscreteInterpolant:Eu,DodecahedronBufferGeometry:$i,DodecahedronGeometry:$i,DoubleSide:ni,DstAlphaFactor:Yc,DstColorFactor:Jc,DynamicCopyUsage:Ed,DynamicDrawUsage:Md,DynamicReadUsage:Sd,EdgesGeometry:uu,EllipseCurve:ra,EqualDepth:th,EqualStencilFunc:gd,EquirectangularReflectionMapping:ws,EquirectangularRefractionMapping:Ss,Euler:as,EventDispatcher:un,ExtrudeBufferGeometry:Ki,ExtrudeGeometry:Ki,FileLoader:hn,FlatShading:Uc,Float16BufferAttribute:uf,Float32BufferAttribute:me,Float64BufferAttribute:df,FloatType:on,Fog:na,FogExp2:ta,Font:U_,FontLoader:O_,FramebufferTexture:Z0,FrontSide:Hi,Frustum:jr,GLBufferAttribute:u_,GLSL1:Ld,GLSL3:wo,GreaterDepth:ih,GreaterEqualDepth:nh,GreaterEqualStencilFunc:yd,GreaterStencilFunc:_d,GridHelper:b_,Group:ki,HalfFloatType:Wi,HemisphereLight:Pu,HemisphereLightHelper:M_,HemisphereLightProbe:Vx,IcosahedronBufferGeometry:ji,IcosahedronGeometry:ji,ImageBitmapLoader:Ux,ImageLoader:ks,ImageUtils:ko,ImmediateRenderObject:k_,IncrementStencilOp:cd,IncrementWrapStencilOp:ud,InstancedBufferAttribute:Xi,InstancedBufferGeometry:Bu,InstancedInterleavedBuffer:h_,InstancedMesh:nu,Int16BufferAttribute:cf,Int32BufferAttribute:hf,Int8BufferAttribute:af,IntType:ph,InterleavedBuffer:ia,InterleavedBufferAttribute:ri,Interpolant:qs,InterpolateDiscrete:Es,InterpolateLinear:Cs,InterpolateSmooth:Br,InvertStencilOp:fd,KeepStencilOp:Or,KeyframeTrack:Wt,LOD:eu,LatheBufferGeometry:ai,LatheGeometry:ai,Layers:$r,LessDepth:eh,LessEqualDepth:Vr,LessEqualStencilFunc:xd,LessStencilFunc:md,Light:Fn,LightProbe:la,Line:Pn,Line3:g_,LineBasicMaterial:bt,LineCurve:aa,LineCurve3:cu,LineDashedMaterial:Su,LineLoop:iu,LineSegments:Kt,LinearEncoding:Ln,LinearFilter:it,LinearInterpolant:sl,LinearMipMapLinearFilter:nd,LinearMipMapNearestFilter:td,LinearMipmapLinearFilter:hi,LinearMipmapNearestFilter:zo,LinearSRGBColorSpace:Sn,LinearToneMapping:oh,Loader:Lt,LoaderUtils:Ro,LoadingManager:al,LoopOnce:Eh,LoopPingPong:Lh,LoopRepeat:Ch,LuminanceAlphaFormat:yh,LuminanceFormat:vh,MOUSE:Zu,Material:gt,MaterialLoader:ca,MathUtils:qd,Matrix3:wt,Matrix4:Le,MaxEquation:eo,Mesh:ft,MeshBasicMaterial:Dn,MeshDepthMaterial:Wo,MeshDistanceMaterial:qo,MeshLambertMaterial:bu,MeshMatcapMaterial:wu,MeshNormalMaterial:Mu,MeshPhongMaterial:vu,MeshPhysicalMaterial:_u,MeshStandardMaterial:tl,MeshToonMaterial:yu,MinEquation:Qa,MirroredRepeatWrapping:Ts,MixOperation:rh,MultiplyBlending:ja,MultiplyOperation:Vs,NearestFilter:ot,NearestMipMapLinearFilter:ed,NearestMipMapNearestFilter:Qu,NearestMipmapLinearFilter:Hr,NearestMipmapNearestFilter:Gr,NeverDepth:jc,NeverStencilFunc:pd,NoBlending:ln,NoColorSpace:ad,NoToneMapping:Yt,NormalAnimationBlendMode:Zr,NormalBlending:Kn,NotEqualDepth:sh,NotEqualStencilFunc:vd,NumberKeyframeTrack:Bs,Object3D:We,ObjectLoader:Bx,ObjectSpaceNormalMap:Ih,OctahedronBufferGeometry:oi,OctahedronGeometry:oi,OneFactor:Wc,OneMinusDstAlphaFactor:Zc,OneMinusDstColorFactor:$c,OneMinusSrcAlphaFactor:No,OneMinusSrcColorFactor:Xc,OrthographicCamera:Qr,PCFShadowMap:Do,PCFSoftShadowMap:Oc,PMREMGenerator:Ao,ParametricGeometry:z_,Path:Ds,PerspectiveCamera:dt,Plane:bn,PlaneBufferGeometry:si,PlaneGeometry:si,PlaneHelper:C_,PointLight:Iu,PointLightHelper:v_,Points:su,PointsMaterial:Zo,PolarGridHelper:w_,PolyhedronBufferGeometry:$t,PolyhedronGeometry:$t,PositionalAudio:Yx,PropertyBinding:Oe,PropertyMixer:Vu,QuadraticBezierCurve:Ko,QuadraticBezierCurve3:jo,Quaternion:St,QuaternionKeyframeTrack:ls,QuaternionLinearInterpolant:Cu,REVISION:Xr,RGBADepthPacking:Rh,RGBAFormat:zt,RGBAIntegerFormat:Ah,RGBA_ASTC_10x10_Format:vo,RGBA_ASTC_10x5_Format:go,RGBA_ASTC_10x6_Format:xo,RGBA_ASTC_10x8_Format:_o,RGBA_ASTC_12x10_Format:yo,RGBA_ASTC_12x12_Format:Mo,RGBA_ASTC_4x4_Format:oo,RGBA_ASTC_5x4_Format:lo,RGBA_ASTC_5x5_Format:co,RGBA_ASTC_6x5_Format:ho,RGBA_ASTC_6x6_Format:uo,RGBA_ASTC_8x5_Format:fo,RGBA_ASTC_8x6_Format:po,RGBA_ASTC_8x8_Format:mo,RGBA_BPTC_Format:bo,RGBA_ETC2_EAC_Format:ao,RGBA_PVRTC_2BPPV1_Format:so,RGBA_PVRTC_4BPPV1_Format:io,RGBA_S3TC_DXT1_Format:Fr,RGBA_S3TC_DXT3_Format:Nr,RGBA_S3TC_DXT5_Format:zr,RGBFormat:_h,RGB_ETC1_Format:Th,RGB_ETC2_Format:ro,RGB_PVRTC_2BPPV1_Format:no,RGB_PVRTC_4BPPV1_Format:to,RGB_S3TC_DXT1_Format:Dr,RGFormat:wh,RGIntegerFormat:Sh,RawShaderMaterial:xu,Ray:Hs,Raycaster:d_,RectAreaLight:Nu,RedFormat:Mh,RedIntegerFormat:bh,ReinhardToneMapping:lh,RepeatWrapping:As,ReplaceStencilOp:ld,ReverseSubtractEquation:Gc,RingBufferGeometry:Qi,RingGeometry:Qi,SRGBColorSpace:Xt,Scene:Kh,ShaderChunk:Ne,ShaderLib:Gt,ShaderMaterial:Jt,ShadowMaterial:gu,Shape:ti,ShapeBufferGeometry:es,ShapeGeometry:es,ShapePath:R_,ShapeUtils:Zt,ShortType:fh,Skeleton:sa,SkeletonHelper:__,SkinnedMesh:tu,SmoothShading:ju,Source:Jn,Sphere:fi,SphereBufferGeometry:li,SphereGeometry:li,Spherical:f_,SphericalHarmonics3:zu,SplineCurve:Qo,SpotLight:Ru,SpotLightHelper:x_,Sprite:Qh,SpriteMaterial:Xo,SrcAlphaFactor:Fo,SrcAlphaSaturateFactor:Kc,SrcColorFactor:qc,StaticCopyUsage:Td,StaticDrawUsage:Ps,StaticReadUsage:wd,StereoCamera:Hx,StreamCopyUsage:Cd,StreamDrawUsage:bd,StreamReadUsage:Ad,StringKeyframeTrack:mi,SubtractEquation:Vc,SubtractiveBlending:Ka,TOUCH:Ju,TangentSpaceNormalMap:ui,TetrahedronBufferGeometry:ts,TetrahedronGeometry:ts,TextGeometry:B_,Texture:ct,TextureLoader:Dx,TorusBufferGeometry:ns,TorusGeometry:ns,TorusKnotBufferGeometry:is,TorusKnotGeometry:is,Triangle:Nt,TriangleFanDrawMode:rd,TriangleStripDrawMode:sd,TrianglesDrawMode:id,TubeBufferGeometry:ss,TubeGeometry:ss,UVMapping:Yr,Uint16BufferAttribute:Vo,Uint32BufferAttribute:Go,Uint8BufferAttribute:of,Uint8ClampedBufferAttribute:lf,Uniform:ul,UniformsGroup:c_,UniformsLib:re,UniformsUtils:Bh,UnsignedByteType:Cn,UnsignedInt248Type:jn,UnsignedIntType:wn,UnsignedShort4444Type:mh,UnsignedShort5551Type:gh,UnsignedShortType:Bo,VSMShadowMap:Bi,Vector2:J,Vector3:A,Vector4:He,VectorKeyframeTrack:Os,VideoTexture:Y0,WebGL1Renderer:$h,WebGL3DRenderTarget:Jd,WebGLArrayRenderTarget:Zd,WebGLCubeRenderTarget:Uh,WebGLMultipleRenderTargets:$d,WebGLMultisampleRenderTarget:V_,WebGLRenderTarget:Ot,WebGLRenderer:Jh,WebGLUtils:Xh,WireframeGeometry:mu,WrapAroundEnding:Ls,ZeroCurvatureEnding:Yn,ZeroFactor:Hc,ZeroSlopeEnding:Zn,ZeroStencilOp:od,_SRGBAFormat:Wr,sRGBEncoding:Je},Symbol.toStringTag,{value:"Module"}));export{d_ as $,un as A,m_ as B,ue as C,Zh as D,Ki as E,on as F,ki as G,Wi as H,Zu as I,Ju as J,dt as K,it as L,wt as M,f_ as N,Qr as O,Ds as P,St as Q,Hs as R,ti as S,Dx as T,jo as U,A as V,Ot as W,$r as X,ct as Y,zt as Z,Cn as _,Lu as a,Kh as a0,Oc as a1,Yt as a2,hh as a3,Jh as a4,Kr as a5,Ku as a6,Do as a7,Bi as a8,Uu as a9,Bu as aa,h_ as ab,ri as ac,mu as ad,Jt as ae,Bh as af,re as ag,Xr as ah,He as ai,g_ as aj,Wo as ak,Rh as al,qo as am,Ne as an,Hi as ao,Bt as ap,Xi as aq,si as ar,Kn as as,We as at,su as au,jr as b,Lt as c,hn as d,J as e,Zt as f,Pe as g,me as h,R_ as i,ni as j,W_ as k,Md as l,Le as m,gt as n,ft as o,Uh as p,Oh as q,cn as r,qd as s,ns as t,tl as u,Dn as v,Ye as w,di as x,fi as y,bn as z}; diff --git a/build/index.html b/build/index.html index 5593802bd..7adfb9e44 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - +